app
app copied to clipboard
chore(deps-dev): bump react-redux from 7.2.8 to 8.0.2
Bumps react-redux from 7.2.8 to 8.0.2.
Release notes
Sourced from react-redux's releases.
v8.0.2
This patch release tweaks the behavior of
connectto print a one-time warning when the obsoletepureoption is passed in, rather than throwing an error. This fixes crashes caused by libraries such asreact-beautiful-dndcontinuing to pass in that option (unnecessarily) to React-Redux v8.What's Changed
- Show warning instead of throwing error that pure option has been removed by
@ApacheExin reduxjs/react-redux#1922Full Changelog: https://github.com/reduxjs/react-redux/compare/v8.0.1...v8.0.2
v8.0.1
This release fixes an incorrect internal import of our
Subscriptiontype, which was causing TS compilation errors in some user projects. We've also listed@types/react-domas an optional peerDep. There are no runtime changes in this release.What's Changed
- Add optional peer dependency on
@types/react-domby@Methuselah96in reduxjs/react-redux#1904- fix(ts): incorrect import of
SubscriptioncausesnoImplicitAnyerror by@vicrepin reduxjs/react-redux#1910Full Changelog: https://github.com/reduxjs/react-redux/compare/v8.0.0...v8.0.1
v8.0.0
This major version release updates
useSelector,connect, and<Provider>for compatibility with React 18, rewrites the React-Redux codebase to TypeScript (obsoleting use of@types/react-redux), modernizes build output, and removes the deprecatedconnectAdvancedAPI and thepureoption forconnect.npm i react-redux@latestyarn add react-redux@latest
Overview, Compatibility, and Migration
Our public API is still the same (
<Provider>,connectanduseSelector/useDispatch), but we've updated the internals to use the newuseSyncExternalStorehook from React. React-Redux v8 is still compatible with all versions of React that have hooks (16.8+, 17.x, and 18.x; React Native 0.59+), and should just work out of the box.In most cases, it's very likely that the only change you will need to make is bumping the package version to
"react-redux": "^8.0".If you are using the rarely-used
connectAdvancedAPI, you will need to rewrite your code to avoid that, likely by using the hooks API instead. Similarly, thepureoption forconnecthas been removed.If you are using Typescript, React-Redux is now written in TS and includes its own types. You should remove any dependencies on
@types/react-redux.While not directly tied to React-Redux, note that the recently updated
@types/react@18major version has changed component definitions to remove havingchildrenas a prop by default. This causes errors if you have multiple copies of@types/reactin your project. To fix this, tell your package manager to resolve@types/reactto a single version. Details:[React issue #24304: React 18 types broken since release](facebook/react#24304)
Additionally, please see the React post on How to Ugprade to React 18 for details on how to migrate existing apps to correctly use React 18 and take advantage of its new features.
Changelog
React 18 Compatibility
React-Redux now requires the new
useSyncExternalStoreAPI in React 18. By default, it uses the "shim" package which backfills that API in earlier React versions, so React-Redux v8 is compatible with all React versions that have hooks (16.8+, and React Native 0.59+) as its acceptable peer dependencies.
... (truncated)
Commits
d0311c1Release 8.0.2a2853bcMerge pull request #1922 from ApacheEx/feature/pure-option-warning6e219eeshow warning instead of throwing error that pure option has been removed8e39fa6Merge pull request #1919 from aroyan/patch-1dc919fdfix(docs): update broken linkf54f918Release 8.0.17b6270dfix(ts): incorrect import ofSubscriptioncauses TS error (#1910)26ddc6aremove unused import (#1908)709c10eMerge pull request #1905 from phapdinh/issues/130215e8747add note for mergeProps- 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)