@tanstack/preact-query-persist-client 5.92.0 → 5.92.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.
@@ -1,12 +1,2 @@
1
- import { PersistQueryClientOptions } from '@tanstack/query-persist-client-core';
2
- import { VNode } from 'preact';
3
- import { QueryClientProviderProps, OmitKeyof } from '@tanstack/preact-query';
4
-
5
- type PersistQueryClientProviderProps = QueryClientProviderProps & {
6
- persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
7
- onSuccess?: () => Promise<unknown> | unknown;
8
- onError?: () => Promise<unknown> | unknown;
9
- };
10
- declare const PersistQueryClientProvider: ({ children, persistOptions, onSuccess, onError, ...props }: PersistQueryClientProviderProps) => VNode;
11
-
12
- export { PersistQueryClientProvider, type PersistQueryClientProviderProps };
1
+ export { PersistQueryClientProviderProps } from './_tsup-dts-rollup.cjs';
2
+ export { PersistQueryClientProvider } from './_tsup-dts-rollup.cjs';
@@ -1,12 +1,2 @@
1
- import { PersistQueryClientOptions } from '@tanstack/query-persist-client-core';
2
- import { VNode } from 'preact';
3
- import { QueryClientProviderProps, OmitKeyof } from '@tanstack/preact-query';
4
-
5
- type PersistQueryClientProviderProps = QueryClientProviderProps & {
6
- persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
7
- onSuccess?: () => Promise<unknown> | unknown;
8
- onError?: () => Promise<unknown> | unknown;
9
- };
10
- declare const PersistQueryClientProvider: ({ children, persistOptions, onSuccess, onError, ...props }: PersistQueryClientProviderProps) => VNode;
11
-
12
- export { PersistQueryClientProvider, type PersistQueryClientProviderProps };
1
+ export { PersistQueryClientProviderProps } from './_tsup-dts-rollup.js';
2
+ export { PersistQueryClientProvider } from './_tsup-dts-rollup.js';
@@ -0,0 +1,114 @@
1
+ import { AsyncStorage } from '@tanstack/query-persist-client-core';
2
+ import type { ComponentChildren } from 'preact';
3
+ import { experimental_createQueryPersister } from '@tanstack/query-persist-client-core';
4
+ import { JSX } from 'preact';
5
+ import { MaybePromise } from '@tanstack/query-persist-client-core';
6
+ import type { OmitKeyof } from '@tanstack/preact-query';
7
+ import { Options } from 'tsup';
8
+ import { PersistedClient } from '@tanstack/query-persist-client-core';
9
+ import { PersistedQuery } from '@tanstack/query-persist-client-core';
10
+ import { PersistedQueryClientRestoreOptions } from '@tanstack/query-persist-client-core';
11
+ import { PersistedQueryClientSaveOptions } from '@tanstack/query-persist-client-core';
12
+ import { Persister } from '@tanstack/query-persist-client-core';
13
+ import { PERSISTER_KEY_PREFIX } from '@tanstack/query-persist-client-core';
14
+ import { persistQueryClient } from '@tanstack/query-persist-client-core';
15
+ import { PersistQueryClientOptions } from '@tanstack/query-persist-client-core';
16
+ import { persistQueryClientRestore } from '@tanstack/query-persist-client-core';
17
+ import { PersistQueryClientRootOptions } from '@tanstack/query-persist-client-core';
18
+ import { persistQueryClientSave } from '@tanstack/query-persist-client-core';
19
+ import { persistQueryClientSubscribe } from '@tanstack/query-persist-client-core';
20
+ import { PersistRetryer } from '@tanstack/query-persist-client-core';
21
+ import { Promisable } from '@tanstack/query-persist-client-core';
22
+ import type { QueryClientProviderProps } from '@tanstack/preact-query';
23
+ import { removeOldestQuery } from '@tanstack/query-persist-client-core';
24
+ import { StoragePersisterOptions } from '@tanstack/query-persist-client-core';
25
+ import type { UserConfig } from 'vite';
26
+ import type { VNode } from 'preact';
27
+
28
+ export { AsyncStorage }
29
+
30
+ export declare const default_alias: any[];
31
+
32
+ export declare const default_alias_1: any[];
33
+
34
+ export declare const default_alias_2: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
35
+
36
+ export declare const default_alias_3: UserConfig;
37
+
38
+ export { experimental_createQueryPersister }
39
+
40
+ /**
41
+ * @param {Object} opts - Options for building configurations.
42
+ * @param {string[]} opts.entry - The entry array.
43
+ * @returns {import('tsup').Options}
44
+ */
45
+ export declare function legacyConfig(opts: {
46
+ entry: string[];
47
+ }): Options;
48
+
49
+ export { MaybePromise }
50
+
51
+ /**
52
+ * @param {Object} opts - Options for building configurations.
53
+ * @param {string[]} opts.entry - The entry array.
54
+ * @returns {import('tsup').Options}
55
+ */
56
+ export declare function modernConfig(opts: {
57
+ entry: string[];
58
+ }): Options;
59
+
60
+ export { PersistedClient }
61
+
62
+ export { PersistedQuery }
63
+
64
+ export { PersistedQueryClientRestoreOptions }
65
+
66
+ export { PersistedQueryClientSaveOptions }
67
+
68
+ export { Persister }
69
+
70
+ export { PERSISTER_KEY_PREFIX }
71
+
72
+ export { persistQueryClient }
73
+
74
+ export { PersistQueryClientOptions }
75
+
76
+ declare const PersistQueryClientProvider: ({ children, persistOptions, onSuccess, onError, ...props }: PersistQueryClientProviderProps) => VNode;
77
+ export { PersistQueryClientProvider }
78
+ export { PersistQueryClientProvider as PersistQueryClientProvider_alias_1 }
79
+
80
+ export declare function PersistQueryClientProvider_alias_2({ children, persistOptions, onSuccess, onError, ...props }: Props): JSX.Element;
81
+
82
+ declare type PersistQueryClientProviderProps = QueryClientProviderProps & {
83
+ persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
84
+ onSuccess?: () => Promise<unknown> | unknown;
85
+ onError?: () => Promise<unknown> | unknown;
86
+ };
87
+ export { PersistQueryClientProviderProps }
88
+ export { PersistQueryClientProviderProps as PersistQueryClientProviderProps_alias_1 }
89
+
90
+ export { persistQueryClientRestore }
91
+
92
+ export { PersistQueryClientRootOptions }
93
+
94
+ export { persistQueryClientSave }
95
+
96
+ export { persistQueryClientSubscribe }
97
+
98
+ export { PersistRetryer }
99
+
100
+ export { Promisable }
101
+
102
+ declare type Props = {
103
+ children?: ComponentChildren;
104
+ client: any;
105
+ persistOptions: any;
106
+ onSuccess?: () => void | Promise<void>;
107
+ onError?: () => void;
108
+ };
109
+
110
+ export { removeOldestQuery }
111
+
112
+ export { StoragePersisterOptions }
113
+
114
+ export { }
@@ -0,0 +1,114 @@
1
+ import { AsyncStorage } from '@tanstack/query-persist-client-core';
2
+ import type { ComponentChildren } from 'preact';
3
+ import { experimental_createQueryPersister } from '@tanstack/query-persist-client-core';
4
+ import { JSX } from 'preact';
5
+ import { MaybePromise } from '@tanstack/query-persist-client-core';
6
+ import type { OmitKeyof } from '@tanstack/preact-query';
7
+ import { Options } from 'tsup';
8
+ import { PersistedClient } from '@tanstack/query-persist-client-core';
9
+ import { PersistedQuery } from '@tanstack/query-persist-client-core';
10
+ import { PersistedQueryClientRestoreOptions } from '@tanstack/query-persist-client-core';
11
+ import { PersistedQueryClientSaveOptions } from '@tanstack/query-persist-client-core';
12
+ import { Persister } from '@tanstack/query-persist-client-core';
13
+ import { PERSISTER_KEY_PREFIX } from '@tanstack/query-persist-client-core';
14
+ import { persistQueryClient } from '@tanstack/query-persist-client-core';
15
+ import { PersistQueryClientOptions } from '@tanstack/query-persist-client-core';
16
+ import { persistQueryClientRestore } from '@tanstack/query-persist-client-core';
17
+ import { PersistQueryClientRootOptions } from '@tanstack/query-persist-client-core';
18
+ import { persistQueryClientSave } from '@tanstack/query-persist-client-core';
19
+ import { persistQueryClientSubscribe } from '@tanstack/query-persist-client-core';
20
+ import { PersistRetryer } from '@tanstack/query-persist-client-core';
21
+ import { Promisable } from '@tanstack/query-persist-client-core';
22
+ import type { QueryClientProviderProps } from '@tanstack/preact-query';
23
+ import { removeOldestQuery } from '@tanstack/query-persist-client-core';
24
+ import { StoragePersisterOptions } from '@tanstack/query-persist-client-core';
25
+ import type { UserConfig } from 'vite';
26
+ import type { VNode } from 'preact';
27
+
28
+ export { AsyncStorage }
29
+
30
+ export declare const default_alias: any[];
31
+
32
+ export declare const default_alias_1: any[];
33
+
34
+ export declare const default_alias_2: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
35
+
36
+ export declare const default_alias_3: UserConfig;
37
+
38
+ export { experimental_createQueryPersister }
39
+
40
+ /**
41
+ * @param {Object} opts - Options for building configurations.
42
+ * @param {string[]} opts.entry - The entry array.
43
+ * @returns {import('tsup').Options}
44
+ */
45
+ export declare function legacyConfig(opts: {
46
+ entry: string[];
47
+ }): Options;
48
+
49
+ export { MaybePromise }
50
+
51
+ /**
52
+ * @param {Object} opts - Options for building configurations.
53
+ * @param {string[]} opts.entry - The entry array.
54
+ * @returns {import('tsup').Options}
55
+ */
56
+ export declare function modernConfig(opts: {
57
+ entry: string[];
58
+ }): Options;
59
+
60
+ export { PersistedClient }
61
+
62
+ export { PersistedQuery }
63
+
64
+ export { PersistedQueryClientRestoreOptions }
65
+
66
+ export { PersistedQueryClientSaveOptions }
67
+
68
+ export { Persister }
69
+
70
+ export { PERSISTER_KEY_PREFIX }
71
+
72
+ export { persistQueryClient }
73
+
74
+ export { PersistQueryClientOptions }
75
+
76
+ declare const PersistQueryClientProvider: ({ children, persistOptions, onSuccess, onError, ...props }: PersistQueryClientProviderProps) => VNode;
77
+ export { PersistQueryClientProvider }
78
+ export { PersistQueryClientProvider as PersistQueryClientProvider_alias_1 }
79
+
80
+ export declare function PersistQueryClientProvider_alias_2({ children, persistOptions, onSuccess, onError, ...props }: Props): JSX.Element;
81
+
82
+ declare type PersistQueryClientProviderProps = QueryClientProviderProps & {
83
+ persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
84
+ onSuccess?: () => Promise<unknown> | unknown;
85
+ onError?: () => Promise<unknown> | unknown;
86
+ };
87
+ export { PersistQueryClientProviderProps }
88
+ export { PersistQueryClientProviderProps as PersistQueryClientProviderProps_alias_1 }
89
+
90
+ export { persistQueryClientRestore }
91
+
92
+ export { PersistQueryClientRootOptions }
93
+
94
+ export { persistQueryClientSave }
95
+
96
+ export { persistQueryClientSubscribe }
97
+
98
+ export { PersistRetryer }
99
+
100
+ export { Promisable }
101
+
102
+ declare type Props = {
103
+ children?: ComponentChildren;
104
+ client: any;
105
+ persistOptions: any;
106
+ onSuccess?: () => void | Promise<void>;
107
+ onError?: () => void;
108
+ };
109
+
110
+ export { removeOldestQuery }
111
+
112
+ export { StoragePersisterOptions }
113
+
114
+ export { }
@@ -1,4 +1,21 @@
1
- export * from '@tanstack/query-persist-client-core';
2
- export { PersistQueryClientProvider, PersistQueryClientProviderProps } from './PersistQueryClientProvider.cjs';
3
- import 'preact';
4
- import '@tanstack/preact-query';
1
+ export { persistQueryClientRestore } from './_tsup-dts-rollup.cjs';
2
+ export { persistQueryClientSave } from './_tsup-dts-rollup.cjs';
3
+ export { persistQueryClientSubscribe } from './_tsup-dts-rollup.cjs';
4
+ export { persistQueryClient } from './_tsup-dts-rollup.cjs';
5
+ export { Promisable } from './_tsup-dts-rollup.cjs';
6
+ export { Persister } from './_tsup-dts-rollup.cjs';
7
+ export { PersistedClient } from './_tsup-dts-rollup.cjs';
8
+ export { PersistQueryClientRootOptions } from './_tsup-dts-rollup.cjs';
9
+ export { PersistedQueryClientRestoreOptions } from './_tsup-dts-rollup.cjs';
10
+ export { PersistedQueryClientSaveOptions } from './_tsup-dts-rollup.cjs';
11
+ export { PersistQueryClientOptions } from './_tsup-dts-rollup.cjs';
12
+ export { PersistRetryer } from './_tsup-dts-rollup.cjs';
13
+ export { removeOldestQuery } from './_tsup-dts-rollup.cjs';
14
+ export { experimental_createQueryPersister } from './_tsup-dts-rollup.cjs';
15
+ export { PersistedQuery } from './_tsup-dts-rollup.cjs';
16
+ export { MaybePromise } from './_tsup-dts-rollup.cjs';
17
+ export { AsyncStorage } from './_tsup-dts-rollup.cjs';
18
+ export { StoragePersisterOptions } from './_tsup-dts-rollup.cjs';
19
+ export { PERSISTER_KEY_PREFIX } from './_tsup-dts-rollup.cjs';
20
+ export { PersistQueryClientProviderProps_alias_1 as PersistQueryClientProviderProps } from './_tsup-dts-rollup.cjs';
21
+ export { PersistQueryClientProvider_alias_1 as PersistQueryClientProvider } from './_tsup-dts-rollup.cjs';
@@ -1,4 +1,21 @@
1
- export * from '@tanstack/query-persist-client-core';
2
- export { PersistQueryClientProvider, PersistQueryClientProviderProps } from './PersistQueryClientProvider.js';
3
- import 'preact';
4
- import '@tanstack/preact-query';
1
+ export { persistQueryClientRestore } from './_tsup-dts-rollup.js';
2
+ export { persistQueryClientSave } from './_tsup-dts-rollup.js';
3
+ export { persistQueryClientSubscribe } from './_tsup-dts-rollup.js';
4
+ export { persistQueryClient } from './_tsup-dts-rollup.js';
5
+ export { Promisable } from './_tsup-dts-rollup.js';
6
+ export { Persister } from './_tsup-dts-rollup.js';
7
+ export { PersistedClient } from './_tsup-dts-rollup.js';
8
+ export { PersistQueryClientRootOptions } from './_tsup-dts-rollup.js';
9
+ export { PersistedQueryClientRestoreOptions } from './_tsup-dts-rollup.js';
10
+ export { PersistedQueryClientSaveOptions } from './_tsup-dts-rollup.js';
11
+ export { PersistQueryClientOptions } from './_tsup-dts-rollup.js';
12
+ export { PersistRetryer } from './_tsup-dts-rollup.js';
13
+ export { removeOldestQuery } from './_tsup-dts-rollup.js';
14
+ export { experimental_createQueryPersister } from './_tsup-dts-rollup.js';
15
+ export { PersistedQuery } from './_tsup-dts-rollup.js';
16
+ export { MaybePromise } from './_tsup-dts-rollup.js';
17
+ export { AsyncStorage } from './_tsup-dts-rollup.js';
18
+ export { StoragePersisterOptions } from './_tsup-dts-rollup.js';
19
+ export { PERSISTER_KEY_PREFIX } from './_tsup-dts-rollup.js';
20
+ export { PersistQueryClientProviderProps_alias_1 as PersistQueryClientProviderProps } from './_tsup-dts-rollup.js';
21
+ export { PersistQueryClientProvider_alias_1 as PersistQueryClientProvider } from './_tsup-dts-rollup.js';
@@ -1,12 +1,2 @@
1
- import { PersistQueryClientOptions } from '@tanstack/query-persist-client-core';
2
- import { VNode } from 'preact';
3
- import { QueryClientProviderProps, OmitKeyof } from '@tanstack/preact-query';
4
-
5
- type PersistQueryClientProviderProps = QueryClientProviderProps & {
6
- persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
7
- onSuccess?: () => Promise<unknown> | unknown;
8
- onError?: () => Promise<unknown> | unknown;
9
- };
10
- declare const PersistQueryClientProvider: ({ children, persistOptions, onSuccess, onError, ...props }: PersistQueryClientProviderProps) => VNode;
11
-
12
- export { PersistQueryClientProvider, type PersistQueryClientProviderProps };
1
+ export { PersistQueryClientProviderProps } from './_tsup-dts-rollup.cjs';
2
+ export { PersistQueryClientProvider } from './_tsup-dts-rollup.cjs';
@@ -1,12 +1,2 @@
1
- import { PersistQueryClientOptions } from '@tanstack/query-persist-client-core';
2
- import { VNode } from 'preact';
3
- import { QueryClientProviderProps, OmitKeyof } from '@tanstack/preact-query';
4
-
5
- type PersistQueryClientProviderProps = QueryClientProviderProps & {
6
- persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
7
- onSuccess?: () => Promise<unknown> | unknown;
8
- onError?: () => Promise<unknown> | unknown;
9
- };
10
- declare const PersistQueryClientProvider: ({ children, persistOptions, onSuccess, onError, ...props }: PersistQueryClientProviderProps) => VNode;
11
-
12
- export { PersistQueryClientProvider, type PersistQueryClientProviderProps };
1
+ export { PersistQueryClientProviderProps } from './_tsup-dts-rollup.js';
2
+ export { PersistQueryClientProvider } from './_tsup-dts-rollup.js';
@@ -0,0 +1,114 @@
1
+ import { AsyncStorage } from '@tanstack/query-persist-client-core';
2
+ import type { ComponentChildren } from 'preact';
3
+ import { experimental_createQueryPersister } from '@tanstack/query-persist-client-core';
4
+ import { JSX } from 'preact';
5
+ import { MaybePromise } from '@tanstack/query-persist-client-core';
6
+ import type { OmitKeyof } from '@tanstack/preact-query';
7
+ import { Options } from 'tsup';
8
+ import { PersistedClient } from '@tanstack/query-persist-client-core';
9
+ import { PersistedQuery } from '@tanstack/query-persist-client-core';
10
+ import { PersistedQueryClientRestoreOptions } from '@tanstack/query-persist-client-core';
11
+ import { PersistedQueryClientSaveOptions } from '@tanstack/query-persist-client-core';
12
+ import { Persister } from '@tanstack/query-persist-client-core';
13
+ import { PERSISTER_KEY_PREFIX } from '@tanstack/query-persist-client-core';
14
+ import { persistQueryClient } from '@tanstack/query-persist-client-core';
15
+ import { PersistQueryClientOptions } from '@tanstack/query-persist-client-core';
16
+ import { persistQueryClientRestore } from '@tanstack/query-persist-client-core';
17
+ import { PersistQueryClientRootOptions } from '@tanstack/query-persist-client-core';
18
+ import { persistQueryClientSave } from '@tanstack/query-persist-client-core';
19
+ import { persistQueryClientSubscribe } from '@tanstack/query-persist-client-core';
20
+ import { PersistRetryer } from '@tanstack/query-persist-client-core';
21
+ import { Promisable } from '@tanstack/query-persist-client-core';
22
+ import type { QueryClientProviderProps } from '@tanstack/preact-query';
23
+ import { removeOldestQuery } from '@tanstack/query-persist-client-core';
24
+ import { StoragePersisterOptions } from '@tanstack/query-persist-client-core';
25
+ import type { UserConfig } from 'vite';
26
+ import type { VNode } from 'preact';
27
+
28
+ export { AsyncStorage }
29
+
30
+ export declare const default_alias: any[];
31
+
32
+ export declare const default_alias_1: any[];
33
+
34
+ export declare const default_alias_2: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
35
+
36
+ export declare const default_alias_3: UserConfig;
37
+
38
+ export { experimental_createQueryPersister }
39
+
40
+ /**
41
+ * @param {Object} opts - Options for building configurations.
42
+ * @param {string[]} opts.entry - The entry array.
43
+ * @returns {import('tsup').Options}
44
+ */
45
+ export declare function legacyConfig(opts: {
46
+ entry: string[];
47
+ }): Options;
48
+
49
+ export { MaybePromise }
50
+
51
+ /**
52
+ * @param {Object} opts - Options for building configurations.
53
+ * @param {string[]} opts.entry - The entry array.
54
+ * @returns {import('tsup').Options}
55
+ */
56
+ export declare function modernConfig(opts: {
57
+ entry: string[];
58
+ }): Options;
59
+
60
+ export { PersistedClient }
61
+
62
+ export { PersistedQuery }
63
+
64
+ export { PersistedQueryClientRestoreOptions }
65
+
66
+ export { PersistedQueryClientSaveOptions }
67
+
68
+ export { Persister }
69
+
70
+ export { PERSISTER_KEY_PREFIX }
71
+
72
+ export { persistQueryClient }
73
+
74
+ export { PersistQueryClientOptions }
75
+
76
+ declare const PersistQueryClientProvider: ({ children, persistOptions, onSuccess, onError, ...props }: PersistQueryClientProviderProps) => VNode;
77
+ export { PersistQueryClientProvider }
78
+ export { PersistQueryClientProvider as PersistQueryClientProvider_alias_1 }
79
+
80
+ export declare function PersistQueryClientProvider_alias_2({ children, persistOptions, onSuccess, onError, ...props }: Props): JSX.Element;
81
+
82
+ declare type PersistQueryClientProviderProps = QueryClientProviderProps & {
83
+ persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
84
+ onSuccess?: () => Promise<unknown> | unknown;
85
+ onError?: () => Promise<unknown> | unknown;
86
+ };
87
+ export { PersistQueryClientProviderProps }
88
+ export { PersistQueryClientProviderProps as PersistQueryClientProviderProps_alias_1 }
89
+
90
+ export { persistQueryClientRestore }
91
+
92
+ export { PersistQueryClientRootOptions }
93
+
94
+ export { persistQueryClientSave }
95
+
96
+ export { persistQueryClientSubscribe }
97
+
98
+ export { PersistRetryer }
99
+
100
+ export { Promisable }
101
+
102
+ declare type Props = {
103
+ children?: ComponentChildren;
104
+ client: any;
105
+ persistOptions: any;
106
+ onSuccess?: () => void | Promise<void>;
107
+ onError?: () => void;
108
+ };
109
+
110
+ export { removeOldestQuery }
111
+
112
+ export { StoragePersisterOptions }
113
+
114
+ export { }
@@ -0,0 +1,114 @@
1
+ import { AsyncStorage } from '@tanstack/query-persist-client-core';
2
+ import type { ComponentChildren } from 'preact';
3
+ import { experimental_createQueryPersister } from '@tanstack/query-persist-client-core';
4
+ import { JSX } from 'preact';
5
+ import { MaybePromise } from '@tanstack/query-persist-client-core';
6
+ import type { OmitKeyof } from '@tanstack/preact-query';
7
+ import { Options } from 'tsup';
8
+ import { PersistedClient } from '@tanstack/query-persist-client-core';
9
+ import { PersistedQuery } from '@tanstack/query-persist-client-core';
10
+ import { PersistedQueryClientRestoreOptions } from '@tanstack/query-persist-client-core';
11
+ import { PersistedQueryClientSaveOptions } from '@tanstack/query-persist-client-core';
12
+ import { Persister } from '@tanstack/query-persist-client-core';
13
+ import { PERSISTER_KEY_PREFIX } from '@tanstack/query-persist-client-core';
14
+ import { persistQueryClient } from '@tanstack/query-persist-client-core';
15
+ import { PersistQueryClientOptions } from '@tanstack/query-persist-client-core';
16
+ import { persistQueryClientRestore } from '@tanstack/query-persist-client-core';
17
+ import { PersistQueryClientRootOptions } from '@tanstack/query-persist-client-core';
18
+ import { persistQueryClientSave } from '@tanstack/query-persist-client-core';
19
+ import { persistQueryClientSubscribe } from '@tanstack/query-persist-client-core';
20
+ import { PersistRetryer } from '@tanstack/query-persist-client-core';
21
+ import { Promisable } from '@tanstack/query-persist-client-core';
22
+ import type { QueryClientProviderProps } from '@tanstack/preact-query';
23
+ import { removeOldestQuery } from '@tanstack/query-persist-client-core';
24
+ import { StoragePersisterOptions } from '@tanstack/query-persist-client-core';
25
+ import type { UserConfig } from 'vite';
26
+ import type { VNode } from 'preact';
27
+
28
+ export { AsyncStorage }
29
+
30
+ export declare const default_alias: any[];
31
+
32
+ export declare const default_alias_1: any[];
33
+
34
+ export declare const default_alias_2: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
35
+
36
+ export declare const default_alias_3: UserConfig;
37
+
38
+ export { experimental_createQueryPersister }
39
+
40
+ /**
41
+ * @param {Object} opts - Options for building configurations.
42
+ * @param {string[]} opts.entry - The entry array.
43
+ * @returns {import('tsup').Options}
44
+ */
45
+ export declare function legacyConfig(opts: {
46
+ entry: string[];
47
+ }): Options;
48
+
49
+ export { MaybePromise }
50
+
51
+ /**
52
+ * @param {Object} opts - Options for building configurations.
53
+ * @param {string[]} opts.entry - The entry array.
54
+ * @returns {import('tsup').Options}
55
+ */
56
+ export declare function modernConfig(opts: {
57
+ entry: string[];
58
+ }): Options;
59
+
60
+ export { PersistedClient }
61
+
62
+ export { PersistedQuery }
63
+
64
+ export { PersistedQueryClientRestoreOptions }
65
+
66
+ export { PersistedQueryClientSaveOptions }
67
+
68
+ export { Persister }
69
+
70
+ export { PERSISTER_KEY_PREFIX }
71
+
72
+ export { persistQueryClient }
73
+
74
+ export { PersistQueryClientOptions }
75
+
76
+ declare const PersistQueryClientProvider: ({ children, persistOptions, onSuccess, onError, ...props }: PersistQueryClientProviderProps) => VNode;
77
+ export { PersistQueryClientProvider }
78
+ export { PersistQueryClientProvider as PersistQueryClientProvider_alias_1 }
79
+
80
+ export declare function PersistQueryClientProvider_alias_2({ children, persistOptions, onSuccess, onError, ...props }: Props): JSX.Element;
81
+
82
+ declare type PersistQueryClientProviderProps = QueryClientProviderProps & {
83
+ persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
84
+ onSuccess?: () => Promise<unknown> | unknown;
85
+ onError?: () => Promise<unknown> | unknown;
86
+ };
87
+ export { PersistQueryClientProviderProps }
88
+ export { PersistQueryClientProviderProps as PersistQueryClientProviderProps_alias_1 }
89
+
90
+ export { persistQueryClientRestore }
91
+
92
+ export { PersistQueryClientRootOptions }
93
+
94
+ export { persistQueryClientSave }
95
+
96
+ export { persistQueryClientSubscribe }
97
+
98
+ export { PersistRetryer }
99
+
100
+ export { Promisable }
101
+
102
+ declare type Props = {
103
+ children?: ComponentChildren;
104
+ client: any;
105
+ persistOptions: any;
106
+ onSuccess?: () => void | Promise<void>;
107
+ onError?: () => void;
108
+ };
109
+
110
+ export { removeOldestQuery }
111
+
112
+ export { StoragePersisterOptions }
113
+
114
+ export { }
@@ -1,4 +1,21 @@
1
- export * from '@tanstack/query-persist-client-core';
2
- export { PersistQueryClientProvider, PersistQueryClientProviderProps } from './PersistQueryClientProvider.cjs';
3
- import 'preact';
4
- import '@tanstack/preact-query';
1
+ export { persistQueryClientRestore } from './_tsup-dts-rollup.cjs';
2
+ export { persistQueryClientSave } from './_tsup-dts-rollup.cjs';
3
+ export { persistQueryClientSubscribe } from './_tsup-dts-rollup.cjs';
4
+ export { persistQueryClient } from './_tsup-dts-rollup.cjs';
5
+ export { Promisable } from './_tsup-dts-rollup.cjs';
6
+ export { Persister } from './_tsup-dts-rollup.cjs';
7
+ export { PersistedClient } from './_tsup-dts-rollup.cjs';
8
+ export { PersistQueryClientRootOptions } from './_tsup-dts-rollup.cjs';
9
+ export { PersistedQueryClientRestoreOptions } from './_tsup-dts-rollup.cjs';
10
+ export { PersistedQueryClientSaveOptions } from './_tsup-dts-rollup.cjs';
11
+ export { PersistQueryClientOptions } from './_tsup-dts-rollup.cjs';
12
+ export { PersistRetryer } from './_tsup-dts-rollup.cjs';
13
+ export { removeOldestQuery } from './_tsup-dts-rollup.cjs';
14
+ export { experimental_createQueryPersister } from './_tsup-dts-rollup.cjs';
15
+ export { PersistedQuery } from './_tsup-dts-rollup.cjs';
16
+ export { MaybePromise } from './_tsup-dts-rollup.cjs';
17
+ export { AsyncStorage } from './_tsup-dts-rollup.cjs';
18
+ export { StoragePersisterOptions } from './_tsup-dts-rollup.cjs';
19
+ export { PERSISTER_KEY_PREFIX } from './_tsup-dts-rollup.cjs';
20
+ export { PersistQueryClientProviderProps_alias_1 as PersistQueryClientProviderProps } from './_tsup-dts-rollup.cjs';
21
+ export { PersistQueryClientProvider_alias_1 as PersistQueryClientProvider } from './_tsup-dts-rollup.cjs';
@@ -1,4 +1,21 @@
1
- export * from '@tanstack/query-persist-client-core';
2
- export { PersistQueryClientProvider, PersistQueryClientProviderProps } from './PersistQueryClientProvider.js';
3
- import 'preact';
4
- import '@tanstack/preact-query';
1
+ export { persistQueryClientRestore } from './_tsup-dts-rollup.js';
2
+ export { persistQueryClientSave } from './_tsup-dts-rollup.js';
3
+ export { persistQueryClientSubscribe } from './_tsup-dts-rollup.js';
4
+ export { persistQueryClient } from './_tsup-dts-rollup.js';
5
+ export { Promisable } from './_tsup-dts-rollup.js';
6
+ export { Persister } from './_tsup-dts-rollup.js';
7
+ export { PersistedClient } from './_tsup-dts-rollup.js';
8
+ export { PersistQueryClientRootOptions } from './_tsup-dts-rollup.js';
9
+ export { PersistedQueryClientRestoreOptions } from './_tsup-dts-rollup.js';
10
+ export { PersistedQueryClientSaveOptions } from './_tsup-dts-rollup.js';
11
+ export { PersistQueryClientOptions } from './_tsup-dts-rollup.js';
12
+ export { PersistRetryer } from './_tsup-dts-rollup.js';
13
+ export { removeOldestQuery } from './_tsup-dts-rollup.js';
14
+ export { experimental_createQueryPersister } from './_tsup-dts-rollup.js';
15
+ export { PersistedQuery } from './_tsup-dts-rollup.js';
16
+ export { MaybePromise } from './_tsup-dts-rollup.js';
17
+ export { AsyncStorage } from './_tsup-dts-rollup.js';
18
+ export { StoragePersisterOptions } from './_tsup-dts-rollup.js';
19
+ export { PERSISTER_KEY_PREFIX } from './_tsup-dts-rollup.js';
20
+ export { PersistQueryClientProviderProps_alias_1 as PersistQueryClientProviderProps } from './_tsup-dts-rollup.js';
21
+ export { PersistQueryClientProvider_alias_1 as PersistQueryClientProvider } from './_tsup-dts-rollup.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/preact-query-persist-client",
3
- "version": "5.92.0",
3
+ "version": "5.92.3",
4
4
  "description": "Preact bindings to work with persisters in TanStack/preact-query",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -39,7 +39,7 @@
