@vue/compiler-core 3.5.43 → 3.5.44

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.44
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.`,
@@ -5041,7 +5042,7 @@ const transformFor = createStructuralDirectiveTransform(
5041
5042
  createCompoundExpression([`const _memo = (`, memo.exp, `)`]),
5042
5043
  createCompoundExpression([
5043
5044
  `if (_cached && _cached.el`,
5044
- ...keyExp ? [` && _cached.key === `, keyExp] : [],
5045
+ ...keyExp ? [` && _cached.key === (`, keyExp, `)`] : [],
5045
5046
  ` && ${context.helperString(
5046
5047
  IS_MEMO_SAME
5047
5048
  )}(_cached, _memo)) return _cached`
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-core v3.5.43
2
+ * @vue/compiler-core v3.5.44
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.`,
@@ -4954,7 +4955,7 @@ const transformFor = createStructuralDirectiveTransform(
4954
4955
  createCompoundExpression([`const _memo = (`, memo.exp, `)`]),
4955
4956
  createCompoundExpression([
4956
4957
  `if (_cached && _cached.el`,
4957
- ...keyExp ? [` && _cached.key === `, keyExp] : [],
4958
+ ...keyExp ? [` && _cached.key === (`, keyExp, `)`] : [],
4958
4959
  ` && ${context.helperString(
4959
4960
  IS_MEMO_SAME
4960
4961
  )}(_cached, _memo)) return _cached`
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-core v3.5.43
2
+ * @vue/compiler-core v3.5.44
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.`,
@@ -4294,7 +4295,7 @@ const transformFor = createStructuralDirectiveTransform(
4294
4295
  createCompoundExpression([`const _memo = (`, memo.exp, `)`]),
4295
4296
  createCompoundExpression([
4296
4297
  `if (_cached && _cached.el`,
4297
- ...keyExp ? [` && _cached.key === `, keyExp] : [],
4298
+ ...keyExp ? [` && _cached.key === (`, keyExp, `)`] : [],
4298
4299
  ` && ${context.helperString(
4299
4300
  IS_MEMO_SAME
4300
4301
  )}(_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.44",
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.8",
50
- "@vue/shared": "3.5.43",
49
+ "@babel/parser": "^7.29.9",
50
+ "@vue/shared": "3.5.44",
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
56
  "@babel/types": "^7.29.8"