@vue/compiler-core 3.5.33 → 3.5.35

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.5.33
2
+ * @vue/compiler-core v3.5.35
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -4907,24 +4907,16 @@ const transformFor = createStructuralDirectiveTransform(
4907
4907
  const keyProp = findProp(node, `key`, false, true);
4908
4908
  const isDirKey = keyProp && keyProp.type === 7;
4909
4909
  let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
4910
- if (memo && keyExp && isDirKey) {
4911
- {
4912
- keyProp.exp = keyExp = processExpression(
4913
- keyExp,
4914
- context
4915
- );
4916
- }
4917
- }
4918
- const keyProperty = keyProp && keyExp ? createObjectProperty(`key`, keyExp) : null;
4919
- if (isTemplate) {
4920
- if (memo) {
4910
+ const keyProperty = keyExp ? createObjectProperty(`key`, keyExp) : null;
4911
+ {
4912
+ if (isTemplate && memo) {
4921
4913
  memo.exp = processExpression(
4922
4914
  memo.exp,
4923
4915
  context
4924
4916
  );
4925
4917
  }
4926
- if (keyProperty && keyProp.type !== 6) {
4927
- keyProperty.value = processExpression(
4918
+ if ((isTemplate || memo) && keyProperty && isDirKey) {
4919
+ keyExp = keyProp.exp = keyProperty.value = processExpression(
4928
4920
  keyProperty.value,
4929
4921
  context
4930
4922
  );
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-core v3.5.33
2
+ * @vue/compiler-core v3.5.35
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -4820,24 +4820,16 @@ const transformFor = createStructuralDirectiveTransform(
4820
4820
  const keyProp = findProp(node, `key`, false, true);
4821
4821
  const isDirKey = keyProp && keyProp.type === 7;
4822
4822
  let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
4823
- if (memo && keyExp && isDirKey) {
4824
- {
4825
- keyProp.exp = keyExp = processExpression(
4826
- keyExp,
4827
- context
4828
- );
4829
- }
4830
- }
4831
- const keyProperty = keyProp && keyExp ? createObjectProperty(`key`, keyExp) : null;
4832
- if (isTemplate) {
4833
- if (memo) {
4823
+ const keyProperty = keyExp ? createObjectProperty(`key`, keyExp) : null;
4824
+ {
4825
+ if (isTemplate && memo) {
4834
4826
  memo.exp = processExpression(
4835
4827
  memo.exp,
4836
4828
  context
4837
4829
  );
4838
4830
  }
4839
- if (keyProperty && keyProp.type !== 6) {
4840
- keyProperty.value = processExpression(
4831
+ if ((isTemplate || memo) && keyProperty && isDirKey) {
4832
+ keyExp = keyProp.exp = keyProperty.value = processExpression(
4841
4833
  keyProperty.value,
4842
4834
  context
4843
4835
  );
@@ -948,7 +948,7 @@ export type CompilerOptions = ParserOptions & TransformOptions & CodegenOptions;
948
948
  *
949
949
  * Since TS 5.3, dts generation starts to strangely include broken triple slash
950
950
  * references for source-map-js, so we are inlining all source map related types
951
- * here to to workaround that.
951
+ * here to workaround that.
952
952
  */
953
953
  export interface CodegenSourceMapGenerator {
954
954
  setSourceContent(sourceFile: string, sourceContent: string): void;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-core v3.5.33
2
+ * @vue/compiler-core v3.5.35
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -4177,7 +4177,7 @@ const transformFor = createStructuralDirectiveTransform(
4177
4177
  const keyProp = findProp(node, `key`, false, true);
4178
4178
  keyProp && keyProp.type === 7;
4179
4179
  let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
4180
- const keyProperty = keyProp && keyExp ? createObjectProperty(`key`, keyExp) : null;
4180
+ const keyProperty = keyExp ? createObjectProperty(`key`, keyExp) : null;
4181
4181
  const isStableFragment = forNode.source.type === 4 && forNode.source.constType > 0;
4182
4182
  const fragmentFlag = isStableFragment ? 64 : keyProp ? 128 : 256;
4183
4183
  forNode.codegenNode = createVNodeCall(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-core",
3
- "version": "3.5.33",
3
+ "version": "3.5.35",
4
4
  "description": "@vue/compiler-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/compiler-core.esm-bundler.js",
@@ -46,11 +46,11 @@
46
46
  },
47
47
  "homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme",
48
48
  "dependencies": {
49
- "@babel/parser": "^7.29.2",
49
+ "@babel/parser": "^7.29.3",
50
50
  "entities": "^7.0.1",
51
51
  "estree-walker": "^2.0.2",
52
52
  "source-map-js": "^1.2.1",
53
- "@vue/shared": "3.5.33"
53
+ "@vue/shared": "3.5.35"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@babel/types": "^7.29.0"