@vue/language-core 1.9.0-alpha.3 → 2.0.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.
Files changed (63) hide show
  1. package/package.json +6 -9
  2. package/out/generators/script.d.ts +0 -15
  3. package/out/generators/script.js +0 -887
  4. package/out/generators/template.d.ts +0 -21
  5. package/out/generators/template.js +0 -1506
  6. package/out/index.d.ts +0 -16
  7. package/out/index.js +0 -33
  8. package/out/languageModule.d.ts +0 -10
  9. package/out/languageModule.js +0 -99
  10. package/out/parsers/scriptRanges.d.ts +0 -16
  11. package/out/parsers/scriptRanges.js +0 -58
  12. package/out/parsers/scriptSetupRanges.d.ts +0 -49
  13. package/out/parsers/scriptSetupRanges.js +0 -291
  14. package/out/plugins/file-html.d.ts +0 -4
  15. package/out/plugins/file-html.js +0 -81
  16. package/out/plugins/file-md.d.ts +0 -4
  17. package/out/plugins/file-md.js +0 -71
  18. package/out/plugins/file-vue.d.ts +0 -4
  19. package/out/plugins/file-vue.js +0 -40
  20. package/out/plugins/vue-sfc-customblocks.d.ts +0 -4
  21. package/out/plugins/vue-sfc-customblocks.js +0 -33
  22. package/out/plugins/vue-sfc-scripts.d.ts +0 -4
  23. package/out/plugins/vue-sfc-scripts.js +0 -42
  24. package/out/plugins/vue-sfc-styles.d.ts +0 -4
  25. package/out/plugins/vue-sfc-styles.js +0 -33
  26. package/out/plugins/vue-sfc-template.d.ts +0 -4
  27. package/out/plugins/vue-sfc-template.js +0 -29
  28. package/out/plugins/vue-template-html.d.ts +0 -4
  29. package/out/plugins/vue-template-html.js +0 -169
  30. package/out/plugins/vue-tsx.d.ts +0 -73
  31. package/out/plugins/vue-tsx.js +0 -159
  32. package/out/plugins.d.ts +0 -25
  33. package/out/plugins.js +0 -58
  34. package/out/types.d.ts +0 -125
  35. package/out/types.js +0 -3
  36. package/out/utils/globalTypes.d.ts +0 -4
  37. package/out/utils/globalTypes.js +0 -135
  38. package/out/utils/parseCssClassNames.d.ts +0 -5
  39. package/out/utils/parseCssClassNames.js +0 -19
  40. package/out/utils/parseCssVars.d.ts +0 -6
  41. package/out/utils/parseCssVars.js +0 -28
  42. package/out/utils/parseSfc.d.ts +0 -3
  43. package/out/utils/parseSfc.js +0 -135
  44. package/out/utils/shared.d.ts +0 -4
  45. package/out/utils/shared.js +0 -20
  46. package/out/utils/transform.d.ts +0 -9
  47. package/out/utils/transform.js +0 -195
  48. package/out/utils/ts.d.ts +0 -9
  49. package/out/utils/ts.js +0 -237
  50. package/out/utils/vue2TemplateCompiler.d.ts +0 -3
  51. package/out/utils/vue2TemplateCompiler.js +0 -86
  52. package/out/virtualFile/computedFiles.d.ts +0 -4
  53. package/out/virtualFile/computedFiles.js +0 -204
  54. package/out/virtualFile/computedMappings.d.ts +0 -6
  55. package/out/virtualFile/computedMappings.js +0 -39
  56. package/out/virtualFile/computedSfc.d.ts +0 -5
  57. package/out/virtualFile/computedSfc.js +0 -197
  58. package/out/virtualFile/computedVueSfc.d.ts +0 -5
  59. package/out/virtualFile/computedVueSfc.js +0 -41
  60. package/out/virtualFile/embeddedFile.d.ts +0 -13
  61. package/out/virtualFile/embeddedFile.js +0 -16
  62. package/out/virtualFile/vueFile.d.ts +0 -28
  63. package/out/virtualFile/vueFile.js +0 -53
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@vue/language-core",
3
- "version": "1.9.0-alpha.3",
4
- "main": "out/index.js",
3
+ "version": "2.0.0",
5
4
  "license": "MIT",
6
5
  "files": [
7
6
  "out/**/*.js",
@@ -13,13 +12,11 @@
13
12
  "directory": "packages/language-core"
14
13
  },
15
14
  "dependencies": {
16
- "@volar/language-core": "~1.11.0",
17
- "@volar/source-map": "~1.11.0",
18
- "@vue/compiler-dom": "^3.3.0",
19
- "@vue/shared": "^3.3.0",
15
+ "@volar/language-core": "~2.1.0",
16
+ "@vue/compiler-dom": "^3.4.0",
17
+ "@vue/shared": "^3.4.0",
20
18
  "computeds": "^0.0.1",
21
19
  "minimatch": "^9.0.3",
22
- "muggle-string": "^0.3.1",
23
20
  "path-browserify": "^1.0.1",
24
21
  "vue-template-compiler": "^2.7.14"
25
22
  },
@@ -27,7 +24,7 @@
27
24
  "@types/minimatch": "^5.1.2",
28
25
  "@types/node": "latest",
29
26
  "@types/path-browserify": "^1.0.1",
30
- "@vue/compiler-sfc": "^3.3.0"
27
+ "@vue/compiler-sfc": "^3.4.0"
31
28
  },
32
29
  "peerDependencies": {
33
30
  "typescript": "*"
@@ -37,5 +34,5 @@
37
34
  "optional": true
38
35
  }
39
36
  },
40
- "gitHead": "cf6564bc8c649151c2e72a93d0aa482d4a59a773"
37
+ "gitHead": "aa47e5a7d8a6dae62cc80dbdb5db6a9bfa4f8715"
41
38
  }
@@ -1,15 +0,0 @@
1
- import { FileRangeCapabilities, MirrorBehaviorCapabilities } from '@volar/language-core';
2
- import * as SourceMaps from '@volar/source-map';
3
- import type * as ts from 'typescript/lib/tsserverlibrary';
4
- import type * as templateGen from '../generators/template';
5
- import type { ScriptRanges } from '../parsers/scriptRanges';
6
- import type { ScriptSetupRanges } from '../parsers/scriptSetupRanges';
7
- import type { VueCompilerOptions } from '../types';
8
- import { Sfc } from '../types';
9
- export declare function generate(ts: typeof import('typescript/lib/tsserverlibrary'), fileName: string, script: Sfc['script'], scriptSetup: Sfc['scriptSetup'], styles: Sfc['styles'], // TODO: computed it
10
- lang: string, scriptRanges: ScriptRanges | undefined, scriptSetupRanges: ScriptSetupRanges | undefined, htmlGen: ReturnType<typeof templateGen['generate']> | undefined, compilerOptions: ts.CompilerOptions, vueCompilerOptions: VueCompilerOptions, codegenStack: boolean): {
11
- codes: SourceMaps.Segment<FileRangeCapabilities>[];
12
- codeStacks: SourceMaps.StackNode[];
13
- mirrorBehaviorMappings: SourceMaps.Mapping<[MirrorBehaviorCapabilities, MirrorBehaviorCapabilities]>[];
14
- };
15
- //# sourceMappingURL=script.d.ts.map