redux
5.0.1 · 23 Dec 2023MIT62.6M / weekRepositoryHomepagenpmAtom feed
4.2.1 is the newest release of 4.x.
In short
1 removed3 new1 faster3 fixed14 changed
- removed
Remove @private flag on AnyAction type definition
Release note
Redux 4 is here! 🎉
If you're a React user, this is going to be a lot like going from 15 to 16. Not a lot of user-facing changes, but some interesting improvements under the hood.
The major changes (#1342) are around our TypeScript definitions, bundled CommonJS and ES builds, throwing if you subscribe or getState from a reducer, and a bunch of other smaller things. The full changes are listed below.
Enjoy!
Tons of docs updates. Thanks @markerikson and the Redux community for all your PRs!
Make middleware API dispatch pass through all call arguments
Refactor applyMiddleware to reduce confusion around createStore args
Make bindActionCreators transparently pass
this- removed
Remove @private flag on AnyAction type definition
Fixed quote types inconsistency in a warning message
Move ActionTypes to a private export (b62248b
Throw if getState, subscribe, or unsubscribe called while dispatching (including inside a reducer)
Warn when dispatching during Middleware setup
Mapped type for combineReducers in index.d.ts
Remove legacy jsnext entry
Revamp TypeScript typing with more type safety
Fix TS definitions test for new Dispatch typing
Add DeepPartial type for preloaded state
Bundle cjs and es formats
REPLACE action for replaceReducers
Update build to use babel-preset-env
Optimize dispatch plain object check
Update TypeScript typings
Added prettier formatting
Add a sideEffects: false flag for Webpack 4
Fix missed case in "observe" type check