@vue/compiler-core 3.6.0-rc.10 → 3.6.0-rc.12

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.6.0-rc.10
2
+ * @vue/compiler-core v3.6.0-rc.12
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1846,7 +1846,7 @@ const errorMessages = {
1846
1846
  [41]: `v-model is missing expression.`,
1847
1847
  [42]: `v-model value must be a valid JavaScript member expression.`,
1848
1848
  [43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
1849
- [44]: `v-model cannot be used on a prop, because local prop bindings are not writable.\nUse a v-bind binding combined with a v-on listener that emits update:x event instead.`,
1849
+ [44]: `v-model cannot be used on a prop, because local prop bindings are not writable.\nUse a v-bind binding combined with a v-on listener that emits update:x event instead.\nFor props declared with defineModel(), assign the returned ref to a variable and use v-model on that variable.`,
1850
1850
  [45]: `v-model cannot be used on a const binding because it is not writable.`,
1851
1851
  [46]: `Error parsing JavaScript expression: `,
1852
1852
  [47]: `<KeepAlive> expects exactly one child component.`,
@@ -4304,7 +4304,11 @@ const transformFor = createStructuralDirectiveTransform("for", (node, dir, conte
4304
4304
  ]),
4305
4305
  createCompoundExpression([
4306
4306
  `if (_cached && _cached.el`,
4307
- ...keyExp ? [` && _cached.key === `, keyExp] : [],
4307
+ ...keyExp ? [
4308
+ ` && _cached.key === (`,
4309
+ keyExp,
4310
+ `)`
4311
+ ] : [],
4308
4312
  ` && ${context.helperString(IS_MEMO_SAME)}(_cached, _memo)) return _cached`
4309
4313
  ]),
4310
4314
  createCompoundExpression([`const _item = `, childBlock]),
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-core v3.6.0-rc.10
2
+ * @vue/compiler-core v3.6.0-rc.12
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1842,7 +1842,7 @@ const errorMessages = {
1842
1842
  [41]: `v-model is missing expression.`,
1843
1843
  [42]: `v-model value must be a valid JavaScript member expression.`,
1844
1844
  [43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
1845
- [44]: `v-model cannot be used on a prop, because local prop bindings are not writable.\nUse a v-bind binding combined with a v-on listener that emits update:x event instead.`,
1845
+ [44]: `v-model cannot be used on a prop, because local prop bindings are not writable.\nUse a v-bind binding combined with a v-on listener that emits update:x event instead.\nFor props declared with defineModel(), assign the returned ref to a variable and use v-model on that variable.`,
1846
1846
  [45]: `v-model cannot be used on a const binding because it is not writable.`,
1847
1847
  [46]: `Error parsing JavaScript expression: `,
1848
1848
  [47]: `<KeepAlive> expects exactly one child component.`,
@@ -4255,7 +4255,11 @@ const transformFor = createStructuralDirectiveTransform("for", (node, dir, conte
4255
4255
  ]),
4256
4256
  createCompoundExpression([
4257
4257
  `if (_cached && _cached.el`,
4258
- ...keyExp ? [` && _cached.key === `, keyExp] : [],
4258
+ ...keyExp ? [
4259
+ ` && _cached.key === (`,
4260
+ keyExp,
4261
+ `)`
4262
+ ] : [],
4259
4263
  ` && ${context.helperString(IS_MEMO_SAME)}(_cached, _memo)) return _cached`
4260
4264
  ]),
4261
4265
  createCompoundExpression([`const _item = `, childBlock]),
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-core v3.6.0-rc.10
2
+ * @vue/compiler-core v3.6.0-rc.12
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1324,7 +1324,7 @@ const errorMessages = {
1324
1324
  [41]: `v-model is missing expression.`,
1325
1325
  [42]: `v-model value must be a valid JavaScript member expression.`,
1326
1326
  [43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
1327
- [44]: `v-model cannot be used on a prop, because local prop bindings are not writable.\nUse a v-bind binding combined with a v-on listener that emits update:x event instead.`,
1327
+ [44]: `v-model cannot be used on a prop, because local prop bindings are not writable.\nUse a v-bind binding combined with a v-on listener that emits update:x event instead.\nFor props declared with defineModel(), assign the returned ref to a variable and use v-model on that variable.`,
1328
1328
  [45]: `v-model cannot be used on a const binding because it is not writable.`,
1329
1329
  [46]: `Error parsing JavaScript expression: `,
1330
1330
  [47]: `<KeepAlive> expects exactly one child component.`,
@@ -3381,7 +3381,11 @@ const transformFor = createStructuralDirectiveTransform("for", (node, dir, conte
3381
3381
  ]),
3382
3382
  createCompoundExpression([
3383
3383
  `if (_cached && _cached.el`,
3384
- ...keyExp ? [` && _cached.key === `, keyExp] : [],
3384
+ ...keyExp ? [
3385
+ ` && _cached.key === (`,
3386
+ keyExp,
3387
+ `)`
3388
+ ] : [],
3385
3389
  ` && ${context.helperString(IS_MEMO_SAME)}(_cached, _memo)) return _cached`
3386
3390
  ]),
3387
3391
  createCompoundExpression([`const _item = `, childBlock]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-core",
3
- "version": "3.6.0-rc.10",
3
+ "version": "3.6.0-rc.12",
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.6.0-rc.10",
49
+ "@babel/parser": "^7.29.9",
50
+ "@vue/shared": "3.6.0-rc.12",
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"