39
39
  "!src/__tests__"
40
40
  ],
41
41
  "dependencies": {
42
- "@tanstack/query-persist-client-core": "5.92.1"
42
+ "@tanstack/query-persist-client-core": "5.92.4"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@preact/preset-vite": "^2.10.2",
@@ -47,28 +47,28 @@
47
47
  "eslint-config-preact": "^2.0.0",
48
48
  "npm-run-all2": "^5.0.0",
49
49
  "preact": "^10.28.0",
50
+ "typescript": "5.9.3",
50
51
  "typescript-eslint": "^8.54.0",
51
- "@tanstack/preact-query": "5.93.0",
52
+ "@tanstack/preact-query": "5.94.2",
52
53
  "@tanstack/query-test-utils": "0.0.0"
53
54
  },
54
55
  "peerDependencies": {
55
56
  "preact": "^10.0.0",
56
- "@tanstack/preact-query": "^5.93.0"
57
+ "@tanstack/preact-query": "^5.94.2"
57
58
  },
58
59
  "scripts": {
59
60
  "clean": "premove ./build ./coverage ./dist-ts",
60
61
  "compile": "tsc --build",
61
62
  "test:eslint": "eslint --concurrency=auto ./src",
62
63
  "test:types": "npm-run-all --serial test:types:*",
63
- "test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js --build tsconfig.legacy.json",
64
- "test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js --build tsconfig.legacy.json",
65
- "test:types:ts52": "node ../../node_modules/typescript52/lib/tsc.js --build tsconfig.legacy.json",
66
- "test:types:ts53": "node ../../node_modules/typescript53/lib/tsc.js --build tsconfig.legacy.json",
67
64
  "test:types:ts54": "node ../../node_modules/typescript54/lib/tsc.js --build tsconfig.legacy.json",
68
65
  "test:types:ts55": "node ../../node_modules/typescript55/lib/tsc.js --build tsconfig.legacy.json",
69
66
  "test:types:ts56": "node ../../node_modules/typescript56/lib/tsc.js --build tsconfig.legacy.json",
70
67
  "test:types:ts57": "node ../../node_modules/typescript57/lib/tsc.js --build tsconfig.legacy.json",
68
+ "test:types:ts58": "node ../../node_modules/typescript58/lib/tsc.js --build tsconfig.legacy.json",
69
+ "test:types:ts59": "node ../../node_modules/typescript59/lib/tsc.js --build tsconfig.legacy.json",
71
70
  "test:types:tscurrent": "tsc --build",
71
+ "test:types:ts60": "node ../../node_modules/typescript60/lib/tsc.js --build",
72
72
  "test:lib": "vitest --retry=3",
73
73
  "test:lib:dev": "pnpm run test:lib --watch",
74
74
  "test:build": "publint --strict && attw --pack",