Reentry
Reentry copied to clipboard
Bump react-redux from 8.1.0 to 8.1.2
Bumps react-redux from 8.1.0 to 8.1.2.
Release notes
Sourced from react-redux's releases.
v8.1.2
This version changes imports from the React package to namespace imports so the package can safely be imported in React Server Components as long as you don't actually use it - this is for example important if you want to use the React-specifc
createApi
function from Redux Toolkit.Some other changes:
- The behaviour of the "React Context Singletons" from 8.1.1 has been adjusted to also work if you have multiple React instances of the same version (those will now be separated) and if you are in an environment without
globalThis
(in this case it will fall back to the previous behaviour).- We do no longer use Proxies, which should help with some very outdated consumers, e.g. smart TVs, that cannot even polyfill Proxies.
Full Changelog: https://github.com/reduxjs/react-redux/compare/v8.1.1...v8.1.2
v8.1.1
This bugfix release tweaks the recent lazy context setup logic to ensure a single React context instance per React version, and removes the recently added RTK peerdep to fix an issue with Yarn workspaces.
Changelog
React Context Singletons
React Context has always relied on reference identity. If you have two different copies of React or a library in a page, that can cause multiple versions of a context instance to be created, leading to problems like the infamous "Could not find react-redux context" error.
In v8.1.0, we reworked the internals to lazily create our single
ReactReduxContext
instance to avoid issues in a React Server Components environment.This release further tweaks that to stash a single context instance per React version found in the page, thus hopefully avoiding the "multiple copies of the same context" error in the future.
What's Changed
- fix: fix typescript error on non exported type by
@luzzif
in reduxjs/react-redux#2034- create singleton context by React version by
@phryneas
in reduxjs/react-redux#2039- remove RTK peerDep by
@markerikson
in 44fc725Full Changelog: https://github.com/reduxjs/react-redux/compare/v8.1.0...v8.1.1
Commits
4a7e129
Release 8.1.22ac527b
RSC-specific workarounds (#2050)a669a94
add "publish" workflow2210db9
Merge pull request #2042 from reduxjs/docs/remove-ga9fdc18d
Remove GAe04515a
Release 8.1.144fc725
Remove RTK peerDep5c76414
Merge pull request #2039 from reduxjs/singletonContext-by-ReactVersionfafce9c
create singleton context by React version28f0aa2
fix: fix typescript error on non exported type (#2034)- Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by phryneas, a new releaser for react-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 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)