redux
5.0.1 · 23 Dec 2023MIT62.6M / weekRepositoryHomepagenpmAtom feed
Upgrading redux From 4.1.1 to 4.2.1
3 releases in betweenevery note read
Reading releases, release notes and advisories…
- 4
- changes to make
- 0
- advisories fixed
- 0
- new
- 1
- fix
Before you upgrade
Tick each one off as you go- deprecated4.2.0
- deprecated4.2.0
- deprecated4.2.0
- deprecated4.2.0
Release by release
4.2.1nothing new or fixed in the note
- deprecated
This release marks the original
createStoreAPI as@deprecatedto encourage users to migrate to Redux Toolkit, and adds a newlegacy_createStoreAPI as an alias without the deprecation warning. - deprecated
We already had a package rename from
redux-starter-kitto@reduxjs/toolkit, and all of our docs and tutorials have pointed to it for the last three years. I don't want to put users through another whiplash package transition for no real benefit - deprecated
Merging or rearranging our packages would effectively require merging all of the Redux repos into a single monorepo. That would require hundreds of hours of effort from us maintainers, including needing to somehow merge all of our docs sites together. We don't have the time to do that.
- deprecated
Mark
createStoreas deprecated, and addlegacy_createStorealias
- deprecated
- fixed
Fix preloaded state type
- fixed
6 other lines we could not sort, mostly version bumps
- 4.2.1
Remove minified check
- 4.2.0
RTK provides a vastly improved Redux usage experience, with APIs that simplify standard usage patterns and eliminate common bugs like accidental mutations
- 4.2.0
I don't want to add runtime warnings that would be really annoying
- 4.2.0
Follow our suggestion to switch over to Redux Toolkit and
configureStore - 4.2.0
Do nothing. It's just a visual strikethrough, and it doesn't affect how your code behaves. Ignore it.
- 4.2.0
Switch to using the
legacy_createStoreAPI that is now exported, which is the exact same function but with no@deprecationtag. The simplest option is to do an aliased import rename: