Skip to content

Commit

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

---

### Release Notes

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

### [`v2.0.1`](https://github.com/reduxjs/redux-toolkit/compare/v2.0.0...v2.0.1)

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

### [`v2.0.0`](https://github.com/reduxjs/redux-toolkit/compare/v1.9.7...v2.0.0)

[Compare Source](https://github.com/reduxjs/redux-toolkit/compare/v1.9.7...v2.0.0)

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

[Compare Source](https://github.com/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://github.com/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://github.com/kahirokunn) in [https://github.com/reduxjs/redux-toolkit/pull/3772](https://github.com/reduxjs/redux-toolkit/pull/3772)
-   Copy of "Work around known TS bug with type inference [#&#8203;3761](https://github.com/reduxjs/redux-toolkit/issues/3761)" by [@&#8203;julian-ford](https://github.com/julian-ford) in [https://github.com/reduxjs/redux-toolkit/pull/3777](https://github.com/reduxjs/redux-toolkit/pull/3777)
-   Rework named hooks type (v1.9) by [@&#8203;EskiMojo14](https://github.com/EskiMojo14) in [https://github.com/reduxjs/redux-toolkit/pull/3769](https://github.com/reduxjs/redux-toolkit/pull/3769)

**Full Changelog**: reduxjs/redux-toolkit@v1.9.6...v1.9.7

### [`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 10pm every weekday,before 6am every weekday" (UTC), Automerge - At any time (no schedule defined).

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

♻ **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 has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/apereo/cas).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44MS4zIiwidXBkYXRlZEluVmVyIjoiMzcuODEuMyIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->
  • Loading branch information
renovate[bot] authored Dec 5, 2023
1 parent 1837235 commit eac13c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support/cas-server-support-palantir/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@mui/icons-material": "^5.11.16",
"@mui/material": "^5.12.3",
"@mui/x-date-pickers": "^6.3.1",
"@reduxjs/toolkit": "^1.9.5",
"@reduxjs/toolkit": "^2.0.0",
"@stoplight/json-ref-resolver": "^3.1.6",
"ace-builds": "^1.27.0",
"add": "^2.0.6",
Expand Down

0 comments on commit eac13c3

Please sign in to comment.