Skip to content

Commit 74c9546

Browse files
fix(deps): update dependency @reduxjs/toolkit to ^1.9.7 (#4290)
[![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.6` -> `^1.9.7`](https://renovatebot.com/diffs/npm/@reduxjs%2ftoolkit/1.9.6/1.9.7) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@reduxjs%2ftoolkit/1.9.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@reduxjs%2ftoolkit/1.9.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@reduxjs%2ftoolkit/1.9.6/1.9.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@reduxjs%2ftoolkit/1.9.6/1.9.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>reduxjs/redux-toolkit (@&#8203;reduxjs/toolkit)</summary> ### [`v1.9.7`](https://tog.gosu.cc/reduxjs/redux-toolkit/releases/tag/v1.9.7) [Compare Source](https://tog.gosu.cc/reduxjs/redux-toolkit/compare/v1.9.6...v1.9.7) This bugfix release rewrites the RTKQ hook TS types to significantly improve TS perf. #### Changelog ##### RTKQ TS Perf A number of users had reported that Intellisense for RTKQ API objects was extremely slow (multiple seconds) - see discussion in [#&#8203;3214](https://tog.gosu.cc/reduxjs/redux-toolkit/issues/3214) . We did some perf investigation on user-provided examples, and concluded that the biggest factor to slow RTKQ TS perf was the calculation of hook names like `useGetPokemonQuery`, which was generating a large TS union of types. We've rewritten that hook names type calculation to use mapped types and a couple of intersections. In a specific user-provided stress test repo, it dropped TS calculation time by 60% (2600ms to 1000ms). There's more potential work we can do to improve things, but this seems like a major perf improvement worth shipping now. #### What's Changed - chore: Switch 4.9.2-rc to 4.9.5 since 4.9.5 has been released in TypeScript by [@&#8203;kahirokunn](https://tog.gosu.cc/kahirokunn) in [https://github.com/reduxjs/redux-toolkit/pull/3772](https://tog.gosu.cc/reduxjs/redux-toolkit/pull/3772) - Copy of "Work around known TS bug with type inference [#&#8203;3761](https://tog.gosu.cc/reduxjs/redux-toolkit/issues/3761)" by [@&#8203;julian-ford](https://tog.gosu.cc/julian-ford) in [https://github.com/reduxjs/redux-toolkit/pull/3777](https://tog.gosu.cc/reduxjs/redux-toolkit/pull/3777) - Rework named hooks type (v1.9) by [@&#8203;EskiMojo14](https://tog.gosu.cc/EskiMojo14) in [https://github.com/reduxjs/redux-toolkit/pull/3769](https://tog.gosu.cc/reduxjs/redux-toolkit/pull/3769) **Full Changelog**: reduxjs/redux-toolkit@v1.9.6...v1.9.7 </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:eyJjcmVhdGVkSW5WZXIiOiIzNy44LjEiLCJ1cGRhdGVkSW5WZXIiOiIzNy44LjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 9c45e04 commit 74c9546

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
@@ -96,7 +96,7 @@
9696
"@react-navigation/material-top-tabs": "^5.3.19",
9797
"@react-navigation/native": "^6.1.8",
9898
"@react-navigation/native-stack": "^6.9.14",
99-
"@reduxjs/toolkit": "^1.9.6",
99+
"@reduxjs/toolkit": "^1.9.7",
100100
"@segment/analytics-react-native": "^2.15.0",
101101
"@segment/analytics-react-native-plugin-adjust": "^0.6.2",
102102
"@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
@@ -2929,10 +2929,10 @@
29292929
resolved "https://registry.yarnpkg.com/@redux-saga/types/-/types-1.2.1.tgz#9403f51c17cae37edf870c6bc0c81c1ece5ccef8"
29302930
integrity sha512-1dgmkh+3so0+LlBWRhGA33ua4MYr7tUOj+a9Si28vUi0IUFNbff1T3sgpeDJI/LaC75bBYnQ0A3wXjn0OrRNBA==
29312931

2932-
"@reduxjs/toolkit@^1.9.6":
2933-
version "1.9.6"
2934-
resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-1.9.6.tgz#fc968b45fe5b17ff90932c4556960d9c1078365a"
2935-
integrity sha512-Gc4ikl90ORF4viIdAkY06JNUnODjKfGxZRwATM30EdHq8hLSVoSrwXne5dd739yenP5bJxAX7tLuOWK5RPGtrw==
2932+
"@reduxjs/toolkit@^1.9.7":
2933+
version "1.9.7"
2934+
resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-1.9.7.tgz#7fc07c0b0ebec52043f8cb43510cf346405f78a6"
2935+
integrity sha512-t7v8ZPxhhKgOKtU+uyJT13lu4vL7az5aFi4IdoDs/eS548edn2M8Ik9h8fxgvMjGoAUVFSt6ZC1P5cWmQ014QQ==
29362936
dependencies:
29372937
immer "^9.0.21"
29382938
redux "^4.2.1"

0 commit comments

Comments
 (0)