Skip to content

Commit 8e6d853

Browse files
fix(deps): update dependency @reduxjs/toolkit to ^1.9.6 (#4248)
[![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://tog.gosu.cc/reduxjs/redux-toolkit)) | [`^1.9.5` -> `^1.9.6`](https://renovatebot.com/diffs/npm/@reduxjs%2ftoolkit/1.9.5/1.9.6) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@reduxjs%2ftoolkit/1.9.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@reduxjs%2ftoolkit/1.9.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@reduxjs%2ftoolkit/1.9.5/1.9.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@reduxjs%2ftoolkit/1.9.5/1.9.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>reduxjs/redux-toolkit (@&#8203;reduxjs/toolkit)</summary> ### [`v1.9.6`](https://tog.gosu.cc/reduxjs/redux-toolkit/releases/tag/v1.9.6) [Compare Source](https://tog.gosu.cc/reduxjs/redux-toolkit/compare/v1.9.5...v1.9.6) This bugfix release adds a new dev-mode middleware to catch accidentally dispatching an action creator, adds a new listener middleware option around waiting for forks, adds a new option to update provided tags when `updateQueryData` is used, reworks internal types to better handle uses with TS declaration output, and fixes a variety of small issues. ##### Changelog ##### Action Creator Dev Check Middleware RTK already includes dev-mode middleware that check for the common mistakes of accidentally mutating state and putting non-serializable values into state or actions. Over the years we've also seen a semi-frequent error where users accidentally pass an action creator reference to `dispatch`, instead of *calling* it and dispatching the action it returns. We've added another dev-mode middleware that specifically catches this error and warns about it. ##### Additional Options The listener middleware's `listenerApi.fork()` method now has an optional `autoJoin` flag that can be used to keep the effect from finishing until all active forked tasks have completed. `updateQueryData` now has an `updateProvidedTags` option that will force a recalculation of that endpoint's provided tags. It currently defaults to `false`, and we'll likely turn that to `true` in the next major. ##### Other Fixes The `builder.addCase` method now throws an error if a `type` string is empty. `fetchBaseQuery` now uses an alternate method to clone the original `Request` in order to work around an obscure Chrome bug. The immutability middleware logic was tweaked to avoid a potential stack overflow. ##### Types Changes The internal type imports have been reworked to try to fix "type portability" issues when used in combination with TS declaration outputs. A couple additional types were exported to help with wrapping `createAsyncThunk`. ##### What's Changed - create action creator middleware by [@&#8203;EskiMojo14](https://tog.gosu.cc/EskiMojo14) in [https://github.com/reduxjs/redux-toolkit/pull/3414](https://tog.gosu.cc/reduxjs/redux-toolkit/pull/3414) - Implement auto fork joining by [@&#8203;ericanderson](https://tog.gosu.cc/ericanderson) in [https://github.com/reduxjs/redux-toolkit/pull/3407](https://tog.gosu.cc/reduxjs/redux-toolkit/pull/3407) - types: make it easier to wrap createAsyncThunk by [@&#8203;shrouxm](https://tog.gosu.cc/shrouxm) in [https://github.com/reduxjs/redux-toolkit/pull/3393](https://tog.gosu.cc/reduxjs/redux-toolkit/pull/3393) - Fixed Stackoverflow bug if children prop is a ref to root/parent object by [@&#8203;cheprasov](https://tog.gosu.cc/cheprasov) in [https://github.com/reduxjs/redux-toolkit/pull/3428](https://tog.gosu.cc/reduxjs/redux-toolkit/pull/3428) - Fix TransformedResponse type to unwrap promise by [@&#8203;EskiMojo14](https://tog.gosu.cc/EskiMojo14) in [https://github.com/reduxjs/redux-toolkit/pull/3500](https://tog.gosu.cc/reduxjs/redux-toolkit/pull/3500) - Throw error when type is empty in builder.addCase by [@&#8203;chawes13](https://tog.gosu.cc/chawes13) in [https://github.com/reduxjs/redux-toolkit/pull/3572](https://tog.gosu.cc/reduxjs/redux-toolkit/pull/3572) - \[RED-23] fix: Updated type references to resolve portable types issue by [@&#8203;tdurnford](https://tog.gosu.cc/tdurnford) in [https://github.com/reduxjs/redux-toolkit/pull/3728](https://tog.gosu.cc/reduxjs/redux-toolkit/pull/3728) - add option to update provided tags by [@&#8203;dutzi](https://tog.gosu.cc/dutzi) in [https://github.com/reduxjs/redux-toolkit/pull/3255](https://tog.gosu.cc/reduxjs/redux-toolkit/pull/3255) - \[RED-26] Remove Request.clone() usage in fetchBaseQuery by [@&#8203;alex-vukov](https://tog.gosu.cc/alex-vukov) in [https://github.com/reduxjs/redux-toolkit/pull/3720](https://tog.gosu.cc/reduxjs/redux-toolkit/pull/3720) - Try working around TS 4.1 mismatch by [@&#8203;markerikson](https://tog.gosu.cc/markerikson) in [https://github.com/reduxjs/redux-toolkit/pull/3739](https://tog.gosu.cc/reduxjs/redux-toolkit/pull/3739) **Full Changelog**: reduxjs/redux-toolkit@v1.9.5...v1.9.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 has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/valora-inc/wallet). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4wLjMiLCJ1cGRhdGVkSW5WZXIiOiIzNy4wLjMiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 0528163 commit 8e6d853

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"@react-navigation/material-top-tabs": "^5.3.19",
9999
"@react-navigation/native": "^6.1.7",
100100
"@react-navigation/native-stack": "^6.9.13",
101-
"@reduxjs/toolkit": "^1.9.5",
101+
"@reduxjs/toolkit": "^1.9.6",
102102
"@segment/analytics-react-native": "^2.15.0",
103103
"@segment/analytics-react-native-plugin-adjust": "^0.6.2",
104104
"@segment/analytics-react-native-plugin-clevertap": "^1.0.2",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2956,10 +2956,10 @@
29562956
resolved "https://registry.yarnpkg.com/@redux-saga/types/-/types-1.2.1.tgz#9403f51c17cae37edf870c6bc0c81c1ece5ccef8"
29572957
integrity sha512-1dgmkh+3so0+LlBWRhGA33ua4MYr7tUOj+a9Si28vUi0IUFNbff1T3sgpeDJI/LaC75bBYnQ0A3wXjn0OrRNBA==
29582958

2959-
"@reduxjs/toolkit@^1.9.5":
2960-
version "1.9.5"
2961-
resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-1.9.5.tgz#d3987849c24189ca483baa7aa59386c8e52077c4"
2962-
integrity sha512-Rt97jHmfTeaxL4swLRNPD/zV4OxTes4la07Xc4hetpUW/vc75t5m1ANyxG6ymnEQ2FsLQsoMlYB2vV1sO3m8tQ==
2959+
"@reduxjs/toolkit@^1.9.6":
2960+
version "1.9.6"
2961+
resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-1.9.6.tgz#fc968b45fe5b17ff90932c4556960d9c1078365a"
2962+
integrity sha512-Gc4ikl90ORF4viIdAkY06JNUnODjKfGxZRwATM30EdHq8hLSVoSrwXne5dd739yenP5bJxAX7tLuOWK5RPGtrw==
29632963
dependencies:
29642964
immer "^9.0.21"
29652965
redux "^4.2.1"

0 commit comments

Comments
 (0)