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 redux and redux-thunk #7350

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 4, 2023

Bumps redux and redux-thunk. These dependencies needed to be updated together.
Updates redux from 4.2.1 to 5.0.0

Release notes

Sourced from redux's releases.

v5.0.0-rc.1

This release candidate adds a new isAction predicate that can be used as a TS type guard, and exports the existing internal isPlainObject util.

Note that we hope to release Redux Toolkit 2.0, Redux core 5.0, and React-Redux 9.0 by the start of December! (If we don't hit that, we'll aim for January, after the holidays.)

See the preview Redux Toolkit 2.0 + Redux core 5.0 Migration Guide for an overview of breaking changes in RTK 2.0 and Redux core.

npm install redux@next
yarn add redux@next

Changes

isAction Predicate

We recently added an isAction predicate to RTK, then realized it's better suited for the Redux core. This can be used anywhere you have a value that could be a Redux action object, and you need to check if it is actually an action. This is specifically useful for use with the updated Redux middleware TS types, where the default value is now unknown and you need to use a type guard to tell TS that the current value is actually an action:

We've also exported the isPlainObject util that's been in the Redux codebase for years as well.

What's Changed

Full Changelog: reduxjs/redux@v5.0.0-rc.0...v5.0.0-rc.1

v5.0.0-rc.0

This release candidate has no actual source code changes since the previous v5.0.0-beta.0 release.

Note that we hope to release Redux Toolkit 2.0, Redux core 5.0, and React-Redux 9.0 by the start of December! (If we don't hit that, we'll aim for January, after the holidays.)

See the preview Redux Toolkit 2.0 + Redux core 5.0 Migration Guide for an overview of breaking changes in RTK 2.0 and Redux core.

npm install redux@next
yarn add redux@next

Full Changelog: reduxjs/redux@v5.0.0-beta.0...v5.0.0-rc.0

v5.0.0-beta.0

This beta release alters our TS types to add and use a new UnknownAction type where possible for better type safety, and includes all prior changes from the 5.0 alphas. This release has breaking changes from 4.x.

... (truncated)

Commits

Updates redux-thunk from 2.4.2 to 3.0.1

Release notes

Sourced from redux-thunk's releases.

v3.0.0-rc.0

This release candidate has no actual source code changes since the previous v3.0.0-beta.0 release.

Note that we hope to release Redux Toolkit 2.0, Redux core 5.0, and React-Redux 9.0 by the start of December! (If we don't hit that, we'll aim for January, after the holidays.)

See the preview Redux Toolkit 2.0 + Redux core 5.0 Migration Guide for an overview of breaking changes in RTK 2.0 and Redux core.

npm install redux-thunk@next
yarn add redux-thunk@next

What's Changed

Full Changelog: reduxjs/redux-thunk@v3.0.0-beta.0...v3.0.0-rc.0

v3.0.0-beta.0

This beta release updates the TS types and tests to match the exports, and adds Redux 5.0.0-beta.0 as a valid peer dep.

What's Changed

Full Changelog: reduxjs/redux-thunk@v3.0.0-alpha.3...v3.0.0-beta.0

v3.0.0-alpha.3

This is an alpha release for Redux-Thunk 3.0. This release has many changes to our build setup and published package contents.

Also see the release notes for redux@5.0.0-alpha.4.

Changelog

ESM/CJS Package Compatibility

The biggest theme of the Redux v5 and RTK 2.0 releases is trying to get "true" ESM package publishing compatibility in place, while still supporting CJS in the published package.

Earlier alphas made changes to the package.json contents and published build artifacts in an attempt to get ESM+CJS compat working correctly, but those alphas had several varying compat issues.

We've set up a battery of example applications in the RTK repo that use a variety of build tools (currently CRA4, CRA5, Next 13, and Vite, Node CJS mode, and Node ESM mode), to verify that Redux and Redux Toolkit compile, import, and run correctly with both TS and various bundlers. We've also set up a check using a custom CLI wrapper around https://arethetypeswrong.github.io to check for potential packaging incompatibilities.

This release changes the names and contents of the published build artifacts, and the various exports/module/main fields in package.json to point to those.

The primary build artifact is now an ESM file, dist/redux-thunk.mjs. Most build tools should pick this up. There's also a CJS artifact, and a second copy of the ESM file named redux-thunk.legacy-esm.js to support Webpack 4 (which does not recognize the exports field in package.json).

As of this release, we think we have ESM+CJS compat working correctly, but we ask that the community try out the alphas in your apps and let us know of any compat problems!

Note: The one known potential issue is that TypeScript's new moduleResolution: "node16" mode may see a mismatch between the ESM artifacts and the TS typedefs when imported in a Node CJS environment, and [that may allow hypothetically-incorrect import usage. (See ongoing discussion in https://redirect.github.com/arethetypeswrong/arethetypeswrong.github.io/issues/21 .) In practice, we think that probably won't be a concern, and we'll do further investigation before a final release.

... (truncated)

Commits

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 force-pushed the dependabot/npm_and_yarn/redux-and-redux-thunk-5.0.0 branch from 1058c9f to f269301 Compare December 5, 2023 04:19
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/redux-and-redux-thunk-5.0.0 branch from f269301 to 61cfc0c Compare December 6, 2023 04:06
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/redux-and-redux-thunk-5.0.0 branch from 61cfc0c to 927c0ac Compare December 6, 2023 04:07
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/redux-and-redux-thunk-5.0.0 branch from 927c0ac to 0261afa Compare December 11, 2023 04:34
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/redux-and-redux-thunk-5.0.0 branch from 0261afa to 755732c Compare December 12, 2023 04:25
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/redux-and-redux-thunk-5.0.0 branch from 755732c to c18420a Compare December 13, 2023 04:54
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/redux-and-redux-thunk-5.0.0 branch from c18420a to 2a96617 Compare December 13, 2023 04:56
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/redux-and-redux-thunk-5.0.0 branch from 2a96617 to 87185cd Compare December 18, 2023 04:54
Bumps [redux](https://github.com/reduxjs/redux) and [redux-thunk](https://github.com/reduxjs/redux-thunk). These dependencies needed to be updated together.

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

Updates `redux-thunk` from 2.4.2 to 3.0.1
- [Release notes](https://github.com/reduxjs/redux-thunk/releases)
- [Commits](reduxjs/redux-thunk@v2.4.2...v3.0.1)

---
updated-dependencies:
- dependency-name: redux
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: redux-thunk
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/redux-and-redux-thunk-5.0.0 branch from 87185cd to 78fc092 Compare December 19, 2023 04:53
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 25, 2023

Superseded by #7401.

@dependabot dependabot bot closed this Dec 25, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/redux-and-redux-thunk-5.0.0 branch December 25, 2023 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant