@triplit/svelte 0.1.18 → 0.1.20

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @triplit/svelte
2
2
 
3
+ ## 0.1.20
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [c8fadd2]
8
+ - @triplit/client@0.3.48
9
+
10
+ ## 0.1.19
11
+
12
+ ### Patch Changes
13
+
14
+ - f826e50: Simplify query builder and query generics
15
+ - Updated dependencies [f826e50]
16
+ - @triplit/client@0.3.47
17
+
3
18
  ## 0.1.18
4
19
 
5
20
  ### Patch Changes
@@ -1,11 +1,11 @@
1
- import type { ClientFetchResult, ClientQuery, ClientQueryBuilder, CollectionNameFromModels, Models, SubscriptionOptions, TriplitClient } from '@triplit/client';
2
- export declare function useQuery<M extends Models<any, any> | undefined, CN extends CollectionNameFromModels<M>>(client: TriplitClient<any>, query: ClientQueryBuilder<M, CN>, options?: Partial<SubscriptionOptions>): {
1
+ import type { ClientFetchResult, ClientQuery, QueryBuilder, Models, SubscriptionOptions, TriplitClient } from '@triplit/client';
2
+ export declare function useQuery<M extends Models<any, any> | undefined, Q extends ClientQuery<M, any, any, any>>(client: TriplitClient<any>, query: QueryBuilder<Q>, options?: Partial<SubscriptionOptions>): {
3
3
  fetching: boolean;
4
4
  fetchingLocal: boolean;
5
5
  fetchingRemote: boolean;
6
- results: ClientFetchResult<ClientQuery<M, CN>> | undefined;
6
+ results: ClientFetchResult<Q> | undefined;
7
7
  error: any;
8
- updateQuery: (query: ClientQueryBuilder<M, CN>) => void;
8
+ updateQuery: (query: QueryBuilder<Q>) => void;
9
9
  };
10
10
  export declare function useConnectionStatus(client: TriplitClient<any>): {
11
11
  readonly status: string;
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.18",
4
+ "version": "0.1.20",
5
5
  "source": "./src/index.svelte.ts",
6
6
  "main": "./dist/index.svelte.js",
7
7
  "module": "./dist/index.svelte.js",
@@ -27,14 +27,17 @@
27
27
  "/dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@triplit/client": "^0.3.46"
30
+ "@triplit/client": "^0.3.48"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@sveltejs/package": "^2.3.0",
34
34
  "@tsconfig/svelte": "^5.0.2",
35
- "svelte": "^5.0.0-next.90",
35
+ "svelte": "^5.0.0-next.137",
36
36
  "svelte-check": "^3.6.7",
37
37
  "tslib": "^2.6.2",
38
38
  "typescript": "^5.2.2"
39
+ },
40
+ "peerDependencies": {
41
+ "svelte": "^5.0.0-next.137"
39
42
  }
40
43
  }