v3.0.0-alpha.1
Pre-release
Pre-release
markerikson
released this
21 Jan 02:40
·
59 commits
to master
since this release
This is the initial alpha release for Redux Thunk 3.0. This release has breaking changes.
Changelog
ESM Migration
In conjunction with the Redux Toolkit 2.0 alpha development work, we've migrated the package definition to be a full {type: "module"}
ESM package (with CJS still included for compatibility purposes).
Default Export Converted to Named Exports
As part of that ESM migration, we've dropped the existing default export in favor of named exports. Migration of user code should be straightforward:
// Previously: a default export that has `withExtraArgument` attached
- import thunk from 'redux-thunk'
// Now: separate named exports, no default export
+ import { thunk, withExtraArgument } from 'redux-thunk'
That said, users really should be using configureStore
from Redux Toolkit instead, which already automatically adds the thunk middleware to the Redux store.