Skip to content

Commit

Permalink
fix(deps): update dependency @reduxjs/toolkit to ^1.9.2 (#3464)
Browse files Browse the repository at this point in the history
[![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)) | [`^1.9.1` ->
`^1.9.2`](https://renovatebot.com/diffs/npm/@reduxjs%2ftoolkit/1.9.1/1.9.2)
|
[![age](https://badges.renovateapi.com/packages/npm/@reduxjs%2ftoolkit/1.9.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@reduxjs%2ftoolkit/1.9.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@reduxjs%2ftoolkit/1.9.2/compatibility-slim/1.9.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@reduxjs%2ftoolkit/1.9.2/confidence-slim/1.9.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>reduxjs/redux-toolkit</summary>

###
[`v1.9.2`](https://togithub.com/reduxjs/redux-toolkit/releases/tag/v1.9.2)

[Compare
Source](https://togithub.com/reduxjs/redux-toolkit/compare/v1.9.1...v1.9.2)

This bugfix release fixes a memory leak in `createListenerMiddleware`,
optimizes performance inside `serializableMiddleware`, adds new options
for `fetchBaseQuery`, adds support for path `RegExp` exclusions in
`serializableMiddleware` and `immutabilityMiddleware`, and improves some
TS types.

#### Changelog

##### Bug Fixes

`createListenerMiddleware` had a memory leak that turned out to be [due
to use of
`Promise.race()`](https://togithub.com/reduxjs/redux-toolkit/issues/3020).
We've restructured the logic to fix that.

`fetchBaseQuery` now correctly combines global options with endpoint /
default options in all cases.

##### New Options

`fetchBaseQuery` now supports a `jsonReplacer` option that will be used
when processing JSON.

Both dev check middleware now support regular expressions in the
`ignoredPaths` array in addition to strings. This adds extra flexibility
in skipping certain fields.

##### TS Changes

The `CaseReducer` type was sometimes incorrectly inferring its return
type in rare cases. That's been fixed.

The `isAnyOf/isAllOf` matcher function TS types have been tweaked to not
require an individual first parameter. This allows spreading arrays of
matchers as arguments, like `const isLoading =
isAnyOf(...interestingPendingThunksArray)`.

##### Other Changes

The `serializableMiddleware` now uses a `WeakSet` if available to cache
values it's seen. This should significantly speed up checks against
large state values in development builds.

#### What's Changed

- fix CaseReducer to infer from argument, not return value by
[@&#8203;phryneas](https://togithub.com/phryneas) in
[reduxjs/redux-toolkit#3054
- fetchBaseQuery | Add jsonReplacer param by
[@&#8203;tophep](https://togithub.com/tophep) in
[reduxjs/redux-toolkit#2904
- Support RegExp in ignoredPaths/ignoredActionPaths by
[@&#8203;markerikson](https://togithub.com/markerikson) in
[reduxjs/redux-toolkit#3129
- fix(types): export `ThunkWithReturnValue` interface by
[@&#8203;giomogna](https://togithub.com/giomogna) in
[reduxjs/redux-toolkit#3108
- remove unnecessary fetchBaseQuery defaults by
[@&#8203;phryneas](https://togithub.com/phryneas) in
[reduxjs/redux-toolkit#3062
- make isAnyOf friendly for mapped matchers, but making argument
optional by [@&#8203;megagon](https://togithub.com/megagon) in
[reduxjs/redux-toolkit#3123
- `raceWithSignal` method instead of `Promise.race` by
[@&#8203;phryneas](https://togithub.com/phryneas) in
[reduxjs/redux-toolkit#3021
- Fix lint problems and enable linting on CI by
[@&#8203;thorn0](https://togithub.com/thorn0) in
[reduxjs/redux-toolkit#2992
- Add caching to serializableStateInvariantMiddleware by
[@&#8203;GeorchW](https://togithub.com/GeorchW) in
[reduxjs/redux-toolkit#3115
- Allow TS isolatedModules flag to be set for safer transpilation by
[@&#8203;matmannion](https://togithub.com/matmannion) in
[reduxjs/redux-toolkit#2911

**Full Changelog**:
reduxjs/redux-toolkit@v1.9.1...v1.9.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **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://app.renovatebot.com/dashboard#github/valora-inc/wallet).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNDguMCIsInVwZGF0ZWRJblZlciI6IjM0LjE0OC4wIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] committed Feb 23, 2023
1 parent 621ddd2 commit a30467c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"@react-navigation/material-top-tabs": "^5.3.19",
"@react-navigation/native": "^6.0.13",
"@react-navigation/native-stack": "^6.9.1",
"@reduxjs/toolkit": "^1.9.1",
"@reduxjs/toolkit": "^1.9.2",
"@segment/analytics-react-native": "^1.5.3",
"@segment/analytics-react-native-adjust": "^1.5.3",
"@segment/analytics-react-native-clevertap": "^1.5.3",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4396,10 +4396,10 @@
resolved "https://registry.yarnpkg.com/@redux-saga/types/-/types-1.1.0.tgz#0e81ce56b4883b4b2a3001ebe1ab298b84237204"
integrity sha512-afmTuJrylUU/0OtqzaRkbyYFFNgCF73Bvel/sw90pvGrWIZ+vyoIJqA6eMSoA6+nb443kTmulmBtC9NerXboNg==

"@reduxjs/toolkit@^1.9.1":
version "1.9.1"
resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-1.9.1.tgz#4c34dc4ddcec161535288c60da5c19c3ef15180e"
integrity sha512-HikrdY+IDgRfRYlCTGUQaiCxxDDgM1mQrRbZ6S1HFZX5ZYuJ4o8EstNmhTwHdPl2rTmLxzwSu0b3AyeyTlR+RA==
"@reduxjs/toolkit@^1.9.2":
version "1.9.3"
resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-1.9.3.tgz#27e1a33072b5a312e4f7fa19247fec160bbb2df9"
integrity sha512-GU2TNBQVofL09VGmuSioNPQIu6Ml0YLf4EJhgj0AvBadRlCGzUWet8372LjvO4fqKZF2vH1xU0htAa7BrK9pZg==
dependencies:
immer "^9.0.16"
redux "^4.2.0"
Expand Down

0 comments on commit a30467c

Please sign in to comment.