This beta release updates the build and packaging setup to improve TS and ESM compatibility, fixes several TS issues, and updates to the latest React-Redux and Redux-Thunk deps.
npm i @reduxjs/toolkit@beta
yarn add @reduxjs/toolkit@beta
The 2.0 integration branch contains the docs preview for the 2.0 changes. Not all changes are documented yet, but you can see API reference pages for most of the new features here:
Build and TS Updates
We've made several tweaks to the packaging to improve compatibility for ESM and TS typedef definitions, which should fix some issues that were reported with beta.0
.
We also fixed several assorted TS issues that were affecting users in specific edge cases.
Other Changes
We removed the AbortController
polyfill from createAsyncThunk
, saving some bytes.
We've updated deps to redux-thunk@3.0.0-beta.0
and react-redux@9.0.0-alpha.0
.
What's Changed
- fix syntax for users with noPropertyAccessFromIndexSignature enabled by @evertbouw in #3495
- Fix multiple TS build and packaging issues by @markerikson in #3672
- fix: Default export of the module has or is using private name type error when using latest alpha/beta by @eric-crowell in #3605
- RTK Query: resolve type portability issues by @markerikson in #3678
- fix(RTKQuery React): Resolved declare module pathing for Node16 by @eric-crowell in #3592
- fix(2448): remove abort controller polyfill by @JulienKode in #2518
- Update thunk and React-Redux deps by @markerikson in #3679
Full Changelog: v2.0.0-beta.0...v2.0.0-beta.1