vue 3.4.9 → 3.4.11

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.
package/dist/vue.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * vue v3.4.9
2
+ * vue v3.4.11
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1,5 +1,5 @@
1
1
  /**
2
- * vue v3.4.9
2
+ * vue v3.4.11
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1,5 +1,5 @@
1
1
  /**
2
- * vue v3.4.9
2
+ * vue v3.4.11
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -629,7 +629,7 @@ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
629
629
  if (!effect2.allowRecurse && effect2._runnings) {
630
630
  continue;
631
631
  }
632
- if (effect2._dirtyLevel < dirtyLevel && (!effect2._runnings || dirtyLevel !== 2)) {
632
+ if (effect2._dirtyLevel < dirtyLevel && (!effect2._runnings || effect2.allowRecurse || dirtyLevel !== 2)) {
633
633
  const lastDirtyLevel = effect2._dirtyLevel;
634
634
  effect2._dirtyLevel = dirtyLevel;
635
635
  if (lastDirtyLevel === 0 && (!effect2._queryings || dirtyLevel !== 2)) {
@@ -2529,9 +2529,11 @@ function renderComponentRoot(instance) {
2529
2529
  const getChildRoot = (vnode) => {
2530
2530
  const rawChildren = vnode.children;
2531
2531
  const dynamicChildren = vnode.dynamicChildren;
2532
- const childRoot = filterSingleRoot(rawChildren);
2532
+ const childRoot = filterSingleRoot(rawChildren, false);
2533
2533
  if (!childRoot) {
2534
2534
  return [vnode, void 0];
2535
+ } else if (childRoot.patchFlag > 0 && childRoot.patchFlag & 2048) {
2536
+ return getChildRoot(childRoot);
2535
2537
  }
2536
2538
  const index = rawChildren.indexOf(childRoot);
2537
2539
  const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;
@@ -2547,7 +2549,7 @@ const getChildRoot = (vnode) => {
2547
2549
  };
2548
2550
  return [normalizeVNode(childRoot), setRoot];
2549
2551
  };
2550
- function filterSingleRoot(children) {
2552
+ function filterSingleRoot(children, recurse = true) {
2551
2553
  let singleRoot;
2552
2554
  for (let i = 0; i < children.length; i++) {
2553
2555
  const child = children[i];
@@ -2557,6 +2559,9 @@ function filterSingleRoot(children) {
2557
2559
  return;
2558
2560
  } else {
2559
2561
  singleRoot = child;
2562
+ if (recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) {
2563
+ return filterSingleRoot(singleRoot.children);
2564
+ }
2560
2565
  }
2561
2566
  }
2562
2567
  } else {
@@ -6600,18 +6605,17 @@ function propHasMismatch(el, key, clientValue, vnode) {
6600
6605
  if (isBooleanAttr(key)) {
6601
6606
  actual = el.hasAttribute(key);
6602
6607
  expected = includeBooleanAttr(clientValue);
6608
+ } else if (clientValue == null) {
6609
+ actual = el.hasAttribute(key);
6610
+ expected = false;
6603
6611
  } else {
6604
6612
  if (el.hasAttribute(key)) {
6605
6613
  actual = el.getAttribute(key);
6606
- } else if (key in el) {
6614
+ } else {
6607
6615
  const serverValue = el[key];
6608
- if (!isObject(serverValue)) {
6609
- actual = serverValue == null ? "" : String(serverValue);
6610
- }
6611
- }
6612
- if (!isObject(clientValue)) {
6613
- expected = clientValue == null ? "" : String(clientValue);
6616
+ actual = isObject(serverValue) || serverValue == null ? "" : String(serverValue);
6614
6617
  }
6618
+ expected = isObject(clientValue) || clientValue == null ? "" : String(clientValue);
6615
6619
  }
6616
6620
  if (actual !== expected) {
6617
6621
  mismatchType = `attribute`;
@@ -9559,7 +9563,7 @@ function isMemoSame(cached, memo) {
9559
9563
  return true;
9560
9564
  }
9561
9565
 
9562
- const version = "3.4.9";
9566
+ const version = "3.4.11";
9563
9567
  const warn = warn$1 ;
9564
9568
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
9565
9569
  const devtools = devtools$1 ;