diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fdafde1cd..4e7f6a553f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,54 @@ > [Join the Insiders Program](https://github.com/vuejs/language-tools/wiki/Get-Insiders-Edition) for more exclusive features and updates. +## 2.1.8 official, 2.1.9 insiders (2024-10-26) + +### Features + +- **vscode:** reactions visualization now identifies more use cases Insiders +- **language-core:** auto infer `$el` type (#4805) - Thanks to @KazariEX! +- **language-core:** typed directive arg and modifiers (#4813) - Thanks to @KazariEX! + +### Bug Fixes + +- **language-core:** avoid generic type loss due to destructured props (#4821) - Thanks to @KazariEX! +- **language-core:** handle `v-for` with `v-once` correctly (#4830) - Thanks to @KazariEX! +- **language-core:** avoid generating zero-length mappings for interpolation edges +- **language-core:** don't assign `this` to `__VLS_ctx` (#4845) - Thanks to @KazariEX! +- **language-service:** initialize scope with null prototype object (#4855) - Thanks to @KazariEX! +- **language-core:** inlay hints for `` and `` (#4661) - Thanks to @KazariEX, @so1ve! +- **language-core:** should error when invalid syntax at script end (#4692) - Thanks to @KazariEX! +- **language-core:** correct type inference of `defineModel` & `defineEmits` in generic (#4823) - Thanks to @KazariEX! +- **language-core:** inject generics of `useTemplateRef` into correct location (#4829) - Thanks to @KazariEX! +- **language-core:** prevent the generation of generics in JS (#4836) - Thanks to @KazariEX, @zhiyuanzmj! +- **language-core:** generate correct reference for `v-on` on `` (#4864) - Thanks to @KazariEX! +- **language-core:** match classname before `)` (#4887) - Thanks to @KazariEX! +- **language-service:** handle internal item key with leading slash correctly (#4894) - Thanks to @KazariEX! +- **language-core:** correctly obtain the index of style modules (#4907) - Thanks to @KazariEX! +- **language-core:** refer absolute path of global types file (#4924) - Thanks to @depressedX! +- **component-meta:** error when signatures is undefined (#4930) - Thanks to @Hannesrasmussen! +- **language-core:** intersect props of generic component with attrs (#4886) - Thanks to @KazariEX! +- **language-core:** fix incorrect syntax for class component virtual code +- **language-core:** generate `value` instead of model name into tuple (#4892) - Thanks to @KazariEX! +- **language-core:** infer template ref's type of native elements with `v-for` correctly (#4933) - Thanks to @KazariEX! +- **language-core:** should wrap item with `Reactive` on `v-for` (#4902) - Thanks to @KazariEX! + +### Performance + +- **language-service:** find destructured props only with enabled setting (#4815) - Thanks to @KazariEX! + +### Other Changes + +- Upgraded Volar from `v2.4.1` to `v2.4.8`: + - Changing vue files causes internal state to desync in Sublime Text (#4909) - Thanks to @rchl! + - The syntax highlighting is not applied when destructuring props (#4811) +- chore: fix nvim config snippet in README (#4881) - Thanks to @LiamEderzeel! +- chore: remove side effects (#4871) - Thanks to @vikingair! +- chore: remove `importsNotUsedAsValues` (#4897) - Thanks to @KazariEX! +- chore(vscode): switch to `"module": "CommonJS"` (#4944) - Thanks to @KazariEX! +- test: fix incorrect default value (#4934) - Thanks to @jh-leong! +- test(tsc): add a test case for class component + ## 2.1.6 official, 2.1.7 insiders (2024-09-05) ### Features diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index c755c18d77..853d995b3a 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "volar", - "version": "2.1.6", + "version": "2.1.8", "repository": { "type": "git", "url": "https://github.com/vuejs/language-tools.git", @@ -553,9 +553,9 @@ "@types/vscode": "^1.82.0", "@volar/vscode": "~2.4.8", "@vscode/vsce": "latest", - "@vue/language-core": "2.1.6", - "@vue/language-server": "2.1.6", - "@vue/typescript-plugin": "2.1.6", + "@vue/language-core": "2.1.8", + "@vue/language-server": "2.1.8", + "@vue/typescript-plugin": "2.1.8", "esbuild": "~0.21.0", "esbuild-plugin-copy": "latest", "esbuild-visualizer": "latest", diff --git a/lerna.json b/lerna.json index 8c14b250f8..698037e2bb 100644 --- a/lerna.json +++ b/lerna.json @@ -6,5 +6,5 @@ "packages/*", "test-workspace" ], - "version": "2.1.6" + "version": "2.1.8" } diff --git a/package.json b/package.json index cc19139931..4eddc3c5ed 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,6 @@ "watch:base": "tsc -b -w", "watch:vue": "cd ./extensions/vscode && pnpm run watch", "prerelease": "pnpm run build && pnpm run test", - "version": "lerna version --exact --force-publish --yes --sync-workspace-lock --no-push --no-git-tag-version", "release": "pnpm run release:base && pnpm run release:vue", "release:base": "lerna publish --exact --force-publish --yes --sync-workspace-lock --no-git-tag-version", "release:vue": "cd ./extensions/vscode && pnpm run release", diff --git a/packages/component-meta/package.json b/packages/component-meta/package.json index 6670eedd08..822526e3b1 100644 --- a/packages/component-meta/package.json +++ b/packages/component-meta/package.json @@ -1,6 +1,6 @@ { "name": "vue-component-meta", - "version": "2.1.6", + "version": "2.1.8", "license": "MIT", "files": [ "**/*.js", @@ -14,9 +14,9 @@ }, "dependencies": { "@volar/typescript": "~2.4.8", - "@vue/language-core": "2.1.6", + "@vue/language-core": "2.1.8", "path-browserify": "^1.0.1", - "vue-component-type-helpers": "2.1.6" + "vue-component-type-helpers": "2.1.8" }, "peerDependencies": { "typescript": "*" diff --git a/packages/component-type-helpers/package.json b/packages/component-type-helpers/package.json index 6e12b47cf1..153cd1c7c9 100644 --- a/packages/component-type-helpers/package.json +++ b/packages/component-type-helpers/package.json @@ -1,6 +1,6 @@ { "name": "vue-component-type-helpers", - "version": "2.1.6", + "version": "2.1.8", "license": "MIT", "files": [ "**/*.js", diff --git a/packages/language-core/package.json b/packages/language-core/package.json index 9fd02e16f0..588abdceaf 100644 --- a/packages/language-core/package.json +++ b/packages/language-core/package.json @@ -1,6 +1,6 @@ { "name": "@vue/language-core", - "version": "2.1.6", + "version": "2.1.8", "license": "MIT", "files": [ "**/*.js", diff --git a/packages/language-plugin-pug/package.json b/packages/language-plugin-pug/package.json index 561b2b2154..7cd54916cf 100644 --- a/packages/language-plugin-pug/package.json +++ b/packages/language-plugin-pug/package.json @@ -1,6 +1,6 @@ { "name": "@vue/language-plugin-pug", - "version": "2.1.6", + "version": "2.1.8", "license": "MIT", "files": [ "**/*.js", @@ -14,7 +14,7 @@ }, "devDependencies": { "@types/node": "latest", - "@vue/language-core": "2.1.6" + "@vue/language-core": "2.1.8" }, "dependencies": { "@volar/source-map": "~2.4.8", diff --git a/packages/language-server/package.json b/packages/language-server/package.json index 0c015f8e89..200c1962c7 100644 --- a/packages/language-server/package.json +++ b/packages/language-server/package.json @@ -1,6 +1,6 @@ { "name": "@vue/language-server", - "version": "2.1.6", + "version": "2.1.8", "license": "MIT", "files": [ "**/*.js", @@ -19,9 +19,9 @@ "@volar/language-core": "~2.4.8", "@volar/language-server": "~2.4.8", "@volar/test-utils": "~2.4.8", - "@vue/language-core": "2.1.6", - "@vue/language-service": "2.1.6", - "@vue/typescript-plugin": "2.1.6", + "@vue/language-core": "2.1.8", + "@vue/language-service": "2.1.8", + "@vue/typescript-plugin": "2.1.8", "vscode-languageserver-protocol": "^3.17.5", "vscode-uri": "^3.0.8" } diff --git a/packages/language-service/package.json b/packages/language-service/package.json index 8d9ad18510..588900296b 100644 --- a/packages/language-service/package.json +++ b/packages/language-service/package.json @@ -1,6 +1,6 @@ { "name": "@vue/language-service", - "version": "2.1.6", + "version": "2.1.8", "license": "MIT", "files": [ "data", @@ -21,9 +21,9 @@ "@volar/language-service": "~2.4.8", "@volar/typescript": "~2.4.8", "@vue/compiler-dom": "^3.5.0", - "@vue/language-core": "2.1.6", + "@vue/language-core": "2.1.8", "@vue/shared": "^3.5.0", - "@vue/typescript-plugin": "2.1.6", + "@vue/typescript-plugin": "2.1.8", "alien-signals": "^0.2.0", "path-browserify": "^1.0.1", "volar-service-css": "0.0.62", diff --git a/packages/tsc/package.json b/packages/tsc/package.json index 9eead0aa5e..d1328996c4 100644 --- a/packages/tsc/package.json +++ b/packages/tsc/package.json @@ -1,6 +1,6 @@ { "name": "vue-tsc", - "version": "2.1.6", + "version": "2.1.8", "license": "MIT", "files": [ "bin", @@ -18,7 +18,7 @@ }, "dependencies": { "@volar/typescript": "~2.4.8", - "@vue/language-core": "2.1.6", + "@vue/language-core": "2.1.8", "semver": "^7.5.4" }, "peerDependencies": { diff --git a/packages/typescript-plugin/package.json b/packages/typescript-plugin/package.json index 041d89857f..4bf22a8943 100644 --- a/packages/typescript-plugin/package.json +++ b/packages/typescript-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@vue/typescript-plugin", - "version": "2.1.6", + "version": "2.1.8", "license": "MIT", "files": [ "**/*.js", @@ -14,7 +14,7 @@ }, "dependencies": { "@volar/typescript": "~2.4.8", - "@vue/language-core": "2.1.6", + "@vue/language-core": "2.1.8", "@vue/shared": "^3.5.0" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7d9ffd45f7..66145b3cbd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -45,13 +45,13 @@ importers: specifier: latest version: 3.2.1 '@vue/language-core': - specifier: 2.1.6 + specifier: 2.1.8 version: link:../../packages/language-core '@vue/language-server': - specifier: 2.1.6 + specifier: 2.1.8 version: link:../../packages/language-server '@vue/typescript-plugin': - specifier: 2.1.6 + specifier: 2.1.8 version: link:../../packages/typescript-plugin esbuild: specifier: ~0.21.0 @@ -75,7 +75,7 @@ importers: specifier: ~2.4.8 version: 2.4.8 '@vue/language-core': - specifier: 2.1.6 + specifier: 2.1.8 version: link:../language-core path-browserify: specifier: ^1.0.1 @@ -84,7 +84,7 @@ importers: specifier: '*' version: 5.6.3 vue-component-type-helpers: - specifier: 2.1.6 + specifier: 2.1.8 version: link:../component-type-helpers devDependencies: '@types/node': @@ -155,7 +155,7 @@ importers: specifier: latest version: 22.8.1 '@vue/language-core': - specifier: 2.1.6 + specifier: 2.1.8 version: link:../language-core packages/language-server: @@ -170,13 +170,13 @@ importers: specifier: ~2.4.8 version: 2.4.8 '@vue/language-core': - specifier: 2.1.6 + specifier: 2.1.8 version: link:../language-core '@vue/language-service': - specifier: 2.1.6 + specifier: 2.1.8 version: link:../language-service '@vue/typescript-plugin': - specifier: 2.1.6 + specifier: 2.1.8 version: link:../typescript-plugin vscode-languageserver-protocol: specifier: ^3.17.5 @@ -200,13 +200,13 @@ importers: specifier: ^3.5.0 version: 3.5.12 '@vue/language-core': - specifier: 2.1.6 + specifier: 2.1.8 version: link:../language-core '@vue/shared': specifier: ^3.5.0 version: 3.5.12 '@vue/typescript-plugin': - specifier: 2.1.6 + specifier: 2.1.8 version: link:../typescript-plugin alien-signals: specifier: ^0.2.0 @@ -267,7 +267,7 @@ importers: specifier: ~2.4.8 version: 2.4.8 '@vue/language-core': - specifier: 2.1.6 + specifier: 2.1.8 version: link:../language-core semver: specifier: ^7.5.4 @@ -286,7 +286,7 @@ importers: specifier: ~2.4.8 version: 2.4.8 '@vue/language-core': - specifier: 2.1.6 + specifier: 2.1.8 version: link:../language-core '@vue/shared': specifier: ^3.5.0 @@ -308,7 +308,7 @@ importers: specifier: ^3.5.0 version: 3.5.12(typescript@5.6.3) vue-component-type-helpers: - specifier: 2.1.6 + specifier: 2.1.8 version: link:../packages/component-type-helpers vue2: specifier: npm:vue@2.7.16 diff --git a/test-workspace/package.json b/test-workspace/package.json index feacdb8a7d..018839509d 100644 --- a/test-workspace/package.json +++ b/test-workspace/package.json @@ -1,11 +1,11 @@ { "private": true, - "version": "2.1.6", + "version": "2.1.8", "devDependencies": { "typescript-next": "npm:typescript@5.7.0-dev.20240926", "typescript-stable": "npm:typescript@latest", "vue": "^3.5.0", - "vue-component-type-helpers": "2.1.6", + "vue-component-type-helpers": "2.1.8", "vue2": "npm:vue@2.7.16", "vue3.4": "npm:vue@3.4.38" }