Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump @reduxjs/toolkit from 1.9.7 to 2.2.5 #443

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 23, 2024

Bumps @reduxjs/toolkit from 1.9.7 to 2.2.5.

Release notes

Sourced from @​reduxjs/toolkit's releases.

v2.2.5

This bugfix release fixes an issue in the recent createEntityAdapter sorting perf improvements that could (in specific cases) cause Immer to throw an error when trying to read a plain JS value instead of a proxy-wrapped value.

What's Changed

Full Changelog: reduxjs/redux-toolkit@v2.2.4...v2.2.5

v2.2.4

This bugfix release improves sorting performance in createEntityAdapter, shrinks the code size in matcher utilities, fixes assorted issues with query hooks, and makes several TS tweaks.

Changelog

Entity Adapter Sorting Performance

Users reported in #4252 that the sorting performance of createEntityAdapter seemed abnormally bad - the provided comparison functions were being called far more times than expected.

Upon investigation, we had a couple of problems. We were always starting from an array that was in insertion order, not the existing sorted order, and that would always require significant effort to re-sort even if there weren't any actual changes to the sorted results. Also, the sorting checks required frequent access to Immer's Proxy-wrapped values, even in cases where all we needed was the plain state values for comparison purposes.

We've reworked the internal sorting logic to always start from the existing sorted array, do reads against a plain value to avoid the Proxy getter overhead where possible, and optimized inserts into existing sorted arrays. This should significantly speed up sorted entity adapter behavior.

Matcher Code Size Optimization

We've reworked the internals of the thunk-related matchers to deduplicate some of the logic, shaving a few bytes off the final bundle size.

RTK Query Hook Updates

defaultSerializeQueryArgs can now handle BigInt values safely.

The isLoading flag logic was improved to handle errors when a query hook tries to subscribe.

TS Updates

create.asyncThunk's types were improved to avoid cases where it might infer any.

We've made several internal types changes to work correctly with React 19's upcoming types.

The retryCondition method now receives unknown as an argument, instead of always assuming the user is using fetchBaseQuery.

Other Changes

The Reselect dep has been bumped to 5.1.0 to match the expected internal usage of createSelector.withTypes().

What's Changed

... (truncated)

Commits
  • 4578c74 Release 2.2.5
  • 2e400d5 Merge pull request #4412 from reduxjs/bugfix/4411-immer-current
  • 4cc7b1f Fix Immer current usage when the value may not be a draft
  • 87e2e59 Switch vitest args to allow file filtering by name again
  • f2cc82c Merge pull request #4406 from Wase-Zahin/feature/typo
  • b0a14b2 fix: fix typo
  • 0246f78 Release 2.2.4
  • 72b3ac6 Merge pull request #3957 from reduxjs/retry-error-type
  • c892abd Merge pull request #4337 from jared-ca/undefined-type-initiate-mutation
  • 5d77624 Merge pull request #4364 from smacpherson64/master
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the type:dependencies Pull requests that update a dependency file label May 23, 2024
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/reduxjs/toolkit-2.2.5 branch from 68b2bb2 to 64b1f31 Compare May 24, 2024 21:22
@ziegenberg
Copy link
Member

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/reduxjs/toolkit-2.2.5 branch from 64b1f31 to fe21323 Compare May 29, 2024 11:59
Copy link
Contributor

github-actions bot commented May 29, 2024

Use docker or podman to test this pull request locally.

Run test server using develop.opencast.org as backend:

podman run --rm -it -p 127.0.0.1:3000:3000 ghcr.io/opencast/opencast-admin-interface:pr-443

Specify a different backend like stable.opencast.org:

podman run --rm -it -p 127.0.0.1:3000:3000 -e PROXY_TARGET=https://stable.opencast.org ghcr.io/opencast/opencast-admin-interface:pr-443

It may take a few seconds for the interface to spin up.
It will then be available at http://127.0.0.1:3000.
For more options you can pass on to the proxy, take a look at the README.md.

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/reduxjs/toolkit-2.2.5 branch from fe21323 to 4652098 Compare May 31, 2024 10:09
@ziegenberg
Copy link
Member

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/reduxjs/toolkit-2.2.5 branch 4 times, most recently from cfff091 to c12b88b Compare June 1, 2024 12:08
@lkiesow lkiesow mentioned this pull request Jun 1, 2024
4 tasks
@Arnei
Copy link
Member

Arnei commented Jun 3, 2024

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/reduxjs/toolkit-2.2.5 branch 2 times, most recently from 92a0f04 to 1823cda Compare June 4, 2024 08:25
Bumps [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) from 1.9.7 to 2.2.5.
- [Release notes](https://github.com/reduxjs/redux-toolkit/releases)
- [Commits](reduxjs/redux-toolkit@v1.9.7...v2.2.5)

---
updated-dependencies:
- dependency-name: "@reduxjs/toolkit"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/reduxjs/toolkit-2.2.5 branch from 1823cda to f07490f Compare June 4, 2024 10:06
Copy link
Contributor Author

dependabot bot commented on behalf of github Jun 4, 2024

Looks like @reduxjs/toolkit is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this Jun 4, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/reduxjs/toolkit-2.2.5 branch June 4, 2024 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants