@triplit/svelte 0.1.70 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +22 -0
- package/dist/index.svelte.d.ts +2 -2
- package/dist/index.svelte.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# @triplit/svelte
|
2
2
|
|
3
|
+
## 0.2.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [761648cf]
|
8
|
+
- @triplit/client@0.5.1
|
9
|
+
|
10
|
+
## 0.2.0
|
11
|
+
|
12
|
+
### Minor Changes
|
13
|
+
|
14
|
+
- f894e435: update query return type to array
|
15
|
+
|
16
|
+
### Patch Changes
|
17
|
+
|
18
|
+
- Updated dependencies [0a09013b]
|
19
|
+
- Updated dependencies [f894e435]
|
20
|
+
- Updated dependencies [abe8bea8]
|
21
|
+
- Updated dependencies [38746526]
|
22
|
+
- Updated dependencies [abe8bea8]
|
23
|
+
- @triplit/client@0.5.0
|
24
|
+
|
3
25
|
## 0.1.70
|
4
26
|
|
5
27
|
### Patch Changes
|
package/dist/index.svelte.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { ClientQuery, ClientQueryBuilder, CollectionNameFromModels, FetchResult, Models, SubscriptionOptions, TriplitClient, Unalias } from '@triplit/client';
|
2
2
|
import { WorkerClient } from '@triplit/client/worker-client';
|
3
3
|
/**
|
4
4
|
* A hook that subscribes to a query
|
@@ -14,7 +14,7 @@ export declare function useQuery<M extends Models, CN extends CollectionNameFrom
|
|
14
14
|
fetching: boolean;
|
15
15
|
fetchingLocal: boolean;
|
16
16
|
fetchingRemote: boolean;
|
17
|
-
results: Unalias<
|
17
|
+
results: Unalias<FetchResult<M, Q>> | undefined;
|
18
18
|
error: any;
|
19
19
|
updateQuery: (query: ClientQueryBuilder<M, CN, Q>) => void;
|
20
20
|
};
|
package/dist/index.svelte.js
CHANGED
@@ -48,7 +48,7 @@ export function useQuery(client, query, options) {
|
|
48
48
|
const unsubscribe = client.subscribe($state.snapshot(builtQuery), (localResults) => {
|
49
49
|
fetchingLocal = false;
|
50
50
|
error = undefined;
|
51
|
-
results =
|
51
|
+
results = localResults;
|
52
52
|
}, (error) => {
|
53
53
|
fetchingLocal = false;
|
54
54
|
error = error;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@triplit/svelte",
|
3
3
|
"packageManager": "yarn@3.4.1",
|
4
|
-
"version": "0.1
|
4
|
+
"version": "0.2.1",
|
5
5
|
"source": "./src/index.svelte.ts",
|
6
6
|
"main": "./dist/index.svelte.js",
|
7
7
|
"module": "./dist/index.svelte.js",
|
@@ -29,17 +29,17 @@
|
|
29
29
|
"/dist"
|
30
30
|
],
|
31
31
|
"dependencies": {
|
32
|
-
"@triplit/client": "^0.
|
32
|
+
"@triplit/client": "^0.5.1"
|
33
33
|
},
|
34
34
|
"devDependencies": {
|
35
|
-
"@sveltejs/package": "^2.3.
|
35
|
+
"@sveltejs/package": "^2.3.5",
|
36
36
|
"@tsconfig/svelte": "^5.0.2",
|
37
|
-
"svelte": "^5.0.0-next.
|
38
|
-
"svelte-check": "^
|
37
|
+
"svelte": "^5.0.0-next.255",
|
38
|
+
"svelte-check": "^4.0.2",
|
39
39
|
"tslib": "^2.6.2",
|
40
40
|
"typescript": "^5.2.2"
|
41
41
|
},
|
42
42
|
"peerDependencies": {
|
43
|
-
"svelte": "
|
43
|
+
"svelte": "*"
|
44
44
|
}
|
45
45
|
}
|