@vue/runtime-core 3.4.10 → 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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.4.10
2
+ * @vue/runtime-core v3.4.11
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -983,9 +983,11 @@ function renderComponentRoot(instance) {
983
983
  const getChildRoot = (vnode) => {
984
984
  const rawChildren = vnode.children;
985
985
  const dynamicChildren = vnode.dynamicChildren;
986
- const childRoot = filterSingleRoot(rawChildren);
986
+ const childRoot = filterSingleRoot(rawChildren, false);
987
987
  if (!childRoot) {
988
988
  return [vnode, void 0];
989
+ } else if (childRoot.patchFlag > 0 && childRoot.patchFlag & 2048) {
990
+ return getChildRoot(childRoot);
989
991
  }
990
992
  const index = rawChildren.indexOf(childRoot);
991
993
  const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;
@@ -1001,7 +1003,7 @@ const getChildRoot = (vnode) => {
1001
1003
  };
1002
1004
  return [normalizeVNode(childRoot), setRoot];
1003
1005
  };
1004
- function filterSingleRoot(children) {
1006
+ function filterSingleRoot(children, recurse = true) {
1005
1007
  let singleRoot;
1006
1008
  for (let i = 0; i < children.length; i++) {
1007
1009
  const child = children[i];
@@ -1011,6 +1013,9 @@ function filterSingleRoot(children) {
1011
1013
  return;
1012
1014
  } else {
1013
1015
  singleRoot = child;
1016
+ if (recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) {
1017
+ return filterSingleRoot(singleRoot.children);
1018
+ }
1014
1019
  }
1015
1020
  }
1016
1021
  } else {
@@ -5081,6 +5086,9 @@ function propHasMismatch(el, key, clientValue, vnode) {
5081
5086
  if (shared.isBooleanAttr(key)) {
5082
5087
  actual = el.hasAttribute(key);
5083
5088
  expected = shared.includeBooleanAttr(clientValue);
5089
+ } else if (clientValue == null) {
5090
+ actual = el.hasAttribute(key);
5091
+ expected = false;
5084
5092
  } else {
5085
5093
  if (el.hasAttribute(key)) {
5086
5094
  actual = el.getAttribute(key);
@@ -8057,7 +8065,7 @@ function isMemoSame(cached, memo) {
8057
8065
  return true;
8058
8066
  }
8059
8067
 
8060
- const version = "3.4.10";
8068
+ const version = "3.4.11";
8061
8069
  const warn = warn$1 ;
8062
8070
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
8063
8071
  const devtools = devtools$1 ;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.4.10
2
+ * @vue/runtime-core v3.4.11
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -515,7 +515,7 @@ function renderComponentRoot(instance) {
515
515
  setCurrentRenderingInstance(prev);
516
516
  return result;
517
517
  }
518
- function filterSingleRoot(children) {
518
+ function filterSingleRoot(children, recurse = true) {
519
519
  let singleRoot;
520
520
  for (let i = 0; i < children.length; i++) {
521
521
  const child = children[i];
@@ -6278,7 +6278,7 @@ function isMemoSame(cached, memo) {
6278
6278
  return true;
6279
6279
  }
6280
6280
 
6281
- const version = "3.4.10";
6281
+ const version = "3.4.11";
6282
6282
  const warn$1 = shared.NOOP;
6283
6283
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
6284
6284
  const devtools = void 0;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-core v3.4.10
2
+ * @vue/runtime-core v3.4.11
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -985,9 +985,11 @@ function renderComponentRoot(instance) {
985
985
  const getChildRoot = (vnode) => {
986
986
  const rawChildren = vnode.children;
987
987
  const dynamicChildren = vnode.dynamicChildren;
988
- const childRoot = filterSingleRoot(rawChildren);
988
+ const childRoot = filterSingleRoot(rawChildren, false);
989
989
  if (!childRoot) {
990
990
  return [vnode, void 0];
991
+ } else if (!!(process.env.NODE_ENV !== "production") && childRoot.patchFlag > 0 && childRoot.patchFlag & 2048) {
992
+ return getChildRoot(childRoot);
991
993
  }
992
994
  const index = rawChildren.indexOf(childRoot);
993
995
  const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;
@@ -1003,7 +1005,7 @@ const getChildRoot = (vnode) => {
1003
1005
  };
1004
1006
  return [normalizeVNode(childRoot), setRoot];
1005
1007
  };
1006
- function filterSingleRoot(children) {
1008
+ function filterSingleRoot(children, recurse = true) {
1007
1009
  let singleRoot;
1008
1010
  for (let i = 0; i < children.length; i++) {
1009
1011
  const child = children[i];
@@ -1013,6 +1015,9 @@ function filterSingleRoot(children) {
1013
1015
  return;
1014
1016
  } else {
1015
1017
  singleRoot = child;
1018
+ if (!!(process.env.NODE_ENV !== "production") && recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) {
1019
+ return filterSingleRoot(singleRoot.children);
1020
+ }
1016
1021
  }
1017
1022
  }
1018
1023
  } else {
@@ -5099,6 +5104,9 @@ function propHasMismatch(el, key, clientValue, vnode) {
5099
5104
  if (isBooleanAttr(key)) {
5100
5105
  actual = el.hasAttribute(key);
5101
5106
  expected = includeBooleanAttr(clientValue);
5107
+ } else if (clientValue == null) {
5108
+ actual = el.hasAttribute(key);
5109
+ expected = false;
5102
5110
  } else {
5103
5111
  if (el.hasAttribute(key)) {
5104
5112
  actual = el.getAttribute(key);
@@ -8129,7 +8137,7 @@ function isMemoSame(cached, memo) {
8129
8137
  return true;
8130
8138
  }
8131
8139
 
8132
- const version = "3.4.10";
8140
+ const version = "3.4.11";
8133
8141
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
8134
8142
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
8135
8143
  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.4.10",
3
+ "version": "3.4.11",
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.4.10",
50
- "@vue/reactivity": "3.4.10"
49
+ "@vue/shared": "3.4.11",
50
+ "@vue/reactivity": "3.4.11"
51
51
  }
52
52
  }