This is an alpha release for Redux 5.0. This release has breaking changes.
Changelog
ESM Migration
As part of the Redux Toolkit 2.0 alpha development work, we've migrated the redux
core package definition to be a full {type: "module"}
ESM package with an exports
field (with CJS still included for compatibility purposes).
We've done local testing of the package, but we ask the community to try out this alpha in your own projects and report any breakages you find!
Build Artifact Modernization
We've updated the build output in several ways:
- Build output is no longer transpiled! Instead we target modern JS syntax
- Updated to the latest Rollup 3.x
- Dropped the UMD build artifacts (if you have use cases for these, please let us know!)
- Moved all build artifacts to live under
./dist/
, instead of separate top-level folders
Ported Changes from 4.x
We've ported the @deprecated
marker for createStore
and added legacy_createStore
from Redux 4.2.0. Please use Redux Toolkit's configureStore()
instead, as well as the rest of Redux Toolkit's APIs.
The isMinified
debug check has been removed.
Other Changes
The "valid reducer" check is done earlier to fix an edge case.
What's Changed
- Upgraded eslint and eslint plugins by @madiweaver in #4255
- Fixed build script by upgrading rollup-plugin-typescript2 to latest by @madiweaver in #4256
- Removed deprecated packages by upgrading @babel/cli to version 7.16.7 by @madiweaver in #4258
- Revamp
rollup.config.js
by @xty in #4311 - change reducer type validation place by @Ahmed-Hakeem in #4452
- Port
createStore
deprecation andisMinified
removal from 4.x branch by @markerikson in #4473 - Migrate Redux package to be full ESM by @markerikson in #4474
Full Changelog: v5.0.0-alpha.0...v5.0.0-alpha.1