gvergnaud/ts-pattern
### [`v3.2.4`](https://togithub.com/gvergnaud/ts-pattern/releases/v3.2.4)
[Compare Source](https://togithub.com/gvergnaud/ts-pattern/compare/5bfb9bc54df40a8af5eb52bf8f4ddb4b2429f771...v3.2.4)
##### Improvements
- `.otherwise` now passes the input value to the handler function. This can be useful when your default handler is a statically defined function and you want to avoid writing an intermediary anonymous function passing the input to it. PR [#37](https://togithub.com/gvergnaud/ts-pattern/issues/37) from [@oguimbal](https://togithub.com/oguimbal) 🙏
##### Bug fix
- It's now possible to pattern-match on native `Error` objects. To save some compilation time, deep pattern matching on builtin objects is disabled, but it turns out this can be pretty handy to pattern match on native `Error` objects because some libs (like `@apollo/client`) enhance them with additional properties.
### [`v3.2.3`](https://togithub.com/gvergnaud/ts-pattern/compare/v3.2.2...5bfb9bc54df40a8af5eb52bf8f4ddb4b2429f771)
[Compare Source](https://togithub.com/gvergnaud/ts-pattern/compare/v3.2.2...5bfb9bc54df40a8af5eb52bf8f4ddb4b2429f771)
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box.
This PR contains the following updates:
3.2.2
->3.2.4
Release Notes
gvergnaud/ts-pattern
### [`v3.2.4`](https://togithub.com/gvergnaud/ts-pattern/releases/v3.2.4) [Compare Source](https://togithub.com/gvergnaud/ts-pattern/compare/5bfb9bc54df40a8af5eb52bf8f4ddb4b2429f771...v3.2.4) ##### Improvements - `.otherwise` now passes the input value to the handler function. This can be useful when your default handler is a statically defined function and you want to avoid writing an intermediary anonymous function passing the input to it. PR [#37](https://togithub.com/gvergnaud/ts-pattern/issues/37) from [@oguimbal](https://togithub.com/oguimbal) 🙏 ##### Bug fix - It's now possible to pattern-match on native `Error` objects. To save some compilation time, deep pattern matching on builtin objects is disabled, but it turns out this can be pretty handy to pattern match on native `Error` objects because some libs (like `@apollo/client`) enhance them with additional properties. ### [`v3.2.3`](https://togithub.com/gvergnaud/ts-pattern/compare/v3.2.2...5bfb9bc54df40a8af5eb52bf8f4ddb4b2429f771) [Compare Source](https://togithub.com/gvergnaud/ts-pattern/compare/v3.2.2...5bfb9bc54df40a8af5eb52bf8f4ddb4b2429f771)Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.