redux
5.0.1 · 23 Dec 2023MIT62.6M / weekRepositoryHomepagenpmAtom feed
Upgrading redux From 4.2.0 to 5.0.1
3 releases in betweenevery note read
Reading releases, release notes and advisories…
- 10
- changes to make
- 0
- advisories fixed
- 0
- new
- 2
- fixes
Start here
Before you upgrade
Tick each one off as you go- breaking5.0.0
- breaking5.0.0
- breaking5.0.0
- breaking5.0.0
- deprecated5.0.0
- deprecated5.0.0
- deprecated5.0.0
- deprecated5.0.0
- deprecated5.0.0
- deprecated5.0.0
Release by release
- fixed
isPlainObject: Support check Object.create(null)
- fixed
types/store: Unexpectedly narrowed return type of function
Store['getState']
- fixed
- breaking
Removes the
PreloadedStatetype in favor of a new generic argument for theReducertype. - breaking
This release has breaking changes.
- breaking
For full details on all of the breaking changes and other significant changes to all of those packages, see the "Migrating to RTK 2.0 and Redux 5.0" migration guide in the Redux docs.
- breaking
Strictly speaking, this is not a breaking change, nor is it new in 5.0, but we're documenting it here for completeness.
- breaking
4.2.1nothing new or fixed in the note
9 other lines we could not sort, mostly version bumps
- 5.0.0
Converts the codebase to TypeScript
- 5.0.0
Updates the packaging for better ESM/CJS compatibility and modernizes the build output
- 5.0.0
Requires that
action.typemust be a string - 5.0.0
nextwould be typed to have all of the dispatch extensions, including the ones earlier in the chain that would no longer apply. - 5.0.0
actionis not necessarily a known action, it can be literally anything - for example a thunk would be a function with no.typeproperty (soAnyActionwould be inaccurate) - 5.0.0
The
Reducer,ReducersMapObject, andcreateStore/configureStoretypes/function take an additionalPreloadedStategeneric which defaults toS. - 5.0.0
The overloads for
combineReducersare removed in favor of a single function definition that takes theReducersMapObjectas its generic parameter. Removing the overloads was necessary with these changes, since sometimes it was choosing the wrong overload. - 5.0.0
Enhancers that explicitly list the generics for the reducer will need to add the third generic.
- 4.2.1
Remove minified check