@tanstack/query-sync-storage-persister 5.104.5 → 5.105.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.
- package/build/legacy/index.cjs +1 -2
- package/build/legacy/index.d.cts +0 -2
- package/build/legacy/index.d.cts.map +1 -1
- package/build/legacy/index.d.ts +0 -2
- package/build/legacy/index.d.ts.map +1 -1
- package/build/legacy/index.js +1 -2
- package/build/legacy/utils.cjs +1 -2
- package/build/legacy/utils.d.cts +0 -2
- package/build/legacy/utils.d.cts.map +1 -1
- package/build/legacy/utils.d.ts +0 -2
- package/build/legacy/utils.d.ts.map +1 -1
- package/build/legacy/utils.js +1 -2
- package/build/modern/index.cjs +1 -2
- package/build/modern/index.d.cts +0 -2
- package/build/modern/index.d.cts.map +1 -1
- package/build/modern/index.d.ts +0 -2
- package/build/modern/index.d.ts.map +1 -1
- package/build/modern/index.js +1 -2
- package/build/modern/utils.cjs +1 -2
- package/build/modern/utils.d.cts +0 -2
- package/build/modern/utils.d.cts.map +1 -1
- package/build/modern/utils.d.ts +0 -2
- package/build/modern/utils.d.ts.map +1 -1
- package/build/modern/utils.js +1 -2
- package/package.json +3 -3
package/build/legacy/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_utils = require("./utils.cjs");
|
|
3
3
|
let _tanstack_query_core = require("@tanstack/query-core");
|
|
4
|
-
|
|
4
|
+
// src/index.ts
|
|
5
5
|
/**
|
|
6
6
|
* Creates a persister that stores the client in a synchronous storage such as
|
|
7
7
|
* `window.localStorage`.
|
|
@@ -70,7 +70,6 @@ function throttle(func, wait = 100) {
|
|
|
70
70
|
}, wait);
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
//#endregion
|
|
74
73
|
exports.createSyncStoragePersister = createSyncStoragePersister;
|
|
75
74
|
|
|
76
75
|
//# sourceMappingURL=index.cjs.map
|
package/build/legacy/index.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PersistRetryer, PersistedClient, Persister } from "@tanstack/query-persist-client-core";
|
|
2
|
-
//#region src/index.d.ts
|
|
3
2
|
interface Storage {
|
|
4
3
|
getItem: (key: string) => string | null;
|
|
5
4
|
setItem: (key: string, value: string) => void;
|
|
@@ -41,5 +40,4 @@ interface CreateSyncStoragePersisterOptions {
|
|
|
41
40
|
* @deprecated use `createAsyncStoragePersister` from `@tanstack/query-async-storage-persister` instead.
|
|
42
41
|
*/
|
|
43
42
|
export declare function createSyncStoragePersister({ storage, key, throttleTime, serialize, deserialize, retry }: CreateSyncStoragePersisterOptions): Persister;
|
|
44
|
-
//#endregion
|
|
45
43
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/index.ts"],"mappings":";UASU;EACR,UAAU;EACV,UAAU,aAAa;EACvB,aAAa;;UAGL;;;;;;EAMR,SAAS;;EAET;;;;;EAKA;;;;;EAKA,aAAa,QAAQ;;;;;EAKrB,eAAe,yBAAyB;EAExC,QAAQ;;;;;;;;;;;wBAYM,6BACd,SACA,KACA,cACA,WACA,aACA,SACC,oCAAoC"}
|
package/build/legacy/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PersistRetryer, PersistedClient, Persister } from "@tanstack/query-persist-client-core";
|
|
2
|
-
//#region src/index.d.ts
|
|
3
2
|
interface Storage {
|
|
4
3
|
getItem: (key: string) => string | null;
|
|
5
4
|
setItem: (key: string, value: string) => void;
|
|
@@ -41,5 +40,4 @@ interface CreateSyncStoragePersisterOptions {
|
|
|
41
40
|
* @deprecated use `createAsyncStoragePersister` from `@tanstack/query-async-storage-persister` instead.
|
|
42
41
|
*/
|
|
43
42
|
export declare function createSyncStoragePersister({ storage, key, throttleTime, serialize, deserialize, retry }: CreateSyncStoragePersisterOptions): Persister;
|
|
44
|
-
//#endregion
|
|
45
43
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";UASU;EACR,UAAU;EACV,UAAU,aAAa;EACvB,aAAa;;UAGL;;;;;;EAMR,SAAS;;EAET;;;;;EAKA;;;;;EAKA,aAAa,QAAQ;;;;;EAKrB,eAAe,yBAAyB;EAExC,QAAQ;;;;;;;;;;;wBAYM,6BACd,SACA,KACA,cACA,WACA,aACA,SACC,oCAAoC"}
|
package/build/legacy/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { noop } from "./utils.js";
|
|
2
2
|
import { timeoutManager } from "@tanstack/query-core";
|
|
3
|
-
|
|
3
|
+
// src/index.ts
|
|
4
4
|
/**
|
|
5
5
|
* Creates a persister that stores the client in a synchronous storage such as
|
|
6
6
|
* `window.localStorage`.
|
|
@@ -69,7 +69,6 @@ function throttle(func, wait = 100) {
|
|
|
69
69
|
}, wait);
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
//#endregion
|
|
73
72
|
export { createSyncStoragePersister };
|
|
74
73
|
|
|
75
74
|
//# sourceMappingURL=index.js.map
|
package/build/legacy/utils.cjs
CHANGED
package/build/legacy/utils.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.cts","names":[],"sources":["../../src/utils.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.cts","names":[],"sources":["../../src/utils.ts"],"mappings":";;;wBAGgB;wBACA"}
|
package/build/legacy/utils.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","names":[],"sources":["../../src/utils.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","names":[],"sources":["../../src/utils.ts"],"mappings":";;;wBAGgB;wBACA"}
|
package/build/legacy/utils.js
CHANGED
package/build/modern/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_utils = require("./utils.cjs");
|
|
3
3
|
let _tanstack_query_core = require("@tanstack/query-core");
|
|
4
|
-
|
|
4
|
+
// src/index.ts
|
|
5
5
|
/**
|
|
6
6
|
* Creates a persister that stores the client in a synchronous storage such as
|
|
7
7
|
* `window.localStorage`.
|
|
@@ -70,7 +70,6 @@ function throttle(func, wait = 100) {
|
|
|
70
70
|
}, wait);
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
//#endregion
|
|
74
73
|
exports.createSyncStoragePersister = createSyncStoragePersister;
|
|
75
74
|
|
|
76
75
|
//# sourceMappingURL=index.cjs.map
|
package/build/modern/index.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PersistRetryer, PersistedClient, Persister } from "@tanstack/query-persist-client-core";
|
|
2
|
-
//#region src/index.d.ts
|
|
3
2
|
interface Storage {
|
|
4
3
|
getItem: (key: string) => string | null;
|
|
5
4
|
setItem: (key: string, value: string) => void;
|
|
@@ -41,5 +40,4 @@ interface CreateSyncStoragePersisterOptions {
|
|
|
41
40
|
* @deprecated use `createAsyncStoragePersister` from `@tanstack/query-async-storage-persister` instead.
|
|
42
41
|
*/
|
|
43
42
|
export declare function createSyncStoragePersister({ storage, key, throttleTime, serialize, deserialize, retry }: CreateSyncStoragePersisterOptions): Persister;
|
|
44
|
-
//#endregion
|
|
45
43
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/index.ts"],"mappings":";UASU;EACR,UAAU;EACV,UAAU,aAAa;EACvB,aAAa;;UAGL;;;;;;EAMR,SAAS;;EAET;;;;;EAKA;;;;;EAKA,aAAa,QAAQ;;;;;EAKrB,eAAe,yBAAyB;EAExC,QAAQ;;;;;;;;;;;wBAYM,6BACd,SACA,KACA,cACA,WACA,aACA,SACC,oCAAoC"}
|
package/build/modern/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PersistRetryer, PersistedClient, Persister } from "@tanstack/query-persist-client-core";
|
|
2
|
-
//#region src/index.d.ts
|
|
3
2
|
interface Storage {
|
|
4
3
|
getItem: (key: string) => string | null;
|
|
5
4
|
setItem: (key: string, value: string) => void;
|
|
@@ -41,5 +40,4 @@ interface CreateSyncStoragePersisterOptions {
|
|
|
41
40
|
* @deprecated use `createAsyncStoragePersister` from `@tanstack/query-async-storage-persister` instead.
|
|
42
41
|
*/
|
|
43
42
|
export declare function createSyncStoragePersister({ storage, key, throttleTime, serialize, deserialize, retry }: CreateSyncStoragePersisterOptions): Persister;
|
|
44
|
-
//#endregion
|
|
45
43
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";UASU;EACR,UAAU;EACV,UAAU,aAAa;EACvB,aAAa;;UAGL;;;;;;EAMR,SAAS;;EAET;;;;;EAKA;;;;;EAKA,aAAa,QAAQ;;;;;EAKrB,eAAe,yBAAyB;EAExC,QAAQ;;;;;;;;;;;wBAYM,6BACd,SACA,KACA,cACA,WACA,aACA,SACC,oCAAoC"}
|
package/build/modern/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { noop } from "./utils.js";
|
|
2
2
|
import { timeoutManager } from "@tanstack/query-core";
|
|
3
|
-
|
|
3
|
+
// src/index.ts
|
|
4
4
|
/**
|
|
5
5
|
* Creates a persister that stores the client in a synchronous storage such as
|
|
6
6
|
* `window.localStorage`.
|
|
@@ -69,7 +69,6 @@ function throttle(func, wait = 100) {
|
|
|
69
69
|
}, wait);
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
//#endregion
|
|
73
72
|
export { createSyncStoragePersister };
|
|
74
73
|
|
|
75
74
|
//# sourceMappingURL=index.js.map
|
package/build/modern/utils.cjs
CHANGED
package/build/modern/utils.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.cts","names":[],"sources":["../../src/utils.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.cts","names":[],"sources":["../../src/utils.ts"],"mappings":";;;wBAGgB;wBACA"}
|
package/build/modern/utils.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","names":[],"sources":["../../src/utils.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","names":[],"sources":["../../src/utils.ts"],"mappings":";;;wBAGgB;wBACA"}
|
package/build/modern/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/query-sync-storage-persister",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.105.1",
|
|
4
4
|
"description": "A persister for synchronous storages, to be used with TanStack/Query",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"!src/__tests__"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@tanstack/query-core": "5.
|
|
44
|
-
"@tanstack/query-persist-client-core": "5.
|
|
43
|
+
"@tanstack/query-core": "5.105.1",
|
|
44
|
+
"@tanstack/query-persist-client-core": "5.105.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@tanstack/query-test-utils": "0.0.0",
|