@triplit/svelte 0.1.18 → 0.1.19

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @triplit/svelte
2
2
 
3
+ ## 0.1.19
4
+
5
+ ### Patch Changes
6
+
7
+ - f826e50: Simplify query builder and query generics
8
+ - Updated dependencies [f826e50]
9
+ - @triplit/client@0.3.47
10
+
3
11
  ## 0.1.18
4
12
 
5
13
  ### 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.19",
5
5
  "source": "./src/index.svelte.ts",
6
6
  "main": "./dist/index.svelte.js",
7
7
  "module": "./dist/index.svelte.js",
@@ -27,7 +27,7 @@
27
27
  "/dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@triplit/client": "^0.3.46"
30
+ "@triplit/client": "^0.3.47"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@sveltejs/package": "^2.3.0",