@vue/compiler-core 3.5.43 → 3.5.45

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.43
2
+ * @vue/compiler-core v3.5.45
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1542,7 +1542,8 @@ const errorMessages = {
1542
1542
  [42]: `v-model value must be a valid JavaScript member expression.`,
1543
1543
  [43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
1544
1544
  [44]: `v-model cannot be used on a prop, because local prop bindings are not writable.
1545
- Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
1545
+ Use a v-bind binding combined with a v-on listener that emits update:x event instead.
1546
+ For props declared with defineModel(), assign the returned ref to a variable and use v-model on that variable.`,
1546
1547
  [45]: `v-model cannot be used on a const binding because it is not writable.`,
1547
1548
  [46]: `Error parsing JavaScript expression: `,
1548
1549
  [47]: `<KeepAlive> expects exactly one child component.`,
@@ -2971,7 +2972,11 @@ function getLoc(start, end) {
2971
2972
  };
2972
2973
  }
2973
2974
  function cloneLoc(loc) {
2974
- return getLoc(loc.start.offset, loc.end.offset);
2975
+ return {
2976
+ start: shared.extend({}, loc.start),
2977
+ end: shared.extend({}, loc.end),
2978
+ source: loc.source
2979
+ };
2975
2980
  }
2976
2981
  function setLocEnd(loc, end) {
2977
2982
  loc.end = tokenizer.getPos(end);
@@ -5041,7 +5046,7 @@ const transformFor = createStructuralDirectiveTransform(
5041
5046
  createCompoundExpression([`const _memo = (`, memo.exp, `)`]),
5042
5047
  createCompoundExpression([
5043
5048
  `if (_cached && _cached.el`,
5044
- ...keyExp ? [` && _cached.key === `, keyExp] : [],
5049
+ ...keyExp ? [` && _cached.key === (`, keyExp, `)`] : [],
5045
5050
  ` && ${context.helperString(
5046
5051
  IS_MEMO_SAME
5047
5052
  )}(_cached, _memo)) return _cached`
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-core v3.5.43
2
+ * @vue/compiler-core v3.5.45
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1538,7 +1538,8 @@ const errorMessages = {
1538
1538
  [42]: `v-model value must be a valid JavaScript member expression.`,
1539
1539
  [43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
1540
1540
  [44]: `v-model cannot be used on a prop, because local prop bindings are not writable.
1541
- Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
1541
+ Use a v-bind binding combined with a v-on listener that emits update:x event instead.
1542
+ For props declared with defineModel(), assign the returned ref to a variable and use v-model on that variable.`,
1542
1543
  [45]: `v-model cannot be used on a const binding because it is not writable.`,
1543
1544
  [46]: `Error parsing JavaScript expression: `,
1544
1545
  [47]: `<KeepAlive> expects exactly one child component.`,
@@ -2937,7 +2938,11 @@ function getLoc(start, end) {
2937
2938
  };
2938
2939
  }
2939
2940
  function cloneLoc(loc) {
2940
- return getLoc(loc.start.offset, loc.end.offset);
2941
+ return {
2942
+ start: shared.extend({}, loc.start),
2943
+ end: shared.extend({}, loc.end),
2944
+ source: loc.source
2945
+ };
2941
2946
  }
2942
2947
  function setLocEnd(loc, end) {
2943
2948
  loc.end = tokenizer.getPos(end);
@@ -4954,7 +4959,7 @@ const transformFor = createStructuralDirectiveTransform(
4954
4959
  createCompoundExpression([`const _memo = (`, memo.exp, `)`]),
4955
4960
  createCompoundExpression([
4956
4961
  `if (_cached && _cached.el`,
4957
- ...keyExp ? [` && _cached.key === `, keyExp] : [],
4962
+ ...keyExp ? [` && _cached.key === (`, keyExp, `)`] : [],
4958
4963
  ` && ${context.helperString(
4959
4964
  IS_MEMO_SAME
4960
4965
  )}(_cached, _memo)) return _cached`
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-core v3.5.43
2
+ * @vue/compiler-core v3.5.45
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1473,7 +1473,8 @@ const errorMessages = {
1473
1473
  [42]: `v-model value must be a valid JavaScript member expression.`,
1474
1474
  [43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
1475
1475
  [44]: `v-model cannot be used on a prop, because local prop bindings are not writable.
1476
- Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
1476
+ Use a v-bind binding combined with a v-on listener that emits update:x event instead.
1477
+ For props declared with defineModel(), assign the returned ref to a variable and use v-model on that variable.`,
1477
1478
  [45]: `v-model cannot be used on a const binding because it is not writable.`,
1478
1479
  [46]: `Error parsing JavaScript expression: `,
1479
1480
  [47]: `<KeepAlive> expects exactly one child component.`,
@@ -2635,7 +2636,11 @@ function getLoc(start, end) {
2635
2636
  };
2636
2637
  }
2637
2638
  function cloneLoc(loc) {
2638
- return getLoc(loc.start.offset, loc.end.offset);
2639
+ return {
2640
+ start: extend({}, loc.start),
2641
+ end: extend({}, loc.end),
2642
+ source: loc.source
2643
+ };
2639
2644
  }
2640
2645
  function setLocEnd(loc, end) {
2641
2646
  loc.end = tokenizer.getPos(end);
@@ -4294,7 +4299,7 @@ const transformFor = createStructuralDirectiveTransform(
4294
4299
  createCompoundExpression([`const _memo = (`, memo.exp, `)`]),
4295
4300
  createCompoundExpression([
4296
4301
  `if (_cached && _cached.el`,
4297
- ...keyExp ? [` && _cached.key === `, keyExp] : [],
4302
+ ...keyExp ? [` && _cached.key === (`, keyExp, `)`] : [],
4298
4303
  ` && ${context.helperString(
4299
4304
  IS_MEMO_SAME
4300
4305
  )}(_cached, _memo)) return _cached`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-core",
3
- "version": "3.5.43",
3
+ "version": "3.5.45",
4
4
  "description": "@vue/compiler-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/compiler-core.esm-bundler.js",
@@ -46,13 +46,13 @@
46
46
  },
47
47
  "homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme",
48
48
  "dependencies": {
49
- "@babel/parser": "^7.29.8",
50
- "@vue/shared": "3.5.43",
49
+ "@babel/parser": "^7.29.12",
50
+ "@vue/shared": "3.5.45",
51
51
  "entities": "^7.0.1",
52
52
  "estree-walker": "^2.0.2",
53
- "source-map-js": "^1.2.1"
53
+ "source-map-js": "^1.2.2"
54
54
  },
55
55
  "devDependencies": {
56
- "@babel/types": "^7.29.8"
56
+ "@babel/types": "^7.29.11"
57
57
  }
58
58
  }