Packages

redux

5.0.1 · 23 Dec 2023MIT62.6M / weekRepositoryHomepagenpmAtom feed

Upgrading redux From 0.3.1 to 5.0.1

58 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 0.3.1Newest 0.x0.12.0
  1. 0.3.1yours
  2. 0.4.0major
  3. 0.5.0major
  4. 1 release
  5. 0.6.0major
  6. 2 releases
  7. 0.7.0major
  8. 0.8.0major
  9. 1 release
  10. 0.9.0major
  11. 0.10.0major
  12. 1 release
  13. 0.11.0major
  14. 1 release
  15. 0.12.0major
  16. 1.0.0major
  17. 1 release
  18. 2.0.0major
  19. 3.0.0major
  20. 26 releases
  21. 4.0.0major
  22. 10 releases
  23. 5.0.0major
  24. 5.0.1target

Start here

Before you upgrade

Tick each one off as you go
  • breaking5.0.0
  • breaking5.0.0
  • breaking5.0.0
  • breaking5.0.0
  • breaking4.0.0
  • breaking3.0.6
  • breaking3.0.0
  • breaking1.0.0
  • breaking0.10.1
  • breaking0.9.0

Release by release

  1. 5.0.1

    23 Dec 20232 fixes
    • fixed

      isPlainObject: Support check Object.create(null)

    • fixed

      types/store: Unexpectedly narrowed return type of function Store['getState']

  2. 5.0.0

    Migration needed4 Dec 2023
    • breaking

      Removes the PreloadedState type in favor of a new generic argument for the Reducer type.

    • breaking

      This release has breaking changes.

    • breaking

      For full details on all of the breaking changes and other significant changes to all of those packages, see the "Migrating to RTK 2.0 and Redux 5.0" migration guide in the Redux docs.

    • breaking

      Strictly speaking, this is not a breaking change, nor is it new in 5.0, but we're documenting it here for completeness.

  3. 4.2.1nothing new or fixed in the note

  4. 4.2.0

    Deprecation18 Apr 2022
    • deprecated

      This release marks the original createStore API as @deprecated to encourage users to migrate to Redux Toolkit, and adds a new legacy_createStore API as an alias without the deprecation warning.

    • deprecated

      We already had a package rename from redux-starter-kit to @reduxjs/toolkit, and all of our docs and tutorials have pointed to it for the last three years. I don't want to put users through another whiplash package transition for no real benefit

    • deprecated

      Merging or rearranging our packages would effectively require merging all of the Redux repos into a single monorepo. That would require hundreds of hours of effort from us maintainers, including needing to somehow merge all of our docs sites together. We don't have the time to do that.

    • deprecated

      Mark createStore as deprecated, and add legacy_createStore alias

  5. 4.1.2

    28 Oct 20211 fix
    • fixed

      Fix preloaded state type

  6. 4.1.1nothing new or fixed in the note

  7. 4.1.0

    24 Apr 20211 new · 1 fix
    • new

      Mangle error codes to error indexes (#3920 - @andrewmcgivery)

    • fixed

      Declare "EmptyObject" interface to wrap $CombinedState (#4031 - @JacobLey)

  8. 4.0.5

    24 Dec 20191 fix
    • fixed

      Fix for combineReducers when replaceReducers removes a reducer

116 other lines we could not sort, mostly version bumps
  • Converts the codebase to TypeScript

    5.0.0
  • Updates the packaging for better ESM/CJS compatibility and modernizes the build output

    5.0.0
  • Requires that action.type must be a string

    5.0.0
  • next would be typed to have all of the dispatch extensions, including the ones earlier in the chain that would no longer apply.

    5.0.0
  • action is not necessarily a known action, it can be literally anything - for example a thunk would be a function with no .type property (so AnyAction would be inaccurate)

    5.0.0
  • The Reducer, ReducersMapObject, and createStore/configureStore types/function take an additional PreloadedState generic which defaults to S.

    5.0.0
  • The overloads for combineReducers are removed in favor of a single function definition that takes the ReducersMapObject as its generic parameter. Removing the overloads was necessary with these changes, since sometimes it was choosing the wrong overload.

    5.0.0
  • Enhancers that explicitly list the generics for the reducer will need to add the third generic.

    5.0.0
  • Remove minified check

    4.2.1
  • RTK provides a vastly improved Redux usage experience, with APIs that simplify standard usage patterns and eliminate common bugs like accidental mutations

    4.2.0

14 internal lines (docs, tests, tooling) left out.