@tanstack/preact-query-persist-client 5.95.2 → 5.96.1

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,10 +1,7 @@
1
1
  import { AsyncStorage } from '@tanstack/query-persist-client-core';
2
- import type { ComponentChildren } from 'preact';
3
2
  import { experimental_createQueryPersister } from '@tanstack/query-persist-client-core';
4
- import { JSX } from 'preact';
5
3
  import { MaybePromise } from '@tanstack/query-persist-client-core';
6
4
  import type { OmitKeyof } from '@tanstack/preact-query';
7
- import { Options } from 'tsup';
8
5
  import { PersistedClient } from '@tanstack/query-persist-client-core';
9
6
  import { PersistedQuery } from '@tanstack/query-persist-client-core';
10
7
  import { PersistedQueryClientRestoreOptions } from '@tanstack/query-persist-client-core';
@@ -22,41 +19,14 @@ import { Promisable } from '@tanstack/query-persist-client-core';
22
19
  import type { QueryClientProviderProps } from '@tanstack/preact-query';
23
20
  import { removeOldestQuery } from '@tanstack/query-persist-client-core';
24
21
  import { StoragePersisterOptions } from '@tanstack/query-persist-client-core';
25
- import type { UserConfig } from 'vite';
26
22
  import type { VNode } from 'preact';
27
23
 
28
24
  export { AsyncStorage }
29
25
 
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
26
  export { experimental_createQueryPersister }
39
27
 
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
28
  export { MaybePromise }
50
29
 
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
30
  export { PersistedClient }
61
31
 
62
32
  export { PersistedQuery }
