@tanstack/query-broadcast-client-experimental 5.103.2 → 5.104.0
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.d.cts +2 -3
- package/build/legacy/index.d.cts.map +1 -1
- package/build/legacy/index.d.ts +2 -3
- package/build/legacy/index.d.ts.map +1 -1
- package/build/modern/index.d.cts +2 -3
- package/build/modern/index.d.cts.map +1 -1
- package/build/modern/index.d.ts +2 -3
- package/build/modern/index.d.ts.map +1 -1
- package/package.json +6 -6
package/build/legacy/index.d.cts
CHANGED
|
@@ -6,7 +6,7 @@ import { QueryClient, QueryKey } from "@tanstack/query-core";
|
|
|
6
6
|
* Passed to {@link BroadcastQueryClientOptions.onBroadcastError} so callers
|
|
7
7
|
* can correlate failures with the originating query.
|
|
8
8
|
*/
|
|
9
|
-
interface BroadcastErrorEvent {
|
|
9
|
+
export interface BroadcastErrorEvent {
|
|
10
10
|
type: 'updated' | 'removed' | 'added';
|
|
11
11
|
queryHash: string;
|
|
12
12
|
queryKey: QueryKey;
|
|
@@ -35,7 +35,6 @@ interface BroadcastQueryClientOptions {
|
|
|
35
35
|
*/
|
|
36
36
|
onBroadcastError?: (error: unknown, event: BroadcastErrorEvent) => void | Promise<void>;
|
|
37
37
|
}
|
|
38
|
-
declare function broadcastQueryClient({ queryClient, broadcastChannel, options, onBroadcastError }: BroadcastQueryClientOptions): () => void;
|
|
38
|
+
export declare function broadcastQueryClient({ queryClient, broadcastChannel, options, onBroadcastError }: BroadcastQueryClientOptions): () => void;
|
|
39
39
|
//#endregion
|
|
40
|
-
export { BroadcastErrorEvent, broadcastQueryClient };
|
|
41
40
|
//# 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":";;;;;;;;iBASiB;EACf;EACA;EACA,UAAU;;UAQF;;EAER,aAAa;;;;;EAKb;;EAEA,UAAU;;;;;;;;;;;;;EAaV,oBACE,gBACA,OAAO,+BACG;;wBAGE,uBACd,aACA,kBACA,SACA,oBACC"}
|
package/build/legacy/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { QueryClient, QueryKey } from "@tanstack/query-core";
|
|
|
6
6
|
* Passed to {@link BroadcastQueryClientOptions.onBroadcastError} so callers
|
|
7
7
|
* can correlate failures with the originating query.
|
|
8
8
|
*/
|
|
9
|
-
interface BroadcastErrorEvent {
|
|
9
|
+
export interface BroadcastErrorEvent {
|
|
10
10
|
type: 'updated' | 'removed' | 'added';
|
|
11
11
|
queryHash: string;
|
|
12
12
|
queryKey: QueryKey;
|
|
@@ -35,7 +35,6 @@ interface BroadcastQueryClientOptions {
|
|
|
35
35
|
*/
|
|
36
36
|
onBroadcastError?: (error: unknown, event: BroadcastErrorEvent) => void | Promise<void>;
|
|
37
37
|
}
|
|
38
|
-
declare function broadcastQueryClient({ queryClient, broadcastChannel, options, onBroadcastError }: BroadcastQueryClientOptions): () => void;
|
|
38
|
+
export declare function broadcastQueryClient({ queryClient, broadcastChannel, options, onBroadcastError }: BroadcastQueryClientOptions): () => void;
|
|
39
39
|
//#endregion
|
|
40
|
-
export { BroadcastErrorEvent, broadcastQueryClient };
|
|
41
40
|
//# 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":";;;;;;;;iBASiB;EACf;EACA;EACA,UAAU;;UAQF;;EAER,aAAa;;;;;EAKb;;EAEA,UAAU;;;;;;;;;;;;;EAaV,oBACE,gBACA,OAAO,+BACG;;wBAGE,uBACd,aACA,kBACA,SACA,oBACC"}
|
package/build/modern/index.d.cts
CHANGED
|
@@ -6,7 +6,7 @@ import { QueryClient, QueryKey } from "@tanstack/query-core";
|
|
|
6
6
|
* Passed to {@link BroadcastQueryClientOptions.onBroadcastError} so callers
|
|
7
7
|
* can correlate failures with the originating query.
|
|
8
8
|
*/
|
|
9
|
-
interface BroadcastErrorEvent {
|
|
9
|
+
export interface BroadcastErrorEvent {
|
|
10
10
|
type: 'updated' | 'removed' | 'added';
|
|
11
11
|
queryHash: string;
|
|
12
12
|
queryKey: QueryKey;
|
|
@@ -35,7 +35,6 @@ interface BroadcastQueryClientOptions {
|
|
|
35
35
|
*/
|
|
36
36
|
onBroadcastError?: (error: unknown, event: BroadcastErrorEvent) => void | Promise<void>;
|
|
37
37
|
}
|
|
38
|
-
declare function broadcastQueryClient({ queryClient, broadcastChannel, options, onBroadcastError }: BroadcastQueryClientOptions): () => void;
|
|
38
|
+
export declare function broadcastQueryClient({ queryClient, broadcastChannel, options, onBroadcastError }: BroadcastQueryClientOptions): () => void;
|
|
39
39
|
//#endregion
|
|
40
|
-
export { BroadcastErrorEvent, broadcastQueryClient };
|
|
41
40
|
//# 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":";;;;;;;;iBASiB;EACf;EACA;EACA,UAAU;;UAQF;;EAER,aAAa;;;;;EAKb;;EAEA,UAAU;;;;;;;;;;;;;EAaV,oBACE,gBACA,OAAO,+BACG;;wBAGE,uBACd,aACA,kBACA,SACA,oBACC"}
|
package/build/modern/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { QueryClient, QueryKey } from "@tanstack/query-core";
|
|
|
6
6
|
* Passed to {@link BroadcastQueryClientOptions.onBroadcastError} so callers
|
|
7
7
|
* can correlate failures with the originating query.
|
|
8
8
|
*/
|
|
9
|
-
interface BroadcastErrorEvent {
|
|
9
|
+
export interface BroadcastErrorEvent {
|
|
10
10
|
type: 'updated' | 'removed' | 'added';
|
|
11
11
|
queryHash: string;
|
|
12
12
|
queryKey: QueryKey;
|
|
@@ -35,7 +35,6 @@ interface BroadcastQueryClientOptions {
|
|
|
35
35
|
*/
|
|
36
36
|
onBroadcastError?: (error: unknown, event: BroadcastErrorEvent) => void | Promise<void>;
|
|
37
37
|
}
|
|
38
|
-
declare function broadcastQueryClient({ queryClient, broadcastChannel, options, onBroadcastError }: BroadcastQueryClientOptions): () => void;
|
|
38
|
+
export declare function broadcastQueryClient({ queryClient, broadcastChannel, options, onBroadcastError }: BroadcastQueryClientOptions): () => void;
|
|
39
39
|
//#endregion
|
|
40
|
-
export { BroadcastErrorEvent, broadcastQueryClient };
|
|
41
40
|
//# 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":";;;;;;;;iBASiB;EACf;EACA;EACA,UAAU;;UAQF;;EAER,aAAa;;;;;EAKb;;EAEA,UAAU;;;;;;;;;;;;;EAaV,oBACE,gBACA,OAAO,+BACG;;wBAGE,uBACd,aACA,kBACA,SACA,oBACC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/query-broadcast-client-experimental",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.104.0",
|
|
4
4
|
"description": "An experimental plugin to for broadcasting the state of your queryClient between browser tabs/windows",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"!src/__tests__"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"
|
|
43
|
-
"
|
|
42
|
+
"@tanstack/query-core": "5.104.0",
|
|
43
|
+
"broadcast-channel": "^7.4.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
+
"@tanstack/query-test-utils": "0.0.0",
|
|
46
47
|
"@testing-library/react": "^16.1.0",
|
|
47
|
-
"@vitejs/plugin-react": "^
|
|
48
|
-
"npm-run-all2": "^
|
|
49
|
-
"@tanstack/query-test-utils": "0.0.0"
|
|
48
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
49
|
+
"npm-run-all2": "^9.0.3"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"clean": "premove ./build ./coverage ./dist-ts ./.cache/test-types",
|