@tanstack/preact-query 5.93.0 → 5.94.2
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/HydrationBoundary.d.cts +2 -15
- package/build/legacy/HydrationBoundary.d.ts +2 -15
- package/build/legacy/IsRestoringProvider.d.cts +2 -6
- package/build/legacy/IsRestoringProvider.d.ts +2 -6
- package/build/legacy/QueryClientProvider.d.cts +4 -13
- package/build/legacy/QueryClientProvider.d.ts +4 -13
- package/build/legacy/QueryErrorResetBoundary.d.cts +8 -19
- package/build/legacy/QueryErrorResetBoundary.d.ts +8 -19
- package/build/legacy/_tsup-dts-rollup.d.cts +1095 -0
- package/build/legacy/_tsup-dts-rollup.d.ts +1095 -0
- package/build/legacy/errorBoundaryUtils.d.cts +3 -15
- package/build/legacy/errorBoundaryUtils.d.ts +3 -15
- package/build/legacy/index.d.cts +206 -21
- package/build/legacy/index.d.ts +206 -21
- package/build/legacy/infiniteQueryOptions.d.cts +4 -23
- package/build/legacy/infiniteQueryOptions.d.ts +4 -23
- package/build/legacy/mutationOptions.d.cts +1 -7
- package/build/legacy/mutationOptions.d.ts +1 -7
- package/build/legacy/queryOptions.d.cts +4 -24
- package/build/legacy/queryOptions.d.ts +4 -24
- package/build/legacy/suspense.d.cts +5 -11
- package/build/legacy/suspense.d.ts +5 -11
- package/build/legacy/types.d.cts +24 -52
- package/build/legacy/types.d.ts +24 -52
- package/build/legacy/useBaseQuery.cjs +1 -1
- package/build/legacy/useBaseQuery.cjs.map +1 -1
- package/build/legacy/useBaseQuery.d.cts +1 -6
- package/build/legacy/useBaseQuery.d.ts +1 -6
- package/build/legacy/useBaseQuery.js +2 -2
- package/build/legacy/useBaseQuery.js.map +1 -1
- package/build/legacy/useInfiniteQuery.d.cts +1 -9
- package/build/legacy/useInfiniteQuery.d.ts +1 -9
- package/build/legacy/useIsFetching.d.cts +1 -5
- package/build/legacy/useIsFetching.d.ts +1 -5
- package/build/legacy/useMutation.d.cts +1 -6
- package/build/legacy/useMutation.d.ts +1 -6
- package/build/legacy/useMutationState.d.cts +2 -10
- package/build/legacy/useMutationState.d.ts +2 -10
- package/build/legacy/usePrefetchInfiniteQuery.d.cts +1 -5
- package/build/legacy/usePrefetchInfiniteQuery.d.ts +1 -5
- package/build/legacy/usePrefetchQuery.d.cts +1 -6
- package/build/legacy/usePrefetchQuery.d.ts +1 -6
- package/build/legacy/useQueries.d.cts +3 -76
- package/build/legacy/useQueries.d.ts +3 -76
- package/build/legacy/useQuery.d.cts +1 -9
- package/build/legacy/useQuery.d.ts +1 -9
- package/build/legacy/useSuspenseInfiniteQuery.d.cts +1 -6
- package/build/legacy/useSuspenseInfiniteQuery.d.ts +1 -6
- package/build/legacy/useSuspenseQueries.d.cts +3 -79
- package/build/legacy/useSuspenseQueries.d.ts +3 -79
- package/build/legacy/useSuspenseQuery.d.cts +1 -6
- package/build/legacy/useSuspenseQuery.d.ts +1 -6
- package/build/legacy/utils.d.cts +2 -4
- package/build/legacy/utils.d.ts +2 -4
- package/build/modern/HydrationBoundary.d.cts +2 -15
- package/build/modern/HydrationBoundary.d.ts +2 -15
- package/build/modern/IsRestoringProvider.d.cts +2 -6
- package/build/modern/IsRestoringProvider.d.ts +2 -6
- package/build/modern/QueryClientProvider.d.cts +4 -13
- package/build/modern/QueryClientProvider.d.ts +4 -13
- package/build/modern/QueryErrorResetBoundary.d.cts +8 -19
- package/build/modern/QueryErrorResetBoundary.d.ts +8 -19
- package/build/modern/_tsup-dts-rollup.d.cts +1095 -0
- package/build/modern/_tsup-dts-rollup.d.ts +1095 -0
- package/build/modern/errorBoundaryUtils.d.cts +3 -15
- package/build/modern/errorBoundaryUtils.d.ts +3 -15
- package/build/modern/index.d.cts +206 -21
- package/build/modern/index.d.ts +206 -21
- package/build/modern/infiniteQueryOptions.d.cts +4 -23
- package/build/modern/infiniteQueryOptions.d.ts +4 -23
- package/build/modern/mutationOptions.d.cts +1 -7
- package/build/modern/mutationOptions.d.ts +1 -7
- package/build/modern/queryOptions.d.cts +4 -24
- package/build/modern/queryOptions.d.ts +4 -24
- package/build/modern/suspense.d.cts +5 -11
- package/build/modern/suspense.d.ts +5 -11
- package/build/modern/types.d.cts +24 -52
- package/build/modern/types.d.ts +24 -52
- package/build/modern/useBaseQuery.cjs +1 -1
- package/build/modern/useBaseQuery.cjs.map +1 -1
- package/build/modern/useBaseQuery.d.cts +1 -6
- package/build/modern/useBaseQuery.d.ts +1 -6
- package/build/modern/useBaseQuery.js +2 -2
- package/build/modern/useBaseQuery.js.map +1 -1
- package/build/modern/useInfiniteQuery.d.cts +1 -9
- package/build/modern/useInfiniteQuery.d.ts +1 -9
- package/build/modern/useIsFetching.d.cts +1 -5
- package/build/modern/useIsFetching.d.ts +1 -5
- package/build/modern/useMutation.d.cts +1 -6
- package/build/modern/useMutation.d.ts +1 -6
- package/build/modern/useMutationState.d.cts +2 -10
- package/build/modern/useMutationState.d.ts +2 -10
- package/build/modern/usePrefetchInfiniteQuery.d.cts +1 -5
- package/build/modern/usePrefetchInfiniteQuery.d.ts +1 -5
- package/build/modern/usePrefetchQuery.d.cts +1 -6
- package/build/modern/usePrefetchQuery.d.ts +1 -6
- package/build/modern/useQueries.d.cts +3 -76
- package/build/modern/useQueries.d.ts +3 -76
- package/build/modern/useQuery.d.cts +1 -9
- package/build/modern/useQuery.d.ts +1 -9
- package/build/modern/useSuspenseInfiniteQuery.d.cts +1 -6
- package/build/modern/useSuspenseInfiniteQuery.d.ts +1 -6
- package/build/modern/useSuspenseQueries.d.cts +3 -79
- package/build/modern/useSuspenseQueries.d.ts +3 -79
- package/build/modern/useSuspenseQuery.d.cts +1 -6
- package/build/modern/useSuspenseQuery.d.ts +1 -6
- package/build/modern/utils.d.cts +2 -4
- package/build/modern/utils.d.ts +2 -4
- package/package.json +7 -7
- package/src/useBaseQuery.ts +2 -2
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { DehydratedState, OmitKeyof, HydrateOptions, QueryClient } from '@tanstack/query-core';
|
|
4
|
-
|
|
5
|
-
interface HydrationBoundaryProps {
|
|
6
|
-
state: DehydratedState | null | undefined;
|
|
7
|
-
options?: OmitKeyof<HydrateOptions, 'defaultOptions'> & {
|
|
8
|
-
defaultOptions?: OmitKeyof<Exclude<HydrateOptions['defaultOptions'], undefined>, 'mutations'>;
|
|
9
|
-
};
|
|
10
|
-
children?: ComponentChildren;
|
|
11
|
-
queryClient?: QueryClient;
|
|
12
|
-
}
|
|
13
|
-
declare const HydrationBoundary: ({ children, options, state, queryClient, }: HydrationBoundaryProps) => preact.JSX.Element;
|
|
14
|
-
|
|
15
|
-
export { HydrationBoundary, type HydrationBoundaryProps };
|
|
1
|
+
export { HydrationBoundaryProps } from './_tsup-dts-rollup.cjs';
|
|
2
|
+
export { HydrationBoundary } from './_tsup-dts-rollup.cjs';
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { DehydratedState, OmitKeyof, HydrateOptions, QueryClient } from '@tanstack/query-core';
|
|
4
|
-
|
|
5
|
-
interface HydrationBoundaryProps {
|
|
6
|
-
state: DehydratedState | null | undefined;
|
|
7
|
-
options?: OmitKeyof<HydrateOptions, 'defaultOptions'> & {
|
|
8
|
-
defaultOptions?: OmitKeyof<Exclude<HydrateOptions['defaultOptions'], undefined>, 'mutations'>;
|
|
9
|
-
};
|
|
10
|
-
children?: ComponentChildren;
|
|
11
|
-
queryClient?: QueryClient;
|
|
12
|
-
}
|
|
13
|
-
declare const HydrationBoundary: ({ children, options, state, queryClient, }: HydrationBoundaryProps) => preact.JSX.Element;
|
|
14
|
-
|
|
15
|
-
export { HydrationBoundary, type HydrationBoundaryProps };
|
|
1
|
+
export { HydrationBoundaryProps } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { HydrationBoundary } from './_tsup-dts-rollup.js';
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const useIsRestoring: () => boolean;
|
|
4
|
-
declare const IsRestoringProvider: preact.Provider<boolean>;
|
|
5
|
-
|
|
6
|
-
export { IsRestoringProvider, useIsRestoring };
|
|
1
|
+
export { useIsRestoring } from './_tsup-dts-rollup.cjs';
|
|
2
|
+
export { IsRestoringProvider } from './_tsup-dts-rollup.cjs';
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const useIsRestoring: () => boolean;
|
|
4
|
-
declare const IsRestoringProvider: preact.Provider<boolean>;
|
|
5
|
-
|
|
6
|
-
export { IsRestoringProvider, useIsRestoring };
|
|
1
|
+
export { useIsRestoring } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { IsRestoringProvider } from './_tsup-dts-rollup.js';
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare const QueryClientContext: preact.Context<QueryClient | undefined>;
|
|
6
|
-
declare const useQueryClient: (queryClient?: QueryClient) => QueryClient;
|
|
7
|
-
type QueryClientProviderProps = {
|
|
8
|
-
client: QueryClient;
|
|
9
|
-
children?: ComponentChildren;
|
|
10
|
-
};
|
|
11
|
-
declare const QueryClientProvider: ({ client, children, }: QueryClientProviderProps) => VNode;
|
|
12
|
-
|
|
13
|
-
export { QueryClientContext, QueryClientProvider, type QueryClientProviderProps, useQueryClient };
|
|
1
|
+
export { QueryClientContext } from './_tsup-dts-rollup.cjs';
|
|
2
|
+
export { useQueryClient } from './_tsup-dts-rollup.cjs';
|
|
3
|
+
export { QueryClientProviderProps } from './_tsup-dts-rollup.cjs';
|
|
4
|
+
export { QueryClientProvider } from './_tsup-dts-rollup.cjs';
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare const QueryClientContext: preact.Context<QueryClient | undefined>;
|
|
6
|
-
declare const useQueryClient: (queryClient?: QueryClient) => QueryClient;
|
|
7
|
-
type QueryClientProviderProps = {
|
|
8
|
-
client: QueryClient;
|
|
9
|
-
children?: ComponentChildren;
|
|
10
|
-
};
|
|
11
|
-
declare const QueryClientProvider: ({ client, children, }: QueryClientProviderProps) => VNode;
|
|
12
|
-
|
|
13
|
-
export { QueryClientContext, QueryClientProvider, type QueryClientProviderProps, useQueryClient };
|
|
1
|
+
export { QueryClientContext } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { useQueryClient } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { QueryClientProviderProps } from './_tsup-dts-rollup.js';
|
|
4
|
+
export { QueryClientProvider } from './_tsup-dts-rollup.js';
|
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
isReset: QueryErrorIsResetFunction;
|
|
10
|
-
reset: QueryErrorResetFunction;
|
|
11
|
-
}
|
|
12
|
-
declare const useQueryErrorResetBoundary: () => QueryErrorResetBoundaryValue;
|
|
13
|
-
type QueryErrorResetBoundaryFunction = (value: QueryErrorResetBoundaryValue) => ComponentChildren;
|
|
14
|
-
interface QueryErrorResetBoundaryProps {
|
|
15
|
-
children: QueryErrorResetBoundaryFunction | ComponentChildren;
|
|
16
|
-
}
|
|
17
|
-
declare const QueryErrorResetBoundary: ({ children, }: QueryErrorResetBoundaryProps) => preact.JSX.Element;
|
|
18
|
-
|
|
19
|
-
export { type QueryErrorClearResetFunction, type QueryErrorIsResetFunction, QueryErrorResetBoundary, type QueryErrorResetBoundaryFunction, type QueryErrorResetBoundaryProps, type QueryErrorResetBoundaryValue, type QueryErrorResetFunction, useQueryErrorResetBoundary };
|
|
1
|
+
export { QueryErrorResetFunction } from './_tsup-dts-rollup.cjs';
|
|
2
|
+
export { QueryErrorIsResetFunction } from './_tsup-dts-rollup.cjs';
|
|
3
|
+
export { QueryErrorClearResetFunction } from './_tsup-dts-rollup.cjs';
|
|
4
|
+
export { QueryErrorResetBoundaryValue } from './_tsup-dts-rollup.cjs';
|
|
5
|
+
export { useQueryErrorResetBoundary } from './_tsup-dts-rollup.cjs';
|
|
6
|
+
export { QueryErrorResetBoundaryFunction } from './_tsup-dts-rollup.cjs';
|
|
7
|
+
export { QueryErrorResetBoundaryProps } from './_tsup-dts-rollup.cjs';
|
|
8
|
+
export { QueryErrorResetBoundary } from './_tsup-dts-rollup.cjs';
|
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
isReset: QueryErrorIsResetFunction;
|
|
10
|
-
reset: QueryErrorResetFunction;
|
|
11
|
-
}
|
|
12
|
-
declare const useQueryErrorResetBoundary: () => QueryErrorResetBoundaryValue;
|
|
13
|
-
type QueryErrorResetBoundaryFunction = (value: QueryErrorResetBoundaryValue) => ComponentChildren;
|
|
14
|
-
interface QueryErrorResetBoundaryProps {
|
|
15
|
-
children: QueryErrorResetBoundaryFunction | ComponentChildren;
|
|
16
|
-
}
|
|
17
|
-
declare const QueryErrorResetBoundary: ({ children, }: QueryErrorResetBoundaryProps) => preact.JSX.Element;
|
|
18
|
-
|
|
19
|
-
export { type QueryErrorClearResetFunction, type QueryErrorIsResetFunction, QueryErrorResetBoundary, type QueryErrorResetBoundaryFunction, type QueryErrorResetBoundaryProps, type QueryErrorResetBoundaryValue, type QueryErrorResetFunction, useQueryErrorResetBoundary };
|
|
1
|
+
export { QueryErrorResetFunction } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { QueryErrorIsResetFunction } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { QueryErrorClearResetFunction } from './_tsup-dts-rollup.js';
|
|
4
|
+
export { QueryErrorResetBoundaryValue } from './_tsup-dts-rollup.js';
|
|
5
|
+
export { useQueryErrorResetBoundary } from './_tsup-dts-rollup.js';
|
|
6
|
+
export { QueryErrorResetBoundaryFunction } from './_tsup-dts-rollup.js';
|
|
7
|
+
export { QueryErrorResetBoundaryProps } from './_tsup-dts-rollup.js';
|
|
8
|
+
export { QueryErrorResetBoundary } from './_tsup-dts-rollup.js';
|