Packages

@reduxjs/toolkit

2.13.0 · 29 Sep 2026MIT45.8M / weekRepositoryHomepagenpmAtom feed

Your version

2.9.1

17 Oct 2025Where it was published

2.13.0 is the newest release of 2.x.

In short

1 new3 fixed

Release note

This bugfix release fixes how sorted entity adapters handle duplicate IDs, tweaks the TS types for RTKQ query state cache entries to improve how the data field is handled, and adds better cleanup for long-running listener middleware effects.

What's Changed

  • entityAdapter: Ensure sorted addMany keeps first occurrence of duplicate ids

  • entityAdapter: Ensure sorted setMany keeps just unique IDs in state.ids

  • types: Ensure non-undefined data on isSuccess with exactOptionalPropertyTypes

  • Allow executing effects that have become unsubscribed to be canceled by listenerMiddleware.clearListeners