Skip to content

Commit

Permalink
fix(deps): update dependency @reduxjs/toolkit to ^2.2.7 (#5746)
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)) | [`^2.2.5` ->
`^2.2.7`](https://renovatebot.com/diffs/npm/@reduxjs%2ftoolkit/2.2.5/2.2.7)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@reduxjs%2ftoolkit/2.2.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@reduxjs%2ftoolkit/2.2.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@reduxjs%2ftoolkit/2.2.5/2.2.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@reduxjs%2ftoolkit/2.2.5/2.2.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

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

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

This **bugfix release** fixes issues with "TS type portability" errors,
improves build artifact tree shaking behavior, and exports some
additional TS types.

#### Changelog

##### TS Type Portability

We've had a slew of issues reported around "TS type portability" errors,
such as:

- [#&#8203;1806](https://github.com/reduxjs/redux-toolkit/issues/1806)
- [#&#8203;3962](https://github.com/reduxjs/redux-toolkit/issues/3962)
- [#&#8203;3983](https://github.com/reduxjs/redux-toolkit/issues/3983)

The error messages are typically along the lines of:

> Type error: The inferred type of `'configureStore'` cannot be named
without a reference to `'@&#8203;reduxjs/toolkit/node_modules/redux'`.
This is likely not portable. A type annotation is necessary.

[@&#8203;aryaemami59](https://github.com/aryaemami59) did some deep
investigation and concluded these were due to a mixture of using
`interface` instead of `type` in most places, not pre-bundling our TS
typedefs, and not exporting some of the unique symbols we use
internally.

Arya put together a highly detailed writeup and set of fixes in [
#&#8203;4467: Fix: TypeScript Type Portability Issues](#&#8203;4467),
and that appears to resolve all of those issues we've seen. Thank you!

##### Other Changes

Arya also did significant work to improve RTK's treeshaking, tweaking
internal definitions to let bundlers better separate out unused code.

We've exported additional types like `UpdateDefinitions` and
`RetryOptions`, per request.

`listenerMiddleware.withTypes()` methods now allow passing in an
`ExtraArgument` generic.

#### What's Changed

- Fix: TypeScript Type Portability Issues by
[@&#8203;aryaemami59](https://github.com/aryaemami59) in
[https://github.com/reduxjs/redux-toolkit/pull/4467](https://github.com/reduxjs/redux-toolkit/pull/4467)
- Export UpdateDefinitions from toolkit/query by
[@&#8203;joekrill](https://github.com/joekrill) in
[https://github.com/reduxjs/redux-toolkit/pull/4519](https://github.com/reduxjs/redux-toolkit/pull/4519)
- feat: Adds ExtraArgument to withTypes for listenerMiddleware. by
[@&#8203;antondalgren](https://github.com/antondalgren) in
[https://github.com/reduxjs/redux-toolkit/pull/4517](https://github.com/reduxjs/redux-toolkit/pull/4517)
- Improve treeshakeability of build artifacts by
[@&#8203;aryaemami59](https://github.com/aryaemami59) in
[https://github.com/reduxjs/redux-toolkit/pull/4435](https://github.com/reduxjs/redux-toolkit/pull/4435)
- Export RetryOptions by
[@&#8203;markerikson](https://github.com/markerikson) in
[https://github.com/reduxjs/redux-toolkit/pull/4529](https://github.com/reduxjs/redux-toolkit/pull/4529)

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

###
[`v2.2.6`](https://github.com/reduxjs/redux-toolkit/compare/v2.2.5...a9362fbcec6cb66bdb3e6dc52bbf3d69ea6f2b22)

[Compare
Source](https://github.com/reduxjs/redux-toolkit/compare/v2.2.5...v2.2.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 was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/valora-inc/wallet).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Aug 9, 2024
1 parent 4a26c93 commit 747c2e4
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 @@ -104,7 +104,7 @@
"@react-navigation/material-top-tabs": "^5.3.19",
"@react-navigation/native": "^6.1.17",
"@react-navigation/native-stack": "^6.9.26",
"@reduxjs/toolkit": "^2.2.5",
"@reduxjs/toolkit": "^2.2.7",
"@segment/analytics-react-native": "^2.19.2",
"@segment/analytics-react-native-plugin-adjust": "^0.7.0",
"@segment/analytics-react-native-plugin-clevertap": "^1.1.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3174,10 +3174,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.5":
version "2.2.5"
resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-2.2.5.tgz#c0d2d8482ef80722bebe015ff05b06c34bfb6e0d"
integrity sha512-aeFA/s5NCG7NoJe/MhmwREJxRkDs0ZaSqt0MxhWUrwCf1UQXpwR87RROJEql0uAkLI6U7snBOYOcKw83ew3FPg==
"@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==
dependencies:
immer "^10.0.3"
redux "^5.0.1"
Expand Down

0 comments on commit 747c2e4

Please sign in to comment.