Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.1.8 #4946

Merged
merged 4 commits into from
Oct 26, 2024
Merged

v2.1.8 #4946

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <sup>official</sup>, 2.1.9 <sup>insiders</sup> (2024-10-26)

### Features

- **vscode:** reactions visualization now identifies more use cases <sup>Insiders</sup>
- **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 `<component :is>` and `<slot :name>` (#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 `<slot>` (#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 <sup>official</sup>, 2.1.7 <sup>insiders</sup> (2024-09-05)

### Features
Expand Down
8 changes: 4 additions & 4 deletions extensions/vscode/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"packages/*",
"test-workspace"
],
"version": "2.1.6"
"version": "2.1.8"
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions packages/component-meta/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-component-meta",
"version": "2.1.6",
"version": "2.1.8",
"license": "MIT",
"files": [
"**/*.js",
Expand All @@ -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": "*"
Expand Down
2 changes: 1 addition & 1 deletion packages/component-type-helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-component-type-helpers",
"version": "2.1.6",
"version": "2.1.8",
"license": "MIT",
"files": [
"**/*.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/language-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/language-core",
"version": "2.1.6",
"version": "2.1.8",
"license": "MIT",
"files": [
"**/*.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/language-plugin-pug/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/language-plugin-pug",
"version": "2.1.6",
"version": "2.1.8",
"license": "MIT",
"files": [
"**/*.js",
Expand All @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions packages/language-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/language-server",
"version": "2.1.6",
"version": "2.1.8",
"license": "MIT",
"files": [
"**/*.js",
Expand All @@ -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"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/language-service/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/language-service",
"version": "2.1.6",
"version": "2.1.8",
"license": "MIT",
"files": [
"data",
Expand All @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/tsc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-tsc",
"version": "2.1.6",
"version": "2.1.8",
"license": "MIT",
"files": [
"bin",
Expand All @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions packages/typescript-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue/typescript-plugin",
"version": "2.1.6",
"version": "2.1.8",
"license": "MIT",
"files": [
"**/*.js",
Expand All @@ -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": {
Expand Down
28 changes: 14 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test-workspace/package.json
Original file line number Diff line number Diff line change
@@ -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"
}
Expand Down