@tanstack/preact-query-persist-client 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/PersistQueryClientProvider.cjs +1 -2
- package/build/legacy/PersistQueryClientProvider.d.cts +0 -2
- package/build/legacy/PersistQueryClientProvider.d.cts.map +1 -1
- package/build/legacy/PersistQueryClientProvider.d.ts +0 -2
- package/build/legacy/PersistQueryClientProvider.d.ts.map +1 -1
- package/build/legacy/PersistQueryClientProvider.js +1 -2
- package/build/legacy/index.js +1 -2
- package/build/modern/PersistQueryClientProvider.cjs +1 -2
- package/build/modern/PersistQueryClientProvider.d.cts +0 -2
- package/build/modern/PersistQueryClientProvider.d.cts.map +1 -1
- package/build/modern/PersistQueryClientProvider.d.ts +0 -2
- package/build/modern/PersistQueryClientProvider.d.ts.map +1 -1
- package/build/modern/PersistQueryClientProvider.js +1 -2
- package/build/modern/index.js +1 -2
- package/package.json +4 -4
|
@@ -3,7 +3,7 @@ let preact_hooks = require("preact/hooks");
|
|
|
3
3
|
let _tanstack_query_persist_client_core = require("@tanstack/query-persist-client-core");
|
|
4
4
|
let _tanstack_preact_query = require("@tanstack/preact-query");
|
|
5
5
|
let preact_jsx_runtime = require("preact/jsx-runtime");
|
|
6
|
-
|
|
6
|
+
// src/PersistQueryClientProvider.tsx
|
|
7
7
|
/**
|
|
8
8
|
* Provides the `QueryClient` like `QueryClientProvider`, and restores the persisted client first:
|
|
9
9
|
* while restoring, `useIsRestoring` returns `true` and queries wait for the restore to finish
|
|
@@ -56,7 +56,6 @@ const PersistQueryClientProvider = ({ children, persistOptions, onSuccess, onErr
|
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
|
-
//#endregion
|
|
60
59
|
exports.PersistQueryClientProvider = PersistQueryClientProvider;
|
|
61
60
|
|
|
62
61
|
//# sourceMappingURL=PersistQueryClientProvider.cjs.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { VNode } from "preact";
|
|
2
2
|
import { PersistQueryClientOptions } from "@tanstack/query-persist-client-core";
|
|
3
3
|
import { OmitKeyof, QueryClientProviderProps } from "@tanstack/preact-query";
|
|
4
|
-
//#region src/PersistQueryClientProvider.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* The props of `PersistQueryClientProvider`: the props of `QueryClientProvider`, plus the
|
|
7
6
|
* `persistOptions` and callbacks for when restoring succeeds or fails.
|
|
@@ -22,5 +21,4 @@ export type PersistQueryClientProviderProps = QueryClientProviderProps & {
|
|
|
22
21
|
* @returns The `QueryClientProvider` wrapping the children.
|
|
23
22
|
*/
|
|
24
23
|
export declare const PersistQueryClientProvider: ({ children, persistOptions, onSuccess, onError, ...props }: PersistQueryClientProviderProps) => VNode;
|
|
25
|
-
//#endregion
|
|
26
24
|
//# sourceMappingURL=PersistQueryClientProvider.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersistQueryClientProvider.d.cts","names":[],"sources":["../../src/PersistQueryClientProvider.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"PersistQueryClientProvider.d.cts","names":[],"sources":["../../src/PersistQueryClientProvider.tsx"],"mappings":";;;;;;;YAqBY,kCAAkC;EAC5C,gBAAgB,UAAU;EAC1B,kBAAkB;EAClB,gBAAgB;;;;;;;;;;;;qBAaL,+BAA8B,UAAA,gBAAA,WAAA,YAAA,SAMxC,oCAAkC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PersistQueryClientOptions } from "@tanstack/query-persist-client-core";
|
|
2
2
|
import { OmitKeyof, QueryClientProviderProps } from "@tanstack/preact-query";
|
|
3
3
|
import { VNode } from "preact";
|
|
4
|
-
//#region src/PersistQueryClientProvider.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* The props of `PersistQueryClientProvider`: the props of `QueryClientProvider`, plus the
|
|
7
6
|
* `persistOptions` and callbacks for when restoring succeeds or fails.
|
|
@@ -22,5 +21,4 @@ export type PersistQueryClientProviderProps = QueryClientProviderProps & {
|
|
|
22
21
|
* @returns The `QueryClientProvider` wrapping the children.
|
|
23
22
|
*/
|
|
24
23
|
export declare const PersistQueryClientProvider: ({ children, persistOptions, onSuccess, onError, ...props }: PersistQueryClientProviderProps) => VNode;
|
|
25
|
-
//#endregion
|
|
26
24
|
//# sourceMappingURL=PersistQueryClientProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersistQueryClientProvider.d.ts","names":[],"sources":["../../src/PersistQueryClientProvider.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"PersistQueryClientProvider.d.ts","names":[],"sources":["../../src/PersistQueryClientProvider.tsx"],"mappings":";;;;;;;YAqBY,kCAAkC;EAC5C,gBAAgB,UAAU;EAC1B,kBAAkB;EAClB,gBAAgB;;;;;;;;;;;;qBAaL,+BAA8B,UAAA,gBAAA,WAAA,YAAA,SAMxC,oCAAkC"}
|
|
@@ -2,7 +2,7 @@ import { useEffect, useRef, useState } from "preact/hooks";
|
|
|
2
2
|
import { persistQueryClientRestore, persistQueryClientSubscribe } from "@tanstack/query-persist-client-core";
|
|
3
3
|
import { IsRestoringProvider, QueryClientProvider } from "@tanstack/preact-query";
|
|
4
4
|
import { jsx } from "preact/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/PersistQueryClientProvider.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Provides the `QueryClient` like `QueryClientProvider`, and restores the persisted client first:
|
|
8
8
|
* while restoring, `useIsRestoring` returns `true` and queries wait for the restore to finish
|
|
@@ -55,7 +55,6 @@ const PersistQueryClientProvider = ({ children, persistOptions, onSuccess, onErr
|
|
|
55
55
|
})
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
|
-
//#endregion
|
|
59
58
|
export { PersistQueryClientProvider };
|
|
60
59
|
|
|
61
60
|
//# sourceMappingURL=PersistQueryClientProvider.js.map
|
package/build/legacy/index.js
CHANGED
|
@@ -3,7 +3,7 @@ let preact_hooks = require("preact/hooks");
|
|
|
3
3
|
let _tanstack_query_persist_client_core = require("@tanstack/query-persist-client-core");
|
|
4
4
|
let _tanstack_preact_query = require("@tanstack/preact-query");
|
|
5
5
|
let preact_jsx_runtime = require("preact/jsx-runtime");
|
|
6
|
-
|
|
6
|
+
// src/PersistQueryClientProvider.tsx
|
|
7
7
|
/**
|
|
8
8
|
* Provides the `QueryClient` like `QueryClientProvider`, and restores the persisted client first:
|
|
9
9
|
* while restoring, `useIsRestoring` returns `true` and queries wait for the restore to finish
|
|
@@ -50,7 +50,6 @@ const PersistQueryClientProvider = ({ children, persistOptions, onSuccess, onErr
|
|
|
50
50
|
})
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
|
-
//#endregion
|
|
54
53
|
exports.PersistQueryClientProvider = PersistQueryClientProvider;
|
|
55
54
|
|
|
56
55
|
//# sourceMappingURL=PersistQueryClientProvider.cjs.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { VNode } from "preact";
|
|
2
2
|
import { PersistQueryClientOptions } from "@tanstack/query-persist-client-core";
|
|
3
3
|
import { OmitKeyof, QueryClientProviderProps } from "@tanstack/preact-query";
|
|
4
|
-
//#region src/PersistQueryClientProvider.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* The props of `PersistQueryClientProvider`: the props of `QueryClientProvider`, plus the
|
|
7
6
|
* `persistOptions` and callbacks for when restoring succeeds or fails.
|
|
@@ -22,5 +21,4 @@ export type PersistQueryClientProviderProps = QueryClientProviderProps & {
|
|
|
22
21
|
* @returns The `QueryClientProvider` wrapping the children.
|
|
23
22
|
*/
|
|
24
23
|
export declare const PersistQueryClientProvider: ({ children, persistOptions, onSuccess, onError, ...props }: PersistQueryClientProviderProps) => VNode;
|
|
25
|
-
//#endregion
|
|
26
24
|
//# sourceMappingURL=PersistQueryClientProvider.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersistQueryClientProvider.d.cts","names":[],"sources":["../../src/PersistQueryClientProvider.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"PersistQueryClientProvider.d.cts","names":[],"sources":["../../src/PersistQueryClientProvider.tsx"],"mappings":";;;;;;;YAqBY,kCAAkC;EAC5C,gBAAgB,UAAU;EAC1B,kBAAkB;EAClB,gBAAgB;;;;;;;;;;;;qBAaL,+BAA8B,UAAA,gBAAA,WAAA,YAAA,SAMxC,oCAAkC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PersistQueryClientOptions } from "@tanstack/query-persist-client-core";
|
|
2
2
|
import { OmitKeyof, QueryClientProviderProps } from "@tanstack/preact-query";
|
|
3
3
|
import { VNode } from "preact";
|
|
4
|
-
//#region src/PersistQueryClientProvider.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* The props of `PersistQueryClientProvider`: the props of `QueryClientProvider`, plus the
|
|
7
6
|
* `persistOptions` and callbacks for when restoring succeeds or fails.
|
|
@@ -22,5 +21,4 @@ export type PersistQueryClientProviderProps = QueryClientProviderProps & {
|
|
|
22
21
|
* @returns The `QueryClientProvider` wrapping the children.
|
|
23
22
|
*/
|
|
24
23
|
export declare const PersistQueryClientProvider: ({ children, persistOptions, onSuccess, onError, ...props }: PersistQueryClientProviderProps) => VNode;
|
|
25
|
-
//#endregion
|
|
26
24
|
//# sourceMappingURL=PersistQueryClientProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersistQueryClientProvider.d.ts","names":[],"sources":["../../src/PersistQueryClientProvider.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"PersistQueryClientProvider.d.ts","names":[],"sources":["../../src/PersistQueryClientProvider.tsx"],"mappings":";;;;;;;YAqBY,kCAAkC;EAC5C,gBAAgB,UAAU;EAC1B,kBAAkB;EAClB,gBAAgB;;;;;;;;;;;;qBAaL,+BAA8B,UAAA,gBAAA,WAAA,YAAA,SAMxC,oCAAkC"}
|
|
@@ -2,7 +2,7 @@ import { useEffect, useRef, useState } from "preact/hooks";
|
|
|
2
2
|
import { persistQueryClientRestore, persistQueryClientSubscribe } from "@tanstack/query-persist-client-core";
|
|
3
3
|
import { IsRestoringProvider, QueryClientProvider } from "@tanstack/preact-query";
|
|
4
4
|
import { jsx } from "preact/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/PersistQueryClientProvider.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Provides the `QueryClient` like `QueryClientProvider`, and restores the persisted client first:
|
|
8
8
|
* while restoring, `useIsRestoring` returns `true` and queries wait for the restore to finish
|
|
@@ -49,7 +49,6 @@ const PersistQueryClientProvider = ({ children, persistOptions, onSuccess, onErr
|
|
|
49
49
|
})
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
|
-
//#endregion
|
|
53
52
|
export { PersistQueryClientProvider };
|
|
54
53
|
|
|
55
54
|
//# sourceMappingURL=PersistQueryClientProvider.js.map
|
package/build/modern/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/preact-query-persist-client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.105.1",
|
|
4
4
|
"description": "Preact bindings to work with persisters in TanStack/preact-query",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,18 +39,18 @@
|
|
|
39
39
|
"!src/__tests__"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@tanstack/query-persist-client-core": "5.
|
|
42
|
+
"@tanstack/query-persist-client-core": "5.105.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@preact/preset-vite": "^2.10.6",
|
|
46
|
-
"@tanstack/preact-query": "5.
|
|
46
|
+
"@tanstack/preact-query": "5.105.1",
|
|
47
47
|
"@tanstack/query-test-utils": "0.0.0",
|
|
48
48
|
"@testing-library/preact": "^3.2.4",
|
|
49
49
|
"preact": "^11.0.1",
|
|
50
50
|
"typescript": "6.0.3"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@tanstack/preact-query": "^5.
|
|
53
|
+
"@tanstack/preact-query": "^5.105.1",
|
|
54
54
|
"preact": "^10.0.0 || ^11.0.0-0"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|