@vue/runtime-core 3.5.15 → 3.5.17

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.15
2
+ * @vue/runtime-core v3.5.17
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -2263,7 +2263,7 @@ function isMismatchAllowed(el, allowedType) {
2263
2263
  if (allowedType === 0 /* TEXT */ && list.includes("children")) {
2264
2264
  return true;
2265
2265
  }
2266
- return allowedAttr.split(",").includes(MismatchTypeString[allowedType]);
2266
+ return list.includes(MismatchTypeString[allowedType]);
2267
2267
  }
2268
2268
  }
2269
2269
 
@@ -4507,6 +4507,8 @@ const assignSlots = (slots, children, optimized) => {
4507
4507
  const initSlots = (instance, children, optimized) => {
4508
4508
  const slots = instance.slots = createInternalObject();
4509
4509
  if (instance.vnode.shapeFlag & 32) {
4510
+ const cacheIndexes = children.__;
4511
+ if (cacheIndexes) shared.def(slots, "__", cacheIndexes, true);
4510
4512
  const type = children._;
4511
4513
  if (type) {
4512
4514
  assignSlots(slots, children, optimized);
@@ -4718,6 +4720,8 @@ function baseCreateRenderer(options, createHydrationFns) {
4718
4720
  }
4719
4721
  if (ref != null && parentComponent) {
4720
4722
  setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
4723
+ } else if (ref == null && n1 && n1.ref != null) {
4724
+ setRef(n1.ref, null, parentSuspense, n1, true);
4721
4725
  }
4722
4726
  };
4723
4727
  const processText = (n1, n2, container, anchor) => {
@@ -5277,7 +5281,8 @@ function baseCreateRenderer(options, createHydrationFns) {
5277
5281
  hydrateSubTree();
5278
5282
  }
5279
5283
  } else {
5280
- if (root.ce) {
5284
+ if (root.ce && // @ts-expect-error _def is private
5285
+ root.ce._def.shadowRoot !== false) {
5281
5286
  root.ce._injectChildStyle(type);
5282
5287
  }
5283
5288
  {
@@ -8375,7 +8380,7 @@ function isMemoSame(cached, memo) {
8375
8380
  return true;
8376
8381
  }
8377
8382
 
8378
- const version = "3.5.15";
8383
+ const version = "3.5.17";
8379
8384
  const warn = warn$1 ;
8380
8385
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
8381
8386
  const devtools = devtools$1 ;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.5.15
2
+ * @vue/runtime-core v3.5.17
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1632,7 +1632,7 @@ function isMismatchAllowed(el, allowedType) {
1632
1632
  if (allowedType === 0 /* TEXT */ && list.includes("children")) {
1633
1633
  return true;
1634
1634
  }
1635
- return allowedAttr.split(",").includes(MismatchTypeString[allowedType]);
1635
+ return list.includes(MismatchTypeString[allowedType]);
1636
1636
  }
1637
1637
  }
1638
1638
 
@@ -3376,6 +3376,8 @@ const assignSlots = (slots, children, optimized) => {
3376
3376
  const initSlots = (instance, children, optimized) => {
3377
3377
  const slots = instance.slots = createInternalObject();
3378
3378
  if (instance.vnode.shapeFlag & 32) {
3379
+ const cacheIndexes = children.__;
3380
+ if (cacheIndexes) shared.def(slots, "__", cacheIndexes, true);
3379
3381
  const type = children._;
3380
3382
  if (type) {
3381
3383
  assignSlots(slots, children, optimized);
@@ -3537,6 +3539,8 @@ function baseCreateRenderer(options, createHydrationFns) {
3537
3539
  }
3538
3540
  if (ref != null && parentComponent) {
3539
3541
  setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
3542
+ } else if (ref == null && n1 && n1.ref != null) {
3543
+ setRef(n1.ref, null, parentSuspense, n1, true);
3540
3544
  }
3541
3545
  };
3542
3546
  const processText = (n1, n2, container, anchor) => {
@@ -4030,7 +4034,8 @@ function baseCreateRenderer(options, createHydrationFns) {
4030
4034
  hydrateSubTree();
4031
4035
  }
4032
4036
  } else {
4033
- if (root.ce) {
4037
+ if (root.ce && // @ts-expect-error _def is private
4038
+ root.ce._def.shadowRoot !== false) {
4034
4039
  root.ce._injectChildStyle(type);
4035
4040
  }
4036
4041
  const subTree = instance.subTree = renderComponentRoot(instance);
@@ -6521,7 +6526,7 @@ function isMemoSame(cached, memo) {
6521
6526
  return true;
6522
6527
  }
6523
6528
 
6524
- const version = "3.5.15";
6529
+ const version = "3.5.17";
6525
6530
  const warn$1 = shared.NOOP;
6526
6531
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
6527
6532
  const devtools = void 0;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.5.15
2
+ * @vue/runtime-core v3.5.17
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -2278,7 +2278,7 @@ function isMismatchAllowed(el, allowedType) {
2278
2278
  if (allowedType === 0 /* TEXT */ && list.includes("children")) {
2279
2279
  return true;
2280
2280
  }
2281
- return allowedAttr.split(",").includes(MismatchTypeString[allowedType]);
2281
+ return list.includes(MismatchTypeString[allowedType]);
2282
2282
  }
2283
2283
  }
2284
2284
 
@@ -4529,6 +4529,8 @@ const assignSlots = (slots, children, optimized) => {
4529
4529
  const initSlots = (instance, children, optimized) => {
4530
4530
  const slots = instance.slots = createInternalObject();
4531
4531
  if (instance.vnode.shapeFlag & 32) {
4532
+ const cacheIndexes = children.__;
4533
+ if (cacheIndexes) def(slots, "__", cacheIndexes, true);
4532
4534
  const type = children._;
4533
4535
  if (type) {
4534
4536
  assignSlots(slots, children, optimized);
@@ -4767,6 +4769,8 @@ function baseCreateRenderer(options, createHydrationFns) {
4767
4769
  }
4768
4770
  if (ref != null && parentComponent) {
4769
4771
  setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
4772
+ } else if (ref == null && n1 && n1.ref != null) {
4773
+ setRef(n1.ref, null, parentSuspense, n1, true);
4770
4774
  }
4771
4775
  };
4772
4776
  const processText = (n1, n2, container, anchor) => {
@@ -5337,7 +5341,8 @@ function baseCreateRenderer(options, createHydrationFns) {
5337
5341
  hydrateSubTree();
5338
5342
  }
5339
5343
  } else {
5340
- if (root.ce) {
5344
+ if (root.ce && // @ts-expect-error _def is private
5345
+ root.ce._def.shadowRoot !== false) {
5341
5346
  root.ce._injectChildStyle(type);
5342
5347
  }
5343
5348
  if (!!(process.env.NODE_ENV !== "production")) {
@@ -8449,7 +8454,7 @@ function isMemoSame(cached, memo) {
8449
8454
  return true;
8450
8455
  }
8451
8456
 
8452
- const version = "3.5.15";
8457
+ const version = "3.5.17";
8453
8458
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
8454
8459
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
8455
8460
  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.15",
3
+ "version": "3.5.17",
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.15",
50
- "@vue/reactivity": "3.5.15"
49
+ "@vue/shared": "3.5.17",
50
+ "@vue/reactivity": "3.5.17"
51
51
  }
52
52
  }