@evolu/svelte 3.0.0 → 3.0.2

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.
@@ -2,8 +2,8 @@
2
2
  * This file needs to be named .svelte.ts to be recognized by the Svelte
3
3
  * compiler in the app itself.
4
4
  */
5
- import type { AppOwner, Evolu, EvoluSchema, InferRow, Query, Row } from "@evolu/common/local-first";
6
- export declare const evoluSvelteDeps: any;
5
+ import type { AppOwner, Evolu, EvoluDeps, EvoluSchema, InferRow, Query, Row } from "@evolu/common/local-first";
6
+ export declare const evoluSvelteDeps: EvoluDeps;
7
7
  /**
8
8
  * Load and subscribe to the Query, and return an object with `rows` property
9
9
  * that are automatically updated when data changes.
@@ -1 +1 @@
1
- {"version":3,"file":"index.svelte.d.ts","sourceRoot":"","sources":["../src/lib/index.svelte.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACV,QAAQ,EACR,KAAK,EACL,WAAW,EACX,QAAQ,EACR,KAAK,EAEL,GAAG,EACJ,MAAM,2BAA2B,CAAC;AAKnC,eAAO,MAAM,eAAe,KAAkC,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,UAAU,GACrB,CAAC,SAAS,GAAG,EACb,MAAM,SAAS,WAAW,EAC1B,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAEtC,OAAO,KAAK,CAAC,MAAM,CAAC;AACpB;;;;;GAKG;AACH,eAAe,MAAM,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,SAAS,EACjD,UAAU;IACR;;;;;OAKG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,SAAS,CAAC;CACjC,KACA;IAAE,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;CA2CnC,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,GAAI,MAAM,SAAS,WAAW,EACtD,OAAO,KAAK,CAAC,MAAM,CAAC,KACnB;IACD,QAAQ,CAAC,OAAO,EAAE,QAAQ,GAAG,SAAS,CAAC;CAkBxC,CAAC"}
1
+ {"version":3,"file":"index.svelte.d.ts","sourceRoot":"","sources":["../src/lib/index.svelte.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACV,QAAQ,EACR,KAAK,EACL,SAAS,EACT,WAAW,EACX,QAAQ,EACR,KAAK,EAEL,GAAG,EACJ,MAAM,2BAA2B,CAAC;AAMnC,eAAO,MAAM,eAAe,EAAE,SAA2C,CAAC;AAE1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,UAAU,GACrB,CAAC,SAAS,GAAG,EACb,MAAM,SAAS,WAAW,EAC1B,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAEtC,OAAO,KAAK,CAAC,MAAM,CAAC;AACpB;;;;;GAKG;AACH,eAAe,MAAM,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,SAAS,EACjD,UAAU;IACR;;;;;OAKG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,SAAS,CAAC;CACjC,KACA;IAAE,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;CA2CnC,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,GAAI,MAAM,SAAS,WAAW,EACtD,OAAO,KAAK,CAAC,MAAM,CAAC,KACnB;IACD,QAAQ,CAAC,OAAO,EAAE,QAAQ,GAAG,SAAS,CAAC;CAkBxC,CAAC"}
@@ -3,8 +3,9 @@
3
3
  * compiler in the app itself.
4
4
  */
5
5
  import { createEvoluDeps } from "@evolu/web";
6
- // just in case we need to add some svelte specific deps
7
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
6
+ // Svelte's declaration generation loses createEvoluDeps' return type here.
7
+ // Keep the explicit public type so consumers do not receive any.
8
+ // oxlint-disable-next-line typescript/no-unsafe-assignment
8
9
  export const evoluSvelteDeps = /*#__PURE__*/ createEvoluDeps();
9
10
  /**
10
11
  * Load and subscribe to the Query, and return an object with `rows` property
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evolu/svelte",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Evolu for Svelte",
5
5
  "keywords": [
6
6
  "evolu",
@@ -31,21 +31,24 @@
31
31
  "!dist/**/*.spec.*"
32
32
  ],
33
33
  "devDependencies": {
34
+ "@evolu/common": "8.8.0",
35
+ "@evolu/typescript-config": "0.1.1",
36
+ "@evolu/web": "3.1.1",
34
37
  "@sveltejs/package": "^2.5.7",
35
38
  "@tsconfig/svelte": "^5.0.6",
36
39
  "@typescript/native": "npm:typescript@^7.0.2",
37
- "svelte": "^5.56.8",
38
- "svelte-check": "^4.7.4",
39
- "typescript": "npm:@typescript/typescript6@^6.0.2",
40
- "@evolu/typescript-config": "0.0.2",
41
- "@evolu/web": "3.0.0",
42
- "@evolu/common": "8.0.0"
40
+ "svelte": "^5.56.10",
41
+ "svelte-check": "^4.7.6",
42
+ "typescript": "npm:@typescript/typescript6@^6.0.2"
43
43
  },
44
44
  "peerDependencies": {
45
- "@evolu/common": "^8.0.0-next.0",
46
- "@evolu/web": "^3.0.0-next.0",
45
+ "@evolu/common": "^8.0.0",
46
+ "@evolu/web": "^3.0.0",
47
47
  "svelte": ">=5"
48
48
  },
49
+ "engines": {
50
+ "node": ">=24.20.0"
51
+ },
49
52
  "publishConfig": {
50
53
  "access": "public"
51
54
  },
@@ -6,6 +6,7 @@
6
6
  import type {
7
7
  AppOwner,
8
8
  Evolu,
9
+ EvoluDeps,
9
10
  EvoluSchema,
10
11
  InferRow,
11
12
  Query,
@@ -14,9 +15,10 @@ import type {
14
15
  } from "@evolu/common/local-first";
15
16
  import { createEvoluDeps } from "@evolu/web";
16
17
 
17
- // just in case we need to add some svelte specific deps
18
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
19
- export const evoluSvelteDeps = /*#__PURE__*/ createEvoluDeps();
18
+ // Svelte's declaration generation loses createEvoluDeps' return type here.
19
+ // Keep the explicit public type so consumers do not receive any.
20
+ // oxlint-disable-next-line typescript/no-unsafe-assignment
21
+ export const evoluSvelteDeps: EvoluDeps = /*#__PURE__*/ createEvoluDeps();
20
22
 
21
23
  /**
22
24
  * Load and subscribe to the Query, and return an object with `rows` property