@@ -77,8 +47,6 @@ declare const PersistQueryClientProvider: ({ children, persistOptions, onSuccess
77
47
  export { PersistQueryClientProvider }
78
48
  export { PersistQueryClientProvider as PersistQueryClientProvider_alias_1 }
79
49
 
80
- export declare function PersistQueryClientProvider_alias_2({ children, persistOptions, onSuccess, onError, ...props }: Props): JSX.Element;
81
-
82
50
  declare type PersistQueryClientProviderProps = QueryClientProviderProps & {
83
51
  persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
84
52
  onSuccess?: () => Promise<unknown> | unknown;
@@ -99,14 +67,6 @@ export { PersistRetryer }
99
67
 
100
68
  export { Promisable }
101
69
 
102
- declare type Props = {
103
- children?: ComponentChildren;
104
- client: any;
105
- persistOptions: any;
106
- onSuccess?: () => void | Promise<void>;
107
- onError?: () => void;
108
- };
109
-
110
70
  export { removeOldestQuery }
111
71
 
112
72
  export { StoragePersisterOptions }
@@ -1,10 +1,7 @@
1
1
  import { AsyncStorage } from '@tanstack/query-persist-client-core';
2
- import type { ComponentChildren } from 'preact';
3
2
  import { experimental_createQueryPersister } from '@tanstack/query-persist-client-core';
4
- import { JSX } from 'preact';
5
3
  import { MaybePromise } from '@tanstack/query-persist-client-core';
6
4
  import type { OmitKeyof } from '@tanstack/preact-query';
7
- import { Options } from 'tsup';
8
5
  import { PersistedClient } from '@tanstack/query-persist-client-core';
9
6
  import { PersistedQuery } from '@tanstack/query-persist-client-core';
10
7
  import { PersistedQueryClientRestoreOptions } from '@tanstack/query-persist-client-core';
@@ -22,41 +19,14 @@ import { Promisable } from '@tanstack/query-persist-client-core';
22
19
  import type { QueryClientProviderProps } from '@tanstack/preact-query';
23
20
  import { removeOldestQuery } from '@tanstack/query-persist-client-core';
24
21
  import { StoragePersisterOptions } from '@tanstack/query-persist-client-core';
25
- import type { UserConfig } from 'vite';
26
22
  import type { VNode } from 'preact';
27
23
 
28
24
  export { AsyncStorage }
29
25
 
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
26
  export { experimental_createQueryPersister }
39
27
 
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
28
  export { MaybePromise }
50
29
 
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
30
  export { PersistedClient }
61
31
 
62
32
  export { PersistedQuery }
@@ -77,8 +47,6 @@ declare const PersistQueryClientProvider: ({ children, persistOptions, onSuccess
77
47
  export { PersistQueryClientProvider }
78
48
  export { PersistQueryClientProvider as PersistQueryClientProvider_alias_1 }
79
49
 
80
- export declare function PersistQueryClientProvider_alias_2({ children, persistOptions, onSuccess, onError, ...props }: Props): JSX.Element;
81
-
82
50
  declare type PersistQueryClientProviderProps = QueryClientProviderProps & {
83
51
  persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
84
52
  onSuccess?: () => Promise<unknown> | unknown;
@@ -99,14 +67,6 @@ export { PersistRetryer }
99
67
 
100
68
  export { Promisable }
101
69
 
102
- declare type Props = {
103
- children?: ComponentChildren;
104
- client: any;
105
- persistOptions: any;
106
- onSuccess?: () => void | Promise<void>;
107
- onError?: () => void;
108
- };
109
-
110
70
  export { removeOldestQuery }
111
71
 
112
72
  export { StoragePersisterOptions }
@@ -1,10 +1,7 @@
1
1
  import { AsyncStorage } from '@tanstack/query-persist-client-core';
2
- import type { ComponentChildren } from 'preact';
3
2
  import { experimental_createQueryPersister } from '@tanstack/query-persist-client-core';
4
- import { JSX } from 'preact';
5
3
  import { MaybePromise } from '@tanstack/query-persist-client-core';
6
4
  import type { OmitKeyof } from '@tanstack/preact-query';
7
- import { Options } from 'tsup';
8
5
  import { PersistedClient } from '@tanstack/query-persist-client-core';
9
6
  import { PersistedQuery } from '@tanstack/query-persist-client-core';
10
7
  import { PersistedQueryClientRestoreOptions } from '@tanstack/query-persist-client-core';
@@ -22,41 +19,14 @@ import { Promisable } from '@tanstack/query-persist-client-core';
22
19
  import type { QueryClientProviderProps } from '@tanstack/preact-query';
23
20
  import { removeOldestQuery } from '@tanstack/query-persist-client-core';
24
21
  import { StoragePersisterOptions } from '@tanstack/query-persist-client-core';
25
- import type { UserConfig } from 'vite';
26
22
  import type { VNode } from 'preact';
27
23
 
28
24
  export { AsyncStorage }
29
25
 
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
26
  export { experimental_createQueryPersister }
39
27
 
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
28
  export { MaybePromise }
50
29
 
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
30
  export { PersistedClient }
61
31
 
62
32
  export { PersistedQuery }
@@ -77,8 +47,6 @@ declare const PersistQueryClientProvider: ({ children, persistOptions, onSuccess
77
47
  export { PersistQueryClientProvider }
78
48
  export { PersistQueryClientProvider as PersistQueryClientProvider_alias_1 }
79
49
 
80
- export declare function PersistQueryClientProvider_alias_2({ children, persistOptions, onSuccess, onError, ...props }: Props): JSX.Element;
81
-
82
50
  declare type PersistQueryClientProviderProps = QueryClientProviderProps & {
83
51
  persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
84
52
  onSuccess?: () => Promise<unknown> | unknown;
@@ -99,14 +67,6 @@ export { PersistRetryer }
99
67
 
100
68
  export { Promisable }
101
69
 
102
- declare type Props = {
103
- children?: ComponentChildren;
104
- client: any;
105
- persistOptions: any;
106
- onSuccess?: () => void | Promise<void>;
107
- onError?: () => void;
108
- };
109
-
110
70
  export { removeOldestQuery }
111
71
 
112
72
  export { StoragePersisterOptions }
@@ -1,10 +1,7 @@
1
1
  import { AsyncStorage } from '@tanstack/query-persist-client-core';
2
- import type { ComponentChildren } from 'preact';
3
2
  import { experimental_createQueryPersister } from '@tanstack/query-persist-client-core';
4
- import { JSX } from 'preact';
5
3
  import { MaybePromise } from '@tanstack/query-persist-client-core';
6
4
  import type { OmitKeyof } from '@tanstack/preact-query';
7
- import { Options } from 'tsup';
8
5
  import { PersistedClient } from '@tanstack/query-persist-client-core';
9
6
  import { PersistedQuery } from '@tanstack/query-persist-client-core';
10
7
  import { PersistedQueryClientRestoreOptions } from '@tanstack/query-persist-client-core';
@@ -22,41 +19,14 @@ import { Promisable } from '@tanstack/query-persist-client-core';
22
19
  import type { QueryClientProviderProps } from '@tanstack/preact-query';
23
20
  import { removeOldestQuery } from '@tanstack/query-persist-client-core';
24
21
  import { StoragePersisterOptions } from '@tanstack/query-persist-client-core';
25
- import type { UserConfig } from 'vite';
26
22
  import type { VNode } from 'preact';
27
23
 
28
24
  export { AsyncStorage }
29
25
 
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
26
  export { experimental_createQueryPersister }
39
27
 
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
28
  export { MaybePromise }
50
29
 
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
30
  export { PersistedClient }
61
31
 
62
32
  export { PersistedQuery }
@@ -77,8 +47,6 @@ declare const PersistQueryClientProvider: ({ children, persistOptions, onSuccess
77
47
  export { PersistQueryClientProvider }
78
48
  export { PersistQueryClientProvider as PersistQueryClientProvider_alias_1 }
79
49
 
80
- export declare function PersistQueryClientProvider_alias_2({ children, persistOptions, onSuccess, onError, ...props }: Props): JSX.Element;
81
-
82
50
  declare type PersistQueryClientProviderProps = QueryClientProviderProps & {
83
51
  persistOptions: OmitKeyof<PersistQueryClientOptions, 'queryClient'>;
84
52
  onSuccess?: () => Promise<unknown> | unknown;
@@ -99,14 +67,6 @@ export { PersistRetryer }
99
67
 
100
68
  export { Promisable }
101
69
 
102
- declare type Props = {
103
- children?: ComponentChildren;
104
- client: any;
105
- persistOptions: any;
106
- onSuccess?: () => void | Promise<void>;
107
- onError?: () => void;
108
- };
109
-
110
70
  export { removeOldestQuery }
111
71
 
112
72
  export { StoragePersisterOptions }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/preact-query-persist-client",
3
- "version": "5.95.2",
3
+ "version": "5.96.1",
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.95.2"
42
+ "@tanstack/query-persist-client-core": "5.96.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@preact/preset-vite": "^2.10.2",
@@ -49,12 +49,12 @@
49
49
  "preact": "^10.28.0",
50
50
  "typescript": "5.9.3",
51
51
  "typescript-eslint": "^8.54.0",
52
- "@tanstack/preact-query": "5.95.2",
52
+ "@tanstack/preact-query": "5.96.1",
53
53
  "@tanstack/query-test-utils": "0.0.0"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "preact": "^10.0.0",
57
- "@tanstack/preact-query": "^5.95.2"
57
+ "@tanstack/preact-query": "^5.96.1"
58
58
  },
59
59
  "scripts": {
60
60
  "clean": "premove ./build ./coverage ./dist-ts",