Skip to content

Bump @reduxjs/toolkit from 2.0.1 to 2.1.0

Dependabot requested to merge dependabot-npm_and_yarn-reduxjs-toolkit-2.1.0 into master

Bumps @reduxjs/toolkit from 2.0.1 to 2.1.0.

Release notes

Sourced from @​reduxjs/toolkit's releases.

v2.1.0

This minor release:

  • adds withTypes methods to listenerMiddleware and createDraftSafeSelector
  • adds a skipPollingIfUnfocused option to RTK Query
  • adds the ability to customise the createSelector instance used by RTK Query
  • reworks slice selector logic to avoid depending on this value
  • fixes the order and inference of create.asyncThunk type parameters
  • fixes requirements for meta fields returned from queryFns
  • marks promises that will never reject as safe, in preparation for typescript-eslint/typescript-eslint#7008

What's Changed

New Contributors

... (truncated)

Commits
  • f5b07fe bump RTK to 2.1.0
  • bb28db3 Merge pull request #4055 from riqts/Pause-Polling-When-Unfocused
  • 8cbf2a1 skipPollOnFocused lost to skipPollingIfUnfocused and yarn format
  • 4ae5a9b Polling skipPollOnFocusLost behavior changed to skip if any subscription has ...
  • e676ee8 Removed redundant createListenerMiddleware from tests
  • b9d37c3 changed polling test name to represent actual behaviour
  • 65b448f Update skipPollOnFocusLost to use listenerMiddleware
  • 823c3b7 Format skipPollOnFocusLost test
  • 65a6ae3 Added mockClear() to mockBaseQuery in failing test
  • e7fce61 Add tests for 'skipPollOnFocusLost' option
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by phryneas, a new releaser for @​reduxjs/toolkit since your current version.



Dependabot commands
You can trigger Dependabot actions by commenting on this MR
  • $dependabot rebase will rebase this MR
  • $dependabot recreate will recreate this MR rewriting all the manual changes and resolving conflicts

Merge request reports