@tanstack/vue-query 5.51.1 → 5.51.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/legacy/index.cjs.map +1 -1
- package/build/legacy/index.d.cts +1 -1
- package/build/legacy/index.d.ts +1 -1
- package/build/legacy/index.js.map +1 -1
- package/build/legacy/infiniteQueryOptions.d.cts +1 -1
- package/build/legacy/infiniteQueryOptions.d.ts +1 -1
- package/build/legacy/queryOptions.d.cts +1 -1
- package/build/legacy/queryOptions.d.ts +1 -1
- package/build/legacy/useBaseQuery.d.cts +1 -1
- package/build/legacy/useBaseQuery.d.ts +1 -1
- package/build/legacy/useInfiniteQuery.d.cts +1 -1
- package/build/legacy/useInfiniteQuery.d.ts +1 -1
- package/build/legacy/useQueries.d.cts +1 -1
- package/build/legacy/useQueries.d.ts +1 -1
- package/build/legacy/{useQuery-DyulwJ8i.d.cts → useQuery-COgIjrX4.d.cts} +1 -1
- package/build/legacy/{useQuery-JLP2sK49.d.ts → useQuery-ClcdoQsm.d.ts} +1 -1
- package/build/legacy/useQuery.d.cts +1 -1
- package/build/legacy/useQuery.d.ts +1 -1
- package/build/modern/index.cjs.map +1 -1
- package/build/modern/index.d.cts +1 -1
- package/build/modern/index.d.ts +1 -1
- package/build/modern/index.js.map +1 -1
- package/build/modern/infiniteQueryOptions.d.cts +1 -1
- package/build/modern/infiniteQueryOptions.d.ts +1 -1
- package/build/modern/queryOptions.d.cts +1 -1
- package/build/modern/queryOptions.d.ts +1 -1
- package/build/modern/useBaseQuery.d.cts +1 -1
- package/build/modern/useBaseQuery.d.ts +1 -1
- package/build/modern/useInfiniteQuery.d.cts +1 -1
- package/build/modern/useInfiniteQuery.d.ts +1 -1
- package/build/modern/useQueries.d.cts +1 -1
- package/build/modern/useQueries.d.ts +1 -1
- package/build/modern/{useQuery-DyulwJ8i.d.cts → useQuery-COgIjrX4.d.cts} +1 -1
- package/build/modern/{useQuery-JLP2sK49.d.ts → useQuery-ClcdoQsm.d.ts} +1 -1
- package/build/modern/useQuery.d.cts +1 -1
- package/build/modern/useQuery.d.ts +1 -1
- package/package.json +3 -3
- package/src/__mocks__/useBaseQuery.ts +2 -1
- package/src/__mocks__/useQueryClient.ts +1 -1
- package/src/__tests__/vueQueryPlugin.test.ts +1 -1
- package/src/index.ts +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@tanstack/query-core'\n\nexport { useQueryClient } from './useQueryClient'\nexport { VueQueryPlugin } from './vueQueryPlugin'\n\nexport { QueryClient } from './queryClient'\nexport { QueryCache } from './queryCache'\nexport { queryOptions } from './queryOptions'\nexport { infiniteQueryOptions } from './infiniteQueryOptions'\nexport type {\n DefinedInitialDataInfiniteOptions,\n UndefinedInitialDataInfiniteOptions,\n} from './infiniteQueryOptions'\nexport { MutationCache } from './mutationCache'\nexport { useQuery } from './useQuery'\nexport { useQueries } from './useQueries'\nexport { useInfiniteQuery } from './useInfiniteQuery'\nexport { useMutation } from './useMutation'\nexport { useIsFetching } from './useIsFetching'\nexport { useIsMutating, useMutationState } from './useMutationState'\nexport { VUE_QUERY_CLIENT } from './utils'\n\nexport type {\n UseQueryOptions,\n UseQueryReturnType,\n UseQueryDefinedReturnType,\n} from './useQuery'\nexport type {\n UseInfiniteQueryOptions,\n UseInfiniteQueryReturnType,\n} from './useInfiniteQuery'\nexport type { UseMutationOptions, UseMutationReturnType } from './useMutation'\nexport type { UseQueriesOptions, UseQueriesResults } from './useQueries'\nexport type { MutationFilters, MutationStateOptions } from './useMutationState'\nexport type { QueryFilters } from './useIsFetching'\nexport type { VueQueryPluginOptions } from './vueQueryPlugin'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAc,iCAAd;AAEA,4BAA+B;AAC/B,4BAA+B;AAE/B,yBAA4B;AAC5B,wBAA2B;AAC3B,0BAA6B;AAC7B,kCAAqC;AAKrC,2BAA8B;AAC9B,sBAAyB;AACzB,wBAA2B;AAC3B,8BAAiC;AACjC,yBAA4B;AAC5B,2BAA8B;AAC9B,8BAAgD;AAChD,mBAAiC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@tanstack/query-core'\n\nexport { useQueryClient } from './useQueryClient'\nexport { VueQueryPlugin } from './vueQueryPlugin'\n\nexport { QueryClient } from './queryClient'\nexport { QueryCache } from './queryCache'\nexport { queryOptions } from './queryOptions'\nexport { infiniteQueryOptions } from './infiniteQueryOptions'\nexport type {\n DefinedInitialDataInfiniteOptions,\n UndefinedInitialDataInfiniteOptions,\n} from './infiniteQueryOptions'\nexport { MutationCache } from './mutationCache'\nexport { useQuery } from './useQuery'\nexport { useQueries } from './useQueries'\nexport { useInfiniteQuery } from './useInfiniteQuery'\nexport { useMutation } from './useMutation'\nexport { useIsFetching } from './useIsFetching'\nexport { useIsMutating, useMutationState } from './useMutationState'\nexport { VUE_QUERY_CLIENT } from './utils'\n\nexport type {\n UseQueryOptions,\n UseQueryReturnType,\n UseQueryDefinedReturnType,\n UndefinedInitialQueryOptions,\n DefinedInitialQueryOptions,\n} from './useQuery'\nexport type {\n UseInfiniteQueryOptions,\n UseInfiniteQueryReturnType,\n} from './useInfiniteQuery'\nexport type { UseMutationOptions, UseMutationReturnType } from './useMutation'\nexport type { UseQueriesOptions, UseQueriesResults } from './useQueries'\nexport type { MutationFilters, MutationStateOptions } from './useMutationState'\nexport type { QueryFilters } from './useIsFetching'\nexport type { VueQueryPluginOptions } from './vueQueryPlugin'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAc,iCAAd;AAEA,4BAA+B;AAC/B,4BAA+B;AAE/B,yBAA4B;AAC5B,wBAA2B;AAC3B,0BAA6B;AAC7B,kCAAqC;AAKrC,2BAA8B;AAC9B,sBAAyB;AACzB,wBAA2B;AAC3B,8BAAiC;AACjC,yBAA4B;AAC5B,2BAA8B;AAC9B,8BAAgD;AAChD,mBAAiC;","names":[]}
|
package/build/legacy/index.d.cts
CHANGED
|
@@ -6,7 +6,7 @@ export { QueryCache } from './queryCache.cjs';
|
|
|
6
6
|
export { queryOptions } from './queryOptions.cjs';
|
|
7
7
|
export { DefinedInitialDataInfiniteOptions, UndefinedInitialDataInfiniteOptions, infiniteQueryOptions } from './infiniteQueryOptions.cjs';
|
|
8
8
|
export { MutationCache } from './mutationCache.cjs';
|
|
9
|
-
export { d as
|
|
9
|
+
export { D as DefinedInitialQueryOptions, d as UndefinedInitialQueryOptions, e as UseInfiniteQueryOptions, f as UseInfiniteQueryReturnType, c as UseQueryDefinedReturnType, U as UseQueryOptions, b as UseQueryReturnType, a as useInfiniteQuery, u as useQuery } from './useQuery-COgIjrX4.cjs';
|
|
10
10
|
export { UseQueriesOptions, UseQueriesResults, useQueries } from './useQueries.cjs';
|
|
11
11
|
export { UseMutationOptions, UseMutationReturnType, useMutation } from './useMutation.cjs';
|
|
12
12
|
export { QueryFilters, useIsFetching } from './useIsFetching.cjs';
|
package/build/legacy/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { QueryCache } from './queryCache.js';
|
|
|
6
6
|
export { queryOptions } from './queryOptions.js';
|
|
7
7
|
export { DefinedInitialDataInfiniteOptions, UndefinedInitialDataInfiniteOptions, infiniteQueryOptions } from './infiniteQueryOptions.js';
|
|
8
8
|
export { MutationCache } from './mutationCache.js';
|
|
9
|
-
export { d as
|
|
9
|
+
export { D as DefinedInitialQueryOptions, d as UndefinedInitialQueryOptions, e as UseInfiniteQueryOptions, f as UseInfiniteQueryReturnType, c as UseQueryDefinedReturnType, U as UseQueryOptions, b as UseQueryReturnType, a as useInfiniteQuery, u as useQuery } from './useQuery-ClcdoQsm.js';
|
|
10
10
|
export { UseQueriesOptions, UseQueriesResults, useQueries } from './useQueries.js';
|
|
11
11
|
export { UseMutationOptions, UseMutationReturnType, useMutation } from './useMutation.js';
|
|
12
12
|
export { QueryFilters, useIsFetching } from './useIsFetching.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@tanstack/query-core'\n\nexport { useQueryClient } from './useQueryClient'\nexport { VueQueryPlugin } from './vueQueryPlugin'\n\nexport { QueryClient } from './queryClient'\nexport { QueryCache } from './queryCache'\nexport { queryOptions } from './queryOptions'\nexport { infiniteQueryOptions } from './infiniteQueryOptions'\nexport type {\n DefinedInitialDataInfiniteOptions,\n UndefinedInitialDataInfiniteOptions,\n} from './infiniteQueryOptions'\nexport { MutationCache } from './mutationCache'\nexport { useQuery } from './useQuery'\nexport { useQueries } from './useQueries'\nexport { useInfiniteQuery } from './useInfiniteQuery'\nexport { useMutation } from './useMutation'\nexport { useIsFetching } from './useIsFetching'\nexport { useIsMutating, useMutationState } from './useMutationState'\nexport { VUE_QUERY_CLIENT } from './utils'\n\nexport type {\n UseQueryOptions,\n UseQueryReturnType,\n UseQueryDefinedReturnType,\n} from './useQuery'\nexport type {\n UseInfiniteQueryOptions,\n UseInfiniteQueryReturnType,\n} from './useInfiniteQuery'\nexport type { UseMutationOptions, UseMutationReturnType } from './useMutation'\nexport type { UseQueriesOptions, UseQueriesResults } from './useQueries'\nexport type { MutationFilters, MutationStateOptions } from './useMutationState'\nexport type { QueryFilters } from './useIsFetching'\nexport type { VueQueryPluginOptions } from './vueQueryPlugin'\n"],"mappings":";AAAA,cAAc;AAEd,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAE/B,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,4BAA4B;AAKrC,SAAS,qBAAqB;AAC9B,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAC3B,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,qBAAqB;AAC9B,SAAS,eAAe,wBAAwB;AAChD,SAAS,wBAAwB;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@tanstack/query-core'\n\nexport { useQueryClient } from './useQueryClient'\nexport { VueQueryPlugin } from './vueQueryPlugin'\n\nexport { QueryClient } from './queryClient'\nexport { QueryCache } from './queryCache'\nexport { queryOptions } from './queryOptions'\nexport { infiniteQueryOptions } from './infiniteQueryOptions'\nexport type {\n DefinedInitialDataInfiniteOptions,\n UndefinedInitialDataInfiniteOptions,\n} from './infiniteQueryOptions'\nexport { MutationCache } from './mutationCache'\nexport { useQuery } from './useQuery'\nexport { useQueries } from './useQueries'\nexport { useInfiniteQuery } from './useInfiniteQuery'\nexport { useMutation } from './useMutation'\nexport { useIsFetching } from './useIsFetching'\nexport { useIsMutating, useMutationState } from './useMutationState'\nexport { VUE_QUERY_CLIENT } from './utils'\n\nexport type {\n UseQueryOptions,\n UseQueryReturnType,\n UseQueryDefinedReturnType,\n UndefinedInitialQueryOptions,\n DefinedInitialQueryOptions,\n} from './useQuery'\nexport type {\n UseInfiniteQueryOptions,\n UseInfiniteQueryReturnType,\n} from './useInfiniteQuery'\nexport type { UseMutationOptions, UseMutationReturnType } from './useMutation'\nexport type { UseQueriesOptions, UseQueriesResults } from './useQueries'\nexport type { MutationFilters, MutationStateOptions } from './useMutationState'\nexport type { QueryFilters } from './useIsFetching'\nexport type { VueQueryPluginOptions } from './vueQueryPlugin'\n"],"mappings":";AAAA,cAAc;AAEd,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAE/B,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,4BAA4B;AAKrC,SAAS,qBAAqB;AAC9B,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAC3B,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,qBAAqB;AAC9B,SAAS,eAAe,wBAAwB;AAChD,SAAS,wBAAwB;","names":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultError, InfiniteData, QueryKey, DataTag } from '@tanstack/query-core';
|
|
2
|
-
import {
|
|
2
|
+
import { e as UseInfiniteQueryOptions } from './useQuery-COgIjrX4.cjs';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './queryClient.cjs';
|
|
5
5
|
import './types.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultError, InfiniteData, QueryKey, DataTag } from '@tanstack/query-core';
|
|
2
|
-
import {
|
|
2
|
+
import { e as UseInfiniteQueryOptions } from './useQuery-ClcdoQsm.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './queryClient.js';
|
|
5
5
|
import './types.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultError, QueryKey, DataTag } from '@tanstack/query-core';
|
|
2
|
-
import {
|
|
2
|
+
import { d as UndefinedInitialQueryOptions, D as DefinedInitialQueryOptions } from './useQuery-COgIjrX4.cjs';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './queryClient.cjs';
|
|
5
5
|
import './types.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultError, QueryKey, DataTag } from '@tanstack/query-core';
|
|
2
|
-
import {
|
|
2
|
+
import { d as UndefinedInitialQueryOptions, D as DefinedInitialQueryOptions } from './useQuery-ClcdoQsm.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './queryClient.js';
|
|
5
5
|
import './types.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'vue-demi';
|
|
2
2
|
import '@tanstack/query-core';
|
|
3
3
|
import './queryClient.cjs';
|
|
4
|
-
export { g as UseBaseQueryReturnType, h as useBaseQuery } from './useQuery-
|
|
4
|
+
export { g as UseBaseQueryReturnType, h as useBaseQuery } from './useQuery-COgIjrX4.cjs';
|
|
5
5
|
import './types.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'vue-demi';
|
|
2
2
|
import '@tanstack/query-core';
|
|
3
3
|
import './queryClient.js';
|
|
4
|
-
export { g as UseBaseQueryReturnType, h as useBaseQuery } from './useQuery-
|
|
4
|
+
export { g as UseBaseQueryReturnType, h as useBaseQuery } from './useQuery-ClcdoQsm.js';
|
|
5
5
|
import './types.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@tanstack/query-core';
|
|
2
|
-
export {
|
|
2
|
+
export { e as UseInfiniteQueryOptions, f as UseInfiniteQueryReturnType, a as useInfiniteQuery } from './useQuery-COgIjrX4.cjs';
|
|
3
3
|
import './types.cjs';
|
|
4
4
|
import './queryClient.cjs';
|
|
5
5
|
import 'vue-demi';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@tanstack/query-core';
|
|
2
|
-
export {
|
|
2
|
+
export { e as UseInfiniteQueryOptions, f as UseInfiniteQueryReturnType, a as useInfiniteQuery } from './useQuery-ClcdoQsm.js';
|
|
3
3
|
import './types.js';
|
|
4
4
|
import './queryClient.js';
|
|
5
5
|
import 'vue-demi';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue-demi';
|
|
2
2
|
import { QueryObserverResult, DefaultError, QueryKey, QueryFunction, ThrowOnError, DefinedQueryObserverResult } from '@tanstack/query-core';
|
|
3
|
-
import { U as UseQueryOptions } from './useQuery-
|
|
3
|
+
import { U as UseQueryOptions } from './useQuery-COgIjrX4.cjs';
|
|
4
4
|
import { QueryClient } from './queryClient.cjs';
|
|
5
5
|
import { MaybeRefDeep, DeepUnwrapRef } from './types.cjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue-demi';
|
|
2
2
|
import { QueryObserverResult, DefaultError, QueryKey, QueryFunction, ThrowOnError, DefinedQueryObserverResult } from '@tanstack/query-core';
|
|
3
|
-
import { U as UseQueryOptions } from './useQuery-
|
|
3
|
+
import { U as UseQueryOptions } from './useQuery-ClcdoQsm.js';
|
|
4
4
|
import { QueryClient } from './queryClient.js';
|
|
5
5
|
import { MaybeRefDeep, DeepUnwrapRef } from './types.js';
|
|
6
6
|
|
|
@@ -33,4 +33,4 @@ declare function useQuery<TQueryFnData = unknown, TError = DefaultError, TData =
|
|
|
33
33
|
declare function useQuery<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: DefinedInitialQueryOptions<TQueryFnData, TError, TData, TQueryKey>, queryClient?: QueryClient): UseQueryDefinedReturnType<TData, TError>;
|
|
34
34
|
declare function useQuery<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, queryClient?: QueryClient): UseQueryReturnType<TData, TError>;
|
|
35
35
|
|
|
36
|
-
export { type DefinedInitialQueryOptions as D, type UseQueryOptions as U, useInfiniteQuery as a, type UseQueryReturnType as b, type UseQueryDefinedReturnType as c, type
|
|
36
|
+
export { type DefinedInitialQueryOptions as D, type UseQueryOptions as U, useInfiniteQuery as a, type UseQueryReturnType as b, type UseQueryDefinedReturnType as c, type UndefinedInitialQueryOptions as d, type UseInfiniteQueryOptions as e, type UseInfiniteQueryReturnType as f, type UseBaseQueryReturnType as g, useBaseQuery as h, useQuery as u };
|
|
@@ -33,4 +33,4 @@ declare function useQuery<TQueryFnData = unknown, TError = DefaultError, TData =
|
|
|
33
33
|
declare function useQuery<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: DefinedInitialQueryOptions<TQueryFnData, TError, TData, TQueryKey>, queryClient?: QueryClient): UseQueryDefinedReturnType<TData, TError>;
|
|
34
34
|
declare function useQuery<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, queryClient?: QueryClient): UseQueryReturnType<TData, TError>;
|
|
35
35
|
|
|
36
|
-
export { type DefinedInitialQueryOptions as D, type UseQueryOptions as U, useInfiniteQuery as a, type UseQueryReturnType as b, type UseQueryDefinedReturnType as c, type
|
|
36
|
+
export { type DefinedInitialQueryOptions as D, type UseQueryOptions as U, useInfiniteQuery as a, type UseQueryReturnType as b, type UseQueryDefinedReturnType as c, type UndefinedInitialQueryOptions as d, type UseInfiniteQueryOptions as e, type UseInfiniteQueryReturnType as f, type UseBaseQueryReturnType as g, useBaseQuery as h, useQuery as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@tanstack/query-core';
|
|
2
|
-
export { D as DefinedInitialQueryOptions,
|
|
2
|
+
export { D as DefinedInitialQueryOptions, d as UndefinedInitialQueryOptions, c as UseQueryDefinedReturnType, U as UseQueryOptions, b as UseQueryReturnType, u as useQuery } from './useQuery-COgIjrX4.cjs';
|
|
3
3
|
import './types.cjs';
|
|
4
4
|
import './queryClient.cjs';
|
|
5
5
|
import 'vue-demi';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@tanstack/query-core';
|
|
2
|
-
export { D as DefinedInitialQueryOptions,
|
|
2
|
+
export { D as DefinedInitialQueryOptions, d as UndefinedInitialQueryOptions, c as UseQueryDefinedReturnType, U as UseQueryOptions, b as UseQueryReturnType, u as useQuery } from './useQuery-ClcdoQsm.js';
|
|
3
3
|
import './types.js';
|
|
4
4
|
import './queryClient.js';
|
|
5
5
|
import 'vue-demi';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@tanstack/query-core'\n\nexport { useQueryClient } from './useQueryClient'\nexport { VueQueryPlugin } from './vueQueryPlugin'\n\nexport { QueryClient } from './queryClient'\nexport { QueryCache } from './queryCache'\nexport { queryOptions } from './queryOptions'\nexport { infiniteQueryOptions } from './infiniteQueryOptions'\nexport type {\n DefinedInitialDataInfiniteOptions,\n UndefinedInitialDataInfiniteOptions,\n} from './infiniteQueryOptions'\nexport { MutationCache } from './mutationCache'\nexport { useQuery } from './useQuery'\nexport { useQueries } from './useQueries'\nexport { useInfiniteQuery } from './useInfiniteQuery'\nexport { useMutation } from './useMutation'\nexport { useIsFetching } from './useIsFetching'\nexport { useIsMutating, useMutationState } from './useMutationState'\nexport { VUE_QUERY_CLIENT } from './utils'\n\nexport type {\n UseQueryOptions,\n UseQueryReturnType,\n UseQueryDefinedReturnType,\n} from './useQuery'\nexport type {\n UseInfiniteQueryOptions,\n UseInfiniteQueryReturnType,\n} from './useInfiniteQuery'\nexport type { UseMutationOptions, UseMutationReturnType } from './useMutation'\nexport type { UseQueriesOptions, UseQueriesResults } from './useQueries'\nexport type { MutationFilters, MutationStateOptions } from './useMutationState'\nexport type { QueryFilters } from './useIsFetching'\nexport type { VueQueryPluginOptions } from './vueQueryPlugin'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAc,iCAAd;AAEA,4BAA+B;AAC/B,4BAA+B;AAE/B,yBAA4B;AAC5B,wBAA2B;AAC3B,0BAA6B;AAC7B,kCAAqC;AAKrC,2BAA8B;AAC9B,sBAAyB;AACzB,wBAA2B;AAC3B,8BAAiC;AACjC,yBAA4B;AAC5B,2BAA8B;AAC9B,8BAAgD;AAChD,mBAAiC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@tanstack/query-core'\n\nexport { useQueryClient } from './useQueryClient'\nexport { VueQueryPlugin } from './vueQueryPlugin'\n\nexport { QueryClient } from './queryClient'\nexport { QueryCache } from './queryCache'\nexport { queryOptions } from './queryOptions'\nexport { infiniteQueryOptions } from './infiniteQueryOptions'\nexport type {\n DefinedInitialDataInfiniteOptions,\n UndefinedInitialDataInfiniteOptions,\n} from './infiniteQueryOptions'\nexport { MutationCache } from './mutationCache'\nexport { useQuery } from './useQuery'\nexport { useQueries } from './useQueries'\nexport { useInfiniteQuery } from './useInfiniteQuery'\nexport { useMutation } from './useMutation'\nexport { useIsFetching } from './useIsFetching'\nexport { useIsMutating, useMutationState } from './useMutationState'\nexport { VUE_QUERY_CLIENT } from './utils'\n\nexport type {\n UseQueryOptions,\n UseQueryReturnType,\n UseQueryDefinedReturnType,\n UndefinedInitialQueryOptions,\n DefinedInitialQueryOptions,\n} from './useQuery'\nexport type {\n UseInfiniteQueryOptions,\n UseInfiniteQueryReturnType,\n} from './useInfiniteQuery'\nexport type { UseMutationOptions, UseMutationReturnType } from './useMutation'\nexport type { UseQueriesOptions, UseQueriesResults } from './useQueries'\nexport type { MutationFilters, MutationStateOptions } from './useMutationState'\nexport type { QueryFilters } from './useIsFetching'\nexport type { VueQueryPluginOptions } from './vueQueryPlugin'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAc,iCAAd;AAEA,4BAA+B;AAC/B,4BAA+B;AAE/B,yBAA4B;AAC5B,wBAA2B;AAC3B,0BAA6B;AAC7B,kCAAqC;AAKrC,2BAA8B;AAC9B,sBAAyB;AACzB,wBAA2B;AAC3B,8BAAiC;AACjC,yBAA4B;AAC5B,2BAA8B;AAC9B,8BAAgD;AAChD,mBAAiC;","names":[]}
|
package/build/modern/index.d.cts
CHANGED
|
@@ -6,7 +6,7 @@ export { QueryCache } from './queryCache.cjs';
|
|
|
6
6
|
export { queryOptions } from './queryOptions.cjs';
|
|
7
7
|
export { DefinedInitialDataInfiniteOptions, UndefinedInitialDataInfiniteOptions, infiniteQueryOptions } from './infiniteQueryOptions.cjs';
|
|
8
8
|
export { MutationCache } from './mutationCache.cjs';
|
|
9
|
-
export { d as
|
|
9
|
+
export { D as DefinedInitialQueryOptions, d as UndefinedInitialQueryOptions, e as UseInfiniteQueryOptions, f as UseInfiniteQueryReturnType, c as UseQueryDefinedReturnType, U as UseQueryOptions, b as UseQueryReturnType, a as useInfiniteQuery, u as useQuery } from './useQuery-COgIjrX4.cjs';
|
|
10
10
|
export { UseQueriesOptions, UseQueriesResults, useQueries } from './useQueries.cjs';
|
|
11
11
|
export { UseMutationOptions, UseMutationReturnType, useMutation } from './useMutation.cjs';
|
|
12
12
|
export { QueryFilters, useIsFetching } from './useIsFetching.cjs';
|
package/build/modern/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { QueryCache } from './queryCache.js';
|
|
|
6
6
|
export { queryOptions } from './queryOptions.js';
|
|
7
7
|
export { DefinedInitialDataInfiniteOptions, UndefinedInitialDataInfiniteOptions, infiniteQueryOptions } from './infiniteQueryOptions.js';
|
|
8
8
|
export { MutationCache } from './mutationCache.js';
|
|
9
|
-
export { d as
|
|
9
|
+
export { D as DefinedInitialQueryOptions, d as UndefinedInitialQueryOptions, e as UseInfiniteQueryOptions, f as UseInfiniteQueryReturnType, c as UseQueryDefinedReturnType, U as UseQueryOptions, b as UseQueryReturnType, a as useInfiniteQuery, u as useQuery } from './useQuery-ClcdoQsm.js';
|
|
10
10
|
export { UseQueriesOptions, UseQueriesResults, useQueries } from './useQueries.js';
|
|
11
11
|
export { UseMutationOptions, UseMutationReturnType, useMutation } from './useMutation.js';
|
|
12
12
|
export { QueryFilters, useIsFetching } from './useIsFetching.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@tanstack/query-core'\n\nexport { useQueryClient } from './useQueryClient'\nexport { VueQueryPlugin } from './vueQueryPlugin'\n\nexport { QueryClient } from './queryClient'\nexport { QueryCache } from './queryCache'\nexport { queryOptions } from './queryOptions'\nexport { infiniteQueryOptions } from './infiniteQueryOptions'\nexport type {\n DefinedInitialDataInfiniteOptions,\n UndefinedInitialDataInfiniteOptions,\n} from './infiniteQueryOptions'\nexport { MutationCache } from './mutationCache'\nexport { useQuery } from './useQuery'\nexport { useQueries } from './useQueries'\nexport { useInfiniteQuery } from './useInfiniteQuery'\nexport { useMutation } from './useMutation'\nexport { useIsFetching } from './useIsFetching'\nexport { useIsMutating, useMutationState } from './useMutationState'\nexport { VUE_QUERY_CLIENT } from './utils'\n\nexport type {\n UseQueryOptions,\n UseQueryReturnType,\n UseQueryDefinedReturnType,\n} from './useQuery'\nexport type {\n UseInfiniteQueryOptions,\n UseInfiniteQueryReturnType,\n} from './useInfiniteQuery'\nexport type { UseMutationOptions, UseMutationReturnType } from './useMutation'\nexport type { UseQueriesOptions, UseQueriesResults } from './useQueries'\nexport type { MutationFilters, MutationStateOptions } from './useMutationState'\nexport type { QueryFilters } from './useIsFetching'\nexport type { VueQueryPluginOptions } from './vueQueryPlugin'\n"],"mappings":";AAAA,cAAc;AAEd,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAE/B,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,4BAA4B;AAKrC,SAAS,qBAAqB;AAC9B,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAC3B,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,qBAAqB;AAC9B,SAAS,eAAe,wBAAwB;AAChD,SAAS,wBAAwB;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@tanstack/query-core'\n\nexport { useQueryClient } from './useQueryClient'\nexport { VueQueryPlugin } from './vueQueryPlugin'\n\nexport { QueryClient } from './queryClient'\nexport { QueryCache } from './queryCache'\nexport { queryOptions } from './queryOptions'\nexport { infiniteQueryOptions } from './infiniteQueryOptions'\nexport type {\n DefinedInitialDataInfiniteOptions,\n UndefinedInitialDataInfiniteOptions,\n} from './infiniteQueryOptions'\nexport { MutationCache } from './mutationCache'\nexport { useQuery } from './useQuery'\nexport { useQueries } from './useQueries'\nexport { useInfiniteQuery } from './useInfiniteQuery'\nexport { useMutation } from './useMutation'\nexport { useIsFetching } from './useIsFetching'\nexport { useIsMutating, useMutationState } from './useMutationState'\nexport { VUE_QUERY_CLIENT } from './utils'\n\nexport type {\n UseQueryOptions,\n UseQueryReturnType,\n UseQueryDefinedReturnType,\n UndefinedInitialQueryOptions,\n DefinedInitialQueryOptions,\n} from './useQuery'\nexport type {\n UseInfiniteQueryOptions,\n UseInfiniteQueryReturnType,\n} from './useInfiniteQuery'\nexport type { UseMutationOptions, UseMutationReturnType } from './useMutation'\nexport type { UseQueriesOptions, UseQueriesResults } from './useQueries'\nexport type { MutationFilters, MutationStateOptions } from './useMutationState'\nexport type { QueryFilters } from './useIsFetching'\nexport type { VueQueryPluginOptions } from './vueQueryPlugin'\n"],"mappings":";AAAA,cAAc;AAEd,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAE/B,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,4BAA4B;AAKrC,SAAS,qBAAqB;AAC9B,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAC3B,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,qBAAqB;AAC9B,SAAS,eAAe,wBAAwB;AAChD,SAAS,wBAAwB;","names":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultError, InfiniteData, QueryKey, DataTag } from '@tanstack/query-core';
|
|
2
|
-
import {
|
|
2
|
+
import { e as UseInfiniteQueryOptions } from './useQuery-COgIjrX4.cjs';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './queryClient.cjs';
|
|
5
5
|
import './types.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultError, InfiniteData, QueryKey, DataTag } from '@tanstack/query-core';
|
|
2
|
-
import {
|
|
2
|
+
import { e as UseInfiniteQueryOptions } from './useQuery-ClcdoQsm.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './queryClient.js';
|
|
5
5
|
import './types.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultError, QueryKey, DataTag } from '@tanstack/query-core';
|
|
2
|
-
import {
|
|
2
|
+
import { d as UndefinedInitialQueryOptions, D as DefinedInitialQueryOptions } from './useQuery-COgIjrX4.cjs';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './queryClient.cjs';
|
|
5
5
|
import './types.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultError, QueryKey, DataTag } from '@tanstack/query-core';
|
|
2
|
-
import {
|
|
2
|
+
import { d as UndefinedInitialQueryOptions, D as DefinedInitialQueryOptions } from './useQuery-ClcdoQsm.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './queryClient.js';
|
|
5
5
|
import './types.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'vue-demi';
|
|
2
2
|
import '@tanstack/query-core';
|
|
3
3
|
import './queryClient.cjs';
|
|
4
|
-
export { g as UseBaseQueryReturnType, h as useBaseQuery } from './useQuery-
|
|
4
|
+
export { g as UseBaseQueryReturnType, h as useBaseQuery } from './useQuery-COgIjrX4.cjs';
|
|
5
5
|
import './types.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'vue-demi';
|
|
2
2
|
import '@tanstack/query-core';
|
|
3
3
|
import './queryClient.js';
|
|
4
|
-
export { g as UseBaseQueryReturnType, h as useBaseQuery } from './useQuery-
|
|
4
|
+
export { g as UseBaseQueryReturnType, h as useBaseQuery } from './useQuery-ClcdoQsm.js';
|
|
5
5
|
import './types.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@tanstack/query-core';
|
|
2
|
-
export {
|
|
2
|
+
export { e as UseInfiniteQueryOptions, f as UseInfiniteQueryReturnType, a as useInfiniteQuery } from './useQuery-COgIjrX4.cjs';
|
|
3
3
|
import './types.cjs';
|
|
4
4
|
import './queryClient.cjs';
|
|
5
5
|
import 'vue-demi';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@tanstack/query-core';
|
|
2
|
-
export {
|
|
2
|
+
export { e as UseInfiniteQueryOptions, f as UseInfiniteQueryReturnType, a as useInfiniteQuery } from './useQuery-ClcdoQsm.js';
|
|
3
3
|
import './types.js';
|
|
4
4
|
import './queryClient.js';
|
|
5
5
|
import 'vue-demi';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue-demi';
|
|
2
2
|
import { QueryObserverResult, DefaultError, QueryKey, QueryFunction, ThrowOnError, DefinedQueryObserverResult } from '@tanstack/query-core';
|
|
3
|
-
import { U as UseQueryOptions } from './useQuery-
|
|
3
|
+
import { U as UseQueryOptions } from './useQuery-COgIjrX4.cjs';
|
|
4
4
|
import { QueryClient } from './queryClient.cjs';
|
|
5
5
|
import { MaybeRefDeep, DeepUnwrapRef } from './types.cjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue-demi';
|
|
2
2
|
import { QueryObserverResult, DefaultError, QueryKey, QueryFunction, ThrowOnError, DefinedQueryObserverResult } from '@tanstack/query-core';
|
|
3
|
-
import { U as UseQueryOptions } from './useQuery-
|
|
3
|
+
import { U as UseQueryOptions } from './useQuery-ClcdoQsm.js';
|
|
4
4
|
import { QueryClient } from './queryClient.js';
|
|
5
5
|
import { MaybeRefDeep, DeepUnwrapRef } from './types.js';
|
|
6
6
|
|
|
@@ -33,4 +33,4 @@ declare function useQuery<TQueryFnData = unknown, TError = DefaultError, TData =
|
|
|
33
33
|
declare function useQuery<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: DefinedInitialQueryOptions<TQueryFnData, TError, TData, TQueryKey>, queryClient?: QueryClient): UseQueryDefinedReturnType<TData, TError>;
|
|
34
34
|
declare function useQuery<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, queryClient?: QueryClient): UseQueryReturnType<TData, TError>;
|
|
35
35
|
|
|
36
|
-
export { type DefinedInitialQueryOptions as D, type UseQueryOptions as U, useInfiniteQuery as a, type UseQueryReturnType as b, type UseQueryDefinedReturnType as c, type
|
|
36
|
+
export { type DefinedInitialQueryOptions as D, type UseQueryOptions as U, useInfiniteQuery as a, type UseQueryReturnType as b, type UseQueryDefinedReturnType as c, type UndefinedInitialQueryOptions as d, type UseInfiniteQueryOptions as e, type UseInfiniteQueryReturnType as f, type UseBaseQueryReturnType as g, useBaseQuery as h, useQuery as u };
|
|
@@ -33,4 +33,4 @@ declare function useQuery<TQueryFnData = unknown, TError = DefaultError, TData =
|
|
|
33
33
|
declare function useQuery<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: DefinedInitialQueryOptions<TQueryFnData, TError, TData, TQueryKey>, queryClient?: QueryClient): UseQueryDefinedReturnType<TData, TError>;
|
|
34
34
|
declare function useQuery<TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, queryClient?: QueryClient): UseQueryReturnType<TData, TError>;
|
|
35
35
|
|
|
36
|
-
export { type DefinedInitialQueryOptions as D, type UseQueryOptions as U, useInfiniteQuery as a, type UseQueryReturnType as b, type UseQueryDefinedReturnType as c, type
|
|
36
|
+
export { type DefinedInitialQueryOptions as D, type UseQueryOptions as U, useInfiniteQuery as a, type UseQueryReturnType as b, type UseQueryDefinedReturnType as c, type UndefinedInitialQueryOptions as d, type UseInfiniteQueryOptions as e, type UseInfiniteQueryReturnType as f, type UseBaseQueryReturnType as g, useBaseQuery as h, useQuery as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@tanstack/query-core';
|
|
2
|
-
export { D as DefinedInitialQueryOptions,
|
|
2
|
+
export { D as DefinedInitialQueryOptions, d as UndefinedInitialQueryOptions, c as UseQueryDefinedReturnType, U as UseQueryOptions, b as UseQueryReturnType, u as useQuery } from './useQuery-COgIjrX4.cjs';
|
|
3
3
|
import './types.cjs';
|
|
4
4
|
import './queryClient.cjs';
|
|
5
5
|
import 'vue-demi';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@tanstack/query-core';
|
|
2
|
-
export { D as DefinedInitialQueryOptions,
|
|
2
|
+
export { D as DefinedInitialQueryOptions, d as UndefinedInitialQueryOptions, c as UseQueryDefinedReturnType, U as UseQueryOptions, b as UseQueryReturnType, u as useQuery } from './useQuery-ClcdoQsm.js';
|
|
3
3
|
import './types.js';
|
|
4
4
|
import './queryClient.js';
|
|
5
5
|
import 'vue-demi';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/vue-query",
|
|
3
|
-
"version": "5.51.
|
|
3
|
+
"version": "5.51.3",
|
|
4
4
|
"description": "Hooks for managing, caching and syncing asynchronous and remote data in Vue",
|
|
5
5
|
"author": "Damian Osipiuk",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"@tanstack/match-sorter-utils": "^8.15.1",
|
|
50
50
|
"@vue/devtools-api": "^6.5.1",
|
|
51
51
|
"vue-demi": "^0.14.7",
|
|
52
|
-
"@tanstack/query-core": "5.51.
|
|
52
|
+
"@tanstack/query-core": "5.51.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
56
56
|
"@vue/composition-api": "1.7.2",
|
|
57
|
-
"eslint-plugin-vue": "^9.
|
|
57
|
+
"eslint-plugin-vue": "^9.27.0",
|
|
58
58
|
"vue": "^3.4.27",
|
|
59
59
|
"vue2": "npm:vue@2.6",
|
|
60
60
|
"vue2.7": "npm:vue@2.7"
|
|
@@ -4,5 +4,6 @@ import type { Mock } from 'vitest'
|
|
|
4
4
|
const { useBaseQuery: originImpl, unrefQueryArgs: originalParse } =
|
|
5
5
|
(await vi.importActual('../useBaseQuery')) as any
|
|
6
6
|
|
|
7
|
-
export const useBaseQuery: Mock<Array<any
|
|
7
|
+
export const useBaseQuery: Mock<(...args: Array<any>) => any> =
|
|
8
|
+
vi.fn(originImpl)
|
|
8
9
|
export const unrefQueryArgs = originalParse
|
|
@@ -241,7 +241,7 @@ describe('VueQueryPlugin', () => {
|
|
|
241
241
|
queryClientConfig: config,
|
|
242
242
|
})
|
|
243
243
|
|
|
244
|
-
const client = (appMock.provide as Mock).mock.calls[0][1]
|
|
244
|
+
const client = (appMock.provide as Mock).mock.calls[0]?.[1]
|
|
245
245
|
const defaultOptions = client.getDefaultOptions()
|
|
246
246
|
|
|
247
247
|
expect(defaultOptions).toEqual(config.defaultOptions)
|