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

build(deps): bump the react group across 1 directory with 3 updates #2270

Conversation

dependabot[bot]
Copy link

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

Bumps the react group with 3 updates in the /generators/react/resources directory: @reduxjs/toolkit, react-redux and redux.

Updates @reduxjs/toolkit from 2.0.1 to 2.2.4

Release notes

Sourced from @​reduxjs/toolkit's releases.

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
  • 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
  • 5ec40d8 Merge pull request #4315 from rkofman/master
  • 3e021de Merge pull request #4386 from reduxjs/matcher-golf
  • f17e122 Merge pull request #4389 from reduxjs/infer-void-async-thunk
  • 13ae28b Merge pull request #4255 from aryaemami59/update-ts-to-5.4
  • 2283987 Merge pull request #4310 from aryaemami59/cut-down-on-resolutions
  • 99c4c3e Merge pull request #4328 from aryaemami59/remove-rtk-github-issues-example-sa...
  • Additional commits viewable in compare view

Updates react-redux from 9.0.4 to 9.1.2

Release notes

Sourced from react-redux's releases.

v9.1.2

This bugfix release removes the no-longer-necessary peer dependency on react-native, and tweaks a few TS types for compat with the upcoming React 19 release.

Changes

React Native Peer Dependency Removed

We've always had an awkward peer dependency on both ReactDOM and React Native, because of the need to import the unstable_batchedUpdates API directly from each reconciler. That's part of what led to the sequence of 9.x patch releases to deal with RN compat.

As of 9.0.3, we dropped the batching imports completely, since React 18 now batches by default. That means we didn't even have any remaining imports from react-native.

Meanwhile, React 18.3 just came out, but so did React Native 0.74. RN 0.74 still requires React 18.2.

This caused NPM users to have installation failures when trying to use React-Redux:

  • React-Redux has a peer dep on RN
  • RN has a peer dep on React 18.2
  • But the latest React, 18.3 would get installed in the app
  • NPM errors with a peer dep mismatch

We no longer need to list RN as a peer dep, and dropping that also fixes the NPM installation issues as well.

What's Changed

Full Changelog: reduxjs/react-redux@v9.1.1...v9.1.2

v9.1.1

This bugfix release fixes an issue with connect and React Native caused by changes to our bundling setup in v9. Nested connect calls should work correctly now.

What's Changed

Full Changelog: reduxjs/react-redux@v9.1.0...v9.1.1

v9.1.0

This minor release adds a new syntax for pre-typing hooks.

.withTypes

Previously, the approach for "pre-typing" hooks with your app settings was a little varied. The result would look something like the below:

import type { TypedUseSelectorHook } from "react-redux"
</tr></table> 

... (truncated)

Commits
  • 1af75b3 Release 9.1.2
  • eec5f9b Merge pull request #2168 from reduxjs/feature/react-19-types
  • a752cc6 Fix remaining React 19 types compat issues
  • 23c0c22 Add explicit @​types/prop-types dep
  • bfa3c36 Merge pull request #2167 from reduxjs/bugfix/remove-rn-peerdep
  • 427791b Drop now-unneeded RN peer dep
  • f404f82 Replace usage of deprecated JSX global namespace with React.JSX (#2163)
  • 5ec7970 Fix useRef usages to be called with an explicit argument of undefined. (#...
  • d44ff74 Release 9.1.1
  • 0396da3 Merge pull request #2156 from aryaemami59/fix-RN-useIsomorphicLayoutEffect-issue
  • Additional commits viewable in compare view

Updates redux from 5.0.0 to 5.0.1

Release notes

Sourced from redux's releases.

v5.0.1

This patch release adjusts the isPlainObject util to allow objects created via Object.create(null), and fixes a type issue which accidentally made the store state type non-nullable.

What's Changed

Full Changelog: reduxjs/redux@v5.0.0...v5.0.1

Commits
Maintainer changes

This version was pushed to npm by phryneas, a new releaser for redux since your current version.


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 <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the react group with 3 updates in the /generators/react/resources directory: [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit), [react-redux](https://github.com/reduxjs/react-redux) and [redux](https://github.com/reduxjs/redux).


Updates `@reduxjs/toolkit` from 2.0.1 to 2.2.4
- [Release notes](https://github.com/reduxjs/redux-toolkit/releases)
- [Commits](reduxjs/redux-toolkit@v2.0.1...v2.2.4)

Updates `react-redux` from 9.0.4 to 9.1.2
- [Release notes](https://github.com/reduxjs/react-redux/releases)
- [Changelog](https://github.com/reduxjs/react-redux/blob/master/CHANGELOG.md)
- [Commits](reduxjs/react-redux@v9.0.4...v9.1.2)

Updates `redux` from 5.0.0 to 5.0.1
- [Release notes](https://github.com/reduxjs/redux/releases)
- [Changelog](https://github.com/reduxjs/redux/blob/master/CHANGELOG.md)
- [Commits](reduxjs/redux@v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: "@reduxjs/toolkit"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: react
- dependency-name: react-redux
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: react
- dependency-name: redux
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: react
...

Signed-off-by: dependabot[bot] <support@github.com>
Copy link
Author

dependabot bot commented on behalf of github May 10, 2024

The following labels could not be found: theme: react, theme: dependencies, skip-changelog.

Copy link
Author

dependabot bot commented on behalf of github May 17, 2024

Superseded by #2285.

@dependabot dependabot bot closed this May 17, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/generators/react/resources/react-2327b3d40c branch May 17, 2024 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
0 participants