@vue/runtime-core 3.5.33 → 3.5.34

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/runtime-core v3.5.33
2
+ * @vue/runtime-core v3.5.34
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -5185,7 +5185,7 @@ function getInvalidTypeMessage(name, value, expectedTypes) {
5185
5185
  const receivedType = shared.toRawType(value);
5186
5186
  const expectedValue = styleValue(value, expectedType);
5187
5187
  const receivedValue = styleValue(value, receivedType);
5188
- if (expectedTypes.length === 1 && isExplicable(expectedType) && !isBoolean(expectedType, receivedType)) {
5188
+ if (expectedTypes.length === 1 && isExplicable(expectedType) && isCoercible(expectedType, receivedType)) {
5189
5189
  message += ` with value ${expectedValue}`;
5190
5190
  }
5191
5191
  message += `, got ${receivedType} `;
@@ -5195,7 +5195,9 @@ function getInvalidTypeMessage(name, value, expectedTypes) {
5195
5195
  return message;
5196
5196
  }
5197
5197
  function styleValue(value, type) {
5198
- if (type === "String") {
5198
+ if (shared.isSymbol(value)) {
5199
+ return value.toString();
5200
+ } else if (type === "String") {
5199
5201
  return `"${value}"`;
5200
5202
  } else if (type === "Number") {
5201
5203
  return `${Number(value)}`;
@@ -5207,8 +5209,11 @@ function isExplicable(type) {
5207
5209
  const explicitTypes = ["string", "number", "boolean"];
5208
5210
  return explicitTypes.some((elem) => type.toLowerCase() === elem);
5209
5211
  }
5210
- function isBoolean(...args) {
5211
- return args.some((elem) => elem.toLowerCase() === "boolean");
5212
+ function isCoercible(...args) {
5213
+ return args.every((elem) => {
5214
+ const value = elem.toLowerCase();
5215
+ return value !== "boolean" && value !== "symbol";
5216
+ });
5212
5217
  }
5213
5218
 
5214
5219
  const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
@@ -7228,13 +7233,14 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
7228
7233
  suspense.isHydrating = false;
7229
7234
  } else if (!resume) {
7230
7235
  delayEnter = activeBranch && pendingBranch.transition && pendingBranch.transition.mode === "out-in";
7236
+ let hasUpdatedAnchor = false;
7231
7237
  if (delayEnter) {
7232
7238
  activeBranch.transition.afterLeave = () => {
7233
7239
  if (pendingId === suspense.pendingId) {
7234
7240
  move(
7235
7241
  pendingBranch,
7236
7242
  container2,
7237
- anchor === initialAnchor ? next(activeBranch) : anchor,
7243
+ anchor === initialAnchor && !hasUpdatedAnchor ? next(activeBranch) : anchor,
7238
7244
  0
7239
7245
  );
7240
7246
  queuePostFlushCb(effects);
@@ -7247,6 +7253,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
7247
7253
  if (activeBranch && !suspense.isFallbackMountPending) {
7248
7254
  if (parentNode(activeBranch.el) === container2) {
7249
7255
  anchor = next(activeBranch);
7256
+ hasUpdatedAnchor = true;
7250
7257
  }
7251
7258
  unmount(activeBranch, parentComponent2, suspense, true);
7252
7259
  if (!delayEnter && isInFallback && vnode2.ssFallback) {
@@ -8553,7 +8560,7 @@ function isMemoSame(cached, memo) {
8553
8560
  return true;
8554
8561
  }
8555
8562
 
8556
- const version = "3.5.33";
8563
+ const version = "3.5.34";
8557
8564
  const warn = warn$1 ;
8558
8565
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
8559
8566
  const devtools = devtools$1 ;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.5.33
2
+ * @vue/runtime-core v3.5.34
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -5730,13 +5730,14 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
5730
5730
  suspense.isHydrating = false;
5731
5731
  } else if (!resume) {
5732
5732
  delayEnter = activeBranch && pendingBranch.transition && pendingBranch.transition.mode === "out-in";
5733
+ let hasUpdatedAnchor = false;
5733
5734
  if (delayEnter) {
5734
5735
  activeBranch.transition.afterLeave = () => {
5735
5736
  if (pendingId === suspense.pendingId) {
5736
5737
  move(
5737
5738
  pendingBranch,
5738
5739
  container2,
5739
- anchor === initialAnchor ? next(activeBranch) : anchor,
5740
+ anchor === initialAnchor && !hasUpdatedAnchor ? next(activeBranch) : anchor,
5740
5741
  0
5741
5742
  );
5742
5743
  queuePostFlushCb(effects);
@@ -5749,6 +5750,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
5749
5750
  if (activeBranch && !suspense.isFallbackMountPending) {
5750
5751
  if (parentNode(activeBranch.el) === container2) {
5751
5752
  anchor = next(activeBranch);
5753
+ hasUpdatedAnchor = true;
5752
5754
  }
5753
5755
  unmount(activeBranch, parentComponent2, suspense, true);
5754
5756
  if (!delayEnter && isInFallback && vnode2.ssFallback) {
@@ -6691,7 +6693,7 @@ function isMemoSame(cached, memo) {
6691
6693
  return true;
6692
6694
  }
6693
6695
 
6694
- const version = "3.5.33";
6696
+ const version = "3.5.34";
6695
6697
  const warn$1 = shared.NOOP;
6696
6698
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
6697
6699
  const devtools = void 0;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.5.33
2
+ * @vue/runtime-core v3.5.34
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -5207,7 +5207,7 @@ function getInvalidTypeMessage(name, value, expectedTypes) {
5207
5207
  const receivedType = toRawType(value);
5208
5208
  const expectedValue = styleValue(value, expectedType);
5209
5209
  const receivedValue = styleValue(value, receivedType);
5210
- if (expectedTypes.length === 1 && isExplicable(expectedType) && !isBoolean(expectedType, receivedType)) {
5210
+ if (expectedTypes.length === 1 && isExplicable(expectedType) && isCoercible(expectedType, receivedType)) {
5211
5211
  message += ` with value ${expectedValue}`;
5212
5212
  }
5213
5213
  message += `, got ${receivedType} `;
@@ -5217,7 +5217,9 @@ function getInvalidTypeMessage(name, value, expectedTypes) {
5217
5217
  return message;
5218
5218
  }
5219
5219
  function styleValue(value, type) {
5220
- if (type === "String") {
5220
+ if (isSymbol(value)) {
5221
+ return value.toString();
5222
+ } else if (type === "String") {
5221
5223
  return `"${value}"`;
5222
5224
  } else if (type === "Number") {
5223
5225
  return `${Number(value)}`;
@@ -5229,8 +5231,11 @@ function isExplicable(type) {
5229
5231
  const explicitTypes = ["string", "number", "boolean"];
5230
5232
  return explicitTypes.some((elem) => type.toLowerCase() === elem);
5231
5233
  }
5232
- function isBoolean(...args) {
5233
- return args.some((elem) => elem.toLowerCase() === "boolean");
5234
+ function isCoercible(...args) {
5235
+ return args.every((elem) => {
5236
+ const value = elem.toLowerCase();
5237
+ return value !== "boolean" && value !== "symbol";
5238
+ });
5234
5239
  }
5235
5240
 
5236
5241
  const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
@@ -7288,13 +7293,14 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
7288
7293
  suspense.isHydrating = false;
7289
7294
  } else if (!resume) {
7290
7295
  delayEnter = activeBranch && pendingBranch.transition && pendingBranch.transition.mode === "out-in";
7296
+ let hasUpdatedAnchor = false;
7291
7297
  if (delayEnter) {
7292
7298
  activeBranch.transition.afterLeave = () => {
7293
7299
  if (pendingId === suspense.pendingId) {
7294
7300
  move(
7295
7301
  pendingBranch,
7296
7302
  container2,
7297
- anchor === initialAnchor ? next(activeBranch) : anchor,
7303
+ anchor === initialAnchor && !hasUpdatedAnchor ? next(activeBranch) : anchor,
7298
7304
  0
7299
7305
  );
7300
7306
  queuePostFlushCb(effects);
@@ -7307,6 +7313,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
7307
7313
  if (activeBranch && !suspense.isFallbackMountPending) {
7308
7314
  if (parentNode(activeBranch.el) === container2) {
7309
7315
  anchor = next(activeBranch);
7316
+ hasUpdatedAnchor = true;
7310
7317
  }
7311
7318
  unmount(activeBranch, parentComponent2, suspense, true);
7312
7319
  if (!delayEnter && isInFallback && vnode2.ssFallback) {
@@ -8627,7 +8634,7 @@ function isMemoSame(cached, memo) {
8627
8634
  return true;
8628
8635
  }
8629
8636
 
8630
- const version = "3.5.33";
8637
+ const version = "3.5.34";
8631
8638
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
8632
8639
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
8633
8640
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/runtime-core",
3
- "version": "3.5.33",
3
+ "version": "3.5.34",
4
4
  "description": "@vue/runtime-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/runtime-core.esm-bundler.js",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
48
48
  "dependencies": {
49
- "@vue/shared": "3.5.33",
50
- "@vue/reactivity": "3.5.33"
49
+ "@vue/shared": "3.5.34",
50
+ "@vue/reactivity": "3.5.34"
51
51
  }
52
52
  }