]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: remove deprecated ref sugar warning
authorEvan You <yyx990803@gmail.com>
Fri, 21 Apr 2023 07:54:51 +0000 (15:54 +0800)
committerEvan You <yyx990803@gmail.com>
Fri, 21 Apr 2023 07:54:51 +0000 (15:54 +0800)
packages/compiler-sfc/src/compileScript.ts
packages/vue/ref-macros.d.ts

index 1f525005c4d3f26d40fc6ab3ef35996ecd4e881b..2fa022ec2d7f34709d4f32afb02eaca3bab990bd 100644 (file)
@@ -505,21 +505,6 @@ export function compileScript(
 
   // 2.2 process <script setup> body
   for (const node of scriptSetupAst.body) {
-    // (Dropped) `ref: x` bindings
-    // TODO remove when out of experimental
-    if (
-      node.type === 'LabeledStatement' &&
-      node.label.name === 'ref' &&
-      node.body.type === 'ExpressionStatement'
-    ) {
-      ctx.error(
-        `ref sugar using the label syntax was an experimental proposal and ` +
-          `has been dropped based on community feedback. Please check out ` +
-          `the new proposal at https://github.com/vuejs/rfcs/discussions/369`,
-        node
-      )
-    }
-
     if (node.type === 'ExpressionStatement') {
       const expr = unwrapTSNode(node.expression)
       // process `defineProps` and `defineEmit(s)` calls
index 6afce7f70a3035c8cdb6951174772e3b6571e93a..206d0308a62cd0496280f19f43f5d79c8552db66 100644 (file)
@@ -1,2 +1,2 @@
-// TODO deprecated file - to be removed when out of experimental
+// TODO remove in 3.4
 import './macros-global'