@triplit/svelte 1.0.2 → 1.0.4
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/CHANGELOG.md +17 -0
- package/dist/index.svelte.d.ts +2 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# @triplit/svelte
|
2
2
|
|
3
|
+
## 1.0.4
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [9e7be963]
|
8
|
+
- @triplit/client@1.0.4
|
9
|
+
|
10
|
+
## 1.0.3
|
11
|
+
|
12
|
+
### Patch Changes
|
13
|
+
|
14
|
+
- 214bd859: add WorkerClient to acceptable client types for framework bindings
|
15
|
+
- Updated dependencies [4fe2bc9c]
|
16
|
+
- Updated dependencies [eb08f761]
|
17
|
+
- Updated dependencies [593238e5]
|
18
|
+
- @triplit/client@1.0.3
|
19
|
+
|
3
20
|
## 1.0.2
|
4
21
|
|
5
22
|
### Patch Changes
|
package/dist/index.svelte.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { Models, SchemaQuery, SubscriptionOptions, SubscriptionSignalPayload, TriplitClient } from '@triplit/client';
|
2
|
+
import { WorkerClient } from '@triplit/client/worker-client';
|
2
3
|
/**
|
3
4
|
* A hook that subscribes to a query
|
4
5
|
*
|
@@ -9,7 +10,7 @@ import type { Models, SchemaQuery, SubscriptionOptions, SubscriptionSignalPayloa
|
|
9
10
|
* @param options.onRemoteFulfilled - An optional callback that is called when the remote query has been fulfilled.
|
10
11
|
* @returns An object containing the fetching state, the result of the query, any error that occurred, and a function to update the query
|
11
12
|
*/
|
12
|
-
export declare function useQuery<M extends Models<M>, Q extends SchemaQuery<M>>(client: TriplitClient<M>, query: Q, options?: Partial<SubscriptionOptions>): SubscriptionSignalPayload<M, Q>;
|
13
|
+
export declare function useQuery<M extends Models<M>, Q extends SchemaQuery<M>>(client: TriplitClient<M> | WorkerClient<M>, query: Q, options?: Partial<SubscriptionOptions>): SubscriptionSignalPayload<M, Q>;
|
13
14
|
/**
|
14
15
|
* A hook that subscribes to the connection status of a client with the server
|
15
16
|
*
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@triplit/svelte",
|
3
3
|
"packageManager": "yarn@3.4.1",
|
4
|
-
"version": "1.0.
|
4
|
+
"version": "1.0.4",
|
5
5
|
"source": "./src/index.svelte.ts",
|
6
6
|
"main": "./dist/index.svelte.js",
|
7
7
|
"module": "./dist/index.svelte.js",
|
@@ -29,7 +29,7 @@
|
|
29
29
|
"/dist"
|
30
30
|
],
|
31
31
|
"dependencies": {
|
32
|
-
"@triplit/client": "^1.0.
|
32
|
+
"@triplit/client": "^1.0.4"
|
33
33
|
},
|
34
34
|
"devDependencies": {
|
35
35
|
"@sveltejs/package": "^2.3.10",
|