Update all dependencies #451
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "renovate/all"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
2.6.0
->2.7.0
22.13.9
->22.14.1
4.5.31
->4.5.37
29.2.6
->29.3.2
5.8.2
->5.8.3
Release Notes
reduxjs/redux-toolkit (@reduxjs/toolkit)
v2.7.0
Compare Source
RTK has hit Stage 2.7! 🤣 This feature release adds support for Standard Schema validation in RTK Query endpoints, fixes several issues with infinite queries, improves perf when infinite queries provide tags, adds a dev-mode check for duplicate middleware, and improves reference stability in slice selectors and infinite query hooks.
Changelog
Standard Schema Validation for RTK Query
Apps often need to validate responses from the server, both to ensure the data is correct, and to help enforce that the data matches the expected TS types. This is typically done with schema libraries such as Zod, Valibot, and Arktype. Because of the similarities in usage APIs, those libraries and others now support a common API definition called Standard Schema, allowing you to plug your chosen validation library in anywhere Standard Schema is supported.
RTK Query now supports using Standard Schema to validate query args, responses, and errors. If schemas are provided, the validations will be run and errors thrown if the data is invalid. Additionally, providing a schema allows TS inference for that type as well, allowing you to omit generic types from the endpoint.
Schema usage is per-endpoint, and can look like this:
If desired, you can also configure schema error handling with the
catchSchemaFailure
option. You can also disable actual runtime validation withskipSchemaValidation
(primarily useful for cases when payloads may be large and expensive to validate, but you still want to benefit from the TS type inference).See the "Schema Validation" docs section in the
createApi
reference and the usage guide sections on queries, infinite queries, and mutations, for more details.Infinite Query Fixes
This release fixes several reported issue with infinite queries:
lifecycleApi.updateCachedData
method is now correctly availableskip
option now correctly works for infinite query hooksfulfilled
actions now include themeta
field from the base query (such as{request, response}
). For cases where multiple pages are being refetched, this will be the meta from the last page fetched.useInfiniteQuerySubscription
now returns stable references forrefetch
and thefetchNext/PreviousPage
methodsupsertQueryEntries
, Tags Performance and API State StructureWe recently published a fix to actually process per-endpoint
providedTags
when usingupsertQueryEntries
. However, this exposed a performance issue - the internal tag handling logic was doing repeated O(n) iterations over all endpoint+tag entries in order to clear out existing references to that cache key. In cases where hundreds or thousands of cache entries were being inserted, this became extremely expensive.We've restructured the
state.api.provided
data structure to handle reverse-mapping between tags and cache keys, which drastically improves performance in this case. However, it's worth noting that this is a change to that state structure. This shouldn't affect apps, because the RTKQ state is intended to be treated as a black box and not generally directly accessed by user app code. However, it's possible someone may have depended on that specific state structure when writing a custom selector, in which case this would break. An actual example of this is the Redux DevTools RTKQ panel, which iterates the tags data while displaying cache entries. That did break with this change. Prior to releasing RTK 2.7,we released Redux DevTools 3.2.10, which includes support for both the old and newstate.api.provided
definitions.TS Support Matrix Updates
Following with the DefinitelyTyped support matrix, we've officially dropped support for TS 5.0, and currently support TS 5.1 - 5.8. (RTK likely still works with 5.0, but we no longer test against that in CI.)
Duplicate Middleware Dev Checks
configureStore
now checks the final middleware array for duplicate middleware references. This will catch cases such as accidentally adding the same RTKQ API middleware twice (such as addingbaseApi.middleware
andinjectedApi.middlweware
- these are actually the same object and same middleware).Unlike the other dev-mode checks, this is part of
configureStore
itself, notgetDefaultMiddleware()
.This can be configured via the new
duplicateMiddlewareCheck
option.Other Changes
createEntityAdapter
now correctly handles adding an item and then applying multiple updates to it.The generated
combineSlices
selectors will now return the same placeholder initial state reference for a given slice, rather than returning a new initial state reference every time.useQuery
hooks should now correctly refetch after dispatchingresetApiState
.What's Changed
useQuery
hook does not refetch afterresetApiState
by @juniusfree in https://github.com/reduxjs/redux-toolkit/pull/4758catchSchemaFailure
, and docs for RTKQ schema features by @EskiMojo14 in https://github.com/reduxjs/redux-toolkit/pull/4934Full Changelog: https://github.com/reduxjs/redux-toolkit/compare/v2.6.1...v2.7.0
v2.6.1
Compare Source
This bugfix release fixes several assorted types issues with the initial infinite query feature release, and adds support for an optional signal argument to
createAsyncThunk
.Changelog
Infinite Query Fixes
We've fixed several types issues that were reported with infinite queries after the 2.6.0 release:
matchFulfilled
andprovidesTags
now get the correct response typesType*
types to represent infinite queries, similar to the existing pre-defined types for queries and mutationsselectCachedArgsForQuery
now supports fetching args for infinite query endpointsuseInfiniteQueryState/Subscription
now correctly expect just the query arg, not the combined{queryArg, pageParam}
objectOther Improvements
createAsyncThunk
now accepts an optional{signal}
argument. If provided, the internal AbortSignal handling will tie into that signal.upsertQueryEntries
now correctly generates provided tags for upserted cache entries.What's Changed
Full Changelog: https://github.com/reduxjs/redux-toolkit/compare/v2.6.0...v2.6.1
clap-rs/clap (clap)
v4.5.37
Compare Source
Features
ArgMatches::try_clear_id()
v4.5.36
Compare Source
Fixes
v4.5.35
Compare Source
Fixes
help_heading
v4.5.34
Compare Source
Fixes
flatten_help(true)
and subcommands without argumentsv4.5.33
Compare Source
Fixes
v4.5.32
Compare Source
Features
Error::remove
Documentation
humantime
tojiff
Internal
pulldown-cmark
kulshekhar/ts-jest (ts-jest)
v29.3.2
Compare Source
Bug Fixes
js
files fromnode_modules
whenever Jest asks (968370e), closes #4637v29.3.1
Compare Source
Bug Fixes
isolatedModules
mode to havets.Program
underNode16/Next
(25157eb)isolatedModules
ofts-jest
config (547eb6f)v29.3.0
Compare Source
Features
module
values forisolatedModules: true
(f372121)Bug Fixes
customConditions
toundefined
inTsCompiler
(b091d70), closes #4620Code Refactoring
RawCompilerOptions
interface (2b1b6cd)isolatedModules
(7dfef71)microsoft/TypeScript (typescript)
v5.8.3
: TypeScript 5.8.3Compare Source
For release notes, check out the release announcement.
Downloads are available on:
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Renovate Bot.
20f7c5ff1c
to262e6bc3ae
262e6bc3ae
tocc5c60c7c3
cc5c60c7c3
to44d610cfe7
44d610cfe7
to7b90be6a0d
7b90be6a0d
to9fd566308f
9fd566308f
to377846d555
377846d555
to943b34be77
943b34be77
tod83335f49b
d83335f49b
to7b6b189662
7b6b189662
to9481e452ff
9481e452ff
tod7b1f830ec
d7b1f830ec
toba88705f7c
ba88705f7c
to05537190b5
05537190b5
todf260e7982
Checkout
From your project repository, check out a new branch and test the changes.