v2.0.0-alpha.0
Pre-releaseThis is the initial alpha release for Redux Toolkit 2.0. This release has breaking changes.
Please try this out and let us know of any build or runtime incompatibilities beyond the expected breaking changes!
See the RTK 2.0 planning issue for discussion of likely upcoming changes.
Changelog
Removal of Object Object Argument for createReducer
and createSlice.extraReducers
As described in the RTK v1.9.0 release notes, we've removed the object form for createReducer
and createSlice.extraReducers
. Use the "builder callback" form instead.
See the 1.9 release notes for examples of what the necessary changes look like, and details on the available codemod for automatically making this change to your source.
Modernized Build Output Formats
This release drops backwards-compatibility aspects for IE11 in our published package build artifacts:
All module formats (CJS and ESM) now contain code that targets the latest ES spec and no longer backwards-compiled to ES5 syntax
Later 2.0-alpha releases will add full Node ESM support with exports
in package.json
, and may contain other build artifact changes as well.
Build Tooling Updates
We've updated our own build process to use the latest ESBuild and TS versions.