redux
5.0.1 · 23 Dec 2023MIT62.6M / weekRepositoryHomepagenpmAtom feed
Upgrading redux From 4.2.1 to 5.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 10
- changes to make
- 0
- advisories fixed
- 0
- new
- 0
- 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
8 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.