Skip to content

Commit

Permalink
fix(deps): update dependency @reduxjs/toolkit to ^1.9.6 (#4248)
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://github.com/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://github.com/reduxjs/redux-toolkit/releases/tag/v1.9.6)

[Compare
Source](https://github.com/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://github.com/EskiMojo14) in
[https://github.com/reduxjs/redux-toolkit/pull/3414](https://github.com/reduxjs/redux-toolkit/pull/3414)
- Implement auto fork joining by
[@&#8203;ericanderson](https://github.com/ericanderson) in
[https://github.com/reduxjs/redux-toolkit/pull/3407](https://github.com/reduxjs/redux-toolkit/pull/3407)
- types: make it easier to wrap createAsyncThunk by
[@&#8203;shrouxm](https://github.com/shrouxm) in
[https://github.com/reduxjs/redux-toolkit/pull/3393](https://github.com/reduxjs/redux-toolkit/pull/3393)
- Fixed Stackoverflow bug if children prop is a ref to root/parent
object by [@&#8203;cheprasov](https://github.com/cheprasov) in
[https://github.com/reduxjs/redux-toolkit/pull/3428](https://github.com/reduxjs/redux-toolkit/pull/3428)
- Fix TransformedResponse type to unwrap promise by
[@&#8203;EskiMojo14](https://github.com/EskiMojo14) in
[https://github.com/reduxjs/redux-toolkit/pull/3500](https://github.com/reduxjs/redux-toolkit/pull/3500)
- Throw error when type is empty in builder.addCase by
[@&#8203;chawes13](https://github.com/chawes13) in
[https://github.com/reduxjs/redux-toolkit/pull/3572](https://github.com/reduxjs/redux-toolkit/pull/3572)
- \[RED-23] fix: Updated type references to resolve portable types issue
by [@&#8203;tdurnford](https://github.com/tdurnford) in
[https://github.com/reduxjs/redux-toolkit/pull/3728](https://github.com/reduxjs/redux-toolkit/pull/3728)
- add option to update provided tags by
[@&#8203;dutzi](https://github.com/dutzi) in
[https://github.com/reduxjs/redux-toolkit/pull/3255](https://github.com/reduxjs/redux-toolkit/pull/3255)
- \[RED-26] Remove Request.clone() usage in fetchBaseQuery by
[@&#8203;alex-vukov](https://github.com/alex-vukov) in
[https://github.com/reduxjs/redux-toolkit/pull/3720](https://github.com/reduxjs/redux-toolkit/pull/3720)
- Try working around TS 4.1 mismatch by
[@&#8203;markerikson](https://github.com/markerikson) in
[https://github.com/reduxjs/redux-toolkit/pull/3739](https://github.com/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>
  • Loading branch information
renovate[bot] authored Oct 1, 2023
1 parent 0528163 commit 8e6d853
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 @@ -98,7 +98,7 @@
"@react-navigation/material-top-tabs": "^5.3.19",
"@react-navigation/native": "^6.1.7",
"@react-navigation/native-stack": "^6.9.13",
"@reduxjs/toolkit": "^1.9.5",
"@reduxjs/toolkit": "^1.9.6",
"@segment/analytics-react-native": "^2.15.0",
"@segment/analytics-react-native-plugin-adjust": "^0.6.2",
"@segment/analytics-react-native-plugin-clevertap": "^1.0.2",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2956,10 +2956,10 @@
resolved "https://registry.yarnpkg.com/@redux-saga/types/-/types-1.2.1.tgz#9403f51c17cae37edf870c6bc0c81c1ece5ccef8"
integrity sha512-1dgmkh+3so0+LlBWRhGA33ua4MYr7tUOj+a9Si28vUi0IUFNbff1T3sgpeDJI/LaC75bBYnQ0A3wXjn0OrRNBA==

"@reduxjs/toolkit@^1.9.5":
version "1.9.5"
resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-1.9.5.tgz#d3987849c24189ca483baa7aa59386c8e52077c4"
integrity sha512-Rt97jHmfTeaxL4swLRNPD/zV4OxTes4la07Xc4hetpUW/vc75t5m1ANyxG6ymnEQ2FsLQsoMlYB2vV1sO3m8tQ==
"@reduxjs/toolkit@^1.9.6":
version "1.9.6"
resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-1.9.6.tgz#fc968b45fe5b17ff90932c4556960d9c1078365a"
integrity sha512-Gc4ikl90ORF4viIdAkY06JNUnODjKfGxZRwATM30EdHq8hLSVoSrwXne5dd739yenP5bJxAX7tLuOWK5RPGtrw==
dependencies:
immer "^9.0.21"
redux "^4.2.1"
Expand Down

0 comments on commit 8e6d853

Please sign in to comment.