Packages

@reduxjs/toolkit

2.15.0 · 18 Nov 2026MIT51.3M / weekRepositoryHomepagenpmAtom feed

Your version

Where each line stands

Plan an upgrade
  • 2.x2.15.0No known advisoryLatest line
  • 1.x1.9.7No known advisoryTo 2.15.0

Latest releases

All 74 releases
  1. 2.15.0

    18 Nov 2026
    • Removing a cache entry while its request runs now aborts that request. This covers removeQueryResult, a lazy query's reset(), cache collection, and resetApiState. The initiate() promise resolves with isError: true and an AbortError whose message is 'removed' or 'reset'. That means unwrap() now rejects in this case, where it used to resolve with stale or missing data. The plain promise still never rejects.

    • queryFulfilled in onQueryStarted rejects in the same case. If your onQueryStarted does await queryFulfilled without a try/catch, you'll now get an unhandled rejection when the entry is removed mid-request. Wrap it:

      async onQueryStarted(arg, { queryFulfilled }) {
        try {
          const { data } = await queryFulfilled
          // ...
        } catch {
          // request failed, or the cache entry was removed while it ran
        }
      }
    • Invalidating an entry that has a running request (by tags, or a focus/reconnect refetch) now waits for that request to finish. The running request's promise gets its own result, and then the entry refetches if it has subscribers, or is removed if it doesn't.

  2. 2.14.0

    3 Nov 2026
    • Deprecated

      ApiRootState replaces RTK Query's RootState type, which is now deprecated. RootState will be removed in 3.0.

    • TypedAddListenerAction and TypedRemoveListenerAction describe the actions that addListener and removeListener actually dispatch. The default payload type of TypedAddListener and TypedRemoveListener is now the listener options object, so addListener.match(action) no longer claims action.payload has fields like id and unsubscribe that don't exist at runtime.

    • dispatch(removeListener(...)) is typed as returning boolean and dispatch(clearAllListeners()) as returning void, matching the runtime.

  3. 2.13.0

    29 Sep 2026
    • Additional publishing hardening

    • codegen: Migrate to oazapfts v7

    • combineSlices: Scope stateProxyMap per instance to prevent cross-instance proxy collisions

Dependency tracking

Know when your own dependencies move

@reduxjs/toolkit published 7 releases in the last 12 months. inlinr folds the routine ones into a line and keeps the few that need you.

  • Advisories reach you

    An email when a critical or high advisory affects a project, before the next install.

  • Upgrades checked first

    Peer ranges, Node, ESM-only and types changes read before you bump.

  • Only what matters

    Majors and breaking notes stay; patches and sibling bumps fold into one line.

How dependency tracking works

Registry facts last checked 18 Nov 2026. Releases and advisories last read 18 Nov 2026.