Skip to content

Commit

Permalink
chore(deps): update dependency @reduxjs/toolkit to ^2.2.8 (#6147)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@reduxjs/toolkit](https://redux-toolkit.js.org)
([source](https://redirect.github.com/reduxjs/redux-toolkit)) |
[`^2.2.7` ->
`^2.2.8`](https://renovatebot.com/diffs/npm/@reduxjs%2ftoolkit/2.2.7/2.2.8)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@reduxjs%2ftoolkit/2.2.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@reduxjs%2ftoolkit/2.2.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@reduxjs%2ftoolkit/2.2.7/2.2.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@reduxjs%2ftoolkit/2.2.7/2.2.8?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>reduxjs/redux-toolkit (@&#8203;reduxjs/toolkit)</summary>

###
[`v2.2.8`](https://redirect.github.com/reduxjs/redux-toolkit/releases/tag/v2.2.8)

[Compare
Source](https://redirect.github.com/reduxjs/redux-toolkit/compare/v2.2.7...v2.2.8)

This **bugfix** release fixes a long-standing issue with RTK Query lazy
query triggers returning stale data in some cases, fixes an error
handling issue in RTK Query, and exports additional TS types.

#### Changelog

##### Lazy Query Trigger Handling

We'd had a couple long-standing issues reporting that `const result =
await someLazyQueryTrigger()` sometimes returned stale data, especially
if a mutation had just invalidated that query's tag.

We finally got a good repro of this issue and identified it as a
mis-written call inside of the middleware that skipped past the
necessary handling to activate the correct query status tracking in that
scenario. This should now be fixed.

##### Other Changes

Timeout handling in RTKQ endpoints should now correctly throw a
timeout-related error instead of an `AbortError`.

Base queries now have access to the current `queryCacheKey` value so it
can be used in deciding query logic.

We've exported several more TS types related to query options, as some
users have been depending on those even though they previously weren't
part of the public API.

#### What's Changed

- Export `QueryExtraOptions` and `MutationExtraOptions` by
[@&#8203;aryaemami59](https://redirect.github.com/aryaemami59) in
[https://github.com/reduxjs/redux-toolkit/pull/4556](https://redirect.github.com/reduxjs/redux-toolkit/pull/4556)
- Fix `mangleErrors` not preserving different error types by
[@&#8203;aryaemami59](https://redirect.github.com/aryaemami59) in
[https://github.com/reduxjs/redux-toolkit/pull/4586](https://redirect.github.com/reduxjs/redux-toolkit/pull/4586)
- Add the `TypedUseQueryStateOptions` helper type by
[@&#8203;aryaemami59](https://redirect.github.com/aryaemami59) in
[https://github.com/reduxjs/redux-toolkit/pull/4604](https://redirect.github.com/reduxjs/redux-toolkit/pull/4604)
- feat(baseQuery): expose queryCacheKey in baseQuery by
[@&#8203;HaakonSvane](https://redirect.github.com/HaakonSvane) in
[https://github.com/reduxjs/redux-toolkit/pull/4636](https://redirect.github.com/reduxjs/redux-toolkit/pull/4636)
- Fix `AbortError` being triggered incorrectly on `createApi` endpoint
timeout by
[@&#8203;andrejpavlovic](https://redirect.github.com/andrejpavlovic) in
[https://github.com/reduxjs/redux-toolkit/pull/4628](https://redirect.github.com/reduxjs/redux-toolkit/pull/4628)
- type: export QueryReturnValue by
[@&#8203;hornta](https://redirect.github.com/hornta) in
[https://github.com/reduxjs/redux-toolkit/pull/4640](https://redirect.github.com/reduxjs/redux-toolkit/pull/4640)
- call `initiate` to refetch queries from middleware by
[@&#8203;phryneas](https://redirect.github.com/phryneas) in
[https://github.com/reduxjs/redux-toolkit/pull/4651](https://redirect.github.com/reduxjs/redux-toolkit/pull/4651)

**Full Changelog**:
reduxjs/redux-toolkit@v2.2.7...v2.2.8

</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 is behind base branch, 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://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/valora-inc/wallet).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Oct 12, 2024
1 parent 4c4693d commit d5c953f
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 @@ -97,7 +97,7 @@
"@react-navigation/material-top-tabs": "^6.6.14",
"@react-navigation/native": "^6.1.18",
"@react-navigation/native-stack": "^6.11.0",
"@reduxjs/toolkit": "^2.2.7",
"@reduxjs/toolkit": "^2.2.8",
"@scure/bip39": "^1.4.0",
"@segment/analytics-react-native": "^2.19.5",
"@segment/analytics-react-native-plugin-adjust": "^0.7.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2879,10 +2879,10 @@
resolved "https://registry.yarnpkg.com/@redux-saga/types/-/types-1.2.1.tgz#9403f51c17cae37edf870c6bc0c81c1ece5ccef8"
integrity sha512-1dgmkh+3so0+LlBWRhGA33ua4MYr7tUOj+a9Si28vUi0IUFNbff1T3sgpeDJI/LaC75bBYnQ0A3wXjn0OrRNBA==

"@reduxjs/toolkit@^2.2.7":
version "2.2.7"
resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-2.2.7.tgz#199e3d10ccb39267cb5aee92c0262fd9da7fdfb2"
integrity sha512-faI3cZbSdFb8yv9dhDTmGwclW0vk0z5o1cia+kf7gCbaCwHI5e+7tP57mJUv22pNcNbeA62GSrPpfrUfdXcQ6g==
"@reduxjs/toolkit@^2.2.8":
version "2.2.8"
resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-2.2.8.tgz#69e6473dd5a395860d387abdd53fe5a2add378c8"
integrity sha512-eK/ieXftPRQfaBSmzsamXEyDwkntMTY0e9SG5ETsEOv5JIPKhu3mj992t6B8FJjlnSrZBAAqdT8oMkPe4j+P9g==
dependencies:
immer "^10.0.3"
redux "^5.0.1"
Expand Down

0 comments on commit d5c953f

Please sign in to comment.