@tanstack/query-persist-client-core 5.96.0 → 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,14 +1,12 @@
1
1
  import type { DehydratedState } from '@tanstack/query-core';
2
2
  import type { DehydrateOptions } from '@tanstack/query-core';
3
3
  import type { HydrateOptions } from '@tanstack/query-core';
4
- import { Options } from 'tsup';
5
4
  import type { Query } from '@tanstack/query-core';
6
5
  import type { QueryClient } from '@tanstack/query-core';
7
6
  import type { QueryFilters } from '@tanstack/query-core';
8
7
  import type { QueryFunctionContext } from '@tanstack/query-core';
9
8
  import type { QueryKey } from '@tanstack/query-core';
10
9
  import type { QueryState } from '@tanstack/query-core';
11
- import { UserConfig } from 'vite';
12
10
 
13
11
  declare interface AsyncStorage<TStorageValue = string> {
14
12
  getItem: (key: string) => MaybePromise<TStorageValue | undefined | null>;
@@ -19,18 +17,6 @@ declare interface AsyncStorage<TStorageValue = string> {
19
17
  export { AsyncStorage }
20
18
  export { AsyncStorage as AsyncStorage_alias_1 }
21
19
 
22
- export declare function createMockPersister(): Persister;
23
-
24
- export declare function createSpyPersister(): Persister;
25
-
26
- export declare const default_alias: any[];
27
-
28
- export declare const default_alias_1: any[];
29
-
30
- export declare const default_alias_2: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
31
-
32
- export declare const default_alias_3: UserConfig;
33
-
34
20
  /**
35
21
  * Warning: experimental feature.
36
22
  * This utility function enables fine-grained query persistence.
@@ -58,28 +44,10 @@ declare function experimental_createQueryPersister<TStorageValue = string>({ sto
58
44
  export { experimental_createQueryPersister }
59
45
  export { experimental_createQueryPersister as experimental_createQueryPersister_alias_1 }
60
46
 
61
- /**
62
- * @param {Object} opts - Options for building configurations.
63
- * @param {string[]} opts.entry - The entry array.
64
- * @returns {import('tsup').Options}
65
- */
66
- export declare function legacyConfig(opts: {
67
- entry: string[];
68
- }): Options;
69
-
70
47
  declare type MaybePromise<T> = T | Promise<T>;
71
48
  export { MaybePromise }
72
49
  export { MaybePromise as MaybePromise_alias_1 }
73
50
 
74
- /**
75
- * @param {Object} opts - Options for building configurations.
76
- * @param {string[]} opts.entry - The entry array.
77
- * @returns {import('tsup').Options}
78
- */
79
- export declare function modernConfig(opts: {
80
- entry: string[];
81
- }): Options;
82
-
83
51
  declare interface PersistedClient {
84
52
  timestamp: number;
85
53
  buster: string;
@@ -1,14 +1,12 @@
1
1
  import type { DehydratedState } from '@tanstack/query-core';
2
2
  import type { DehydrateOptions } from '@tanstack/query-core';
3
3
  import type { HydrateOptions } from '@tanstack/query-core';
4
- import { Options } from 'tsup';
5
4
  import type { Query } from '@tanstack/query-core';
6
5
  import type { QueryClient } from '@tanstack/query-core';
7
6
  import type { QueryFilters } from '@tanstack/query-core';
8
7
  import type { QueryFunctionContext } from '@tanstack/query-core';
9
8
  import type { QueryKey } from '@tanstack/query-core';
10
9
  import type { QueryState } from '@tanstack/query-core';
11
- import { UserConfig } from 'vite';
12
10
 
13
11
  declare interface AsyncStorage<TStorageValue = string> {
14
12
  getItem: (key: string) => MaybePromise<TStorageValue | undefined | null>;
@@ -19,18 +17,6 @@ declare interface AsyncStorage<TStorageValue = string> {
19
17
  export { AsyncStorage }
20
18
  export { AsyncStorage as AsyncStorage_alias_1 }
21
19
 
22
- export declare function createMockPersister(): Persister;
23
-
24
- export declare function createSpyPersister(): Persister;
25
-
26
- export declare const default_alias: any[];
27
-
28
- export declare const default_alias_1: any[];
29
-
30
- export declare const default_alias_2: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
31
-
32
- export declare const default_alias_3: UserConfig;
33
-
34
20
  /**
35
21
  * Warning: experimental feature.
36
22
  * This utility function enables fine-grained query persistence.
@@ -58,28 +44,10 @@ declare function experimental_createQueryPersister<TStorageValue = string>({ sto
58
44
  export { experimental_createQueryPersister }
59
45
  export { experimental_createQueryPersister as experimental_createQueryPersister_alias_1 }
60
46
 
61
- /**
62
- * @param {Object} opts - Options for building configurations.
63
- * @param {string[]} opts.entry - The entry array.
64
- * @returns {import('tsup').Options}
65
- */
66
- export declare function legacyConfig(opts: {
67
- entry: string[];
68
- }): Options;
69
-
70
47
  declare type MaybePromise<T> = T | Promise<T>;
71
48
  export { MaybePromise }
72
49
  export { MaybePromise as MaybePromise_alias_1 }
73
50
 
74
- /**
75
- * @param {Object} opts - Options for building configurations.
76
- * @param {string[]} opts.entry - The entry array.
77
- * @returns {import('tsup').Options}
78
- */
79
- export declare function modernConfig(opts: {
80
- entry: string[];
81
- }): Options;
82
-
83
51
  declare interface PersistedClient {
84
52
  timestamp: number;
85
53
  buster: string;
@@ -1,14 +1,12 @@
1
1
  import type { DehydratedState } from '@tanstack/query-core';
2
2
  import type { DehydrateOptions } from '@tanstack/query-core';
3
3
  import type { HydrateOptions } from '@tanstack/query-core';
4
- import { Options } from 'tsup';
5
4
  import type { Query } from '@tanstack/query-core';
6
5
  import type { QueryClient } from '@tanstack/query-core';
7
6
  import type { QueryFilters } from '@tanstack/query-core';
8
7
  import type { QueryFunctionContext } from '@tanstack/query-core';
9
8
  import type { QueryKey } from '@tanstack/query-core';
10
9
  import type { QueryState } from '@tanstack/query-core';
11
- import { UserConfig } from 'vite';
12
10
 
13
11
  declare interface AsyncStorage<TStorageValue = string> {
14
12
  getItem: (key: string) => MaybePromise<TStorageValue | undefined | null>;
@@ -19,18 +17,6 @@ declare interface AsyncStorage<TStorageValue = string> {
19
17
  export { AsyncStorage }
20
18
  export { AsyncStorage as AsyncStorage_alias_1 }
21
19
 
22
- export declare function createMockPersister(): Persister;
23
-
24
- export declare function createSpyPersister(): Persister;
25
-
26
- export declare const default_alias: any[];
27
-
28
- export declare const default_alias_1: any[];
29
-
30
- export declare const default_alias_2: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
31
-
32
- export declare const default_alias_3: UserConfig;
33
-
34
20
  /**
35
21
  * Warning: experimental feature.
36
22
  * This utility function enables fine-grained query persistence.
@@ -58,28 +44,10 @@ declare function experimental_createQueryPersister<TStorageValue = string>({ sto
58
44
  export { experimental_createQueryPersister }
59
45
  export { experimental_createQueryPersister as experimental_createQueryPersister_alias_1 }
60
46
 
61
- /**
62
- * @param {Object} opts - Options for building configurations.
63
- * @param {string[]} opts.entry - The entry array.
64
- * @returns {import('tsup').Options}
65
- */
66
- export declare function legacyConfig(opts: {
67
- entry: string[];
68
- }): Options;
69
-
70
47
  declare type MaybePromise<T> = T | Promise<T>;
71
48
  export { MaybePromise }
72
49
  export { MaybePromise as MaybePromise_alias_1 }
73
50
 
74
- /**
75
- * @param {Object} opts - Options for building configurations.
76
- * @param {string[]} opts.entry - The entry array.
77
- * @returns {import('tsup').Options}
78
- */
79
- export declare function modernConfig(opts: {
80
- entry: string[];
81
- }): Options;
82
-
83
51
  declare interface PersistedClient {
84
52
  timestamp: number;
85
53
  buster: string;
@@ -1,14 +1,12 @@
1
1
  import type { DehydratedState } from '@tanstack/query-core';
2
2
  import type { DehydrateOptions } from '@tanstack/query-core';
3
3
  import type { HydrateOptions } from '@tanstack/query-core';
4
- import { Options } from 'tsup';
5
4
  import type { Query } from '@tanstack/query-core';
6
5
  import type { QueryClient } from '@tanstack/query-core';
7
6
  import type { QueryFilters } from '@tanstack/query-core';
8
7
  import type { QueryFunctionContext } from '@tanstack/query-core';
9
8
  import type { QueryKey } from '@tanstack/query-core';
10
9
  import type { QueryState } from '@tanstack/query-core';
11
- import { UserConfig } from 'vite';
12
10
 
13
11
  declare interface AsyncStorage<TStorageValue = string> {
14
12
  getItem: (key: string) => MaybePromise<TStorageValue | undefined | null>;
@@ -19,18 +17,6 @@ declare interface AsyncStorage<TStorageValue = string> {
19
17
  export { AsyncStorage }
20
18
  export { AsyncStorage as AsyncStorage_alias_1 }
21
19
 
22
- export declare function createMockPersister(): Persister;
23
-
24
- export declare function createSpyPersister(): Persister;
25
-
26
- export declare const default_alias: any[];
27
-
28
- export declare const default_alias_1: any[];
29
-
30
- export declare const default_alias_2: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
31
-
32
- export declare const default_alias_3: UserConfig;
33
-
34
20
  /**
35
21
  * Warning: experimental feature.
36
22
  * This utility function enables fine-grained query persistence.
@@ -58,28 +44,10 @@ declare function experimental_createQueryPersister<TStorageValue = string>({ sto
58
44
  export { experimental_createQueryPersister }
59
45
  export { experimental_createQueryPersister as experimental_createQueryPersister_alias_1 }
60
46
 
61
- /**
62
- * @param {Object} opts - Options for building configurations.
63
- * @param {string[]} opts.entry - The entry array.
64
- * @returns {import('tsup').Options}
65
- */
66
- export declare function legacyConfig(opts: {
67
- entry: string[];
68
- }): Options;
69
-
70
47
  declare type MaybePromise<T> = T | Promise<T>;
71
48
  export { MaybePromise }
72
49
  export { MaybePromise as MaybePromise_alias_1 }
73
50
 
74
- /**
75
- * @param {Object} opts - Options for building configurations.
76
- * @param {string[]} opts.entry - The entry array.
77
- * @returns {import('tsup').Options}
78
- */
79
- export declare function modernConfig(opts: {
80
- entry: string[];
81
- }): Options;
82
-
83
51
  declare interface PersistedClient {
84
52
  timestamp: number;
85
53
  buster: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/query-persist-client-core",
3
- "version": "5.96.0",
3
+ "version": "5.96.1",
4
4
  "description": "Set of utilities for interacting with persisters, which can save your queryClient for later use",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -40,7 +40,7 @@
40
40
  "!src/__tests__"
41
41
  ],
42
42
  "dependencies": {
43
- "@tanstack/query-core": "5.96.0"
43
+ "@tanstack/query-core": "5.96.1"
44
44
  },
45
45
  "devDependencies": {
46
46
  "npm-run-all2": "^5.0.0",