@tanstack/query-broadcast-client-experimental 5.105.0 → 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/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/package.json +2 -2
package/build/legacy/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let broadcast_channel = require("broadcast-channel");
|
|
3
|
-
|
|
3
|
+
// src/index.ts
|
|
4
4
|
/**
|
|
5
5
|
* Syncs a client's query cache with the caches of other tabs and windows through a
|
|
6
6
|
* `BroadcastChannel`: added queries, successful updates, and removals of queries that have
|
|
@@ -100,7 +100,6 @@ function broadcastQueryClient({ queryClient, broadcastChannel = "tanstack-query"
|
|
|
100
100
|
channel.close();
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
//#endregion
|
|
104
103
|
exports.broadcastQueryClient = broadcastQueryClient;
|
|
105
104
|
|
|
106
105
|
//# sourceMappingURL=index.cjs.map
|
package/build/legacy/index.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BroadcastChannelOptions } from "broadcast-channel";
|
|
2
2
|
import { QueryClient, QueryKey } from "@tanstack/query-core";
|
|
3
|
-
//#region src/index.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Metadata describing a broadcast that failed to be delivered to other tabs.
|
|
6
5
|
* Passed to {@link BroadcastQueryClientOptions.onBroadcastError} so callers
|
|
@@ -53,5 +52,4 @@ interface BroadcastQueryClientOptions {
|
|
|
53
52
|
* @returns A function that stops syncing and closes the channel.
|
|
54
53
|
*/
|
|
55
54
|
export declare function broadcastQueryClient({ queryClient, broadcastChannel, options, onBroadcastError }: BroadcastQueryClientOptions): () => void;
|
|
56
|
-
//#endregion
|
|
57
55
|
//# 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;;;;EAIf;;;;EAIA;;;;EAIA,UAAU;;UAQF;;EAER,aAAa;;;;;EAKb;;EAEA,UAAU;;;;;;;;;;;;;EAaV,oBACE,gBACA,OAAO,+BACG;;;;;;;;;;wBAWE,uBACd,aACA,kBACA,SACA,oBACC"}
|
package/build/legacy/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BroadcastChannelOptions } from "broadcast-channel";
|
|
2
2
|
import { QueryClient, QueryKey } from "@tanstack/query-core";
|
|
3
|
-
//#region src/index.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Metadata describing a broadcast that failed to be delivered to other tabs.
|
|
6
5
|
* Passed to {@link BroadcastQueryClientOptions.onBroadcastError} so callers
|
|
@@ -53,5 +52,4 @@ interface BroadcastQueryClientOptions {
|
|
|
53
52
|
* @returns A function that stops syncing and closes the channel.
|
|
54
53
|
*/
|
|
55
54
|
export declare function broadcastQueryClient({ queryClient, broadcastChannel, options, onBroadcastError }: BroadcastQueryClientOptions): () => void;
|
|
56
|
-
//#endregion
|
|
57
55
|
//# 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;;;;EAIf;;;;EAIA;;;;EAIA,UAAU;;UAQF;;EAER,aAAa;;;;;EAKb;;EAEA,UAAU;;;;;;;;;;;;;EAaV,oBACE,gBACA,OAAO,+BACG;;;;;;;;;;wBAWE,uBACd,aACA,kBACA,SACA,oBACC"}
|
package/build/legacy/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BroadcastChannel } from "broadcast-channel";
|
|
2
|
-
|
|
2
|
+
// src/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* Syncs a client's query cache with the caches of other tabs and windows through a
|
|
5
5
|
* `BroadcastChannel`: added queries, successful updates, and removals of queries that have
|
|
@@ -99,7 +99,6 @@ function broadcastQueryClient({ queryClient, broadcastChannel = "tanstack-query"
|
|
|
99
99
|
channel.close();
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
//#endregion
|
|
103
102
|
export { broadcastQueryClient };
|
|
104
103
|
|
|
105
104
|
//# sourceMappingURL=index.js.map
|
package/build/modern/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let broadcast_channel = require("broadcast-channel");
|
|
3
|
-
|
|
3
|
+
// src/index.ts
|
|
4
4
|
/**
|
|
5
5
|
* Syncs a client's query cache with the caches of other tabs and windows through a
|
|
6
6
|
* `BroadcastChannel`: added queries, successful updates, and removals of queries that have
|
|
@@ -100,7 +100,6 @@ function broadcastQueryClient({ queryClient, broadcastChannel = "tanstack-query"
|
|
|
100
100
|
channel.close();
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
//#endregion
|
|
104
103
|
exports.broadcastQueryClient = broadcastQueryClient;
|
|
105
104
|
|
|
106
105
|
//# sourceMappingURL=index.cjs.map
|
package/build/modern/index.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BroadcastChannelOptions } from "broadcast-channel";
|
|
2
2
|
import { QueryClient, QueryKey } from "@tanstack/query-core";
|
|
3
|
-
//#region src/index.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Metadata describing a broadcast that failed to be delivered to other tabs.
|
|
6
5
|
* Passed to {@link BroadcastQueryClientOptions.onBroadcastError} so callers
|
|
@@ -53,5 +52,4 @@ interface BroadcastQueryClientOptions {
|
|
|
53
52
|
* @returns A function that stops syncing and closes the channel.
|
|
54
53
|
*/
|
|
55
54
|
export declare function broadcastQueryClient({ queryClient, broadcastChannel, options, onBroadcastError }: BroadcastQueryClientOptions): () => void;
|
|
56
|
-
//#endregion
|
|
57
55
|
//# 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;;;;EAIf;;;;EAIA;;;;EAIA,UAAU;;UAQF;;EAER,aAAa;;;;;EAKb;;EAEA,UAAU;;;;;;;;;;;;;EAaV,oBACE,gBACA,OAAO,+BACG;;;;;;;;;;wBAWE,uBACd,aACA,kBACA,SACA,oBACC"}
|
package/build/modern/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BroadcastChannelOptions } from "broadcast-channel";
|
|
2
2
|
import { QueryClient, QueryKey } from "@tanstack/query-core";
|
|
3
|
-
//#region src/index.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Metadata describing a broadcast that failed to be delivered to other tabs.
|
|
6
5
|
* Passed to {@link BroadcastQueryClientOptions.onBroadcastError} so callers
|
|
@@ -53,5 +52,4 @@ interface BroadcastQueryClientOptions {
|
|
|
53
52
|
* @returns A function that stops syncing and closes the channel.
|
|
54
53
|
*/
|
|
55
54
|
export declare function broadcastQueryClient({ queryClient, broadcastChannel, options, onBroadcastError }: BroadcastQueryClientOptions): () => void;
|
|
56
|
-
//#endregion
|
|
57
55
|
//# 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;;;;EAIf;;;;EAIA;;;;EAIA,UAAU;;UAQF;;EAER,aAAa;;;;;EAKb;;EAEA,UAAU;;;;;;;;;;;;;EAaV,oBACE,gBACA,OAAO,+BACG;;;;;;;;;;wBAWE,uBACd,aACA,kBACA,SACA,oBACC"}
|
package/build/modern/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BroadcastChannel } from "broadcast-channel";
|
|
2
|
-
|
|
2
|
+
// src/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* Syncs a client's query cache with the caches of other tabs and windows through a
|
|
5
5
|
* `BroadcastChannel`: added queries, successful updates, and removals of queries that have
|
|
@@ -99,7 +99,6 @@ function broadcastQueryClient({ queryClient, broadcastChannel = "tanstack-query"
|
|
|
99
99
|
channel.close();
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
//#endregion
|
|
103
102
|
export { broadcastQueryClient };
|
|
104
103
|
|
|
105
104
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/query-broadcast-client-experimental",
|
|
3
|
-
"version": "5.105.
|
|
3
|
+
"version": "5.105.1",
|
|
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,7 +39,7 @@
|
|
|
39
39
|
"!src/__tests__"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@tanstack/query-core": "5.105.
|
|
42
|
+
"@tanstack/query-core": "5.105.1",
|
|
43
43
|
"broadcast-channel": "^7.4.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|