-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Labels
Description
There are new versions of redux available from npm.
4.0.0
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!
Changes
- Tons of docs updates. Thanks markerikson and the Redux community for all your PRs!
- Make middleware API dispatch pass through all call arguments (Module not found @storybook/addon-knobs/vue #2560 by Asvarox)
- Refactor applyMiddleware to reduce confusion around createStore args (CLI test: always remove
rundirectory before exiting #2201 by jimbolla) - Make bindActionCreators transparently pass
this(Angular Knobs changing property name to lower case #2641 by Parakleta) - Remove private flag on AnyAction type definition (Update gatsby in /docs from 1.9.139 to 1.9.141 #2510 by alexmngn)
- Fixed quote types inconsistency in a warning message (Issue #2196 - Set console.warn and console.error to throw in tests #2297 by Andarist)
- Move ActionTypes to a private export (b62248b by timdorr)
- Throw if getState, subscribe, or unsubscribe called while dispatching (Add addon-link example to react-native #1569 by mjw56)
- Warn when dispatching during Middleware setup (More detailed props table #1485 by timdorr)
- Mapped type for combineReducers in index.d.ts (ADD integration artefacts store step to circle.yml #2182 by mkusher)
- Remove legacy jsnext entry (Update 4 dependencies from npm #2284 by TrySound)
- Revamp TypeScript typing with more type safety (Fix file name in viewport addon usage instructions #2563 by pelotom)
- Fix TS definitions test for new Dispatch typing (Update 4 dependencies from npm #2674 by pelotom)
- Add DeepPartial type for preloaded state (Add parameters to stories in the story store, and render them in app layers #2679 by aikoven)
- Bundle cjs and es formats (addon-info - setDefaults styles not working #2358 by TrySound)
- REPLACE action for replaceReducers (Update eslint in / from 4.14.0 to 4.15.0 #2673 by timdorr)
- Update build to use babel-preset-env ([documentation] fix link to preview of viewport addon #2696 by hmillison)
- Optimize dispatch plain object check (Update 2 dependencies from npm #2599 by timdorr)
- Update TypeScript typings ([Angular]
ngOnChangesnot being called first time component is created #2773 by aikoven) - Added prettier formatting ([Storyshoot] SyntaxError: Unexpected token import #2676 by adityavohra7)
- Add a sideEffects: false flag for Webpack 4 (getstorybook errors with ETIMEOUT #2865 by timdorr)
- Fix missed case in "observe" type check (Update 4 dependencies from npm #2919 by zerobias)