@triplit/svelte 0.1.2 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @triplit/svelte
2
2
 
3
+ ## 0.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - d2c8029: fixup builds
8
+
3
9
  ## 0.1.1
4
10
 
5
11
  ### Patch Changes
@@ -7,5 +7,5 @@ export declare function useQuery<M extends Models<any, any> | undefined, CN exte
7
7
  updateQuery: (query: ClientQueryBuilder<M, CN>) => void;
8
8
  };
9
9
  export declare function useConnectionStatus(client: TriplitClient<any>): {
10
- readonly status: any;
10
+ readonly status: import("@triplit/client").ConnectionStatus;
11
11
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="svelte" />
1
2
  export function useQuery(client, query, options) {
2
3
  let results = $state(undefined);
3
4
  let fetching = $state(false);
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@triplit/svelte",
3
3
  "packageManager": "yarn@3.4.1",
4
- "version": "0.1.2",
5
- "source": "./src/index.ts",
6
- "main": "./dist/index.js",
7
- "module": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
4
+ "version": "0.1.4",
5
+ "source": "./src/index.svelte.ts",
6
+ "main": "./dist/index.svelte.js",
7
+ "module": "./dist/index.svelte.js",
8
+ "types": "./dist/index.svelte.d.ts",
9
9
  "type": "module",
10
10
  "exports": {
11
11
  ".": {
12
- "types": "./dist/index.d.ts",
12
+ "types": "./dist/index.svelte.d.ts",
13
13
  "require": "./dist/index.svelte.js",
14
14
  "import": "./dist/index.svelte.js",
15
15
  "default": "./dist/index.svelte.js",
@@ -34,6 +34,7 @@
34
34
  "@tsconfig/svelte": "^5.0.2",
35
35
  "svelte": "^5.0.0-next.90",
36
36
  "svelte-check": "^3.6.7",
37
+ "tslib": "^2.6.2",
37
38
  "typescript": "^5.2.2"
38
39
  }
39
40
  }