@vue/compiler-core 3.4.30 → 3.4.31

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-core v3.4.30
2
+ * @vue/compiler-core v3.4.31
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -4347,7 +4347,7 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
4347
4347
  node2.name = rewriteIdentifier(node2.name, parent, node2);
4348
4348
  ids.push(node2);
4349
4349
  } else {
4350
- if (!(needPrefix && isLocal) && parent.type !== "CallExpression" && parent.type !== "NewExpression" && parent.type !== "MemberExpression") {
4350
+ if (!(needPrefix && isLocal) && (!parent || parent.type !== "CallExpression" && parent.type !== "NewExpression" && parent.type !== "MemberExpression")) {
4351
4351
  node2.isConstant = true;
4352
4352
  }
4353
4353
  ids.push(node2);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-core v3.4.30
2
+ * @vue/compiler-core v3.4.31
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -4276,7 +4276,7 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
4276
4276
  node2.name = rewriteIdentifier(node2.name, parent, node2);
4277
4277
  ids.push(node2);
4278
4278
  } else {
4279
- if (!(needPrefix && isLocal) && parent.type !== "CallExpression" && parent.type !== "NewExpression" && parent.type !== "MemberExpression") {
4279
+ if (!(needPrefix && isLocal) && (!parent || parent.type !== "CallExpression" && parent.type !== "NewExpression" && parent.type !== "MemberExpression")) {
4280
4280
  node2.isConstant = true;
4281
4281
  }
4282
4282
  ids.push(node2);
@@ -1025,7 +1025,7 @@ export declare const forAliasRE: RegExp;
1025
1025
  /**
1026
1026
  * Return value indicates whether the AST walked can be a constant
1027
1027
  */
1028
- export declare function walkIdentifiers(root: Node$1, onIdentifier: (node: Identifier, parent: Node$1, parentStack: Node$1[], isReference: boolean, isLocal: boolean) => void, includeAll?: boolean, parentStack?: Node$1[], knownIds?: Record<string, number>): void;
1028
+ export declare function walkIdentifiers(root: Node$1, onIdentifier: (node: Identifier, parent: Node$1 | null, parentStack: Node$1[], isReference: boolean, isLocal: boolean) => void, includeAll?: boolean, parentStack?: Node$1[], knownIds?: Record<string, number>): void;
1029
1029
  export declare function isReferencedIdentifier(id: Identifier, parent: Node$1 | null, parentStack: Node$1[]): boolean;
1030
1030
  export declare function isInDestructureAssignment(parent: Node$1, parentStack: Node$1[]): boolean;
1031
1031
  export declare function isInNewExpression(parentStack: Node$1[]): boolean;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-core v3.4.30
2
+ * @vue/compiler-core v3.4.31
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-core",
3
- "version": "3.4.30",
3
+ "version": "3.4.31",
4
4
  "description": "@vue/compiler-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/compiler-core.esm-bundler.js",
@@ -50,7 +50,7 @@
50
50
  "entities": "^4.5.0",
51
51
  "estree-walker": "^2.0.2",
52
52
  "source-map-js": "^1.2.0",
53
- "@vue/shared": "3.4.30"
53
+ "@vue/shared": "3.4.31"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@babel/types": "^7.24.7"