@vue/runtime-core 3.5.4 → 3.5.5

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.4
2
+ * @vue/runtime-core v3.5.5
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -524,7 +524,9 @@ function reload(id, newComp) {
524
524
  dirtyInstances.delete(instance);
525
525
  } else if (instance.parent) {
526
526
  queueJob(() => {
527
+ isHmrUpdating = true;
527
528
  instance.parent.update();
529
+ isHmrUpdating = false;
528
530
  dirtyInstances.delete(instance);
529
531
  });
530
532
  } else if (instance.appContext.reload) {
@@ -815,6 +817,9 @@ const TeleportImpl = {
815
817
  insert(mainAnchor, container, anchor);
816
818
  const mount = (container2, anchor2) => {
817
819
  if (shapeFlag & 16) {
820
+ if (parentComponent && parentComponent.isCE) {
821
+ parentComponent.ce._teleportTarget = container2;
822
+ }
818
823
  mountChildren(
819
824
  children,
820
825
  container2,
@@ -1845,7 +1850,11 @@ Server rendered element contains more child nodes than client vdom.`
1845
1850
  remove(cur);
1846
1851
  }
1847
1852
  } else if (shapeFlag & 8) {
1848
- if (el.textContent !== vnode.children) {
1853
+ let clientText = vnode.children;
1854
+ if (clientText[0] === "\n" && (el.tagName === "PRE" || el.tagName === "TEXTAREA")) {
1855
+ clientText = clientText.slice(1);
1856
+ }
1857
+ if (el.textContent !== clientText) {
1849
1858
  if (!isMismatchAllowed(el, 0 /* TEXT */)) {
1850
1859
  warn$1(
1851
1860
  `Hydration text content mismatch on`,
@@ -2044,7 +2053,7 @@ Server rendered element contains fewer child nodes than client vdom.`
2044
2053
  }
2045
2054
  };
2046
2055
  const isTemplateNode = (node) => {
2047
- return node.nodeType === 1 && node.tagName.toLowerCase() === "template";
2056
+ return node.nodeType === 1 && node.tagName === "TEMPLATE";
2048
2057
  };
2049
2058
  return [hydrate, hydrateNode];
2050
2059
  }
@@ -2396,7 +2405,7 @@ function defineAsyncComponent(source) {
2396
2405
  load().then(() => {
2397
2406
  loaded.value = true;
2398
2407
  if (instance.parent && isKeepAlive(instance.parent.vnode)) {
2399
- queueJob(instance.parent.update);
2408
+ instance.parent.update();
2400
2409
  }
2401
2410
  }).catch((err) => {
2402
2411
  onError(err);
@@ -5078,6 +5087,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5078
5087
  }
5079
5088
  }
5080
5089
  if (instance.asyncDep) {
5090
+ if (isHmrUpdating) initialVNode.el = null;
5081
5091
  parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized);
5082
5092
  if (!initialVNode.el) {
5083
5093
  const placeholder = instance.subTree = createVNode(Comment);
@@ -8229,7 +8239,7 @@ function isMemoSame(cached, memo) {
8229
8239
  return true;
8230
8240
  }
8231
8241
 
8232
- const version = "3.5.4";
8242
+ const version = "3.5.5";
8233
8243
  const warn = warn$1 ;
8234
8244
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
8235
8245
  const devtools = devtools$1 ;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.5.4
2
+ * @vue/runtime-core v3.5.5
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -416,6 +416,9 @@ const TeleportImpl = {
416
416
  insert(mainAnchor, container, anchor);
417
417
  const mount = (container2, anchor2) => {
418
418
  if (shapeFlag & 16) {
419
+ if (parentComponent && parentComponent.isCE) {
420
+ parentComponent.ce._teleportTarget = container2;
421
+ }
419
422
  mountChildren(
420
423
  children,
421
424
  container2,
@@ -1365,7 +1368,11 @@ function createHydrationFunctions(rendererInternals) {
1365
1368
  remove(cur);
1366
1369
  }
1367
1370
  } else if (shapeFlag & 8) {
1368
- if (el.textContent !== vnode.children) {
1371
+ let clientText = vnode.children;
1372
+ if (clientText[0] === "\n" && (el.tagName === "PRE" || el.tagName === "TEXTAREA")) {
1373
+ clientText = clientText.slice(1);
1374
+ }
1375
+ if (el.textContent !== clientText) {
1369
1376
  if (!isMismatchAllowed(el, 0 /* TEXT */)) {
1370
1377
  logMismatchError();
1371
1378
  }
@@ -1544,7 +1551,7 @@ function createHydrationFunctions(rendererInternals) {
1544
1551
  }
1545
1552
  };
1546
1553
  const isTemplateNode = (node) => {
1547
- return node.nodeType === 1 && node.tagName.toLowerCase() === "template";
1554
+ return node.nodeType === 1 && node.tagName === "TEMPLATE";
1548
1555
  };
1549
1556
  return [hydrate, hydrateNode];
1550
1557
  }
@@ -1768,7 +1775,7 @@ function defineAsyncComponent(source) {
1768
1775
  load().then(() => {
1769
1776
  loaded.value = true;
1770
1777
  if (instance.parent && isKeepAlive(instance.parent.vnode)) {
1771
- queueJob(instance.parent.update);
1778
+ instance.parent.update();
1772
1779
  }
1773
1780
  }).catch((err) => {
1774
1781
  onError(err);
@@ -6401,7 +6408,7 @@ function isMemoSame(cached, memo) {
6401
6408
  return true;
6402
6409
  }
6403
6410
 
6404
- const version = "3.5.4";
6411
+ const version = "3.5.5";
6405
6412
  const warn$1 = shared.NOOP;
6406
6413
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
6407
6414
  const devtools = void 0;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.5.4
2
+ * @vue/runtime-core v3.5.5
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -527,7 +527,9 @@ function reload(id, newComp) {
527
527
  dirtyInstances.delete(instance);
528
528
  } else if (instance.parent) {
529
529
  queueJob(() => {
530
+ isHmrUpdating = true;
530
531
  instance.parent.update();
532
+ isHmrUpdating = false;
531
533
  dirtyInstances.delete(instance);
532
534
  });
533
535
  } else if (instance.appContext.reload) {
@@ -818,6 +820,9 @@ const TeleportImpl = {
818
820
  insert(mainAnchor, container, anchor);
819
821
  const mount = (container2, anchor2) => {
820
822
  if (shapeFlag & 16) {
823
+ if (parentComponent && parentComponent.isCE) {
824
+ parentComponent.ce._teleportTarget = container2;
825
+ }
821
826
  mountChildren(
822
827
  children,
823
828
  container2,
@@ -1849,7 +1854,11 @@ Server rendered element contains more child nodes than client vdom.`
1849
1854
  remove(cur);
1850
1855
  }
1851
1856
  } else if (shapeFlag & 8) {
1852
- if (el.textContent !== vnode.children) {
1857
+ let clientText = vnode.children;
1858
+ if (clientText[0] === "\n" && (el.tagName === "PRE" || el.tagName === "TEXTAREA")) {
1859
+ clientText = clientText.slice(1);
1860
+ }
1861
+ if (el.textContent !== clientText) {
1853
1862
  if (!isMismatchAllowed(el, 0 /* TEXT */)) {
1854
1863
  (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(
1855
1864
  `Hydration text content mismatch on`,
@@ -2059,7 +2068,7 @@ Server rendered element contains fewer child nodes than client vdom.`
2059
2068
  }
2060
2069
  };
2061
2070
  const isTemplateNode = (node) => {
2062
- return node.nodeType === 1 && node.tagName.toLowerCase() === "template";
2071
+ return node.nodeType === 1 && node.tagName === "TEMPLATE";
2063
2072
  };
2064
2073
  return [hydrate, hydrateNode];
2065
2074
  }
@@ -2411,7 +2420,7 @@ function defineAsyncComponent(source) {
2411
2420
  load().then(() => {
2412
2421
  loaded.value = true;
2413
2422
  if (instance.parent && isKeepAlive(instance.parent.vnode)) {
2414
- queueJob(instance.parent.update);
2423
+ instance.parent.update();
2415
2424
  }
2416
2425
  }).catch((err) => {
2417
2426
  onError(err);
@@ -5135,6 +5144,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5135
5144
  }
5136
5145
  }
5137
5146
  if (instance.asyncDep) {
5147
+ if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) initialVNode.el = null;
5138
5148
  parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized);
5139
5149
  if (!initialVNode.el) {
5140
5150
  const placeholder = instance.subTree = createVNode(Comment);
@@ -8300,7 +8310,7 @@ function isMemoSame(cached, memo) {
8300
8310
  return true;
8301
8311
  }
8302
8312
 
8303
- const version = "3.5.4";
8313
+ const version = "3.5.5";
8304
8314
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
8305
8315
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
8306
8316
  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.4",
3
+ "version": "3.5.5",
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.4",
50
- "@vue/reactivity": "3.5.4"
49
+ "@vue/shared": "3.5.5",
50
+ "@vue/reactivity": "3.5.5"
51
51
  }
52
52
  }