From ec4214a5dfd8d214b2b9e0212b994809bee28b71 Mon Sep 17 00:00:00 2001 From: Damian Osipiuk Date: Tue, 21 Oct 2025 15:01:30 +0200 Subject: [PATCH 01/16] feat(vue-query-devtools): Embedded panel mode (#9790) --- .changeset/mighty-actors-lose.md | 5 ++ docs/framework/vue/devtools.md | 43 ++++++++++++++++ .../vue-query-devtools/src/devtoolsPanel.vue | 49 +++++++++++++++++++ packages/vue-query-devtools/src/index.ts | 11 ++++- packages/vue-query-devtools/src/types.ts | 36 ++++++++++++++ 5 files changed, 143 insertions(+), 1 deletion(-) create mode 100644 .changeset/mighty-actors-lose.md create mode 100644 packages/vue-query-devtools/src/devtoolsPanel.vue diff --git a/.changeset/mighty-actors-lose.md b/.changeset/mighty-actors-lose.md new file mode 100644 index 0000000000..27402c7abd --- /dev/null +++ b/.changeset/mighty-actors-lose.md @@ -0,0 +1,5 @@ +--- +'@tanstack/vue-query-devtools': minor +--- + +feat(vue-query-devtools): Add embedded panel mode diff --git a/docs/framework/vue/devtools.md b/docs/framework/vue/devtools.md index 98d417251e..666058e27a 100644 --- a/docs/framework/vue/devtools.md +++ b/docs/framework/vue/devtools.md @@ -44,6 +44,8 @@ bun add @tanstack/vue-query-devtools By default, Vue Query Devtools are only included in bundles when `process.env.NODE_ENV === 'development'`, so you don't need to worry about excluding them during a production build. +## Floating Mode + Devtools will be mounted as a fixed, floating element in your app and provide a toggle in the corner of the screen to show and hide the devtools. This toggle state will be stored and remembered in localStorage across reloads. Place the following code as high in your Vue app as you can. The closer it is to the root of the page, the better it will work! @@ -79,6 +81,47 @@ import { VueQueryDevtools } from '@tanstack/vue-query-devtools' - Default behavior will apply the devtool's styles to the head tag within the DOM. - Use this to pass a shadow DOM target to the devtools so that the styles will be applied within the shadow DOM instead of within the head tag in the light DOM. +## Embedded Mode + +Embedded mode will show the development tools as a fixed element in your application, so you can use our panel in your own development tools. + +Place the following code as high in your React app as you can. The closer it is to the root of the page, the better it will work! + +```vue + + + +``` + +### Options + +- `style?: React.CSSProperties` + - Custom styles for the devtools panel + - Default: `{ height: '500px' }` + - Example: `{ height: '100%' }` + - Example: `{ height: '100%', width: '100%' }` +- `onClose?: () => unknown` + - Callback function that is called when the devtools panel is closed +- `client?: QueryClient`, + - Use this to use a custom QueryClient. Otherwise, the one from the nearest context will be used. +- `errorTypes?: { name: string; initializer: (query: Query) => TError}[]` + - Use this to predefine some errors that can be triggered on your queries. Initializer will be called (with the specific query) when that error is toggled on from the UI. It must return an Error. +- `styleNonce?: string` + - Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles. +- `shadowDOMTarget?: ShadowRoot` + - Default behavior will apply the devtool's styles to the head tag within the DOM. + - Use this to pass a shadow DOM target to the devtools so that the styles will be applied within the shadow DOM instead of within the head tag in the light DOM. + ## Traditional Devtools Vue Query will seamlessly integrate with the [Official Vue devtools](https://github.com/vuejs/devtools-next), adding custom inspector and timeline events. diff --git a/packages/vue-query-devtools/src/devtoolsPanel.vue b/packages/vue-query-devtools/src/devtoolsPanel.vue new file mode 100644 index 0000000000..189f86330b --- /dev/null +++ b/packages/vue-query-devtools/src/devtoolsPanel.vue @@ -0,0 +1,49 @@ + + + diff --git a/packages/vue-query-devtools/src/index.ts b/packages/vue-query-devtools/src/index.ts index 39c4912e86..9033a34752 100644 --- a/packages/vue-query-devtools/src/index.ts +++ b/packages/vue-query-devtools/src/index.ts @@ -1,6 +1,7 @@ import devtools from './devtools.vue' +import devtoolsPanel from './devtoolsPanel.vue' import type { DefineComponent } from 'vue' -import type { DevtoolsOptions } from './types' +import type { DevtoolsOptions, DevtoolsPanelOptions } from './types' export const VueQueryDevtools = ( process.env.NODE_ENV !== 'development' @@ -9,3 +10,11 @@ export const VueQueryDevtools = ( } : devtools ) as DefineComponent + +export const VueQueryDevtoolsPanel = ( + process.env.NODE_ENV !== 'development' + ? function () { + return null + } + : devtoolsPanel +) as DefineComponent diff --git a/packages/vue-query-devtools/src/types.ts b/packages/vue-query-devtools/src/types.ts index c15e000e95..8007b06504 100644 --- a/packages/vue-query-devtools/src/types.ts +++ b/packages/vue-query-devtools/src/types.ts @@ -43,3 +43,39 @@ export interface DevtoolsOptions { */ hideDisabledQueries?: boolean } + +export interface DevtoolsPanelOptions { + /** + * Custom instance of QueryClient + */ + client?: QueryClient + /** + * Use this so you can define custom errors that can be shown in the devtools. + */ + errorTypes?: Array + /** + * Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles. + */ + styleNonce?: string + /** + * Use this so you can attach the devtool's styles to specific element in the DOM. + */ + shadowDOMTarget?: ShadowRoot + + /** + * Custom styles for the devtools panel + * @default { height: '500px' } + * @example { height: '100%' } + * @example { height: '100%', width: '100%' } + */ + style?: React.CSSProperties + + /** + * Callback function that is called when the devtools panel is closed + */ + onClose?: () => unknown + /** + * Set this to true to hide disabled queries from the devtools panel. + */ + hideDisabledQueries?: boolean +} From 1e77bd4714490532c67d27d6ba16c2234f12f297 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 21 Oct 2025 13:03:08 +0000 Subject: [PATCH 02/16] ci: Version Packages (#9791) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .changeset/mighty-actors-lose.md | 5 ----- examples/vue/basic/package.json | 2 +- examples/vue/simple/package.json | 2 +- packages/vue-query-devtools/CHANGELOG.md | 7 +++++++ packages/vue-query-devtools/package.json | 2 +- 5 files changed, 10 insertions(+), 8 deletions(-) delete mode 100644 .changeset/mighty-actors-lose.md create mode 100644 packages/vue-query-devtools/CHANGELOG.md diff --git a/.changeset/mighty-actors-lose.md b/.changeset/mighty-actors-lose.md deleted file mode 100644 index 27402c7abd..0000000000 --- a/.changeset/mighty-actors-lose.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/vue-query-devtools': minor ---- - -feat(vue-query-devtools): Add embedded panel mode diff --git a/examples/vue/basic/package.json b/examples/vue/basic/package.json index 301b0b10d7..d297e4a4fa 100644 --- a/examples/vue/basic/package.json +++ b/examples/vue/basic/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "@tanstack/vue-query": "^5.90.5", - "@tanstack/vue-query-devtools": "^5.90.2", + "@tanstack/vue-query-devtools": "^5.91.0", "vue": "^3.4.27" }, "devDependencies": { diff --git a/examples/vue/simple/package.json b/examples/vue/simple/package.json index 832c7f074c..480373e7e1 100644 --- a/examples/vue/simple/package.json +++ b/examples/vue/simple/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "@tanstack/vue-query": "^5.90.5", - "@tanstack/vue-query-devtools": "^5.90.2", + "@tanstack/vue-query-devtools": "^5.91.0", "vue": "^3.4.27" }, "devDependencies": { diff --git a/packages/vue-query-devtools/CHANGELOG.md b/packages/vue-query-devtools/CHANGELOG.md new file mode 100644 index 0000000000..d6f6013675 --- /dev/null +++ b/packages/vue-query-devtools/CHANGELOG.md @@ -0,0 +1,7 @@ +# @tanstack/vue-query-devtools + +## 5.91.0 + +### Minor Changes + +- feat(vue-query-devtools): Add embedded panel mode ([#9790](https://github.com/TanStack/query/pull/9790)) diff --git a/packages/vue-query-devtools/package.json b/packages/vue-query-devtools/package.json index 414b8efe22..979a2826f2 100644 --- a/packages/vue-query-devtools/package.json +++ b/packages/vue-query-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/vue-query-devtools", - "version": "5.90.2", + "version": "5.91.0", "description": "Developer tools to interact with and visualize the TanStack/vue-query cache", "author": "tannerlinsley", "license": "MIT", From ddf6b8060b2c554c5d6e84688e3dccc1bf97e1d3 Mon Sep 17 00:00:00 2001 From: Arnoud <6420061+arnoud-dv@users.noreply.github.com> Date: Wed, 22 Oct 2025 02:24:10 +0200 Subject: [PATCH 03/16] refactor(angular-query): rename DeveloperToolsFeature to DevtoolsFeature (#9794) --- .changeset/devtools-feature-rename.md | 5 + .prettierignore | 1 + .../functions/infinitequeryoptions.md | 63 +---------- .../functions/injectinfinitequery.md | 33 +----- .../reference/functions/injectisfetching.md | 2 +- .../reference/functions/injectmutation.md | 7 +- .../functions/injectmutationstate.md | 5 +- .../reference/functions/injectqueries.md | 43 -------- .../reference/functions/injectquery.md | 29 +---- .../reference/functions/injectqueryclient.md | 3 +- .../reference/functions/mutationoptions.md | 39 +++---- .../functions/providetanstackquery.md | 6 +- .../reference/functions/queryfeature.md | 2 +- .../reference/functions/queryoptions.md | 97 +++++++--------- docs/framework/angular/reference/index.md | 7 +- .../interfaces/basemutationnarrowing.md | 104 ++---------------- .../interfaces/basequerynarrowing.md | 4 +- .../interfaces/createbasequeryoptions.md | 2 +- .../interfaces/createinfinitequeryoptions.md | 2 +- .../interfaces/createqueryoptions.md | 2 +- .../interfaces/injectmutationoptions.md | 4 +- .../reference/interfaces/queryfeature.md | 6 +- .../type-aliases/createbasemutationresult.md | 20 +--- .../type-aliases/createbasequeryresult.md | 6 +- .../type-aliases/createinfinitequeryresult.md | 6 +- .../type-aliases/createmutateasyncfunction.md | 5 +- .../type-aliases/createmutatefunction.md | 4 +- .../type-aliases/createmutationresult.md | 6 +- .../type-aliases/createqueryresult.md | 2 +- .../definedcreateinfinitequeryresult.md | 6 +- .../type-aliases/definedcreatequeryresult.md | 6 +- .../definedinitialdatainfiniteoptions.md | 19 +--- .../type-aliases/definedinitialdataoptions.md | 10 +- ...opertoolsfeature.md => devtoolsfeature.md} | 8 +- .../type-aliases/persistqueryclientfeature.md | 2 +- .../reference/type-aliases/queriesoptions.md | 38 +------ .../reference/type-aliases/queriesresults.md | 34 +----- .../reference/type-aliases/queryfeatures.md | 4 +- .../undefinedinitialdatainfiniteoptions.md | 19 +--- .../undefinedinitialdataoptions.md | 7 +- .../unusedskiptokeninfiniteoptions.md | 20 +--- .../type-aliases/unusedskiptokenoptions.md | 8 +- .../src/devtools/types.ts | 4 +- .../angular-query-experimental/src/index.ts | 2 +- .../src/providers.ts | 4 +- 45 files changed, 171 insertions(+), 535 deletions(-) create mode 100644 .changeset/devtools-feature-rename.md delete mode 100644 docs/framework/angular/reference/functions/injectqueries.md rename docs/framework/angular/reference/type-aliases/{developertoolsfeature.md => devtoolsfeature.md} (73%) diff --git a/.changeset/devtools-feature-rename.md b/.changeset/devtools-feature-rename.md new file mode 100644 index 0000000000..f23859ccc1 --- /dev/null +++ b/.changeset/devtools-feature-rename.md @@ -0,0 +1,5 @@ +--- +'@tanstack/angular-query-experimental': patch +--- + +Rename `DeveloperToolsFeature` to `DevtoolsFeature` for consistency with internal naming conventions and ecosystem \ No newline at end of file diff --git a/.prettierignore b/.prettierignore index d750389515..d1bb5343b0 100644 --- a/.prettierignore +++ b/.prettierignore @@ -9,3 +9,4 @@ pnpm-lock.yaml packages/**/tsup.config.bundled*.mjs **/tsconfig.vitest-temp.json +docs/framework/*/reference diff --git a/docs/framework/angular/reference/functions/infinitequeryoptions.md b/docs/framework/angular/reference/functions/infinitequeryoptions.md index 4f7055f247..ac83ec422c 100644 --- a/docs/framework/angular/reference/functions/infinitequeryoptions.md +++ b/docs/framework/angular/reference/functions/infinitequeryoptions.md @@ -18,23 +18,7 @@ The infinite query options to tag with the type from `queryFn`. ## Call Signature ```ts -function infiniteQueryOptions< - TQueryFnData, - TError, - TData, - TQueryKey, - TPageParam, ->( - options, -): CreateInfiniteQueryOptions< - TQueryFnData, - TError, - TData, - TQueryKey, - TPageParam -> & - object & - object +function infiniteQueryOptions(options): CreateInfiniteQueryOptions & object & object ``` Defined in: [infinite-query-options.ts:88](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L88) @@ -51,7 +35,7 @@ The `queryKey` will be tagged with the type from `queryFn`. • **TData** = `InfiniteData`\<`TQueryFnData`, `unknown`\> -• **TQueryKey** _extends_ readonly `unknown`[] = readonly `unknown`[] +• **TQueryKey** *extends* readonly `unknown`[] = readonly `unknown`[] • **TPageParam** = `unknown` @@ -78,26 +62,7 @@ The infinite query options to tag with the type from `queryFn`. ## Call Signature ```ts -function infiniteQueryOptions< - TQueryFnData, - TError, - TData, - TQueryKey, - TPageParam, ->( - options, -): OmitKeyof< - CreateInfiniteQueryOptions< - TQueryFnData, - TError, - TData, - TQueryKey, - TPageParam - >, - 'queryFn' -> & - object & - object +function infiniteQueryOptions(options): OmitKeyof, "queryFn"> & object & object ``` Defined in: [infinite-query-options.ts:119](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L119) @@ -114,7 +79,7 @@ The `queryKey` will be tagged with the type from `queryFn`. • **TData** = `InfiniteData`\<`TQueryFnData`, `unknown`\> -• **TQueryKey** _extends_ readonly `unknown`[] = readonly `unknown`[] +• **TQueryKey** *extends* readonly `unknown`[] = readonly `unknown`[] • **TPageParam** = `unknown` @@ -141,23 +106,7 @@ The infinite query options to tag with the type from `queryFn`. ## Call Signature ```ts -function infiniteQueryOptions< - TQueryFnData, - TError, - TData, - TQueryKey, - TPageParam, ->( - options, -): CreateInfiniteQueryOptions< - TQueryFnData, - TError, - TData, - TQueryKey, - TPageParam -> & - object & - object +function infiniteQueryOptions(options): CreateInfiniteQueryOptions & object & object ``` Defined in: [infinite-query-options.ts:150](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L150) @@ -174,7 +123,7 @@ The `queryKey` will be tagged with the type from `queryFn`. • **TData** = `InfiniteData`\<`TQueryFnData`, `unknown`\> -• **TQueryKey** _extends_ readonly `unknown`[] = readonly `unknown`[] +• **TQueryKey** *extends* readonly `unknown`[] = readonly `unknown`[] • **TPageParam** = `unknown` diff --git a/docs/framework/angular/reference/functions/injectinfinitequery.md b/docs/framework/angular/reference/functions/injectinfinitequery.md index a8dff3e877..dc8a1d88da 100644 --- a/docs/framework/angular/reference/functions/injectinfinitequery.md +++ b/docs/framework/angular/reference/functions/injectinfinitequery.md @@ -21,16 +21,7 @@ Additional configuration. ## Call Signature ```ts -function injectInfiniteQuery< - TQueryFnData, - TError, - TData, - TQueryKey, - TPageParam, ->( - injectInfiniteQueryFn, - options?, -): DefinedCreateInfiniteQueryResult +function injectInfiniteQuery(injectInfiniteQueryFn, options?): DefinedCreateInfiniteQueryResult ``` Defined in: [inject-infinite-query.ts:41](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-infinite-query.ts#L41) @@ -46,7 +37,7 @@ Infinite queries can additively "load more" data onto an existing set of data or • **TData** = `InfiniteData`\<`TQueryFnData`, `unknown`\> -• **TQueryKey** _extends_ readonly `unknown`[] = readonly `unknown`[] +• **TQueryKey** *extends* readonly `unknown`[] = readonly `unknown`[] • **TPageParam** = `unknown` @@ -83,13 +74,7 @@ Additional configuration. ## Call Signature ```ts -function injectInfiniteQuery< - TQueryFnData, - TError, - TData, - TQueryKey, - TPageParam, ->(injectInfiniteQueryFn, options?): CreateInfiniteQueryResult +function injectInfiniteQuery(injectInfiniteQueryFn, options?): CreateInfiniteQueryResult ``` Defined in: [inject-infinite-query.ts:65](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-infinite-query.ts#L65) @@ -105,7 +90,7 @@ Infinite queries can additively "load more" data onto an existing set of data or • **TData** = `InfiniteData`\<`TQueryFnData`, `unknown`\> -• **TQueryKey** _extends_ readonly `unknown`[] = readonly `unknown`[] +• **TQueryKey** *extends* readonly `unknown`[] = readonly `unknown`[] • **TPageParam** = `unknown` @@ -142,13 +127,7 @@ Additional configuration. ## Call Signature ```ts -function injectInfiniteQuery< - TQueryFnData, - TError, - TData, - TQueryKey, - TPageParam, ->(injectInfiniteQueryFn, options?): CreateInfiniteQueryResult +function injectInfiniteQuery(injectInfiniteQueryFn, options?): CreateInfiniteQueryResult ``` Defined in: [inject-infinite-query.ts:89](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-infinite-query.ts#L89) @@ -164,7 +143,7 @@ Infinite queries can additively "load more" data onto an existing set of data or • **TData** = `InfiniteData`\<`TQueryFnData`, `unknown`\> -• **TQueryKey** _extends_ readonly `unknown`[] = readonly `unknown`[] +• **TQueryKey** *extends* readonly `unknown`[] = readonly `unknown`[] • **TPageParam** = `unknown` diff --git a/docs/framework/angular/reference/functions/injectisfetching.md b/docs/framework/angular/reference/functions/injectisfetching.md index 14555e20a0..518763cbbe 100644 --- a/docs/framework/angular/reference/functions/injectisfetching.md +++ b/docs/framework/angular/reference/functions/injectisfetching.md @@ -11,7 +11,7 @@ title: injectIsFetching function injectIsFetching(filters?, options?): Signal ``` -Defined in: [inject-is-fetching.ts:32](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-is-fetching.ts#L32) +Defined in: [inject-is-fetching.ts:31](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-is-fetching.ts#L31) Injects a signal that tracks the number of queries that your application is loading or fetching in the background. diff --git a/docs/framework/angular/reference/functions/injectmutation.md b/docs/framework/angular/reference/functions/injectmutation.md index 8a18f6d36c..a18e34b5b1 100644 --- a/docs/framework/angular/reference/functions/injectmutation.md +++ b/docs/framework/angular/reference/functions/injectmutation.md @@ -8,13 +8,10 @@ title: injectMutation # Function: injectMutation() ```ts -function injectMutation( - injectMutationFn, - options?, -): CreateMutationResult +function injectMutation(injectMutationFn, options?): CreateMutationResult ``` -Defined in: [inject-mutation.ts:44](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-mutation.ts#L44) +Defined in: [inject-mutation.ts:45](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-mutation.ts#L45) Injects a mutation: an imperative function that can be invoked which typically performs server side effects. diff --git a/docs/framework/angular/reference/functions/injectmutationstate.md b/docs/framework/angular/reference/functions/injectmutationstate.md index 67f5d3d1bf..2b37544ec4 100644 --- a/docs/framework/angular/reference/functions/injectmutationstate.md +++ b/docs/framework/angular/reference/functions/injectmutationstate.md @@ -8,10 +8,7 @@ title: injectMutationState # Function: injectMutationState() ```ts -function injectMutationState( - injectMutationStateFn, - options?, -): Signal +function injectMutationState(injectMutationStateFn, options?): Signal ``` Defined in: [inject-mutation-state.ts:60](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-mutation-state.ts#L60) diff --git a/docs/framework/angular/reference/functions/injectqueries.md b/docs/framework/angular/reference/functions/injectqueries.md deleted file mode 100644 index bc78ac6c4c..0000000000 --- a/docs/framework/angular/reference/functions/injectqueries.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -id: injectQueries -title: injectQueries ---- - - - -# Function: injectQueries() - -```ts -function injectQueries( - root0, - injector?, -): Signal -``` - -Defined in: [inject-queries.ts:202](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-queries.ts#L202) - -## Type Parameters - -• **T** _extends_ `any`[] - -• **TCombinedResult** = `T` _extends_ \[\] ? \[\] : `T` _extends_ \[`Head`\] ? \[`GetResults`\<`Head`\>\] : `T` _extends_ \[`Head`, `...Tail[]`\] ? \[`...Tail[]`\] _extends_ \[\] ? \[\] : \[`...Tail[]`\] _extends_ \[`Head`\] ? \[`GetResults`\<`Head`\>, `GetResults`\<`Head`\>\] : \[`...Tail[]`\] _extends_ \[`Head`, `...Tail[]`\] ? \[`...Tail[]`\] _extends_ \[\] ? \[\] : \[`...Tail[]`\] _extends_ \[`Head`\] ? \[`GetResults`\<`Head`\>, `GetResults`\<`Head`\>, `GetResults`\<`Head`\>\] : \[`...Tail[]`\] _extends_ \[`Head`, `...Tail[]`\] ? \[`...(...)[]`\] _extends_ \[\] ? \[\] : ... _extends_ ... ? ... : ... : \[`...(...)[]`\] _extends_ ...[] ? ...[] : ...[] : \[`...Tail[]`\] _extends_ `QueryObserverOptionsForCreateQueries`\<`TQueryFnData`, `TError`, `TData`, `any`\>[] ? `QueryObserverResult`\<`unknown` _extends_ `TData` ? `TQueryFnData` : `TData`, `unknown` _extends_ `TError` ? `Error` : `TError`\>[] : `QueryObserverResult`[] : `T` _extends_ `QueryObserverOptionsForCreateQueries`\<`TQueryFnData`, `TError`, `TData`, `any`\>[] ? `QueryObserverResult`\<`unknown` _extends_ `TData` ? `TQueryFnData` : `TData`, `unknown` _extends_ `TError` ? `Error` : `TError`\>[] : `QueryObserverResult`[] - -## Parameters - -### root0 - -#### combine? - -(`result`) => `TCombinedResult` - -#### queries - -`Signal`\<\[`...(T extends [] ? [] : T extends [Head] ? [GetOptions] : T extends [Head, ...Tail[]] ? [...Tail[]] extends [] ? [] : [...Tail[]] extends [Head] ? [GetOptions, GetOptions] : [...Tail[]] extends [Head, ...Tail[]] ? [...(...)[]] extends [] ? [] : (...) extends (...) ? (...) : (...) : readonly (...)[] extends [...(...)[]] ? [...(...)[]] : (...) extends (...) ? (...) : (...) : readonly unknown[] extends T ? T : T extends QueryObserverOptionsForCreateQueries[] ? QueryObserverOptionsForCreateQueries[] : QueryObserverOptionsForCreateQueries[])[]`\]\> - -### injector? - -`Injector` - -## Returns - -`Signal`\<`TCombinedResult`\> diff --git a/docs/framework/angular/reference/functions/injectquery.md b/docs/framework/angular/reference/functions/injectquery.md index 289eb21fc0..c57f44e32e 100644 --- a/docs/framework/angular/reference/functions/injectquery.md +++ b/docs/framework/angular/reference/functions/injectquery.md @@ -10,7 +10,6 @@ title: injectQuery Injects a query: a declarative dependency on an asynchronous source of data that is tied to a unique key. **Basic example** - ```ts class ServiceOrComponent { query = injectQuery(() => ({ @@ -26,7 +25,6 @@ In the example below, the query will be automatically enabled and executed when to a truthy value. When the filter signal changes back to a falsy value, the query will be disabled. **Reactive example** - ```ts class ServiceOrComponent { filter = signal('') @@ -55,10 +53,7 @@ https://tanstack.com/query/latest/docs/framework/angular/guides/queries ## Call Signature ```ts -function injectQuery( - injectQueryFn, - options?, -): DefinedCreateQueryResult +function injectQuery(injectQueryFn, options?): DefinedCreateQueryResult ``` Defined in: [inject-query.ts:65](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-query.ts#L65) @@ -66,7 +61,6 @@ Defined in: [inject-query.ts:65](https://github.com/TanStack/query/blob/main/pac Injects a query: a declarative dependency on an asynchronous source of data that is tied to a unique key. **Basic example** - ```ts class ServiceOrComponent { query = injectQuery(() => ({ @@ -82,7 +76,6 @@ In the example below, the query will be automatically enabled and executed when to a truthy value. When the filter signal changes back to a falsy value, the query will be disabled. **Reactive example** - ```ts class ServiceOrComponent { filter = signal('') @@ -104,7 +97,7 @@ class ServiceOrComponent { • **TData** = `TQueryFnData` -• **TQueryKey** _extends_ readonly `unknown`[] = readonly `unknown`[] +• **TQueryKey** *extends* readonly `unknown`[] = readonly `unknown`[] ### Parameters @@ -147,10 +140,7 @@ https://tanstack.com/query/latest/docs/framework/angular/guides/queries ## Call Signature ```ts -function injectQuery( - injectQueryFn, - options?, -): CreateQueryResult +function injectQuery(injectQueryFn, options?): CreateQueryResult ``` Defined in: [inject-query.ts:116](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-query.ts#L116) @@ -158,7 +148,6 @@ Defined in: [inject-query.ts:116](https://github.com/TanStack/query/blob/main/pa Injects a query: a declarative dependency on an asynchronous source of data that is tied to a unique key. **Basic example** - ```ts class ServiceOrComponent { query = injectQuery(() => ({ @@ -174,7 +163,6 @@ In the example below, the query will be automatically enabled and executed when to a truthy value. When the filter signal changes back to a falsy value, the query will be disabled. **Reactive example** - ```ts class ServiceOrComponent { filter = signal('') @@ -196,7 +184,7 @@ class ServiceOrComponent { • **TData** = `TQueryFnData` -• **TQueryKey** _extends_ readonly `unknown`[] = readonly `unknown`[] +• **TQueryKey** *extends* readonly `unknown`[] = readonly `unknown`[] ### Parameters @@ -239,10 +227,7 @@ https://tanstack.com/query/latest/docs/framework/angular/guides/queries ## Call Signature ```ts -function injectQuery( - injectQueryFn, - options?, -): CreateQueryResult +function injectQuery(injectQueryFn, options?): CreateQueryResult ``` Defined in: [inject-query.ts:167](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-query.ts#L167) @@ -250,7 +235,6 @@ Defined in: [inject-query.ts:167](https://github.com/TanStack/query/blob/main/pa Injects a query: a declarative dependency on an asynchronous source of data that is tied to a unique key. **Basic example** - ```ts class ServiceOrComponent { query = injectQuery(() => ({ @@ -266,7 +250,6 @@ In the example below, the query will be automatically enabled and executed when to a truthy value. When the filter signal changes back to a falsy value, the query will be disabled. **Reactive example** - ```ts class ServiceOrComponent { filter = signal('') @@ -288,7 +271,7 @@ class ServiceOrComponent { • **TData** = `TQueryFnData` -• **TQueryKey** _extends_ readonly `unknown`[] = readonly `unknown`[] +• **TQueryKey** *extends* readonly `unknown`[] = readonly `unknown`[] ### Parameters diff --git a/docs/framework/angular/reference/functions/injectqueryclient.md b/docs/framework/angular/reference/functions/injectqueryclient.md index a5450f4dcf..e036aedfba 100644 --- a/docs/framework/angular/reference/functions/injectqueryclient.md +++ b/docs/framework/angular/reference/functions/injectqueryclient.md @@ -35,7 +35,6 @@ Use `inject(QueryClient)` instead. If you need to get a `QueryClient` from a custom injector, use `injector.get(QueryClient)`. **Example** - ```ts -const queryClient = injectQueryClient() +const queryClient = injectQueryClient(); ``` diff --git a/docs/framework/angular/reference/functions/mutationoptions.md b/docs/framework/angular/reference/functions/mutationoptions.md index 0284da3771..d167704d8f 100644 --- a/docs/framework/angular/reference/functions/mutationoptions.md +++ b/docs/framework/angular/reference/functions/mutationoptions.md @@ -14,16 +14,17 @@ Allows to share and re-use mutation options in a type-safe way. ```ts export class QueriesService { private http = inject(HttpClient) + private queryClient = inject(QueryClient) updatePost(id: number) { return mutationOptions({ mutationFn: (post: Post) => Promise.resolve(post), - mutationKey: ['updatePost', id], + mutationKey: ["updatePost", id], onSuccess: (newPost) => { // ^? newPost: Post - this.queryClient.setQueryData(['posts', id], newPost) + this.queryClient.setQueryData(["posts", id], newPost) }, - }) + }); } } @@ -45,15 +46,10 @@ The mutation options. ## Call Signature ```ts -function mutationOptions( - options, -): WithRequired< - CreateMutationOptions, - 'mutationKey' -> +function mutationOptions(options): WithRequired, "mutationKey"> ``` -Defined in: [mutation-options.ts:38](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts#L38) +Defined in: [mutation-options.ts:39](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts#L39) Allows to share and re-use mutation options in a type-safe way. @@ -62,16 +58,17 @@ Allows to share and re-use mutation options in a type-safe way. ```ts export class QueriesService { private http = inject(HttpClient) + private queryClient = inject(QueryClient) updatePost(id: number) { return mutationOptions({ mutationFn: (post: Post) => Promise.resolve(post), - mutationKey: ['updatePost', id], + mutationKey: ["updatePost", id], onSuccess: (newPost) => { // ^? newPost: Post - this.queryClient.setQueryData(['posts', id], newPost) + this.queryClient.setQueryData(["posts", id], newPost) }, - }) + }); } } @@ -119,15 +116,10 @@ The mutation options. ## Call Signature ```ts -function mutationOptions( - options, -): Omit< - CreateMutationOptions, - 'mutationKey' -> +function mutationOptions(options): Omit, "mutationKey"> ``` -Defined in: [mutation-options.ts:52](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts#L52) +Defined in: [mutation-options.ts:53](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts#L53) Allows to share and re-use mutation options in a type-safe way. @@ -136,16 +128,17 @@ Allows to share and re-use mutation options in a type-safe way. ```ts export class QueriesService { private http = inject(HttpClient) + private queryClient = inject(QueryClient) updatePost(id: number) { return mutationOptions({ mutationFn: (post: Post) => Promise.resolve(post), - mutationKey: ['updatePost', id], + mutationKey: ["updatePost", id], onSuccess: (newPost) => { // ^? newPost: Post - this.queryClient.setQueryData(['posts', id], newPost) + this.queryClient.setQueryData(["posts", id], newPost) }, - }) + }); } } diff --git a/docs/framework/angular/reference/functions/providetanstackquery.md b/docs/framework/angular/reference/functions/providetanstackquery.md index b70abdf030..2a5a2070cb 100644 --- a/docs/framework/angular/reference/functions/providetanstackquery.md +++ b/docs/framework/angular/reference/functions/providetanstackquery.md @@ -49,7 +49,6 @@ export class AppModule {} You can also enable optional developer tools by adding `withDevtools`. By default the tools will then be loaded when your app is in development mode. - ```ts import { provideTanStackQuery, @@ -76,7 +75,6 @@ export const MY_QUERY_CLIENT = new InjectionToken('', { // In a lazy loaded route or lazy loaded component's providers array: providers: [provideTanStackQuery(MY_QUERY_CLIENT)] ``` - Using an InjectionToken for the QueryClient is an advanced optimization which allows TanStack Query to be absent from the main application bundle. This can be beneficial if you want to include TanStack Query on lazy loaded routes only while still sharing a `QueryClient`. @@ -104,5 +102,5 @@ A set of providers to set up TanStack Query. ## See -- https://tanstack.com/query/v5/docs/framework/angular/quick-start -- withDevtools + - https://tanstack.com/query/v5/docs/framework/angular/quick-start + - withDevtools diff --git a/docs/framework/angular/reference/functions/queryfeature.md b/docs/framework/angular/reference/functions/queryfeature.md index f749616ba4..46d7d72dd3 100644 --- a/docs/framework/angular/reference/functions/queryfeature.md +++ b/docs/framework/angular/reference/functions/queryfeature.md @@ -17,7 +17,7 @@ Helper function to create an object that represents a Query feature. ## Type Parameters -• **TFeatureKind** _extends_ `"Devtools"` \| `"PersistQueryClient"` +• **TFeatureKind** *extends* `"Devtools"` \| `"PersistQueryClient"` ## Parameters diff --git a/docs/framework/angular/reference/functions/queryoptions.md b/docs/framework/angular/reference/functions/queryoptions.md index d492b5a880..25847f526a 100644 --- a/docs/framework/angular/reference/functions/queryoptions.md +++ b/docs/framework/angular/reference/functions/queryoptions.md @@ -14,15 +14,15 @@ The `queryKey` will be tagged with the type from `queryFn`. **Example** ```ts -const { queryKey } = queryOptions({ - queryKey: ['key'], - queryFn: () => Promise.resolve(5), - // ^? Promise -}) - -const queryClient = new QueryClient() -const data = queryClient.getQueryData(queryKey) -// ^? number | undefined + const { queryKey } = queryOptions({ + queryKey: ['key'], + queryFn: () => Promise.resolve(5), + // ^? Promise + }) + + const queryClient = new QueryClient() + const data = queryClient.getQueryData(queryKey) + // ^? number | undefined ``` ## Param @@ -32,11 +32,7 @@ The query options to tag with the type from `queryFn`. ## Call Signature ```ts -function queryOptions( - options, -): Omit, 'queryFn'> & - object & - object +function queryOptions(options): Omit, "queryFn"> & object & object ``` Defined in: [query-options.ts:76](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/query-options.ts#L76) @@ -48,15 +44,15 @@ The `queryKey` will be tagged with the type from `queryFn`. **Example** ```ts -const { queryKey } = queryOptions({ - queryKey: ['key'], - queryFn: () => Promise.resolve(5), - // ^? Promise -}) - -const queryClient = new QueryClient() -const data = queryClient.getQueryData(queryKey) -// ^? number | undefined + const { queryKey } = queryOptions({ + queryKey: ['key'], + queryFn: () => Promise.resolve(5), + // ^? Promise + }) + + const queryClient = new QueryClient() + const data = queryClient.getQueryData(queryKey) + // ^? number | undefined ``` ### Type Parameters @@ -67,7 +63,7 @@ const data = queryClient.getQueryData(queryKey) • **TData** = `TQueryFnData` -• **TQueryKey** _extends_ readonly `unknown`[] = readonly `unknown`[] +• **TQueryKey** *extends* readonly `unknown`[] = readonly `unknown`[] ### Parameters @@ -92,14 +88,7 @@ The query options to tag with the type from `queryFn`. ## Call Signature ```ts -function queryOptions( - options, -): OmitKeyof< - CreateQueryOptions, - 'queryFn' -> & - object & - object +function queryOptions(options): OmitKeyof, "queryFn"> & object & object ``` Defined in: [query-options.ts:108](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/query-options.ts#L108) @@ -111,15 +100,15 @@ The `queryKey` will be tagged with the type from `queryFn`. **Example** ```ts -const { queryKey } = queryOptions({ - queryKey: ['key'], - queryFn: () => Promise.resolve(5), - // ^? Promise -}) - -const queryClient = new QueryClient() -const data = queryClient.getQueryData(queryKey) -// ^? number | undefined + const { queryKey } = queryOptions({ + queryKey: ['key'], + queryFn: () => Promise.resolve(5), + // ^? Promise + }) + + const queryClient = new QueryClient() + const data = queryClient.getQueryData(queryKey) + // ^? number | undefined ``` ### Type Parameters @@ -130,7 +119,7 @@ const data = queryClient.getQueryData(queryKey) • **TData** = `TQueryFnData` -• **TQueryKey** _extends_ readonly `unknown`[] = readonly `unknown`[] +• **TQueryKey** *extends* readonly `unknown`[] = readonly `unknown`[] ### Parameters @@ -155,9 +144,7 @@ The query options to tag with the type from `queryFn`. ## Call Signature ```ts -function queryOptions( - options, -): CreateQueryOptions & object & object +function queryOptions(options): CreateQueryOptions & object & object ``` Defined in: [query-options.ts:140](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/query-options.ts#L140) @@ -169,15 +156,15 @@ The `queryKey` will be tagged with the type from `queryFn`. **Example** ```ts -const { queryKey } = queryOptions({ - queryKey: ['key'], - queryFn: () => Promise.resolve(5), - // ^? Promise -}) - -const queryClient = new QueryClient() -const data = queryClient.getQueryData(queryKey) -// ^? number | undefined + const { queryKey } = queryOptions({ + queryKey: ['key'], + queryFn: () => Promise.resolve(5), + // ^? Promise + }) + + const queryClient = new QueryClient() + const data = queryClient.getQueryData(queryKey) + // ^? number | undefined ``` ### Type Parameters @@ -188,7 +175,7 @@ const data = queryClient.getQueryData(queryKey) • **TData** = `TQueryFnData` -• **TQueryKey** _extends_ readonly `unknown`[] = readonly `unknown`[] +• **TQueryKey** *extends* readonly `unknown`[] = readonly `unknown`[] ### Parameters diff --git a/docs/framework/angular/reference/index.md b/docs/framework/angular/reference/index.md index d9d29d1e6a..447ece4c1c 100644 --- a/docs/framework/angular/reference/index.md +++ b/docs/framework/angular/reference/index.md @@ -1,6 +1,6 @@ --- -id: '@tanstack/angular-query-experimental' -title: '@tanstack/angular-query-experimental' +id: "@tanstack/angular-query-experimental" +title: "@tanstack/angular-query-experimental" --- @@ -36,7 +36,7 @@ title: '@tanstack/angular-query-experimental' - [DefinedCreateQueryResult](../type-aliases/definedcreatequeryresult.md) - [DefinedInitialDataInfiniteOptions](../type-aliases/definedinitialdatainfiniteoptions.md) - [DefinedInitialDataOptions](../type-aliases/definedinitialdataoptions.md) -- [DeveloperToolsFeature](../type-aliases/developertoolsfeature.md) +- [DevtoolsFeature](../type-aliases/devtoolsfeature.md) - [PersistQueryClientFeature](../type-aliases/persistqueryclientfeature.md) - [QueriesOptions](../type-aliases/queriesoptions.md) - [QueriesResults](../type-aliases/queriesresults.md) @@ -55,7 +55,6 @@ title: '@tanstack/angular-query-experimental' - [injectIsRestoring](../functions/injectisrestoring.md) - [injectMutation](../functions/injectmutation.md) - [injectMutationState](../functions/injectmutationstate.md) -- [injectQueries](../functions/injectqueries.md) - [injectQuery](../functions/injectquery.md) - [~~injectQueryClient~~](../functions/injectqueryclient.md) - [mutationOptions](../functions/mutationoptions.md) diff --git a/docs/framework/angular/reference/interfaces/basemutationnarrowing.md b/docs/framework/angular/reference/interfaces/basemutationnarrowing.md index 157ed2d305..b55b7d08e5 100644 --- a/docs/framework/angular/reference/interfaces/basemutationnarrowing.md +++ b/docs/framework/angular/reference/interfaces/basemutationnarrowing.md @@ -7,7 +7,7 @@ title: BaseMutationNarrowing # Interface: BaseMutationNarrowing\ -Defined in: [types.ts:183](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L183) +Defined in: [types.ts:190](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L190) ## Type Parameters @@ -24,117 +24,37 @@ Defined in: [types.ts:183](https://github.com/TanStack/query/blob/main/packages/ ### isError ```ts -isError: SignalFunction< - (this) => this is CreateMutationResult< - TData, - TError, - TVariables, - TOnMutateResult, - Override< - MutationObserverErrorResult, - { - mutate: CreateMutateFunction - } - > & { - mutateAsync: CreateMutateAsyncFunction< - TData, - TError, - TVariables, - TOnMutateResult - > - } - > -> +isError: SignalFunction<(this) => this is CreateMutationResult, { mutate: CreateMutateFunction }> & { mutateAsync: CreateMutateAsyncFunction }>>; ``` -Defined in: [types.ts:206](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L206) +Defined in: [types.ts:213](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L213) ---- +*** ### isIdle ```ts -isIdle: SignalFunction< - (this) => this is CreateMutationResult< - TData, - TError, - TVariables, - TOnMutateResult, - Override< - MutationObserverIdleResult, - { - mutate: CreateMutateFunction - } - > & { - mutateAsync: CreateMutateAsyncFunction< - TData, - TError, - TVariables, - TOnMutateResult - > - } - > -> +isIdle: SignalFunction<(this) => this is CreateMutationResult, { mutate: CreateMutateFunction }> & { mutateAsync: CreateMutateAsyncFunction }>>; ``` -Defined in: [types.ts:240](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L240) +Defined in: [types.ts:247](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L247) ---- +*** ### isPending ```ts -isPending: SignalFunction< - (this) => this is CreateMutationResult< - TData, - TError, - TVariables, - TOnMutateResult, - Override< - MutationObserverLoadingResult, - { - mutate: CreateMutateFunction - } - > & { - mutateAsync: CreateMutateAsyncFunction< - TData, - TError, - TVariables, - TOnMutateResult - > - } - > -> +isPending: SignalFunction<(this) => this is CreateMutationResult, { mutate: CreateMutateFunction }> & { mutateAsync: CreateMutateAsyncFunction }>>; ``` -Defined in: [types.ts:223](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L223) +Defined in: [types.ts:230](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L230) ---- +*** ### isSuccess ```ts -isSuccess: SignalFunction< - (this) => this is CreateMutationResult< - TData, - TError, - TVariables, - TOnMutateResult, - Override< - MutationObserverSuccessResult, - { - mutate: CreateMutateFunction - } - > & { - mutateAsync: CreateMutateAsyncFunction< - TData, - TError, - TVariables, - TOnMutateResult - > - } - > -> +isSuccess: SignalFunction<(this) => this is CreateMutationResult, { mutate: CreateMutateFunction }> & { mutateAsync: CreateMutateAsyncFunction }>>; ``` -Defined in: [types.ts:189](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L189) +Defined in: [types.ts:196](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L196) diff --git a/docs/framework/angular/reference/interfaces/basequerynarrowing.md b/docs/framework/angular/reference/interfaces/basequerynarrowing.md index 3a8618c7ab..cee854982a 100644 --- a/docs/framework/angular/reference/interfaces/basequerynarrowing.md +++ b/docs/framework/angular/reference/interfaces/basequerynarrowing.md @@ -35,7 +35,7 @@ Defined in: [types.ts:65](https://github.com/TanStack/query/blob/main/packages/a `this is CreateBaseQueryResult>` ---- +*** ### isPending() @@ -55,7 +55,7 @@ Defined in: [types.ts:72](https://github.com/TanStack/query/blob/main/packages/a `this is CreateBaseQueryResult>` ---- +*** ### isSuccess() diff --git a/docs/framework/angular/reference/interfaces/createbasequeryoptions.md b/docs/framework/angular/reference/interfaces/createbasequeryoptions.md index e0d731d5b3..3e1ee35164 100644 --- a/docs/framework/angular/reference/interfaces/createbasequeryoptions.md +++ b/docs/framework/angular/reference/interfaces/createbasequeryoptions.md @@ -23,4 +23,4 @@ Defined in: [types.ts:21](https://github.com/TanStack/query/blob/main/packages/a • **TQueryData** = `TQueryFnData` -• **TQueryKey** _extends_ `QueryKey` = `QueryKey` +• **TQueryKey** *extends* `QueryKey` = `QueryKey` diff --git a/docs/framework/angular/reference/interfaces/createinfinitequeryoptions.md b/docs/framework/angular/reference/interfaces/createinfinitequeryoptions.md index 53ad6617ca..e1e744ba4f 100644 --- a/docs/framework/angular/reference/interfaces/createinfinitequeryoptions.md +++ b/docs/framework/angular/reference/interfaces/createinfinitequeryoptions.md @@ -21,6 +21,6 @@ Defined in: [types.ts:81](https://github.com/TanStack/query/blob/main/packages/a • **TData** = `TQueryFnData` -• **TQueryKey** _extends_ `QueryKey` = `QueryKey` +• **TQueryKey** *extends* `QueryKey` = `QueryKey` • **TPageParam** = `unknown` diff --git a/docs/framework/angular/reference/interfaces/createqueryoptions.md b/docs/framework/angular/reference/interfaces/createqueryoptions.md index 61baca7951..f4242283e0 100644 --- a/docs/framework/angular/reference/interfaces/createqueryoptions.md +++ b/docs/framework/angular/reference/interfaces/createqueryoptions.md @@ -21,4 +21,4 @@ Defined in: [types.ts:35](https://github.com/TanStack/query/blob/main/packages/a • **TData** = `TQueryFnData` -• **TQueryKey** _extends_ `QueryKey` = `QueryKey` +• **TQueryKey** *extends* `QueryKey` = `QueryKey` diff --git a/docs/framework/angular/reference/interfaces/injectmutationoptions.md b/docs/framework/angular/reference/interfaces/injectmutationoptions.md index 0de78ed031..62ebe8fa65 100644 --- a/docs/framework/angular/reference/interfaces/injectmutationoptions.md +++ b/docs/framework/angular/reference/interfaces/injectmutationoptions.md @@ -7,7 +7,7 @@ title: InjectMutationOptions # Interface: InjectMutationOptions -Defined in: [inject-mutation.ts:27](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-mutation.ts#L27) +Defined in: [inject-mutation.ts:28](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-mutation.ts#L28) ## Properties @@ -17,7 +17,7 @@ Defined in: [inject-mutation.ts:27](https://github.com/TanStack/query/blob/main/ optional injector: Injector; ``` -Defined in: [inject-mutation.ts:33](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-mutation.ts#L33) +Defined in: [inject-mutation.ts:34](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-mutation.ts#L34) The `Injector` in which to create the mutation. diff --git a/docs/framework/angular/reference/interfaces/queryfeature.md b/docs/framework/angular/reference/interfaces/queryfeature.md index 70871d1f80..cfc23901dd 100644 --- a/docs/framework/angular/reference/interfaces/queryfeature.md +++ b/docs/framework/angular/reference/interfaces/queryfeature.md @@ -13,19 +13,19 @@ Helper type to represent a Query feature. ## Type Parameters -• **TFeatureKind** _extends_ `QueryFeatureKind` +• **TFeatureKind** *extends* `QueryFeatureKind` ## Properties ### ɵkind ```ts -ɵkind: TFeatureKind +ɵkind: TFeatureKind; ``` Defined in: [providers.ts:136](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/providers.ts#L136) ---- +*** ### ɵproviders diff --git a/docs/framework/angular/reference/type-aliases/createbasemutationresult.md b/docs/framework/angular/reference/type-aliases/createbasemutationresult.md index 4c33f30311..869d37e2ef 100644 --- a/docs/framework/angular/reference/type-aliases/createbasemutationresult.md +++ b/docs/framework/angular/reference/type-aliases/createbasemutationresult.md @@ -8,29 +8,19 @@ title: CreateBaseMutationResult # Type Alias: CreateBaseMutationResult\ ```ts -type CreateBaseMutationResult = - Override< - MutationObserverResult, - { - mutate: CreateMutateFunction - } - > & - object +type CreateBaseMutationResult = Override, { + mutate: CreateMutateFunction; + }> & object; ``` -Defined in: [types.ts:158](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L158) +Defined in: [types.ts:160](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L160) ## Type declaration ### mutateAsync ```ts -mutateAsync: CreateMutateAsyncFunction< - TData, - TError, - TVariables, - TOnMutateResult -> +mutateAsync: CreateMutateAsyncFunction; ``` ## Type Parameters diff --git a/docs/framework/angular/reference/type-aliases/createbasequeryresult.md b/docs/framework/angular/reference/type-aliases/createbasequeryresult.md index 1dd27ac995..02406bfa51 100644 --- a/docs/framework/angular/reference/type-aliases/createbasequeryresult.md +++ b/docs/framework/angular/reference/type-aliases/createbasequeryresult.md @@ -8,11 +8,7 @@ title: CreateBaseQueryResult # Type Alias: CreateBaseQueryResult\ ```ts -type CreateBaseQueryResult = BaseQueryNarrowing< - TData, - TError -> & - MapToSignals> +type CreateBaseQueryResult = BaseQueryNarrowing & MapToSignals>; ``` Defined in: [types.ts:98](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L98) diff --git a/docs/framework/angular/reference/type-aliases/createinfinitequeryresult.md b/docs/framework/angular/reference/type-aliases/createinfinitequeryresult.md index a2db0e64fd..6176823282 100644 --- a/docs/framework/angular/reference/type-aliases/createinfinitequeryresult.md +++ b/docs/framework/angular/reference/type-aliases/createinfinitequeryresult.md @@ -8,11 +8,7 @@ title: CreateInfiniteQueryResult # Type Alias: CreateInfiniteQueryResult\ ```ts -type CreateInfiniteQueryResult = BaseQueryNarrowing< - TData, - TError -> & - MapToSignals> +type CreateInfiniteQueryResult = BaseQueryNarrowing & MapToSignals>; ``` Defined in: [types.ts:117](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L117) diff --git a/docs/framework/angular/reference/type-aliases/createmutateasyncfunction.md b/docs/framework/angular/reference/type-aliases/createmutateasyncfunction.md index d99ecc82d3..043cc82e2f 100644 --- a/docs/framework/angular/reference/type-aliases/createmutateasyncfunction.md +++ b/docs/framework/angular/reference/type-aliases/createmutateasyncfunction.md @@ -8,11 +8,10 @@ title: CreateMutateAsyncFunction # Type Alias: CreateMutateAsyncFunction\ ```ts -type CreateMutateAsyncFunction = - MutateFunction +type CreateMutateAsyncFunction = MutateFunction; ``` -Defined in: [types.ts:151](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L151) +Defined in: [types.ts:153](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L153) ## Type Parameters diff --git a/docs/framework/angular/reference/type-aliases/createmutatefunction.md b/docs/framework/angular/reference/type-aliases/createmutatefunction.md index 424686ed75..fe0fa55dc8 100644 --- a/docs/framework/angular/reference/type-aliases/createmutatefunction.md +++ b/docs/framework/angular/reference/type-aliases/createmutatefunction.md @@ -8,9 +8,7 @@ title: CreateMutateFunction # Type Alias: CreateMutateFunction()\ ```ts -type CreateMutateFunction = ( - ...args -) => void +type CreateMutateFunction = (...args) => void; ``` Defined in: [types.ts:142](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L142) diff --git a/docs/framework/angular/reference/type-aliases/createmutationresult.md b/docs/framework/angular/reference/type-aliases/createmutationresult.md index 0b2ceb3a70..86c631772b 100644 --- a/docs/framework/angular/reference/type-aliases/createmutationresult.md +++ b/docs/framework/angular/reference/type-aliases/createmutationresult.md @@ -8,12 +8,10 @@ title: CreateMutationResult # Type Alias: CreateMutationResult\ ```ts -type CreateMutationResult = - BaseMutationNarrowing & - MapToSignals> +type CreateMutationResult = BaseMutationNarrowing & MapToSignals>; ``` -Defined in: [types.ts:259](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L259) +Defined in: [types.ts:266](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L266) ## Type Parameters diff --git a/docs/framework/angular/reference/type-aliases/createqueryresult.md b/docs/framework/angular/reference/type-aliases/createqueryresult.md index 16c95c6798..11c07e5aba 100644 --- a/docs/framework/angular/reference/type-aliases/createqueryresult.md +++ b/docs/framework/angular/reference/type-aliases/createqueryresult.md @@ -8,7 +8,7 @@ title: CreateQueryResult # Type Alias: CreateQueryResult\ ```ts -type CreateQueryResult = CreateBaseQueryResult +type CreateQueryResult = CreateBaseQueryResult; ``` Defined in: [types.ts:105](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L105) diff --git a/docs/framework/angular/reference/type-aliases/definedcreateinfinitequeryresult.md b/docs/framework/angular/reference/type-aliases/definedcreateinfinitequeryresult.md index 3585ab5bf1..297c65bca9 100644 --- a/docs/framework/angular/reference/type-aliases/definedcreateinfinitequeryresult.md +++ b/docs/framework/angular/reference/type-aliases/definedcreateinfinitequeryresult.md @@ -8,11 +8,7 @@ title: DefinedCreateInfiniteQueryResult # Type Alias: DefinedCreateInfiniteQueryResult\ ```ts -type DefinedCreateInfiniteQueryResult< - TData, - TError, - TDefinedInfiniteQueryObserver, -> = MapToSignals +type DefinedCreateInfiniteQueryResult = MapToSignals; ``` Defined in: [types.ts:123](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L123) diff --git a/docs/framework/angular/reference/type-aliases/definedcreatequeryresult.md b/docs/framework/angular/reference/type-aliases/definedcreatequeryresult.md index b3588c97c7..b764ec669b 100644 --- a/docs/framework/angular/reference/type-aliases/definedcreatequeryresult.md +++ b/docs/framework/angular/reference/type-aliases/definedcreatequeryresult.md @@ -8,11 +8,7 @@ title: DefinedCreateQueryResult # Type Alias: DefinedCreateQueryResult\ ```ts -type DefinedCreateQueryResult = BaseQueryNarrowing< - TData, - TError -> & - MapToSignals> +type DefinedCreateQueryResult = BaseQueryNarrowing & MapToSignals>; ``` Defined in: [types.ts:110](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L110) diff --git a/docs/framework/angular/reference/type-aliases/definedinitialdatainfiniteoptions.md b/docs/framework/angular/reference/type-aliases/definedinitialdatainfiniteoptions.md index 16025e3fc7..dabe372f90 100644 --- a/docs/framework/angular/reference/type-aliases/definedinitialdatainfiniteoptions.md +++ b/docs/framework/angular/reference/type-aliases/definedinitialdatainfiniteoptions.md @@ -8,20 +8,7 @@ title: DefinedInitialDataInfiniteOptions # Type Alias: DefinedInitialDataInfiniteOptions\ ```ts -type DefinedInitialDataInfiniteOptions< - TQueryFnData, - TError, - TData, - TQueryKey, - TPageParam, -> = CreateInfiniteQueryOptions< - TQueryFnData, - TError, - TData, - TQueryKey, - TPageParam -> & - object +type DefinedInitialDataInfiniteOptions = CreateInfiniteQueryOptions & object; ``` Defined in: [infinite-query-options.ts:62](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L62) @@ -31,7 +18,7 @@ Defined in: [infinite-query-options.ts:62](https://github.com/TanStack/query/blo ### initialData ```ts -initialData: +initialData: | NonUndefinedGuard> | () => NonUndefinedGuard> | undefined; @@ -45,6 +32,6 @@ initialData: • **TData** = `InfiniteData`\<`TQueryFnData`\> -• **TQueryKey** _extends_ `QueryKey` = `QueryKey` +• **TQueryKey** *extends* `QueryKey` = `QueryKey` • **TPageParam** = `unknown` diff --git a/docs/framework/angular/reference/type-aliases/definedinitialdataoptions.md b/docs/framework/angular/reference/type-aliases/definedinitialdataoptions.md index a54c79c787..d0613848bc 100644 --- a/docs/framework/angular/reference/type-aliases/definedinitialdataoptions.md +++ b/docs/framework/angular/reference/type-aliases/definedinitialdataoptions.md @@ -8,11 +8,7 @@ title: DefinedInitialDataOptions # Type Alias: DefinedInitialDataOptions\ ```ts -type DefinedInitialDataOptions = Omit< - CreateQueryOptions, - 'queryFn' -> & - object +type DefinedInitialDataOptions = Omit, "queryFn"> & object; ``` Defined in: [query-options.ts:40](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/query-options.ts#L40) @@ -22,7 +18,7 @@ Defined in: [query-options.ts:40](https://github.com/TanStack/query/blob/main/pa ### initialData ```ts -initialData: +initialData: | NonUndefinedGuard | () => NonUndefinedGuard; ``` @@ -41,4 +37,4 @@ optional queryFn: QueryFunction; • **TData** = `TQueryFnData` -• **TQueryKey** _extends_ `QueryKey` = `QueryKey` +• **TQueryKey** *extends* `QueryKey` = `QueryKey` diff --git a/docs/framework/angular/reference/type-aliases/developertoolsfeature.md b/docs/framework/angular/reference/type-aliases/devtoolsfeature.md similarity index 73% rename from docs/framework/angular/reference/type-aliases/developertoolsfeature.md rename to docs/framework/angular/reference/type-aliases/devtoolsfeature.md index b1278a3d2e..668aab3b72 100644 --- a/docs/framework/angular/reference/type-aliases/developertoolsfeature.md +++ b/docs/framework/angular/reference/type-aliases/devtoolsfeature.md @@ -1,14 +1,14 @@ --- -id: DeveloperToolsFeature -title: DeveloperToolsFeature +id: DevtoolsFeature +title: DevtoolsFeature --- -# Type Alias: DeveloperToolsFeature +# Type Alias: DevtoolsFeature ```ts -type DeveloperToolsFeature = QueryFeature<'Devtools'> +type DevtoolsFeature = QueryFeature<"Devtools">; ``` Defined in: [providers.ts:158](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/providers.ts#L158) diff --git a/docs/framework/angular/reference/type-aliases/persistqueryclientfeature.md b/docs/framework/angular/reference/type-aliases/persistqueryclientfeature.md index 2e923a3c6a..c4bd1e64c4 100644 --- a/docs/framework/angular/reference/type-aliases/persistqueryclientfeature.md +++ b/docs/framework/angular/reference/type-aliases/persistqueryclientfeature.md @@ -8,7 +8,7 @@ title: PersistQueryClientFeature # Type Alias: PersistQueryClientFeature ```ts -type PersistQueryClientFeature = QueryFeature<'PersistQueryClient'> +type PersistQueryClientFeature = QueryFeature<"PersistQueryClient">; ``` Defined in: [providers.ts:164](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/providers.ts#L164) diff --git a/docs/framework/angular/reference/type-aliases/queriesoptions.md b/docs/framework/angular/reference/type-aliases/queriesoptions.md index 88e9502ce3..3d0a571ef0 100644 --- a/docs/framework/angular/reference/type-aliases/queriesoptions.md +++ b/docs/framework/angular/reference/type-aliases/queriesoptions.md @@ -5,46 +5,20 @@ title: QueriesOptions -# Type Alias: QueriesOptions\ +# Type Alias: QueriesOptions\ ```ts -type QueriesOptions = TDepth['length'] extends MAXIMUM_DEPTH - ? QueryObserverOptionsForCreateQueries[] - : T extends [] - ? [] - : T extends [infer Head] - ? [...TResult, GetOptions] - : T extends [infer Head, ...infer Tail] - ? QueriesOptions< - [...Tail], - [...TResult, GetOptions], - [...TDepth, 1] - > - : ReadonlyArray extends T - ? T - : T extends QueryObserverOptionsForCreateQueries< - infer TQueryFnData, - infer TError, - infer TData, - infer TQueryKey - >[] - ? QueryObserverOptionsForCreateQueries< - TQueryFnData, - TError, - TData, - TQueryKey - >[] - : QueryObserverOptionsForCreateQueries[] +type QueriesOptions = TDepth["length"] extends MAXIMUM_DEPTH ? QueryObserverOptionsForCreateQueries[] : T extends [] ? [] : T extends [infer Head] ? [...TResults, GetCreateQueryOptionsForCreateQueries] : T extends [infer Head, ...(infer Tails)] ? QueriesOptions<[...Tails], [...TResults, GetCreateQueryOptionsForCreateQueries], [...TDepth, 1]> : ReadonlyArray extends T ? T : T extends QueryObserverOptionsForCreateQueries[] ? QueryObserverOptionsForCreateQueries[] : QueryObserverOptionsForCreateQueries[]; ``` -Defined in: [inject-queries.ts:120](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-queries.ts#L120) +Defined in: [inject-queries.ts:144](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-queries.ts#L144) QueriesOptions reducer recursively unwraps function arguments to infer/enforce type param ## Type Parameters -• **T** _extends_ `any`[] +• **T** *extends* `any`[] -• **TResult** _extends_ `any`[] = \[\] +• **TResults** *extends* `any`[] = \[\] -• **TDepth** _extends_ `ReadonlyArray`\<`number`\> = \[\] +• **TDepth** *extends* `ReadonlyArray`\<`number`\> = \[\] diff --git a/docs/framework/angular/reference/type-aliases/queriesresults.md b/docs/framework/angular/reference/type-aliases/queriesresults.md index b977f67923..b691044942 100644 --- a/docs/framework/angular/reference/type-aliases/queriesresults.md +++ b/docs/framework/angular/reference/type-aliases/queriesresults.md @@ -5,42 +5,20 @@ title: QueriesResults -# Type Alias: QueriesResults\ +# Type Alias: QueriesResults\ ```ts -type QueriesResults = TDepth['length'] extends MAXIMUM_DEPTH - ? QueryObserverResult[] - : T extends [] - ? [] - : T extends [infer Head] - ? [...TResult, GetResults] - : T extends [infer Head, ...infer Tail] - ? QueriesResults< - [...Tail], - [...TResult, GetResults], - [...TDepth, 1] - > - : T extends QueryObserverOptionsForCreateQueries< - infer TQueryFnData, - infer TError, - infer TData, - any - >[] - ? QueryObserverResult< - unknown extends TData ? TQueryFnData : TData, - unknown extends TError ? DefaultError : TError - >[] - : QueryObserverResult[] +type QueriesResults = TDepth["length"] extends MAXIMUM_DEPTH ? CreateQueryResult[] : T extends [] ? [] : T extends [infer Head] ? [...TResults, GetCreateQueryResult] : T extends [infer Head, ...(infer Tails)] ? QueriesResults<[...Tails], [...TResults, GetCreateQueryResult], [...TDepth, 1]> : { [K in keyof T]: GetCreateQueryResult }; ``` -Defined in: [inject-queries.ts:162](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-queries.ts#L162) +Defined in: [inject-queries.ts:186](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-queries.ts#L186) QueriesResults reducer recursively maps type param to results ## Type Parameters -• **T** _extends_ `any`[] +• **T** *extends* `any`[] -• **TResult** _extends_ `any`[] = \[\] +• **TResults** *extends* `any`[] = \[\] -• **TDepth** _extends_ `ReadonlyArray`\<`number`\> = \[\] +• **TDepth** *extends* `ReadonlyArray`\<`number`\> = \[\] diff --git a/docs/framework/angular/reference/type-aliases/queryfeatures.md b/docs/framework/angular/reference/type-aliases/queryfeatures.md index 8167e22cf3..8344709fa7 100644 --- a/docs/framework/angular/reference/type-aliases/queryfeatures.md +++ b/docs/framework/angular/reference/type-aliases/queryfeatures.md @@ -8,7 +8,9 @@ title: QueryFeatures # Type Alias: QueryFeatures ```ts -type QueryFeatures = DeveloperToolsFeature | PersistQueryClientFeature +type QueryFeatures = + | DevtoolsFeature + | PersistQueryClientFeature; ``` Defined in: [providers.ts:173](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/providers.ts#L173) diff --git a/docs/framework/angular/reference/type-aliases/undefinedinitialdatainfiniteoptions.md b/docs/framework/angular/reference/type-aliases/undefinedinitialdatainfiniteoptions.md index 0d33355981..9061a58458 100644 --- a/docs/framework/angular/reference/type-aliases/undefinedinitialdatainfiniteoptions.md +++ b/docs/framework/angular/reference/type-aliases/undefinedinitialdatainfiniteoptions.md @@ -8,20 +8,7 @@ title: UndefinedInitialDataInfiniteOptions # Type Alias: UndefinedInitialDataInfiniteOptions\ ```ts -type UndefinedInitialDataInfiniteOptions< - TQueryFnData, - TError, - TData, - TQueryKey, - TPageParam, -> = CreateInfiniteQueryOptions< - TQueryFnData, - TError, - TData, - TQueryKey, - TPageParam -> & - object +type UndefinedInitialDataInfiniteOptions = CreateInfiniteQueryOptions & object; ``` Defined in: [infinite-query-options.ts:13](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L13) @@ -31,7 +18,7 @@ Defined in: [infinite-query-options.ts:13](https://github.com/TanStack/query/blo ### initialData? ```ts -optional initialData: +optional initialData: | NonUndefinedGuard> | InitialDataFunction>>; ``` @@ -44,6 +31,6 @@ optional initialData: • **TData** = `InfiniteData`\<`TQueryFnData`\> -• **TQueryKey** _extends_ `QueryKey` = `QueryKey` +• **TQueryKey** *extends* `QueryKey` = `QueryKey` • **TPageParam** = `unknown` diff --git a/docs/framework/angular/reference/type-aliases/undefinedinitialdataoptions.md b/docs/framework/angular/reference/type-aliases/undefinedinitialdataoptions.md index 3f5a06db66..12037f13e7 100644 --- a/docs/framework/angular/reference/type-aliases/undefinedinitialdataoptions.md +++ b/docs/framework/angular/reference/type-aliases/undefinedinitialdataoptions.md @@ -8,8 +8,7 @@ title: UndefinedInitialDataOptions # Type Alias: UndefinedInitialDataOptions\ ```ts -type UndefinedInitialDataOptions = - CreateQueryOptions & object +type UndefinedInitialDataOptions = CreateQueryOptions & object; ``` Defined in: [query-options.ts:13](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/query-options.ts#L13) @@ -19,7 +18,7 @@ Defined in: [query-options.ts:13](https://github.com/TanStack/query/blob/main/pa ### initialData? ```ts -optional initialData: +optional initialData: | InitialDataFunction> | NonUndefinedGuard; ``` @@ -32,4 +31,4 @@ optional initialData: • **TData** = `TQueryFnData` -• **TQueryKey** _extends_ `QueryKey` = `QueryKey` +• **TQueryKey** *extends* `QueryKey` = `QueryKey` diff --git a/docs/framework/angular/reference/type-aliases/unusedskiptokeninfiniteoptions.md b/docs/framework/angular/reference/type-aliases/unusedskiptokeninfiniteoptions.md index 9634febe87..eebf0bb773 100644 --- a/docs/framework/angular/reference/type-aliases/unusedskiptokeninfiniteoptions.md +++ b/docs/framework/angular/reference/type-aliases/unusedskiptokeninfiniteoptions.md @@ -8,23 +8,7 @@ title: UnusedSkipTokenInfiniteOptions # Type Alias: UnusedSkipTokenInfiniteOptions\ ```ts -type UnusedSkipTokenInfiniteOptions< - TQueryFnData, - TError, - TData, - TQueryKey, - TPageParam, -> = OmitKeyof< - CreateInfiniteQueryOptions< - TQueryFnData, - TError, - TData, - TQueryKey, - TPageParam - >, - 'queryFn' -> & - object +type UnusedSkipTokenInfiniteOptions = OmitKeyof, "queryFn"> & object; ``` Defined in: [infinite-query-options.ts:34](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L34) @@ -45,6 +29,6 @@ optional queryFn: Exclude -• **TQueryKey** _extends_ `QueryKey` = `QueryKey` +• **TQueryKey** *extends* `QueryKey` = `QueryKey` • **TPageParam** = `unknown` diff --git a/docs/framework/angular/reference/type-aliases/unusedskiptokenoptions.md b/docs/framework/angular/reference/type-aliases/unusedskiptokenoptions.md index d115842200..ec956c1148 100644 --- a/docs/framework/angular/reference/type-aliases/unusedskiptokenoptions.md +++ b/docs/framework/angular/reference/type-aliases/unusedskiptokenoptions.md @@ -8,11 +8,7 @@ title: UnusedSkipTokenOptions # Type Alias: UnusedSkipTokenOptions\ ```ts -type UnusedSkipTokenOptions = OmitKeyof< - CreateQueryOptions, - 'queryFn' -> & - object +type UnusedSkipTokenOptions = OmitKeyof, "queryFn"> & object; ``` Defined in: [query-options.ts:25](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/query-options.ts#L25) @@ -33,4 +29,4 @@ optional queryFn: Exclude) => DevtoolsOptions export type WithDevtools = ( withDevtoolsFn?: WithDevtoolsFn, options?: WithDevtoolsOptions, -) => DeveloperToolsFeature +) => DevtoolsFeature diff --git a/packages/angular-query-experimental/src/index.ts b/packages/angular-query-experimental/src/index.ts index bad24075cc..fc033224e5 100644 --- a/packages/angular-query-experimental/src/index.ts +++ b/packages/angular-query-experimental/src/index.ts @@ -47,7 +47,7 @@ export { injectQuery } from './inject-query' export { injectQueryClient } from './inject-query-client' export type { - DeveloperToolsFeature, + DevtoolsFeature, PersistQueryClientFeature, QueryFeature, QueryFeatures, diff --git a/packages/angular-query-experimental/src/providers.ts b/packages/angular-query-experimental/src/providers.ts index 3473c2affb..076d76d0c3 100644 --- a/packages/angular-query-experimental/src/providers.ts +++ b/packages/angular-query-experimental/src/providers.ts @@ -155,7 +155,7 @@ export function queryFeature( * The type is used to describe the return value of the `withDevtools` function. * @see {@link withDevtools} */ -export type DeveloperToolsFeature = QueryFeature<'Devtools'> +export type DevtoolsFeature = QueryFeature<'Devtools'> /** * A type alias that represents a feature which enables persistence. @@ -170,4 +170,4 @@ export type PersistQueryClientFeature = QueryFeature<'PersistQueryClient'> * documentation on how to use those functions. * @see {@link provideTanStackQuery} */ -export type QueryFeatures = DeveloperToolsFeature | PersistQueryClientFeature +export type QueryFeatures = DevtoolsFeature | PersistQueryClientFeature From 27df98737857b2ddbdc00e4ee47e1ff3b70234ab Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 22 Oct 2025 00:27:39 +0000 Subject: [PATCH 04/16] ci: Version Packages (#9795) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .changeset/devtools-feature-rename.md | 5 ----- examples/angular/auto-refetching/package.json | 2 +- examples/angular/basic-persister/package.json | 2 +- examples/angular/basic/package.json | 2 +- examples/angular/devtools-panel/package.json | 2 +- examples/angular/infinite-query-with-max-pages/package.json | 2 +- examples/angular/optimistic-updates/package.json | 2 +- examples/angular/pagination/package.json | 2 +- examples/angular/query-options-from-a-service/package.json | 2 +- examples/angular/router/package.json | 2 +- examples/angular/rxjs/package.json | 2 +- examples/angular/simple/package.json | 2 +- integrations/angular-cli-20/package.json | 2 +- packages/angular-query-experimental/CHANGELOG.md | 6 ++++++ packages/angular-query-experimental/package.json | 2 +- 15 files changed, 19 insertions(+), 18 deletions(-) delete mode 100644 .changeset/devtools-feature-rename.md diff --git a/.changeset/devtools-feature-rename.md b/.changeset/devtools-feature-rename.md deleted file mode 100644 index f23859ccc1..0000000000 --- a/.changeset/devtools-feature-rename.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/angular-query-experimental': patch ---- - -Rename `DeveloperToolsFeature` to `DevtoolsFeature` for consistency with internal naming conventions and ecosystem \ No newline at end of file diff --git a/examples/angular/auto-refetching/package.json b/examples/angular/auto-refetching/package.json index a1788b0d33..86f1d5c2d7 100644 --- a/examples/angular/auto-refetching/package.json +++ b/examples/angular/auto-refetching/package.json @@ -13,7 +13,7 @@ "@angular/compiler": "^20.0.0", "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.5", + "@tanstack/angular-query-experimental": "^5.90.6", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/basic-persister/package.json b/examples/angular/basic-persister/package.json index 38ecca73fd..2e70bdaa26 100644 --- a/examples/angular/basic-persister/package.json +++ b/examples/angular/basic-persister/package.json @@ -13,7 +13,7 @@ "@angular/compiler": "^20.0.0", "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.5", + "@tanstack/angular-query-experimental": "^5.90.6", "@tanstack/angular-query-persist-client": "^5.62.12", "@tanstack/query-async-storage-persister": "^5.90.7", "rxjs": "^7.8.2", diff --git a/examples/angular/basic/package.json b/examples/angular/basic/package.json index 81dbd86833..0da9a4d1ae 100644 --- a/examples/angular/basic/package.json +++ b/examples/angular/basic/package.json @@ -13,7 +13,7 @@ "@angular/compiler": "^20.0.0", "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.5", + "@tanstack/angular-query-experimental": "^5.90.6", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/devtools-panel/package.json b/examples/angular/devtools-panel/package.json index f588f82706..f487f78e7b 100644 --- a/examples/angular/devtools-panel/package.json +++ b/examples/angular/devtools-panel/package.json @@ -14,7 +14,7 @@ "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", "@angular/router": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.5", + "@tanstack/angular-query-experimental": "^5.90.6", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/infinite-query-with-max-pages/package.json b/examples/angular/infinite-query-with-max-pages/package.json index c2afab1f76..8d0966634f 100644 --- a/examples/angular/infinite-query-with-max-pages/package.json +++ b/examples/angular/infinite-query-with-max-pages/package.json @@ -13,7 +13,7 @@ "@angular/compiler": "^20.0.0", "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.5", + "@tanstack/angular-query-experimental": "^5.90.6", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/optimistic-updates/package.json b/examples/angular/optimistic-updates/package.json index 8f8ed40ae2..88035a18b5 100644 --- a/examples/angular/optimistic-updates/package.json +++ b/examples/angular/optimistic-updates/package.json @@ -14,7 +14,7 @@ "@angular/core": "^20.0.0", "@angular/forms": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.5", + "@tanstack/angular-query-experimental": "^5.90.6", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/pagination/package.json b/examples/angular/pagination/package.json index f11613fd4e..0c50ab1cdc 100644 --- a/examples/angular/pagination/package.json +++ b/examples/angular/pagination/package.json @@ -13,7 +13,7 @@ "@angular/compiler": "^20.0.0", "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.5", + "@tanstack/angular-query-experimental": "^5.90.6", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/query-options-from-a-service/package.json b/examples/angular/query-options-from-a-service/package.json index bb54febcab..76421602b4 100644 --- a/examples/angular/query-options-from-a-service/package.json +++ b/examples/angular/query-options-from-a-service/package.json @@ -14,7 +14,7 @@ "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", "@angular/router": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.5", + "@tanstack/angular-query-experimental": "^5.90.6", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/router/package.json b/examples/angular/router/package.json index da87d1403e..139742bad0 100644 --- a/examples/angular/router/package.json +++ b/examples/angular/router/package.json @@ -14,7 +14,7 @@ "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", "@angular/router": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.5", + "@tanstack/angular-query-experimental": "^5.90.6", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/rxjs/package.json b/examples/angular/rxjs/package.json index 227e42ef71..1eea152551 100644 --- a/examples/angular/rxjs/package.json +++ b/examples/angular/rxjs/package.json @@ -14,7 +14,7 @@ "@angular/core": "^20.0.0", "@angular/forms": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.5", + "@tanstack/angular-query-experimental": "^5.90.6", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/simple/package.json b/examples/angular/simple/package.json index 13ef2fe2dd..59b7722742 100644 --- a/examples/angular/simple/package.json +++ b/examples/angular/simple/package.json @@ -13,7 +13,7 @@ "@angular/compiler": "^20.0.0", "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.5", + "@tanstack/angular-query-experimental": "^5.90.6", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/integrations/angular-cli-20/package.json b/integrations/angular-cli-20/package.json index afd0e303b5..2ae69e2854 100644 --- a/integrations/angular-cli-20/package.json +++ b/integrations/angular-cli-20/package.json @@ -14,7 +14,7 @@ "@angular/forms": "^20.0.0", "@angular/platform-browser": "^20.0.0", "@angular/router": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.5", + "@tanstack/angular-query-experimental": "^5.90.6", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.15.0" diff --git a/packages/angular-query-experimental/CHANGELOG.md b/packages/angular-query-experimental/CHANGELOG.md index 9ac6d7d709..fd61585d4d 100644 --- a/packages/angular-query-experimental/CHANGELOG.md +++ b/packages/angular-query-experimental/CHANGELOG.md @@ -1,5 +1,11 @@ # @tanstack/angular-query-experimental +## 5.90.6 + +### Patch Changes + +- Rename `DeveloperToolsFeature` to `DevtoolsFeature` for consistency with internal naming conventions and ecosystem ([#9794](https://github.com/TanStack/query/pull/9794)) + ## 5.90.5 ### Patch Changes diff --git a/packages/angular-query-experimental/package.json b/packages/angular-query-experimental/package.json index 1deb86ed8a..9fed0e5480 100644 --- a/packages/angular-query-experimental/package.json +++ b/packages/angular-query-experimental/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/angular-query-experimental", - "version": "5.90.5", + "version": "5.90.6", "description": "Signals for managing, caching and syncing asynchronous and remote data in Angular", "author": "Arnoud de Vries", "license": "MIT", From 907087fba7ef39eddca24bd733d1fcc8df86a9a3 Mon Sep 17 00:00:00 2001 From: Arnoud <6420061+arnoud-dv@users.noreply.github.com> Date: Thu, 23 Oct 2025 14:52:33 +0200 Subject: [PATCH 05/16] refactor(angular-query): make injectIsMutating signal read-only (#9801) --- .changeset/inject-is-mutating-readonly.md | 5 +++++ .../angular-query-experimental/src/inject-is-mutating.ts | 4 ++-- packages/angular-query-experimental/tsconfig.json | 7 +++++++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 .changeset/inject-is-mutating-readonly.md diff --git a/.changeset/inject-is-mutating-readonly.md b/.changeset/inject-is-mutating-readonly.md new file mode 100644 index 0000000000..ce43e97138 --- /dev/null +++ b/.changeset/inject-is-mutating-readonly.md @@ -0,0 +1,5 @@ +--- +'@tanstack/angular-query-experimental': patch +--- + +Make `injectIsMutating` signal read-only to prevent external modifications to the internal state \ No newline at end of file diff --git a/packages/angular-query-experimental/src/inject-is-mutating.ts b/packages/angular-query-experimental/src/inject-is-mutating.ts index 8f11291b0e..7bab410634 100644 --- a/packages/angular-query-experimental/src/inject-is-mutating.ts +++ b/packages/angular-query-experimental/src/inject-is-mutating.ts @@ -25,7 +25,7 @@ export interface InjectIsMutatingOptions { * Can be used for app-wide loading indicators * @param filters - The filters to apply to the query. * @param options - Additional configuration - * @returns signal with number of fetching mutations. + * @returns A read-only signal with the number of fetching mutations. */ export function injectIsMutating( filters?: MutationFilters, @@ -60,5 +60,5 @@ export function injectIsMutating( destroyRef.onDestroy(unsubscribe) - return result + return result.asReadonly() } diff --git a/packages/angular-query-experimental/tsconfig.json b/packages/angular-query-experimental/tsconfig.json index 1aea53d869..2aecb18545 100644 --- a/packages/angular-query-experimental/tsconfig.json +++ b/packages/angular-query-experimental/tsconfig.json @@ -7,6 +7,13 @@ "useDefineForClassFields": false, "target": "ES2022" }, + "angularCompilerOptions": { + "enableI18nLegacyMessageIdFormat": false, + "strictInjectionParameters": true, + "strictInputAccessModifiers": true, + "strictStandalone": true, + "strictTemplates": true + }, "include": ["src", "scripts", "test-setup.ts", "*.config.*", "package.json"], "references": [{ "path": "../query-core" }, { "path": "../query-devtools" }] } From 9d5ea11acacd2f356f751a88fa0c7d23f8379d42 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 23 Oct 2025 12:56:26 +0000 Subject: [PATCH 06/16] ci: Version Packages (#9802) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .changeset/inject-is-mutating-readonly.md | 5 ----- examples/angular/auto-refetching/package.json | 2 +- examples/angular/basic-persister/package.json | 2 +- examples/angular/basic/package.json | 2 +- examples/angular/devtools-panel/package.json | 2 +- examples/angular/infinite-query-with-max-pages/package.json | 2 +- examples/angular/optimistic-updates/package.json | 2 +- examples/angular/pagination/package.json | 2 +- examples/angular/query-options-from-a-service/package.json | 2 +- examples/angular/router/package.json | 2 +- examples/angular/rxjs/package.json | 2 +- examples/angular/simple/package.json | 2 +- integrations/angular-cli-20/package.json | 2 +- packages/angular-query-experimental/CHANGELOG.md | 6 ++++++ packages/angular-query-experimental/package.json | 2 +- 15 files changed, 19 insertions(+), 18 deletions(-) delete mode 100644 .changeset/inject-is-mutating-readonly.md diff --git a/.changeset/inject-is-mutating-readonly.md b/.changeset/inject-is-mutating-readonly.md deleted file mode 100644 index ce43e97138..0000000000 --- a/.changeset/inject-is-mutating-readonly.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/angular-query-experimental': patch ---- - -Make `injectIsMutating` signal read-only to prevent external modifications to the internal state \ No newline at end of file diff --git a/examples/angular/auto-refetching/package.json b/examples/angular/auto-refetching/package.json index 86f1d5c2d7..c8f448e397 100644 --- a/examples/angular/auto-refetching/package.json +++ b/examples/angular/auto-refetching/package.json @@ -13,7 +13,7 @@ "@angular/compiler": "^20.0.0", "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.6", + "@tanstack/angular-query-experimental": "^5.90.7", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/basic-persister/package.json b/examples/angular/basic-persister/package.json index 2e70bdaa26..7e944896cf 100644 --- a/examples/angular/basic-persister/package.json +++ b/examples/angular/basic-persister/package.json @@ -13,7 +13,7 @@ "@angular/compiler": "^20.0.0", "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.6", + "@tanstack/angular-query-experimental": "^5.90.7", "@tanstack/angular-query-persist-client": "^5.62.12", "@tanstack/query-async-storage-persister": "^5.90.7", "rxjs": "^7.8.2", diff --git a/examples/angular/basic/package.json b/examples/angular/basic/package.json index 0da9a4d1ae..d604984b8a 100644 --- a/examples/angular/basic/package.json +++ b/examples/angular/basic/package.json @@ -13,7 +13,7 @@ "@angular/compiler": "^20.0.0", "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.6", + "@tanstack/angular-query-experimental": "^5.90.7", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/devtools-panel/package.json b/examples/angular/devtools-panel/package.json index f487f78e7b..96dcd1dd63 100644 --- a/examples/angular/devtools-panel/package.json +++ b/examples/angular/devtools-panel/package.json @@ -14,7 +14,7 @@ "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", "@angular/router": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.6", + "@tanstack/angular-query-experimental": "^5.90.7", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/infinite-query-with-max-pages/package.json b/examples/angular/infinite-query-with-max-pages/package.json index 8d0966634f..1eab8f4494 100644 --- a/examples/angular/infinite-query-with-max-pages/package.json +++ b/examples/angular/infinite-query-with-max-pages/package.json @@ -13,7 +13,7 @@ "@angular/compiler": "^20.0.0", "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.6", + "@tanstack/angular-query-experimental": "^5.90.7", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/optimistic-updates/package.json b/examples/angular/optimistic-updates/package.json index 88035a18b5..1a611b4dbf 100644 --- a/examples/angular/optimistic-updates/package.json +++ b/examples/angular/optimistic-updates/package.json @@ -14,7 +14,7 @@ "@angular/core": "^20.0.0", "@angular/forms": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.6", + "@tanstack/angular-query-experimental": "^5.90.7", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/pagination/package.json b/examples/angular/pagination/package.json index 0c50ab1cdc..f664eb455e 100644 --- a/examples/angular/pagination/package.json +++ b/examples/angular/pagination/package.json @@ -13,7 +13,7 @@ "@angular/compiler": "^20.0.0", "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.6", + "@tanstack/angular-query-experimental": "^5.90.7", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/query-options-from-a-service/package.json b/examples/angular/query-options-from-a-service/package.json index 76421602b4..8c9085919f 100644 --- a/examples/angular/query-options-from-a-service/package.json +++ b/examples/angular/query-options-from-a-service/package.json @@ -14,7 +14,7 @@ "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", "@angular/router": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.6", + "@tanstack/angular-query-experimental": "^5.90.7", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/router/package.json b/examples/angular/router/package.json index 139742bad0..b49cd8c517 100644 --- a/examples/angular/router/package.json +++ b/examples/angular/router/package.json @@ -14,7 +14,7 @@ "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", "@angular/router": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.6", + "@tanstack/angular-query-experimental": "^5.90.7", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/rxjs/package.json b/examples/angular/rxjs/package.json index 1eea152551..86f1dbad05 100644 --- a/examples/angular/rxjs/package.json +++ b/examples/angular/rxjs/package.json @@ -14,7 +14,7 @@ "@angular/core": "^20.0.0", "@angular/forms": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.6", + "@tanstack/angular-query-experimental": "^5.90.7", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/simple/package.json b/examples/angular/simple/package.json index 59b7722742..cfd58f2e84 100644 --- a/examples/angular/simple/package.json +++ b/examples/angular/simple/package.json @@ -13,7 +13,7 @@ "@angular/compiler": "^20.0.0", "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.6", + "@tanstack/angular-query-experimental": "^5.90.7", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/integrations/angular-cli-20/package.json b/integrations/angular-cli-20/package.json index 2ae69e2854..65551faa3d 100644 --- a/integrations/angular-cli-20/package.json +++ b/integrations/angular-cli-20/package.json @@ -14,7 +14,7 @@ "@angular/forms": "^20.0.0", "@angular/platform-browser": "^20.0.0", "@angular/router": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.6", + "@tanstack/angular-query-experimental": "^5.90.7", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.15.0" diff --git a/packages/angular-query-experimental/CHANGELOG.md b/packages/angular-query-experimental/CHANGELOG.md index fd61585d4d..874b7bed8a 100644 --- a/packages/angular-query-experimental/CHANGELOG.md +++ b/packages/angular-query-experimental/CHANGELOG.md @@ -1,5 +1,11 @@ # @tanstack/angular-query-experimental +## 5.90.7 + +### Patch Changes + +- Make `injectIsMutating` signal read-only to prevent external modifications to the internal state ([#9801](https://github.com/TanStack/query/pull/9801)) + ## 5.90.6 ### Patch Changes diff --git a/packages/angular-query-experimental/package.json b/packages/angular-query-experimental/package.json index 9fed0e5480..75f9eaca4a 100644 --- a/packages/angular-query-experimental/package.json +++ b/packages/angular-query-experimental/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/angular-query-experimental", - "version": "5.90.6", + "version": "5.90.7", "description": "Signals for managing, caching and syncing asynchronous and remote data in Angular", "author": "Arnoud de Vries", "license": "MIT", From 6c272bd6bd87ae92edcdf09439eb42e28dbc14bf Mon Sep 17 00:00:00 2001 From: Arnoud <6420061+arnoud-dv@users.noreply.github.com> Date: Thu, 23 Oct 2025 15:50:27 +0200 Subject: [PATCH 07/16] chore(angular-query): remove jsdoc eslint rules (#9803) --- packages/angular-query-experimental/eslint.config.js | 11 ----------- packages/angular-query-experimental/package.json | 1 - .../src/__tests__/test-utils.ts | 2 -- pnpm-lock.yaml | 3 --- 4 files changed, 17 deletions(-) diff --git a/packages/angular-query-experimental/eslint.config.js b/packages/angular-query-experimental/eslint.config.js index 40b6f5f812..196f118556 100644 --- a/packages/angular-query-experimental/eslint.config.js +++ b/packages/angular-query-experimental/eslint.config.js @@ -1,20 +1,10 @@ // @ts-check -import pluginJsdoc from 'eslint-plugin-jsdoc' import vitest from '@vitest/eslint-plugin' import rootConfig from './root.eslint.config.js' export default [ ...rootConfig, - pluginJsdoc.configs['flat/recommended-typescript'], - { - rules: { - 'jsdoc/require-hyphen-before-param-description': 1, - 'jsdoc/sort-tags': 1, - 'jsdoc/require-throws': 1, - 'jsdoc/check-tag-names': ['warn'], - }, - }, { plugins: { vitest }, rules: { @@ -29,7 +19,6 @@ export default [ rules: { '@typescript-eslint/no-unnecessary-condition': 'off', '@typescript-eslint/require-await': 'off', - 'jsdoc/require-returns': 'off', }, }, ] diff --git a/packages/angular-query-experimental/package.json b/packages/angular-query-experimental/package.json index 75f9eaca4a..6026fc5986 100644 --- a/packages/angular-query-experimental/package.json +++ b/packages/angular-query-experimental/package.json @@ -95,7 +95,6 @@ "@angular/platform-browser": "^20.0.0", "@tanstack/query-test-utils": "workspace:*", "@testing-library/angular": "^18.0.0", - "eslint-plugin-jsdoc": "^50.5.0", "npm-run-all2": "^5.0.0", "rxjs": "^7.8.2", "vite-plugin-dts": "4.2.3", diff --git a/packages/angular-query-experimental/src/__tests__/test-utils.ts b/packages/angular-query-experimental/src/__tests__/test-utils.ts index a035414b0e..218cdea5f6 100644 --- a/packages/angular-query-experimental/src/__tests__/test-utils.ts +++ b/packages/angular-query-experimental/src/__tests__/test-utils.ts @@ -4,8 +4,6 @@ import { expect } from 'vitest' import type { InputSignal, Signal } from '@angular/core' import type { ComponentFixture } from '@angular/core/testing' -/* eslint jsdoc/require-jsdoc: 0, jsdoc/require-param: 0 */ - // Evaluate all signals on an object and return the result function evaluateSignals>( obj: T, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1d28801b07..a4fc9c2acf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2251,9 +2251,6 @@ importers: '@testing-library/angular': specifier: ^18.0.0 version: 18.0.0(b638270d50b9f611fb362719c9f1adf5) - eslint-plugin-jsdoc: - specifier: ^50.5.0 - version: 50.5.0(eslint@9.36.0(jiti@2.5.1)) npm-run-all2: specifier: ^5.0.0 version: 5.0.2 From 937147916be57439c626f7ec612e31056961828f Mon Sep 17 00:00:00 2001 From: Itamar Zwi Date: Fri, 24 Oct 2025 15:57:33 +0300 Subject: [PATCH 08/16] docs(examples): update queryKey to be reactive in vue files (#9807) docs(examples): update queryKey to have reactivity in vue files --- examples/vue/2.6-basic/src/Post.vue | 2 +- examples/vue/2.7-basic/src/Post.vue | 2 +- examples/vue/basic/src/Post.vue | 2 +- examples/vue/dependent-queries/src/Post.vue | 2 +- examples/vue/persister/src/Post.vue | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/vue/2.6-basic/src/Post.vue b/examples/vue/2.6-basic/src/Post.vue index 8c34d1b9c9..ba11b03b4e 100644 --- a/examples/vue/2.6-basic/src/Post.vue +++ b/examples/vue/2.6-basic/src/Post.vue @@ -20,7 +20,7 @@ export default defineComponent({ emits: ['setPostId'], setup(props) { const { isPending, isError, isFetching, data, error } = useQuery({ - queryKey: ['post', props.postId], + queryKey: ['post', () => props.postId], queryFn: () => fetcher(props.postId), }) diff --git a/examples/vue/2.7-basic/src/Post.vue b/examples/vue/2.7-basic/src/Post.vue index 2605bd64c9..ce8dc160b6 100644 --- a/examples/vue/2.7-basic/src/Post.vue +++ b/examples/vue/2.7-basic/src/Post.vue @@ -20,7 +20,7 @@ export default defineComponent({ emits: ['setPostId'], setup(props) { const { isPending, isError, isFetching, data, error } = useQuery({ - queryKey: ['post', props.postId], + queryKey: ['post', () => props.postId], queryFn: () => fetcher(props.postId), }) diff --git a/examples/vue/basic/src/Post.vue b/examples/vue/basic/src/Post.vue index 003cf2a671..2e5d0850d9 100644 --- a/examples/vue/basic/src/Post.vue +++ b/examples/vue/basic/src/Post.vue @@ -20,7 +20,7 @@ export default defineComponent({ emits: ['setPostId'], setup(props) { const { isPending, isError, isFetching, data, error } = useQuery({ - queryKey: ['post', props.postId], + queryKey: ['post', () => props.postId], queryFn: () => fetcher(props.postId), }) diff --git a/examples/vue/dependent-queries/src/Post.vue b/examples/vue/dependent-queries/src/Post.vue index ba6f251d14..48629e61d4 100644 --- a/examples/vue/dependent-queries/src/Post.vue +++ b/examples/vue/dependent-queries/src/Post.vue @@ -31,7 +31,7 @@ export default defineComponent({ data: post, error, } = useQuery({ - queryKey: ['post', props.postId], + queryKey: ['post', () => props.postId], queryFn: () => fetchPost(props.postId), }) diff --git a/examples/vue/persister/src/Post.vue b/examples/vue/persister/src/Post.vue index b89d60665c..90704be694 100644 --- a/examples/vue/persister/src/Post.vue +++ b/examples/vue/persister/src/Post.vue @@ -22,7 +22,7 @@ export default defineComponent({ emits: ['setPostId'], setup(props) { const { isPending, isError, isFetching, data, error } = useQuery({ - queryKey: ['post', props.postId] as const, + queryKey: ['post', () => props.postId] as const, queryFn: () => fetcher(props.postId), persister: experimental_createQueryPersister({ storage: { From 38b40081cedd207285ac0b4bb6818a2e84704b95 Mon Sep 17 00:00:00 2001 From: Greg Schechter Date: Fri, 24 Oct 2025 20:00:07 -0700 Subject: [PATCH 09/16] docs: Fix typo in Connect section of community-projects.md (#9777) Fix typo in Connect section of community-projects.md --- docs/framework/react/community/community-projects.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/framework/react/community/community-projects.md b/docs/framework/react/community/community-projects.md index 97e16b7a0d..7c33d0838a 100644 --- a/docs/framework/react/community/community-projects.md +++ b/docs/framework/react/community/community-projects.md @@ -27,7 +27,7 @@ Link: https://blitzjs.com/ ## Connect -A family of libraries for building building browser and gRPC-compatible HTTP APIs. +A family of libraries for building browser and gRPC-compatible HTTP APIs. Link: https://connectrpc.com/docs From 19869299765c472aef3cfd2bafc918d5d63fdbf3 Mon Sep 17 00:00:00 2001 From: Eliya Cohen Date: Thu, 30 Oct 2025 12:24:01 +0200 Subject: [PATCH 10/16] fix(eslint-plugin): validate hook import (#9828) --- .../src/__tests__/no-unstable-deps.test.ts | 28 +++++++++++++++++++ .../no-unstable-deps/no-unstable-deps.rule.ts | 5 ++-- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/packages/eslint-plugin-query/src/__tests__/no-unstable-deps.test.ts b/packages/eslint-plugin-query/src/__tests__/no-unstable-deps.test.ts index 1c97152add..b111fc0ed7 100644 --- a/packages/eslint-plugin-query/src/__tests__/no-unstable-deps.test.ts +++ b/packages/eslint-plugin-query/src/__tests__/no-unstable-deps.test.ts @@ -63,6 +63,34 @@ const baseTestCases = { } `, }, + ]) + .concat([ + { + name: `should pass when useQuery is imported from non-TanStack source and used with ${reactHookAlias}`, + code: ` + ${reactHookImport} + import { useQuery } from "./router"; + + function Component() { + const query = useQuery(); + const callback = ${reactHookInvocation}(() => { query.refetch() }, [query]); + return; + } + `, + }, + { + name: `should pass when useMutation is imported from non-TanStack source and used with ${reactHookAlias}`, + code: ` + ${reactHookImport} + import { useMutation } from "./api"; + + function Component() { + const mutation = useMutation(); + const callback = ${reactHookInvocation}(() => { mutation.mutate() }, [mutation]); + return; + } + `, + }, ]), invalid: ({ reactHookImport, diff --git a/packages/eslint-plugin-query/src/rules/no-unstable-deps/no-unstable-deps.rule.ts b/packages/eslint-plugin-query/src/rules/no-unstable-deps/no-unstable-deps.rule.ts index 7d643f4ec1..32e6846468 100644 --- a/packages/eslint-plugin-query/src/rules/no-unstable-deps/no-unstable-deps.rule.ts +++ b/packages/eslint-plugin-query/src/rules/no-unstable-deps/no-unstable-deps.rule.ts @@ -34,7 +34,7 @@ export const rule = createRule({ }, defaultOptions: [], - create: detectTanstackQueryImports((context) => { + create: detectTanstackQueryImports((context, _options, helpers) => { const trackedVariables: Record = {} const hookAliasMap: Record = {} @@ -109,7 +109,8 @@ export const rule = createRule({ node.init !== null && node.init.type === AST_NODE_TYPES.CallExpression && node.init.callee.type === AST_NODE_TYPES.Identifier && - allHookNames.includes(node.init.callee.name) + allHookNames.includes(node.init.callee.name) && + helpers.isTanstackQueryImport(node.init.callee) ) { // Special case for useQueries with combine property - it's stable if ( From 75e7ccc342ec052f000bb0139d4410bc93d6e53f Mon Sep 17 00:00:00 2001 From: PaulyBearCoding <180776718+PaulyBearCoding@users.noreply.github.com> Date: Sat, 1 Nov 2025 07:29:15 -0700 Subject: [PATCH 11/16] docs: fix escaped underscores in target attributes (#9823) Remove unnecessary backslash escapes from target="_parent" attributes in badge links. HTML attributes don't require underscore escaping. Lines modified: 10, 13, 16 Co-authored-by: PaulyBearCoding --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a03ebce019..a2d75020a1 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,13 @@
From 13855907c1176afe7854ad925bc3f84958bcee22 Mon Sep 17 00:00:00 2001 From: Dominik Dorfmeister Date: Sat, 1 Nov 2025 15:36:11 +0100 Subject: [PATCH 12/16] chore: bundle-size update to react 19.2.0 --- .github/workflows/pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index fda2527849..f712dc0f75 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -69,8 +69,8 @@ jobs: Sizes for commit ${{ env.COMMIT_SHA }}: | Branch | Bundle Size | |--------|--------| - | Main | [![](https://deno.bundlejs.com/badge?q=https://esm.sh/@tanstack/react-query/es2022/react-query.mjs&config={%22esbuild%22:{%22external%22:[%22react@^19.1.1/jsx-runtime?target=es2022%22,%22react@^19.1.1?target=es2022%22]}}&badge=detailed)](https://bundlejs.com/?q=https://esm.sh/@tanstack/react-query/es2022/react-query.mjs&config=%7B%22esbuild%22:%7B%22external%22:%5B%22react@%5E19.1.1/jsx-runtime?target=es2022%22,%22react@%5E19.1.1?target=es2022%22%5D%7D%7D) | - | This PR | [![](https://deno.bundlejs.com/badge?q=https://esm.sh/pr/@tanstack/react-query@${{ env.COMMIT_SHA }}/es2022/react-query.mjs&config={%22esbuild%22:{%22external%22:[%22react@^19.1.1/jsx-runtime?target=es2022%22,%22react@^19.1.1?target=es2022%22]}}&badge=detailed)](https://bundlejs.com/?q=https://esm.sh/pr/@tanstack/react-query@${{ env.COMMIT_SHA }}/es2022/react-query.mjs&config=%7B%22esbuild%22:%7B%22external%22:%5B%22react@%5E19.1.1/jsx-runtime?target=es2022%22,%22react@%5E19.1.1?target=es2022%22%5D%7D%7D) | + | Main | [![](https://deno.bundlejs.com/badge?q=https://esm.sh/@tanstack/react-query/es2022/react-query.mjs&config={%22esbuild%22:{%22external%22:[%22react@^19.1.1/jsx-runtime?target=es2022%22,%22react@^19.1.1?target=es2022%22]}}&badge=detailed)](https://bundlejs.com/?q=https://esm.sh/@tanstack/react-query/es2022/react-query.mjs&config=%7B%22esbuild%22:%7B%22external%22:%5B%22react@%5E19.2.0/jsx-runtime?target=es2022%22,%22react@%5E19.2.0?target=es2022%22%5D%7D%7D) | + | This PR | [![](https://deno.bundlejs.com/badge?q=https://esm.sh/pr/@tanstack/react-query@${{ env.COMMIT_SHA }}/es2022/react-query.mjs&config={%22esbuild%22:{%22external%22:[%22react@^19.1.1/jsx-runtime?target=es2022%22,%22react@^19.1.1?target=es2022%22]}}&badge=detailed)](https://bundlejs.com/?q=https://esm.sh/pr/@tanstack/react-query@${{ env.COMMIT_SHA }}/es2022/react-query.mjs&config=%7B%22esbuild%22:%7B%22external%22:%5B%22react@%5E19.2.0/jsx-runtime?target=es2022%22,%22react@%5E19.2.0?target=es2022%22%5D%7D%7D) | continue-on-error: true provenance: name: Provenance From 6ebee2ea449287ad8dc16d9ede626ce45dd91fff Mon Sep 17 00:00:00 2001 From: Birk Skyum <74932975+birkskyum@users.noreply.github.com> Date: Sat, 1 Nov 2025 15:36:32 +0100 Subject: [PATCH 13/16] =?UTF-8?q?fix(solid-query):=20enable=20experimental?= =?UTF-8?q?=5FprefetchInRender=20by=20default=20for=E2=80=A6=20(#9822)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(solid-query): enable experimental_prefetchInRender by default for solid on server * Update solid-query to enable experimental prefetch Enable experimental_prefetchInRender by default for @tanstack/solid-query. --------- Co-authored-by: Dominik Dorfmeister --- .changeset/thirty-poems-yell.md | 5 +++++ packages/solid-query/src/useBaseQuery.ts | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/thirty-poems-yell.md diff --git a/.changeset/thirty-poems-yell.md b/.changeset/thirty-poems-yell.md new file mode 100644 index 0000000000..bf275e4c09 --- /dev/null +++ b/.changeset/thirty-poems-yell.md @@ -0,0 +1,5 @@ +--- +"@tanstack/solid-query": patch +--- + +fix(solid-query): enable experimental_prefetchInRender by default for… diff --git a/packages/solid-query/src/useBaseQuery.ts b/packages/solid-query/src/useBaseQuery.ts index d312e95f38..f2dbf3a74f 100644 --- a/packages/solid-query/src/useBaseQuery.ts +++ b/packages/solid-query/src/useBaseQuery.ts @@ -132,6 +132,9 @@ export function useBaseQuery< if (isServer) { defaultOptions.retry = false defaultOptions.throwOnError = true + // Enable prefetch during render for SSR - required for createResource to work + // Without this, queries wait for effects which never run on the server + defaultOptions.experimental_prefetchInRender = true } return defaultOptions }) From 48788154e8dbe3f3e787adc413a2ab126b1dac5c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 1 Nov 2025 14:39:04 +0000 Subject: [PATCH 14/16] ci: Version Packages (#9833) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .changeset/thirty-poems-yell.md | 5 ----- examples/solid/astro/package.json | 2 +- examples/solid/basic-graphql-request/package.json | 2 +- examples/solid/basic/package.json | 2 +- examples/solid/default-query-function/package.json | 2 +- examples/solid/simple/package.json | 2 +- examples/solid/solid-start-streaming/package.json | 2 +- packages/solid-query/CHANGELOG.md | 6 ++++++ packages/solid-query/package.json | 2 +- 9 files changed, 13 insertions(+), 12 deletions(-) delete mode 100644 .changeset/thirty-poems-yell.md diff --git a/.changeset/thirty-poems-yell.md b/.changeset/thirty-poems-yell.md deleted file mode 100644 index bf275e4c09..0000000000 --- a/.changeset/thirty-poems-yell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@tanstack/solid-query": patch ---- - -fix(solid-query): enable experimental_prefetchInRender by default for… diff --git a/examples/solid/astro/package.json b/examples/solid/astro/package.json index dcc6aac23a..baf2503c2e 100644 --- a/examples/solid/astro/package.json +++ b/examples/solid/astro/package.json @@ -15,7 +15,7 @@ "@astrojs/solid-js": "^5.0.7", "@astrojs/tailwind": "^6.0.2", "@astrojs/vercel": "^8.1.3", - "@tanstack/solid-query": "^5.90.6", + "@tanstack/solid-query": "^5.90.7", "@tanstack/solid-query-devtools": "^5.90.4", "astro": "^5.5.6", "solid-js": "^1.9.7", diff --git a/examples/solid/basic-graphql-request/package.json b/examples/solid/basic-graphql-request/package.json index ef91832b80..17815871a1 100644 --- a/examples/solid/basic-graphql-request/package.json +++ b/examples/solid/basic-graphql-request/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/solid-query": "^5.90.6", + "@tanstack/solid-query": "^5.90.7", "@tanstack/solid-query-devtools": "^5.90.4", "graphql": "^16.9.0", "graphql-request": "^7.1.2", diff --git a/examples/solid/basic/package.json b/examples/solid/basic/package.json index 6c45a94334..b4a9b0c4e6 100644 --- a/examples/solid/basic/package.json +++ b/examples/solid/basic/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/solid-query": "^5.90.6", + "@tanstack/solid-query": "^5.90.7", "@tanstack/solid-query-devtools": "^5.90.4", "solid-js": "^1.9.7" }, diff --git a/examples/solid/default-query-function/package.json b/examples/solid/default-query-function/package.json index 77d44efedb..e0e55f9cd1 100644 --- a/examples/solid/default-query-function/package.json +++ b/examples/solid/default-query-function/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/solid-query": "^5.90.6", + "@tanstack/solid-query": "^5.90.7", "@tanstack/solid-query-devtools": "^5.90.4", "solid-js": "^1.9.7" }, diff --git a/examples/solid/simple/package.json b/examples/solid/simple/package.json index 76be09cd69..3cffa3f306 100644 --- a/examples/solid/simple/package.json +++ b/examples/solid/simple/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/solid-query": "^5.90.6", + "@tanstack/solid-query": "^5.90.7", "@tanstack/solid-query-devtools": "^5.90.4", "solid-js": "^1.9.7" }, diff --git a/examples/solid/solid-start-streaming/package.json b/examples/solid/solid-start-streaming/package.json index 507d2f7d40..e4f6a6bcfc 100644 --- a/examples/solid/solid-start-streaming/package.json +++ b/examples/solid/solid-start-streaming/package.json @@ -12,7 +12,7 @@ "@solidjs/meta": "^0.29.4", "@solidjs/router": "^0.15.3", "@solidjs/start": "^1.1.3", - "@tanstack/solid-query": "^5.90.6", + "@tanstack/solid-query": "^5.90.7", "@tanstack/solid-query-devtools": "^5.90.4", "solid-js": "^1.9.7", "vinxi": "^0.5.3" diff --git a/packages/solid-query/CHANGELOG.md b/packages/solid-query/CHANGELOG.md index 00bf9b7aae..244c964d46 100644 --- a/packages/solid-query/CHANGELOG.md +++ b/packages/solid-query/CHANGELOG.md @@ -1,5 +1,11 @@ # @tanstack/solid-query +## 5.90.7 + +### Patch Changes + +- fix(solid-query): enable experimental_prefetchInRender by default for… ([#9822](https://github.com/TanStack/query/pull/9822)) + ## 5.90.6 ### Patch Changes diff --git a/packages/solid-query/package.json b/packages/solid-query/package.json index 5f7630a8aa..3cd5e05787 100644 --- a/packages/solid-query/package.json +++ b/packages/solid-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-query", - "version": "5.90.6", + "version": "5.90.7", "description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid", "author": "tannerlinsley", "license": "MIT", From 1638c028df55648995d04431179904371a189772 Mon Sep 17 00:00:00 2001 From: diid <123841842+0xdiid@users.noreply.github.com> Date: Sat, 1 Nov 2025 08:48:18 -0600 Subject: [PATCH 15/16] fix(query-core): don't update dataUpdateCount when setting initial data (#9743) * fix isFetchedAfterMount * changeset * ci: apply automated fixes * call setState directly * changeset update * successState * ci: apply automated fixes * just set success state --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Dominik Dorfmeister --- .changeset/eight-webs-buy.md | 5 +++ .../query-core/src/__tests__/query.test.tsx | 43 +++++++++++++++++++ packages/query-core/src/query.ts | 23 ++++++---- 3 files changed, 62 insertions(+), 9 deletions(-) create mode 100644 .changeset/eight-webs-buy.md diff --git a/.changeset/eight-webs-buy.md b/.changeset/eight-webs-buy.md new file mode 100644 index 0000000000..d5c3d84ea8 --- /dev/null +++ b/.changeset/eight-webs-buy.md @@ -0,0 +1,5 @@ +--- +'@tanstack/query-core': patch +--- + +Fixed isFetchedAfterMount in cases where initialData is applied diff --git a/packages/query-core/src/__tests__/query.test.tsx b/packages/query-core/src/__tests__/query.test.tsx index f11bf173d3..a33bf75cfc 100644 --- a/packages/query-core/src/__tests__/query.test.tsx +++ b/packages/query-core/src/__tests__/query.test.tsx @@ -1304,4 +1304,47 @@ describe('query', () => { data: 'data1', }) }) + + test('should not increment dataUpdateCount when setting initialData on prefetched query', async () => { + const key = queryKey() + const queryFn = vi.fn().mockImplementation(() => 'fetched-data') + + // First prefetch the query (creates query without data) + queryClient.prefetchQuery({ + queryKey: key, + queryFn, + }) + + const query = queryCache.find({ queryKey: key })! + expect(query.state.data).toBeUndefined() + expect(query.state.dataUpdateCount).toBe(0) + + // Now create an observer with initialData + const observer = new QueryObserver(queryClient, { + queryKey: key, + queryFn, + initialData: 'initial-data', + }) + + // The query should now have the initial data but dataUpdateCount should still be 0 + // since this was not fetched data but initial data + expect(query.state.data).toBe('initial-data') + expect(query.state.dataUpdateCount).toBe(0) + + // Get the initial state as captured by the observer + const result = observer.getCurrentResult() + expect(result.data).toBe('initial-data') + expect(result.isFetchedAfterMount).toBe(false) // This should be false since no actual fetch occurred + + // Now trigger a refetch through the observer to simulate real-world usage + await observer.refetch() + + // After actual fetch, dataUpdateCount should increment + expect(query.state.dataUpdateCount).toBe(1) + expect(query.state.data).toBe('fetched-data') + + // And isFetchedAfterMount should now be true + const updatedResult = observer.getCurrentResult() + expect(updatedResult.isFetchedAfterMount).toBe(true) + }) }) diff --git a/packages/query-core/src/query.ts b/packages/query-core/src/query.ts index a34c8630dc..6895c156db 100644 --- a/packages/query-core/src/query.ts +++ b/packages/query-core/src/query.ts @@ -210,10 +210,9 @@ export class Query< if (this.state && this.state.data === undefined) { const defaultState = getDefaultState(this.options) if (defaultState.data !== undefined) { - this.setData(defaultState.data, { - updatedAt: defaultState.dataUpdatedAt, - manual: true, - }) + this.setState( + successState(defaultState.data, defaultState.dataUpdatedAt), + ) this.#initialState = defaultState } } @@ -635,12 +634,8 @@ export class Query< case 'success': const newState = { ...state, - data: action.data, + ...successState(action.data, action.dataUpdatedAt), dataUpdateCount: state.dataUpdateCount + 1, - dataUpdatedAt: action.dataUpdatedAt ?? Date.now(), - error: null, - isInvalidated: false, - status: 'success' as const, ...(!action.manual && { fetchStatus: 'idle' as const, fetchFailureCount: 0, @@ -710,6 +705,16 @@ export function fetchState< } as const } +function successState(data: TData | undefined, dataUpdatedAt?: number) { + return { + data, + dataUpdatedAt: dataUpdatedAt ?? Date.now(), + error: null, + isInvalidated: false, + status: 'success' as const, + } +} + function getDefaultState< TQueryFnData, TError, From c23b4a00a7f25d4d9f539ed56066ae3b4234a4bc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 1 Nov 2025 14:55:53 +0000 Subject: [PATCH 16/16] ci: Version Packages (#9834) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .changeset/eight-webs-buy.md | 5 ----- examples/angular/auto-refetching/package.json | 2 +- examples/angular/basic-persister/package.json | 6 +++--- examples/angular/basic/package.json | 2 +- examples/angular/devtools-panel/package.json | 2 +- .../angular/infinite-query-with-max-pages/package.json | 2 +- examples/angular/optimistic-updates/package.json | 2 +- examples/angular/pagination/package.json | 2 +- .../angular/query-options-from-a-service/package.json | 2 +- examples/angular/router/package.json | 2 +- examples/angular/rxjs/package.json | 2 +- examples/angular/simple/package.json | 2 +- examples/react/algolia/package.json | 2 +- examples/react/auto-refetching/package.json | 2 +- examples/react/basic-graphql-request/package.json | 2 +- examples/react/basic/package.json | 6 +++--- examples/react/chat/package.json | 2 +- examples/react/default-query-function/package.json | 2 +- examples/react/devtools-panel/package.json | 2 +- examples/react/eslint-legacy/package.json | 6 +++--- examples/react/infinite-query-with-max-pages/package.json | 2 +- examples/react/load-more-infinite-scroll/package.json | 2 +- examples/react/nextjs-app-prefetching/package.json | 2 +- examples/react/nextjs-suspense-streaming/package.json | 2 +- examples/react/nextjs/package.json | 2 +- examples/react/offline/package.json | 6 +++--- examples/react/optimistic-updates-cache/package.json | 2 +- examples/react/optimistic-updates-ui/package.json | 2 +- examples/react/pagination/package.json | 2 +- examples/react/playground/package.json | 2 +- examples/react/prefetching/package.json | 2 +- examples/react/react-native/package.json | 2 +- examples/react/react-router/package.json | 2 +- examples/react/rick-morty/package.json | 2 +- examples/react/shadow-dom/package.json | 2 +- examples/react/simple/package.json | 2 +- examples/react/star-wars/package.json | 2 +- examples/react/suspense/package.json | 2 +- examples/solid/astro/package.json | 2 +- examples/solid/basic-graphql-request/package.json | 2 +- examples/solid/basic/package.json | 2 +- examples/solid/default-query-function/package.json | 2 +- examples/solid/simple/package.json | 2 +- examples/solid/solid-start-streaming/package.json | 2 +- examples/svelte/auto-refetching/package.json | 2 +- examples/svelte/basic/package.json | 6 +++--- examples/svelte/load-more-infinite-scroll/package.json | 2 +- examples/svelte/optimistic-updates/package.json | 2 +- examples/svelte/playground/package.json | 2 +- examples/svelte/simple/package.json | 2 +- examples/svelte/ssr/package.json | 2 +- examples/svelte/star-wars/package.json | 2 +- examples/vue/basic/package.json | 2 +- examples/vue/dependent-queries/package.json | 2 +- examples/vue/persister/package.json | 8 ++++---- examples/vue/simple/package.json | 2 +- integrations/angular-cli-20/package.json | 2 +- packages/angular-query-experimental/CHANGELOG.md | 7 +++++++ packages/angular-query-experimental/package.json | 2 +- packages/angular-query-persist-client/CHANGELOG.md | 8 ++++++++ packages/angular-query-persist-client/package.json | 2 +- packages/query-async-storage-persister/CHANGELOG.md | 8 ++++++++ packages/query-async-storage-persister/package.json | 2 +- packages/query-broadcast-client-experimental/CHANGELOG.md | 7 +++++++ packages/query-broadcast-client-experimental/package.json | 2 +- packages/query-core/CHANGELOG.md | 6 ++++++ packages/query-core/package.json | 2 +- packages/query-persist-client-core/CHANGELOG.md | 7 +++++++ packages/query-persist-client-core/package.json | 2 +- packages/query-sync-storage-persister/CHANGELOG.md | 8 ++++++++ packages/query-sync-storage-persister/package.json | 2 +- packages/react-query-persist-client/CHANGELOG.md | 8 ++++++++ packages/react-query-persist-client/package.json | 2 +- packages/react-query/CHANGELOG.md | 7 +++++++ packages/react-query/package.json | 2 +- packages/solid-query-persist-client/CHANGELOG.md | 8 ++++++++ packages/solid-query-persist-client/package.json | 2 +- packages/solid-query/CHANGELOG.md | 7 +++++++ packages/solid-query/package.json | 2 +- packages/svelte-query-persist-client/CHANGELOG.md | 8 ++++++++ packages/svelte-query-persist-client/package.json | 2 +- packages/svelte-query/CHANGELOG.md | 7 +++++++ packages/svelte-query/package.json | 2 +- packages/vue-query/CHANGELOG.md | 7 +++++++ packages/vue-query/package.json | 2 +- pnpm-lock.yaml | 2 +- 86 files changed, 187 insertions(+), 89 deletions(-) delete mode 100644 .changeset/eight-webs-buy.md diff --git a/.changeset/eight-webs-buy.md b/.changeset/eight-webs-buy.md deleted file mode 100644 index d5c3d84ea8..0000000000 --- a/.changeset/eight-webs-buy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/query-core': patch ---- - -Fixed isFetchedAfterMount in cases where initialData is applied diff --git a/examples/angular/auto-refetching/package.json b/examples/angular/auto-refetching/package.json index c8f448e397..550cd54e95 100644 --- a/examples/angular/auto-refetching/package.json +++ b/examples/angular/auto-refetching/package.json @@ -13,7 +13,7 @@ "@angular/compiler": "^20.0.0", "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.7", + "@tanstack/angular-query-experimental": "^5.90.8", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/basic-persister/package.json b/examples/angular/basic-persister/package.json index 7e944896cf..18f7ea6a92 100644 --- a/examples/angular/basic-persister/package.json +++ b/examples/angular/basic-persister/package.json @@ -13,9 +13,9 @@ "@angular/compiler": "^20.0.0", "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.7", - "@tanstack/angular-query-persist-client": "^5.62.12", - "@tanstack/query-async-storage-persister": "^5.90.7", + "@tanstack/angular-query-experimental": "^5.90.8", + "@tanstack/angular-query-persist-client": "^5.62.13", + "@tanstack/query-async-storage-persister": "^5.90.8", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/basic/package.json b/examples/angular/basic/package.json index d604984b8a..0e90997d57 100644 --- a/examples/angular/basic/package.json +++ b/examples/angular/basic/package.json @@ -13,7 +13,7 @@ "@angular/compiler": "^20.0.0", "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.7", + "@tanstack/angular-query-experimental": "^5.90.8", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/devtools-panel/package.json b/examples/angular/devtools-panel/package.json index 96dcd1dd63..d40506679b 100644 --- a/examples/angular/devtools-panel/package.json +++ b/examples/angular/devtools-panel/package.json @@ -14,7 +14,7 @@ "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", "@angular/router": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.7", + "@tanstack/angular-query-experimental": "^5.90.8", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/infinite-query-with-max-pages/package.json b/examples/angular/infinite-query-with-max-pages/package.json index 1eab8f4494..51c4800b0a 100644 --- a/examples/angular/infinite-query-with-max-pages/package.json +++ b/examples/angular/infinite-query-with-max-pages/package.json @@ -13,7 +13,7 @@ "@angular/compiler": "^20.0.0", "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.7", + "@tanstack/angular-query-experimental": "^5.90.8", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/optimistic-updates/package.json b/examples/angular/optimistic-updates/package.json index 1a611b4dbf..441bb5c446 100644 --- a/examples/angular/optimistic-updates/package.json +++ b/examples/angular/optimistic-updates/package.json @@ -14,7 +14,7 @@ "@angular/core": "^20.0.0", "@angular/forms": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.7", + "@tanstack/angular-query-experimental": "^5.90.8", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/pagination/package.json b/examples/angular/pagination/package.json index f664eb455e..084bc2bf71 100644 --- a/examples/angular/pagination/package.json +++ b/examples/angular/pagination/package.json @@ -13,7 +13,7 @@ "@angular/compiler": "^20.0.0", "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.7", + "@tanstack/angular-query-experimental": "^5.90.8", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/query-options-from-a-service/package.json b/examples/angular/query-options-from-a-service/package.json index 8c9085919f..a783761f67 100644 --- a/examples/angular/query-options-from-a-service/package.json +++ b/examples/angular/query-options-from-a-service/package.json @@ -14,7 +14,7 @@ "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", "@angular/router": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.7", + "@tanstack/angular-query-experimental": "^5.90.8", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/router/package.json b/examples/angular/router/package.json index b49cd8c517..5a92edbe97 100644 --- a/examples/angular/router/package.json +++ b/examples/angular/router/package.json @@ -14,7 +14,7 @@ "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", "@angular/router": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.7", + "@tanstack/angular-query-experimental": "^5.90.8", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/rxjs/package.json b/examples/angular/rxjs/package.json index 86f1dbad05..4154be10e7 100644 --- a/examples/angular/rxjs/package.json +++ b/examples/angular/rxjs/package.json @@ -14,7 +14,7 @@ "@angular/core": "^20.0.0", "@angular/forms": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.7", + "@tanstack/angular-query-experimental": "^5.90.8", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/angular/simple/package.json b/examples/angular/simple/package.json index cfd58f2e84..ca655c8c99 100644 --- a/examples/angular/simple/package.json +++ b/examples/angular/simple/package.json @@ -13,7 +13,7 @@ "@angular/compiler": "^20.0.0", "@angular/core": "^20.0.0", "@angular/platform-browser": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.7", + "@tanstack/angular-query-experimental": "^5.90.8", "rxjs": "^7.8.2", "tslib": "^2.8.1", "zone.js": "0.15.0" diff --git a/examples/react/algolia/package.json b/examples/react/algolia/package.json index 7d09ca0bd5..b0edfced98 100644 --- a/examples/react/algolia/package.json +++ b/examples/react/algolia/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "@algolia/client-search": "5.2.1", - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "react": "^19.0.0", "react-dom": "^19.0.0" diff --git a/examples/react/auto-refetching/package.json b/examples/react/auto-refetching/package.json index f113ae3f04..e9b8cca368 100644 --- a/examples/react/auto-refetching/package.json +++ b/examples/react/auto-refetching/package.json @@ -8,7 +8,7 @@ "start": "next start" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "next": "^15.3.1", "react": "^18.2.0", diff --git a/examples/react/basic-graphql-request/package.json b/examples/react/basic-graphql-request/package.json index d24e5a37c4..42619a85d0 100644 --- a/examples/react/basic-graphql-request/package.json +++ b/examples/react/basic-graphql-request/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "graphql": "^16.9.0", "graphql-request": "^7.1.2", diff --git a/examples/react/basic/package.json b/examples/react/basic/package.json index a93d3f998a..e1ce86b64e 100644 --- a/examples/react/basic/package.json +++ b/examples/react/basic/package.json @@ -9,10 +9,10 @@ "test:eslint": "eslint ./src" }, "dependencies": { - "@tanstack/query-async-storage-persister": "^5.90.7", - "@tanstack/react-query": "^5.90.5", + "@tanstack/query-async-storage-persister": "^5.90.8", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", - "@tanstack/react-query-persist-client": "^5.90.7", + "@tanstack/react-query-persist-client": "^5.90.8", "react": "^19.0.0", "react-dom": "^19.0.0" }, diff --git a/examples/react/chat/package.json b/examples/react/chat/package.json index 147f9e209a..65520cb710 100644 --- a/examples/react/chat/package.json +++ b/examples/react/chat/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "react": "^19.0.0", "react-dom": "^19.0.0" diff --git a/examples/react/default-query-function/package.json b/examples/react/default-query-function/package.json index 770ce26652..877fd6e083 100644 --- a/examples/react/default-query-function/package.json +++ b/examples/react/default-query-function/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "react": "^19.0.0", "react-dom": "^19.0.0" diff --git a/examples/react/devtools-panel/package.json b/examples/react/devtools-panel/package.json index d29f1a861c..9d2d4c4373 100644 --- a/examples/react/devtools-panel/package.json +++ b/examples/react/devtools-panel/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "react": "^19.0.0", "react-dom": "^19.0.0" diff --git a/examples/react/eslint-legacy/package.json b/examples/react/eslint-legacy/package.json index c818254e20..114db704a7 100644 --- a/examples/react/eslint-legacy/package.json +++ b/examples/react/eslint-legacy/package.json @@ -9,10 +9,10 @@ "test:eslint": "ESLINT_USE_FLAT_CONFIG=false eslint ./src/**/*.tsx" }, "dependencies": { - "@tanstack/query-async-storage-persister": "^5.90.7", - "@tanstack/react-query": "^5.90.5", + "@tanstack/query-async-storage-persister": "^5.90.8", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", - "@tanstack/react-query-persist-client": "^5.90.7", + "@tanstack/react-query-persist-client": "^5.90.8", "react": "^19.0.0", "react-dom": "^19.0.0" }, diff --git a/examples/react/infinite-query-with-max-pages/package.json b/examples/react/infinite-query-with-max-pages/package.json index 539cf5ea8c..ec3e212d49 100644 --- a/examples/react/infinite-query-with-max-pages/package.json +++ b/examples/react/infinite-query-with-max-pages/package.json @@ -8,7 +8,7 @@ "start": "next start" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "next": "^15.3.1", "react": "^18.2.0", diff --git a/examples/react/load-more-infinite-scroll/package.json b/examples/react/load-more-infinite-scroll/package.json index fa9e933f89..4937b1cf06 100644 --- a/examples/react/load-more-infinite-scroll/package.json +++ b/examples/react/load-more-infinite-scroll/package.json @@ -8,7 +8,7 @@ "start": "next start" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "next": "^15.3.1", "react": "^18.2.0", diff --git a/examples/react/nextjs-app-prefetching/package.json b/examples/react/nextjs-app-prefetching/package.json index 6f18eba211..d6d204f766 100644 --- a/examples/react/nextjs-app-prefetching/package.json +++ b/examples/react/nextjs-app-prefetching/package.json @@ -8,7 +8,7 @@ "start": "next start" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "next": "^15.3.1", "react": "^19.0.0", diff --git a/examples/react/nextjs-suspense-streaming/package.json b/examples/react/nextjs-suspense-streaming/package.json index c75bcf2f1f..924e32d0c5 100644 --- a/examples/react/nextjs-suspense-streaming/package.json +++ b/examples/react/nextjs-suspense-streaming/package.json @@ -8,7 +8,7 @@ "start": "next start" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "@tanstack/react-query-next-experimental": "^5.90.2", "next": "^15.3.1", diff --git a/examples/react/nextjs/package.json b/examples/react/nextjs/package.json index 56eb850bd5..54a5a1803c 100644 --- a/examples/react/nextjs/package.json +++ b/examples/react/nextjs/package.json @@ -8,7 +8,7 @@ "start": "next start" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "next": "^15.3.1", "react": "^18.2.0", diff --git a/examples/react/offline/package.json b/examples/react/offline/package.json index 8ca7245912..e93c075180 100644 --- a/examples/react/offline/package.json +++ b/examples/react/offline/package.json @@ -8,11 +8,11 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/query-async-storage-persister": "^5.90.7", + "@tanstack/query-async-storage-persister": "^5.90.8", "@tanstack/react-location": "^3.7.4", - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", - "@tanstack/react-query-persist-client": "^5.90.7", + "@tanstack/react-query-persist-client": "^5.90.8", "msw": "^2.6.6", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/optimistic-updates-cache/package.json b/examples/react/optimistic-updates-cache/package.json index 1dd8c4e4b6..2c83e7e1f8 100755 --- a/examples/react/optimistic-updates-cache/package.json +++ b/examples/react/optimistic-updates-cache/package.json @@ -8,7 +8,7 @@ "start": "next start" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "next": "^15.3.1", "react": "^18.2.0", diff --git a/examples/react/optimistic-updates-ui/package.json b/examples/react/optimistic-updates-ui/package.json index fe008e23b3..de6644d775 100755 --- a/examples/react/optimistic-updates-ui/package.json +++ b/examples/react/optimistic-updates-ui/package.json @@ -8,7 +8,7 @@ "start": "next start" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "next": "^15.3.1", "react": "^18.2.0", diff --git a/examples/react/pagination/package.json b/examples/react/pagination/package.json index b69b5a4200..5caf04f2d3 100644 --- a/examples/react/pagination/package.json +++ b/examples/react/pagination/package.json @@ -8,7 +8,7 @@ "start": "next start" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "next": "^15.3.1", "react": "^18.2.0", diff --git a/examples/react/playground/package.json b/examples/react/playground/package.json index ebdee549c4..ea5af6cc68 100644 --- a/examples/react/playground/package.json +++ b/examples/react/playground/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "react": "^19.0.0", "react-dom": "^19.0.0" diff --git a/examples/react/prefetching/package.json b/examples/react/prefetching/package.json index f56c124f98..26712bcb42 100644 --- a/examples/react/prefetching/package.json +++ b/examples/react/prefetching/package.json @@ -8,7 +8,7 @@ "start": "next start" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "next": "^15.3.1", "react": "^18.2.0", diff --git a/examples/react/react-native/package.json b/examples/react/react-native/package.json index 4f612620c4..3f8b8da21c 100644 --- a/examples/react/react-native/package.json +++ b/examples/react/react-native/package.json @@ -14,7 +14,7 @@ "@react-native-community/netinfo": "^11.4.1", "@react-navigation/native": "^6.1.18", "@react-navigation/stack": "^6.4.1", - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "expo": "^52.0.11", "expo-constants": "^17.0.3", diff --git a/examples/react/react-router/package.json b/examples/react/react-router/package.json index b0fed17d7a..268a6268fc 100644 --- a/examples/react/react-router/package.json +++ b/examples/react/react-router/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "localforage": "^1.10.0", "match-sorter": "^6.3.4", diff --git a/examples/react/rick-morty/package.json b/examples/react/rick-morty/package.json index ff252995ff..93ed169996 100644 --- a/examples/react/rick-morty/package.json +++ b/examples/react/rick-morty/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/shadow-dom/package.json b/examples/react/shadow-dom/package.json index 036244ae3b..864da3fbf2 100644 --- a/examples/react/shadow-dom/package.json +++ b/examples/react/shadow-dom/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "react": "^19.0.0", "react-dom": "^19.0.0" diff --git a/examples/react/simple/package.json b/examples/react/simple/package.json index 1757a690bd..752897ee70 100644 --- a/examples/react/simple/package.json +++ b/examples/react/simple/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "react": "^19.0.0", "react-dom": "^19.0.0" diff --git a/examples/react/star-wars/package.json b/examples/react/star-wars/package.json index 56361fcc00..c3c71491d6 100644 --- a/examples/react/star-wars/package.json +++ b/examples/react/star-wars/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/suspense/package.json b/examples/react/suspense/package.json index e419851f90..a0d404fd8a 100644 --- a/examples/react/suspense/package.json +++ b/examples/react/suspense/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/react-query": "^5.90.5", + "@tanstack/react-query": "^5.90.6", "@tanstack/react-query-devtools": "^5.90.2", "font-awesome": "^4.7.0", "react": "^19.0.0", diff --git a/examples/solid/astro/package.json b/examples/solid/astro/package.json index baf2503c2e..c46e55a495 100644 --- a/examples/solid/astro/package.json +++ b/examples/solid/astro/package.json @@ -15,7 +15,7 @@ "@astrojs/solid-js": "^5.0.7", "@astrojs/tailwind": "^6.0.2", "@astrojs/vercel": "^8.1.3", - "@tanstack/solid-query": "^5.90.7", + "@tanstack/solid-query": "^5.90.8", "@tanstack/solid-query-devtools": "^5.90.4", "astro": "^5.5.6", "solid-js": "^1.9.7", diff --git a/examples/solid/basic-graphql-request/package.json b/examples/solid/basic-graphql-request/package.json index 17815871a1..52ab955b79 100644 --- a/examples/solid/basic-graphql-request/package.json +++ b/examples/solid/basic-graphql-request/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/solid-query": "^5.90.7", + "@tanstack/solid-query": "^5.90.8", "@tanstack/solid-query-devtools": "^5.90.4", "graphql": "^16.9.0", "graphql-request": "^7.1.2", diff --git a/examples/solid/basic/package.json b/examples/solid/basic/package.json index b4a9b0c4e6..25f1cfe125 100644 --- a/examples/solid/basic/package.json +++ b/examples/solid/basic/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/solid-query": "^5.90.7", + "@tanstack/solid-query": "^5.90.8", "@tanstack/solid-query-devtools": "^5.90.4", "solid-js": "^1.9.7" }, diff --git a/examples/solid/default-query-function/package.json b/examples/solid/default-query-function/package.json index e0e55f9cd1..9205cad5f9 100644 --- a/examples/solid/default-query-function/package.json +++ b/examples/solid/default-query-function/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/solid-query": "^5.90.7", + "@tanstack/solid-query": "^5.90.8", "@tanstack/solid-query-devtools": "^5.90.4", "solid-js": "^1.9.7" }, diff --git a/examples/solid/simple/package.json b/examples/solid/simple/package.json index 3cffa3f306..2d7b6b89ec 100644 --- a/examples/solid/simple/package.json +++ b/examples/solid/simple/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/solid-query": "^5.90.7", + "@tanstack/solid-query": "^5.90.8", "@tanstack/solid-query-devtools": "^5.90.4", "solid-js": "^1.9.7" }, diff --git a/examples/solid/solid-start-streaming/package.json b/examples/solid/solid-start-streaming/package.json index e4f6a6bcfc..f59fa1bf3f 100644 --- a/examples/solid/solid-start-streaming/package.json +++ b/examples/solid/solid-start-streaming/package.json @@ -12,7 +12,7 @@ "@solidjs/meta": "^0.29.4", "@solidjs/router": "^0.15.3", "@solidjs/start": "^1.1.3", - "@tanstack/solid-query": "^5.90.7", + "@tanstack/solid-query": "^5.90.8", "@tanstack/solid-query-devtools": "^5.90.4", "solid-js": "^1.9.7", "vinxi": "^0.5.3" diff --git a/examples/svelte/auto-refetching/package.json b/examples/svelte/auto-refetching/package.json index ef32b15626..4abafee98b 100644 --- a/examples/svelte/auto-refetching/package.json +++ b/examples/svelte/auto-refetching/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/svelte-query": "^6.0.3", + "@tanstack/svelte-query": "^6.0.4", "@tanstack/svelte-query-devtools": "^6.0.0" }, "devDependencies": { diff --git a/examples/svelte/basic/package.json b/examples/svelte/basic/package.json index 0c2d2e49c8..6fe4f93c64 100644 --- a/examples/svelte/basic/package.json +++ b/examples/svelte/basic/package.json @@ -8,10 +8,10 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/query-async-storage-persister": "^5.90.7", - "@tanstack/svelte-query": "^6.0.3", + "@tanstack/query-async-storage-persister": "^5.90.8", + "@tanstack/svelte-query": "^6.0.4", "@tanstack/svelte-query-devtools": "^6.0.0", - "@tanstack/svelte-query-persist-client": "^6.0.5" + "@tanstack/svelte-query-persist-client": "^6.0.6" }, "devDependencies": { "@sveltejs/adapter-auto": "^6.1.0", diff --git a/examples/svelte/load-more-infinite-scroll/package.json b/examples/svelte/load-more-infinite-scroll/package.json index 6fdf6db30f..5462ba2fb6 100644 --- a/examples/svelte/load-more-infinite-scroll/package.json +++ b/examples/svelte/load-more-infinite-scroll/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/svelte-query": "^6.0.3", + "@tanstack/svelte-query": "^6.0.4", "@tanstack/svelte-query-devtools": "^6.0.0" }, "devDependencies": { diff --git a/examples/svelte/optimistic-updates/package.json b/examples/svelte/optimistic-updates/package.json index 22232dde50..7a0660d02c 100644 --- a/examples/svelte/optimistic-updates/package.json +++ b/examples/svelte/optimistic-updates/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/svelte-query": "^6.0.3", + "@tanstack/svelte-query": "^6.0.4", "@tanstack/svelte-query-devtools": "^6.0.0" }, "devDependencies": { diff --git a/examples/svelte/playground/package.json b/examples/svelte/playground/package.json index 3cc32bf307..3ca2be349c 100644 --- a/examples/svelte/playground/package.json +++ b/examples/svelte/playground/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/svelte-query": "^6.0.3", + "@tanstack/svelte-query": "^6.0.4", "@tanstack/svelte-query-devtools": "^6.0.0" }, "devDependencies": { diff --git a/examples/svelte/simple/package.json b/examples/svelte/simple/package.json index e7121748da..4cc6cb2fc2 100644 --- a/examples/svelte/simple/package.json +++ b/examples/svelte/simple/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/svelte-query": "^6.0.3", + "@tanstack/svelte-query": "^6.0.4", "@tanstack/svelte-query-devtools": "^6.0.0" }, "devDependencies": { diff --git a/examples/svelte/ssr/package.json b/examples/svelte/ssr/package.json index a8b0d6cba7..03e313161e 100644 --- a/examples/svelte/ssr/package.json +++ b/examples/svelte/ssr/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/svelte-query": "^6.0.3", + "@tanstack/svelte-query": "^6.0.4", "@tanstack/svelte-query-devtools": "^6.0.0" }, "devDependencies": { diff --git a/examples/svelte/star-wars/package.json b/examples/svelte/star-wars/package.json index 2bb8714011..ba9aa6f76a 100644 --- a/examples/svelte/star-wars/package.json +++ b/examples/svelte/star-wars/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/svelte-query": "^6.0.3", + "@tanstack/svelte-query": "^6.0.4", "@tanstack/svelte-query-devtools": "^6.0.0" }, "devDependencies": { diff --git a/examples/vue/basic/package.json b/examples/vue/basic/package.json index d297e4a4fa..2d434681f0 100644 --- a/examples/vue/basic/package.json +++ b/examples/vue/basic/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/vue-query": "^5.90.5", + "@tanstack/vue-query": "^5.90.6", "@tanstack/vue-query-devtools": "^5.91.0", "vue": "^3.4.27" }, diff --git a/examples/vue/dependent-queries/package.json b/examples/vue/dependent-queries/package.json index 680dba5282..fc2e3e74b3 100644 --- a/examples/vue/dependent-queries/package.json +++ b/examples/vue/dependent-queries/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/vue-query": "^5.90.5", + "@tanstack/vue-query": "^5.90.6", "vue": "^3.4.27" }, "devDependencies": { diff --git a/examples/vue/persister/package.json b/examples/vue/persister/package.json index 63b5161fa8..8cf5dbabb0 100644 --- a/examples/vue/persister/package.json +++ b/examples/vue/persister/package.json @@ -8,10 +8,10 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/query-core": "^5.90.5", - "@tanstack/query-persist-client-core": "^5.91.4", - "@tanstack/query-sync-storage-persister": "^5.90.7", - "@tanstack/vue-query": "^5.90.5", + "@tanstack/query-core": "^5.90.6", + "@tanstack/query-persist-client-core": "^5.91.5", + "@tanstack/query-sync-storage-persister": "^5.90.8", + "@tanstack/vue-query": "^5.90.6", "idb-keyval": "^6.2.1", "vue": "^3.4.27" }, diff --git a/examples/vue/simple/package.json b/examples/vue/simple/package.json index 480373e7e1..4c1f124a5e 100644 --- a/examples/vue/simple/package.json +++ b/examples/vue/simple/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/vue-query": "^5.90.5", + "@tanstack/vue-query": "^5.90.6", "@tanstack/vue-query-devtools": "^5.91.0", "vue": "^3.4.27" }, diff --git a/integrations/angular-cli-20/package.json b/integrations/angular-cli-20/package.json index 65551faa3d..cceebace1b 100644 --- a/integrations/angular-cli-20/package.json +++ b/integrations/angular-cli-20/package.json @@ -14,7 +14,7 @@ "@angular/forms": "^20.0.0", "@angular/platform-browser": "^20.0.0", "@angular/router": "^20.0.0", - "@tanstack/angular-query-experimental": "^5.90.7", + "@tanstack/angular-query-experimental": "^5.90.8", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.15.0" diff --git a/packages/angular-query-experimental/CHANGELOG.md b/packages/angular-query-experimental/CHANGELOG.md index 874b7bed8a..72539e06bd 100644 --- a/packages/angular-query-experimental/CHANGELOG.md +++ b/packages/angular-query-experimental/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/angular-query-experimental +## 5.90.8 + +### Patch Changes + +- Updated dependencies [[`1638c02`](https://github.com/TanStack/query/commit/1638c028df55648995d04431179904371a189772)]: + - @tanstack/query-core@5.90.6 + ## 5.90.7 ### Patch Changes diff --git a/packages/angular-query-experimental/package.json b/packages/angular-query-experimental/package.json index 6026fc5986..252fab20b7 100644 --- a/packages/angular-query-experimental/package.json +++ b/packages/angular-query-experimental/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/angular-query-experimental", - "version": "5.90.7", + "version": "5.90.8", "description": "Signals for managing, caching and syncing asynchronous and remote data in Angular", "author": "Arnoud de Vries", "license": "MIT", diff --git a/packages/angular-query-persist-client/CHANGELOG.md b/packages/angular-query-persist-client/CHANGELOG.md index 0aa1edd7bd..58ca51050a 100644 --- a/packages/angular-query-persist-client/CHANGELOG.md +++ b/packages/angular-query-persist-client/CHANGELOG.md @@ -1,5 +1,13 @@ # @tanstack/angular-query-persist-client +## 5.62.13 + +### Patch Changes + +- Updated dependencies []: + - @tanstack/angular-query-experimental@5.90.8 + - @tanstack/query-persist-client-core@5.91.5 + ## 5.62.12 ### Patch Changes diff --git a/packages/angular-query-persist-client/package.json b/packages/angular-query-persist-client/package.json index e5f3a0de5d..0086cd7167 100644 --- a/packages/angular-query-persist-client/package.json +++ b/packages/angular-query-persist-client/package.json @@ -1,7 +1,7 @@ { "name": "@tanstack/angular-query-persist-client", "private": true, - "version": "5.62.12", + "version": "5.62.13", "description": "Angular bindings to work with persisters in TanStack/angular-query", "author": "Omer Gronich", "license": "MIT", diff --git a/packages/query-async-storage-persister/CHANGELOG.md b/packages/query-async-storage-persister/CHANGELOG.md index 98c4ef43c5..b41d121b15 100644 --- a/packages/query-async-storage-persister/CHANGELOG.md +++ b/packages/query-async-storage-persister/CHANGELOG.md @@ -1,5 +1,13 @@ # @tanstack/query-async-storage-persister +## 5.90.8 + +### Patch Changes + +- Updated dependencies [[`1638c02`](https://github.com/TanStack/query/commit/1638c028df55648995d04431179904371a189772)]: + - @tanstack/query-core@5.90.6 + - @tanstack/query-persist-client-core@5.91.5 + ## 5.90.7 ### Patch Changes diff --git a/packages/query-async-storage-persister/package.json b/packages/query-async-storage-persister/package.json index 92739041a6..e4ed25a597 100644 --- a/packages/query-async-storage-persister/package.json +++ b/packages/query-async-storage-persister/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/query-async-storage-persister", - "version": "5.90.7", + "version": "5.90.8", "description": "A persister for asynchronous storages, to be used with TanStack/Query", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/query-broadcast-client-experimental/CHANGELOG.md b/packages/query-broadcast-client-experimental/CHANGELOG.md index 9b0aaebed1..fccdbc3b20 100644 --- a/packages/query-broadcast-client-experimental/CHANGELOG.md +++ b/packages/query-broadcast-client-experimental/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/query-broadcast-client-experimental +## 5.90.6 + +### Patch Changes + +- Updated dependencies [[`1638c02`](https://github.com/TanStack/query/commit/1638c028df55648995d04431179904371a189772)]: + - @tanstack/query-core@5.90.6 + ## 5.90.5 ### Patch Changes diff --git a/packages/query-broadcast-client-experimental/package.json b/packages/query-broadcast-client-experimental/package.json index 136a965fdf..1b01345422 100644 --- a/packages/query-broadcast-client-experimental/package.json +++ b/packages/query-broadcast-client-experimental/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/query-broadcast-client-experimental", - "version": "5.90.5", + "version": "5.90.6", "description": "An experimental plugin to for broadcasting the state of your queryClient between browser tabs/windows", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/query-core/CHANGELOG.md b/packages/query-core/CHANGELOG.md index 3f02b9efd9..9a321d215e 100644 --- a/packages/query-core/CHANGELOG.md +++ b/packages/query-core/CHANGELOG.md @@ -1,5 +1,11 @@ # @tanstack/query-core +## 5.90.6 + +### Patch Changes + +- Fixed isFetchedAfterMount in cases where initialData is applied ([#9743](https://github.com/TanStack/query/pull/9743)) + ## 5.90.5 ### Patch Changes diff --git a/packages/query-core/package.json b/packages/query-core/package.json index 8472f453ba..618e53a2dd 100644 --- a/packages/query-core/package.json +++ b/packages/query-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/query-core", - "version": "5.90.5", + "version": "5.90.6", "description": "The framework agnostic core that powers TanStack Query", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/query-persist-client-core/CHANGELOG.md b/packages/query-persist-client-core/CHANGELOG.md index 22bbb570a4..5c586da268 100644 --- a/packages/query-persist-client-core/CHANGELOG.md +++ b/packages/query-persist-client-core/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/query-persist-client-core +## 5.91.5 + +### Patch Changes + +- Updated dependencies [[`1638c02`](https://github.com/TanStack/query/commit/1638c028df55648995d04431179904371a189772)]: + - @tanstack/query-core@5.90.6 + ## 5.91.4 ### Patch Changes diff --git a/packages/query-persist-client-core/package.json b/packages/query-persist-client-core/package.json index 505ea8c008..86cd5365c7 100644 --- a/packages/query-persist-client-core/package.json +++ b/packages/query-persist-client-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/query-persist-client-core", - "version": "5.91.4", + "version": "5.91.5", "description": "Set of utilities for interacting with persisters, which can save your queryClient for later use", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/query-sync-storage-persister/CHANGELOG.md b/packages/query-sync-storage-persister/CHANGELOG.md index eccc25f194..70f82145a9 100644 --- a/packages/query-sync-storage-persister/CHANGELOG.md +++ b/packages/query-sync-storage-persister/CHANGELOG.md @@ -1,5 +1,13 @@ # @tanstack/query-sync-storage-persister +## 5.90.8 + +### Patch Changes + +- Updated dependencies [[`1638c02`](https://github.com/TanStack/query/commit/1638c028df55648995d04431179904371a189772)]: + - @tanstack/query-core@5.90.6 + - @tanstack/query-persist-client-core@5.91.5 + ## 5.90.7 ### Patch Changes diff --git a/packages/query-sync-storage-persister/package.json b/packages/query-sync-storage-persister/package.json index 6939c8b759..964e27f487 100644 --- a/packages/query-sync-storage-persister/package.json +++ b/packages/query-sync-storage-persister/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/query-sync-storage-persister", - "version": "5.90.7", + "version": "5.90.8", "description": "A persister for synchronous storages, to be used with TanStack/Query", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/react-query-persist-client/CHANGELOG.md b/packages/react-query-persist-client/CHANGELOG.md index bf2e67ed6d..913213c756 100644 --- a/packages/react-query-persist-client/CHANGELOG.md +++ b/packages/react-query-persist-client/CHANGELOG.md @@ -1,5 +1,13 @@ # @tanstack/react-query-persist-client +## 5.90.8 + +### Patch Changes + +- Updated dependencies []: + - @tanstack/query-persist-client-core@5.91.5 + - @tanstack/react-query@5.90.6 + ## 5.90.7 ### Patch Changes diff --git a/packages/react-query-persist-client/package.json b/packages/react-query-persist-client/package.json index be194a81ef..94a9df64a7 100644 --- a/packages/react-query-persist-client/package.json +++ b/packages/react-query-persist-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-query-persist-client", - "version": "5.90.7", + "version": "5.90.8", "description": "React bindings to work with persisters in TanStack/react-query", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/react-query/CHANGELOG.md b/packages/react-query/CHANGELOG.md index 39c723072e..6fc01c488e 100644 --- a/packages/react-query/CHANGELOG.md +++ b/packages/react-query/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/react-query +## 5.90.6 + +### Patch Changes + +- Updated dependencies [[`1638c02`](https://github.com/TanStack/query/commit/1638c028df55648995d04431179904371a189772)]: + - @tanstack/query-core@5.90.6 + ## 5.90.5 ### Patch Changes diff --git a/packages/react-query/package.json b/packages/react-query/package.json index 5222c77f83..c211309a56 100644 --- a/packages/react-query/package.json +++ b/packages/react-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-query", - "version": "5.90.5", + "version": "5.90.6", "description": "Hooks for managing, caching and syncing asynchronous and remote data in React", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/solid-query-persist-client/CHANGELOG.md b/packages/solid-query-persist-client/CHANGELOG.md index ed03192ca4..ca9cb3ccb6 100644 --- a/packages/solid-query-persist-client/CHANGELOG.md +++ b/packages/solid-query-persist-client/CHANGELOG.md @@ -1,5 +1,13 @@ # @tanstack/solid-query-persist-client +## 5.90.9 + +### Patch Changes + +- Updated dependencies []: + - @tanstack/query-persist-client-core@5.91.5 + - @tanstack/solid-query@5.90.8 + ## 5.90.8 ### Patch Changes diff --git a/packages/solid-query-persist-client/package.json b/packages/solid-query-persist-client/package.json index 8b76039d0a..ac192b5c4d 100644 --- a/packages/solid-query-persist-client/package.json +++ b/packages/solid-query-persist-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-query-persist-client", - "version": "5.90.8", + "version": "5.90.9", "description": "Solid.js bindings to work with persisters in TanStack/solid-query", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/solid-query/CHANGELOG.md b/packages/solid-query/CHANGELOG.md index 244c964d46..ae13b9991f 100644 --- a/packages/solid-query/CHANGELOG.md +++ b/packages/solid-query/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/solid-query +## 5.90.8 + +### Patch Changes + +- Updated dependencies [[`1638c02`](https://github.com/TanStack/query/commit/1638c028df55648995d04431179904371a189772)]: + - @tanstack/query-core@5.90.6 + ## 5.90.7 ### Patch Changes diff --git a/packages/solid-query/package.json b/packages/solid-query/package.json index 3cd5e05787..2f5439eae4 100644 --- a/packages/solid-query/package.json +++ b/packages/solid-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-query", - "version": "5.90.7", + "version": "5.90.8", "description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/svelte-query-persist-client/CHANGELOG.md b/packages/svelte-query-persist-client/CHANGELOG.md index 796ceb4c33..1b554cf6b6 100644 --- a/packages/svelte-query-persist-client/CHANGELOG.md +++ b/packages/svelte-query-persist-client/CHANGELOG.md @@ -1,5 +1,13 @@ # @tanstack/svelte-query-persist-client +## 6.0.6 + +### Patch Changes + +- Updated dependencies []: + - @tanstack/query-persist-client-core@5.91.5 + - @tanstack/svelte-query@6.0.4 + ## 6.0.5 ### Patch Changes diff --git a/packages/svelte-query-persist-client/package.json b/packages/svelte-query-persist-client/package.json index 1aa716807d..0fad61ee3a 100644 --- a/packages/svelte-query-persist-client/package.json +++ b/packages/svelte-query-persist-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/svelte-query-persist-client", - "version": "6.0.5", + "version": "6.0.6", "description": "Svelte bindings to work with persisters in TanStack/svelte-query", "author": "Lachlan Collins", "license": "MIT", diff --git a/packages/svelte-query/CHANGELOG.md b/packages/svelte-query/CHANGELOG.md index 6224e3e318..31d3ec291f 100644 --- a/packages/svelte-query/CHANGELOG.md +++ b/packages/svelte-query/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/svelte-query +## 6.0.4 + +### Patch Changes + +- Updated dependencies [[`1638c02`](https://github.com/TanStack/query/commit/1638c028df55648995d04431179904371a189772)]: + - @tanstack/query-core@5.90.6 + ## 6.0.3 ### Patch Changes diff --git a/packages/svelte-query/package.json b/packages/svelte-query/package.json index c898ddcc78..b36be29687 100644 --- a/packages/svelte-query/package.json +++ b/packages/svelte-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/svelte-query", - "version": "6.0.3", + "version": "6.0.4", "description": "Primitives for managing, caching and syncing asynchronous and remote data in Svelte", "author": "Lachlan Collins", "license": "MIT", diff --git a/packages/vue-query/CHANGELOG.md b/packages/vue-query/CHANGELOG.md index 0b24ff969f..db5fd4585e 100644 --- a/packages/vue-query/CHANGELOG.md +++ b/packages/vue-query/CHANGELOG.md @@ -1,5 +1,12 @@ # @tanstack/vue-query +## 5.90.6 + +### Patch Changes + +- Updated dependencies [[`1638c02`](https://github.com/TanStack/query/commit/1638c028df55648995d04431179904371a189772)]: + - @tanstack/query-core@5.90.6 + ## 5.90.5 ### Patch Changes diff --git a/packages/vue-query/package.json b/packages/vue-query/package.json index b7c1ff136e..07ebe8821a 100644 --- a/packages/vue-query/package.json +++ b/packages/vue-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/vue-query", - "version": "5.90.5", + "version": "5.90.6", "description": "Hooks for managing, caching and syncing asynchronous and remote data in Vue", "author": "Damian Osipiuk", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a4fc9c2acf..80fa52d8a6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -250,7 +250,7 @@ importers: specifier: workspace:* version: link:../../../packages/angular-query-experimental '@tanstack/angular-query-persist-client': - specifier: ^5.62.12 + specifier: ^5.62.13 version: link:../../../packages/angular-query-persist-client '@tanstack/query-async-storage-persister': specifier: workspace:*