Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5af1a50

Browse files
authored
feat: disable features in Vue 3.3 (#326)
1 parent78d57f4 commit5af1a50

File tree

36 files changed

+338
-211
lines changed

36 files changed

+338
-211
lines changed

‎docs/features/hoist-static.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
With enabling`hoistStatic`, constants declared in macros of`<script setup>` can be referenced.
66

7-
If you supportthis feature, feel free to hit like:+1: or comment on the[Vue PR](https://github.com/vuejs/core/pull/5752). Thanks!
7+
For Vue >= 3.3,this feature will be turned off by default.
88

99
| Features| Supported|
1010
| :------:| :----------------:|

‎docs/macros/define-options.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Options API can be declared using the`defineOptions` in`<script setup>`, specifically to be able to set`name`,`props`,`emits`, and`render` inside of one function.
66

7-
If you supportthis feature, feel free to hit like:+1: or comment on the[RFC Discussion](https://github.com/vuejs/rfcs/discussions/430). Thanks!
7+
For Vue >= 3.3,this feature will be turned off by default.
88

99
| Features| Supported|
1010
| :--------:| :----------------:|

‎docs/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
"vite-plugin-pwa":"^0.14.6",
1818
"vitepress":"^1.0.0-alpha.63",
1919
"vitepress-plugin-search":"^1.0.4-alpha.19",
20-
"vue":"^3.2.47"
20+
"vue":"^3.3.0-alpha.6"
2121
}
2222
}

‎docs/zh-CN/features/hoist-static.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
通过开启`hoistStatic`, 可以在宏内部引用`<script setup>` 中的变量
88

9-
如果你支持此功能,欢迎在[VuePR](https://github.com/vuejs/core/pull/5752) 中点赞:+1: 或发表评论
9+
Vue>= 3.3 中,此功能将默认关闭
1010

1111
| 特性| 支持|
1212
| :----:| :----------------:|

‎docs/zh-CN/macros/define-options.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
可以通过`defineOptions` 宏在`<script setup>` 中使用选项式 API,也就是说可以在一个宏函数中设置`name`,`props`,`emits`,`render`
66

7-
如果你支持此功能,欢迎在[RFC](https://github.com/vuejs/rfcs/discussions/430) 中点赞:+1: 或发表评论
7+
在 Vue >= 3.3 中,此功能将默认关闭
88

99
| 特性| 支持|
1010
| :--------:| :----------------:|

‎package.json‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
"typescript":"^5.0.2",
5656
"vite":"^4.2.1",
5757
"vitest":"^0.29.7",
58-
"vue":"^3.2.47",
59-
"vue-tsc":"^1.2.0",
58+
"vue":"^3.3.0-alpha.6",
59+
"vue-tsc":"^1.3.8",
6060
"vue2":"npm:vue@^2.7.14",
6161
"webpack":"^5.76.3"
6262
},
@@ -70,6 +70,9 @@
7070
"@algolia/client-search",
7171
"@yarnpkg/core"
7272
]
73+
},
74+
"overrides": {
75+
"@volar/vue-language-core>@vue/compiler-dom":"^3.3.0-alpha.6"
7376
}
7477
}
7578
}

‎packages/common/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"dependencies": {
5454
"@babel/types":"^7.21.3",
5555
"@rollup/pluginutils":"^5.0.2",
56-
"@vue/compiler-sfc":"^3.2.47",
56+
"@vue/compiler-sfc":"^3.3.0-alpha.6",
5757
"local-pkg":"^0.4.3",
5858
"magic-string-ast":"^0.1.2"
5959
},

‎packages/common/src/dep.ts‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import{getPackageInfoSync}from'local-pkg'
22

3-
exportfunctiondetectVueVersion(root:string=process.cwd()):2|3{
3+
exportfunctiondetectVueVersion(root:string=process.cwd()):number{
44
constvuePkg=getPackageInfoSync('vue',{paths:[root]})
5-
if(vuePkg){
6-
return+vuePkg.version.slice(0,1)as2|3
5+
if(vuePkg&&vuePkg.version){
6+
constversions=vuePkg.version.split('.')
7+
constversion=+versions.slice(0,2).join('.')
8+
returnversion>=2&&version<3 ?Math.trunc(version) :version
79
}else{
810
return3
911
}

‎packages/common/src/unplugin.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function getTransformResult(
2323
exportinterfaceBaseOptions{
2424
include?:FilterPattern
2525
exclude?:FilterPattern
26-
version?:2|3
26+
version?:number
2727
}
2828

2929
exportfunctioncreateFilter(options:BaseOptions){

‎packages/define-model/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"devDependencies": {
103103
"@vue-macros/api":"workspace:^",
104104
"@vueuse/core":"^9.13.0",
105-
"vue":"^3.2.47"
105+
"vue":"^3.3.0-alpha.6"
106106
},
107107
"engines": {
108108
"node":">=14.19.0"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp