Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): update dependency @reduxjs/toolkit to ^2.2.7 (#5746)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@reduxjs/toolkit](https://redux-toolkit.js.org) ([source](https://togithub.com/reduxjs/redux-toolkit)) | [`^2.2.5` -> `^2.2.7`](https://renovatebot.com/diffs/npm/@reduxjs%2ftoolkit/2.2.5/2.2.7) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@reduxjs%2ftoolkit/2.2.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@reduxjs%2ftoolkit/2.2.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@reduxjs%2ftoolkit/2.2.5/2.2.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@reduxjs%2ftoolkit/2.2.5/2.2.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>reduxjs/redux-toolkit (@​reduxjs/toolkit)</summary> ### [`v2.2.7`](https://togithub.com/reduxjs/redux-toolkit/releases/tag/v2.2.7) [Compare Source](https://togithub.com/reduxjs/redux-toolkit/compare/v2.2.6...v2.2.7) This **bugfix release** fixes issues with "TS type portability" errors, improves build artifact tree shaking behavior, and exports some additional TS types. #### Changelog ##### TS Type Portability We've had a slew of issues reported around "TS type portability" errors, such as: - [#​1806](https://togithub.com/reduxjs/redux-toolkit/issues/1806) - [#​3962](https://togithub.com/reduxjs/redux-toolkit/issues/3962) - [#​3983](https://togithub.com/reduxjs/redux-toolkit/issues/3983) The error messages are typically along the lines of: > Type error: The inferred type of `'configureStore'` cannot be named without a reference to `'@​reduxjs/toolkit/node_modules/redux'`. This is likely not portable. A type annotation is necessary. [@​aryaemami59](https://togithub.com/aryaemami59) did some deep investigation and concluded these were due to a mixture of using `interface` instead of `type` in most places, not pre-bundling our TS typedefs, and not exporting some of the unique symbols we use internally. Arya put together a highly detailed writeup and set of fixes in [ #​4467: Fix: TypeScript Type Portability Issues](#​4467), and that appears to resolve all of those issues we've seen. Thank you! ##### Other Changes Arya also did significant work to improve RTK's treeshaking, tweaking internal definitions to let bundlers better separate out unused code. We've exported additional types like `UpdateDefinitions` and `RetryOptions`, per request. `listenerMiddleware.withTypes()` methods now allow passing in an `ExtraArgument` generic. #### What's Changed - Fix: TypeScript Type Portability Issues by [@​aryaemami59](https://togithub.com/aryaemami59) in [https://github.com/reduxjs/redux-toolkit/pull/4467](https://togithub.com/reduxjs/redux-toolkit/pull/4467) - Export UpdateDefinitions from toolkit/query by [@​joekrill](https://togithub.com/joekrill) in [https://github.com/reduxjs/redux-toolkit/pull/4519](https://togithub.com/reduxjs/redux-toolkit/pull/4519) - feat: Adds ExtraArgument to withTypes for listenerMiddleware. by [@​antondalgren](https://togithub.com/antondalgren) in [https://github.com/reduxjs/redux-toolkit/pull/4517](https://togithub.com/reduxjs/redux-toolkit/pull/4517) - Improve treeshakeability of build artifacts by [@​aryaemami59](https://togithub.com/aryaemami59) in [https://github.com/reduxjs/redux-toolkit/pull/4435](https://togithub.com/reduxjs/redux-toolkit/pull/4435) - Export RetryOptions by [@​markerikson](https://togithub.com/markerikson) in [https://github.com/reduxjs/redux-toolkit/pull/4529](https://togithub.com/reduxjs/redux-toolkit/pull/4529) **Full Changelog**: reduxjs/redux-toolkit@v2.2.6...v2.2.7 ### [`v2.2.6`](https://togithub.com/reduxjs/redux-toolkit/compare/v2.2.5...a9362fbcec6cb66bdb3e6dc52bbf3d69ea6f2b22) [Compare Source](https://togithub.com/reduxjs/redux-toolkit/compare/v2.2.5...v2.2.6) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 5pm,every weekend" in timezone America/Los_Angeles, Automerge - "after 5pm,every weekend" in timezone America/Los_Angeles. 🚦 **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/valora-inc/wallet). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yMC4xIiwidXBkYXRlZEluVmVyIjoiMzguMjAuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsibnBtIiwicmVub3ZhdGUiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information