@flint.fyi/vue-language 0.3.0 → 0.4.0

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.
package/dist/index.d.mts CHANGED
@@ -2,7 +2,6 @@ import { RootNode } from "@vue/compiler-dom";
2
2
  import { VueVirtualCode, tsCodegen } from "@vue/language-core";
3
3
  import { VolarLanguage } from "@flint.fyi/volar-language";
4
4
  import { Mapper } from "@volar/language-core";
5
-
6
5
  //#region src/language.d.ts
7
6
  interface VueServices {
8
7
  vue: {
@@ -13,6 +12,5 @@ interface VueServices {
13
12
  };
14
13
  }
15
14
  type VueCodegen = typeof tsCodegen extends WeakMap<WeakKey, infer V> ? V : never;
16
- declare const vueLanguage: VolarLanguage<VueServices>;
17
- //#endregion
18
- export { vueLanguage };
15
+ export declare const vueLanguage: VolarLanguage<VueServices>;
16
+ //#endregion
package/dist/index.mjs CHANGED
@@ -71,7 +71,7 @@ const vueLanguage = createVolarBasedLanguage((ts, options) => {
71
71
  const sourceText = sourceScript.snapshot.getText(0, sourceScript.snapshot.getLength());
72
72
  const virtualCode = sourceScript.generated.root;
73
73
  assert(virtualCode instanceof VueVirtualCode, "Expected sourceScript.generated.root to be VueServiceCode");
74
- const codegen = nullThrows(tsCodegen.get(virtualCode.sfc), `tsCodegen for ${data.filePathAbsolute} is undefined`);
74
+ const codegen = nullThrows(tsCodegen.get(virtualCode.ir), `tsCodegen for ${data.filePathAbsolute} is undefined`);
75
75
  const map = volarLanguage.maps.get(serviceScript.code, sourceScript);
76
76
  const sfcAst = parse(sourceText, {
77
77
  comments: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flint.fyi/vue-language",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "[Experimental] Vue.js language for Flint.",
5
5
  "homepage": "https://flint.fyi",
6
6
  "repository": {
@@ -22,20 +22,20 @@
22
22
  "dist/"
23
23
  ],
24
24
  "dependencies": {
25
+ "@flint.fyi/ts-patch": "^0.17.0",
26
+ "@flint.fyi/typescript-language": "^0.21.0",
27
+ "@flint.fyi/utils": "^0.16.0",
28
+ "@flint.fyi/volar-language": "^0.4.0",
25
29
  "@volar/language-core": "2.4.28",
26
30
  "@vue/compiler-dom": "^3.5.0",
27
- "@vue/language-core": "3.2.1",
28
- "typescript": "^5.9.0 || ^6.0.0",
29
- "@flint.fyi/ts-patch": "^0.16.0",
30
- "@flint.fyi/typescript-language": "^0.20.0",
31
- "@flint.fyi/utils": "^0.16.0",
32
- "@flint.fyi/volar-language": "^0.3.0"
31
+ "@vue/language-core": "3.3.11",
32
+ "typescript": "^6.0.3"
33
33
  },
34
34
  "devDependencies": {
35
- "tsdown": "0.22.3",
36
- "vitest": "4.1.0",
37
35
  "@flint.fyi/build": "^0.1.0",
38
- "@flint.fyi/core": "^0.25.0"
36
+ "@flint.fyi/core": "^0.27.0",
37
+ "tsdown": "0.23.0",
38
+ "vitest": "5.0.1"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=26.1.0"