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

chore(deps): bump the redux group across 1 directory with 2 updates #958

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

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

Bumps the redux group with 2 updates in the / directory: @reduxjs/toolkit and react-redux.

Updates @reduxjs/toolkit from 1.9.7 to 2.2.3

Release notes

Sourced from @​reduxjs/toolkit's releases.

v2.2.3

This minor release fixes the types for functions that accept a React Context instance to match the changes in React Redux v9.

What's Changed

Full Changelog: reduxjs/redux-toolkit@v2.2.2...v2.2.3

v2.2.2

This patch release fixes an incorrect build setting for the legacy-esm artifacts, and fixes an issue with RTKQ query hooks didn't always remove the cache entries if arguments were changed rapidly.

Changes

legacy-esm Artifact Transpilation

The legacy-esm build artifacts are intended for use by Webpack 4. Those were supposed to be transpiled to target "es2017", but were in fact still set to target "esnext" - an oversight during the 2.0 development cycle. This release fixes that setting, so those artifacts are now correctly transpiled.

Other Fixes

RTKQ query hooks now handle additional actions around argument changes that should result in cache entries being removed.

Additionally, 2.2.1 contained a fix to an incorrectly named type: TypedUseMutationTrigger is now TypedMutationTrigger.

What's Changed

Full Changelog: reduxjs/redux-toolkit@v2.2.0...v2.2.2

v2.2.0

This minor release:

  • Adds a second parameter to entityAdapter.getInitialState(additionalProps, entities) to allow prefilling state
    • Equivalent to entityAdapter.setAll(entityAdapter.getInitialState(additionalProps), entities)
    • First parameter can be undefined if no additional properties are desired
  • Allows initialising combineSlices with no static reducers
    • Previously const combinedReducer = combineSlices().withLazyLoadedSlices<LazyLoadedSlices>() would have thrown an error
    • Now returns a "no-op" reducer that just returns an empty object until first reducer injected
  • Allows a new 'throw' value for overrideExisting in injectEndpoints, which throws an error if a definition is injected with a name which is already used
  • Exports more type helpers for RTKQ hook and trigger types
  • Exports types related to overriding result types in enhanceEndpoints
  • Fixes state inference for injected slices when undeclared (i.e. not in LazyLoadedSlices)
  • Adds a action.meta.arg.isPrefetch value to query thunk actions when prefetched

What's Changed

... (truncated)

Commits
  • 213b5f4 Release 2.2.3
  • cccf40a Merge pull request #4308 from aryaemami59/TypedUseSelectorHook-to-withTypes
  • 5a01e09 remove unnecessary type param
  • 63f708f add custom context test for apiprovider
  • 7e854c4 change ApiProvider context argument to match
  • 8b5d210 Make parameter of createDispatchWithMiddlewareHookFactory nullable
  • dff4cd2 Fix nullable react-redux context references
  • 1d8c4b7 Bump react-redux to 9.1.0
  • 57ef6ae Replace all instances of TypedUseSelectorHook with .withTypes
  • 1afcdd4 Merge pull request #4286 from CodeByZack/add-missing-quote
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by phryneas, a new releaser for @​reduxjs/toolkit since your current version.


Updates react-redux from 8.1.3 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

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 redux group with 2 updates in the / directory: [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) and [react-redux](https://github.com/reduxjs/react-redux).


Updates `@reduxjs/toolkit` from 1.9.7 to 2.2.3
- [Release notes](https://github.com/reduxjs/redux-toolkit/releases)
- [Commits](reduxjs/redux-toolkit@v1.9.7...v2.2.3)

Updates `react-redux` from 8.1.3 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@v8.1.3...v9.1.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested a review from a team as a code owner May 4, 2024 13:09
@dependabot dependabot bot added dependencies Pull requests that update a dependency file JavaScript Pull requests that update Javascript code labels May 4, 2024
Copy link

netlify bot commented May 4, 2024

Deploy Preview for warm-cannoli-79bbb2 ready!

Name Link
🔨 Latest commit 1579eb9
🔍 Latest deploy log https://app.netlify.com/sites/warm-cannoli-79bbb2/deploys/6636339477f03b0008a30c23
😎 Deploy Preview https://deploy-preview-958--warm-cannoli-79bbb2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@teolemon
Copy link
Member

@dependabot rebase

Copy link
Contributor Author

dependabot bot commented on behalf of github May 25, 2024

Superseded by #962.

@dependabot dependabot bot closed this May 25, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/redux-afc8dd68f8 branch May 25, 2024 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file JavaScript Pull requests that update Javascript code
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant