Skip to content

Releases: reduxjs/redux-toolkit

v0.5.1

30 Apr 03:47
Compare
Choose a tag to compare

0.5.0 accidentally removed our re-exports of functions from other libraries (createSelector, createNextState, combineReducers, and compose). This release should fix that.

Changes

  • Fix accidentally removed re-exports bf2f376

v0.5.0...v0.5.1

v0.5.0

28 Apr 18:48
Compare
Choose a tag to compare

We've finally had some time to merge in several PRs that were contributed by the community. No major API changes, but there's some tooling / dependency improvements and tweaks to the typings for createSlice() that should help improve type inference of case reducers, and configureStore() now allows passing options through to the Redux DevTools Extension.

Changes

  • Create declaration files with typescript (@B3zo0 - #128)
  • Upgrade to Immer 2.x (@ezzatron - #132)
  • Improve type inference of case reducers (@denisw - #133)
  • feat(configureStore): add support for devTools options (@wldcordeiro - #130)

v0.4.3

27 Jan 15:56
Compare
Choose a tag to compare

0.4.2 and 0.4.3 contain additional typings fixes contributed by @denisw :

  • createSlice should now infer action types better (#94 )
  • createReducer should now accept other action types correctly (#104 )

v0.4.1: `createSlice` and `extraReducers`

25 Jan 03:17
Compare
Choose a tag to compare

createSlice generates action types directly from the names of the reducer functions you provide in the reducers field. However, this conceptually limits a slice's reducer to only responding to action types that it "owns" and defined.

We have always encouraged Redux users to have multiple reducer functions responding to the same action type. In order to support this, createSlice now accepts a second lookup table of action types, currently named extraReducers. (The name is not final - we're still debating options. If you've got a better name, please let us know in #83 .)

Unlike the reducers field, the extraReducers field will not generate action creators for the provided functions, and the keys should be other existing Redux action type constants.

In addition to the createSlice changes, the TS conversion process accidentally stopped re-exporting compose and combineReducers from Redux. That's been fixed.

v0.4.0: The One With TypeScript

19 Jan 03:04
Compare
Choose a tag to compare

Note: If you're not familiar with Redux Starter Kit, please see the Redux Starter Kit docs for more details.

We've had a number of requests to convert redux-starter-kit to use TypeScript. That work was done in #73, and the TS build is now available as 0.4.0 . Thanks to @denisw for doing the bulk of the work, and @Dudeonyx and @Jessidhia for providing review and feedback!

All functionality from 0.3.3 should be the same, with one exception. the redux-immutable-state-invariant middleware is now conditionally imported in dev builds, which means it should be left out of production builds and save a few bytes.

Please let us know if you find any problems, especially anything related to TypeScript usage.

v0.4.0-0: TypeScript rewrite test release

15 Jan 01:24
Compare
Choose a tag to compare

Per #73 , we've been rewriting redux-starter-kit using TypeScript. This is a preview release to see if there are any issues from the TS rewrite.

This build is available on NPM as tag redux-starter-kit@ts-next. Please try it out, especially in TS apps, and let us know if there are any issues.

v0.3.2

11 Jan 20:07
Compare
Choose a tag to compare

Updated package.json so that Webpack no longer resolves to the UMD file when doing a production build of an app see (#55, #68).

v0.3.1

06 Jan 19:59
Compare
Choose a tag to compare

Fixed two issues with serializableStateInvariantMiddleware:

  • null was not being accepted as a plain serializable value
  • isSerializable was not being passed down through the recursive calls to isPlain

v0.3.0

24 Dec 03:18
Compare
Choose a tag to compare

This update adds two new middleware to the store by default in development mode:

  • redux-immutable-state-invariant, which throws errors if it detects mutations in the state.
  • a homegrown middleware which similarly checks for non-serializable values in dispatched actions and store state, and prints console errors with the key path and value if any are found.

These should help detect issues during development.

Also, now that the Redux DevTools Extension has an action stack trace pane included, we enable capturing those during development.

Finally, we've updated to the latest versions of immer (1.9.3) and selectorator (4.0.1).