@vue/compat 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/compat v3.4.10
2
+ * @vue/compat v3.4.11
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -564,7 +564,7 @@ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
564
564
  if (!effect2.allowRecurse && effect2._runnings) {
565
565
  continue;
566
566
  }
567
- if (effect2._dirtyLevel < dirtyLevel && (!effect2._runnings || dirtyLevel !== 2)) {
567
+ if (effect2._dirtyLevel < dirtyLevel && (!effect2._runnings || effect2.allowRecurse || dirtyLevel !== 2)) {
568
568
  const lastDirtyLevel = effect2._dirtyLevel;
569
569
  effect2._dirtyLevel = dirtyLevel;
570
570
  if (lastDirtyLevel === 0 && (!effect2._queryings || dirtyLevel !== 2)) {
@@ -2988,9 +2988,11 @@ function renderComponentRoot(instance) {
2988
2988
  const getChildRoot = (vnode) => {
2989
2989
  const rawChildren = vnode.children;
2990
2990
  const dynamicChildren = vnode.dynamicChildren;
2991
- const childRoot = filterSingleRoot(rawChildren);
2991
+ const childRoot = filterSingleRoot(rawChildren, false);
2992
2992
  if (!childRoot) {
2993
2993
  return [vnode, void 0];
2994
+ } else if (!!(process.env.NODE_ENV !== "production") && childRoot.patchFlag > 0 && childRoot.patchFlag & 2048) {
2995
+ return getChildRoot(childRoot);
2994
2996
  }
2995
2997
  const index = rawChildren.indexOf(childRoot);
2996
2998
  const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;
@@ -3006,7 +3008,7 @@ const getChildRoot = (vnode) => {
3006
3008
  };
3007
3009
  return [normalizeVNode(childRoot), setRoot];
3008
3010
  };
3009
- function filterSingleRoot(children) {
3011
+ function filterSingleRoot(children, recurse = true) {
3010
3012
  let singleRoot;
3011
3013
  for (let i = 0; i < children.length; i++) {
3012
3014
  const child = children[i];
@@ -3016,6 +3018,9 @@ function filterSingleRoot(children) {
3016
3018
  return;
3017
3019
  } else {
3018
3020
  singleRoot = child;
3021
+ if (!!(process.env.NODE_ENV !== "production") && recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) {
3022
+ return filterSingleRoot(singleRoot.children);
3023
+ }
3019
3024
  }
3020
3025
  }
3021
3026
  } else {
@@ -6453,7 +6458,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6453
6458
  return vm;
6454
6459
  }
6455
6460
  }
6456
- Vue.version = `2.6.14-compat:${"3.4.10"}`;
6461
+ Vue.version = `2.6.14-compat:${"3.4.11"}`;
6457
6462
  Vue.config = singletonApp.config;
6458
6463
  Vue.use = (p, ...options) => {
6459
6464
  if (p && isFunction(p.install)) {
@@ -8216,6 +8221,9 @@ function propHasMismatch(el, key, clientValue, vnode) {
8216
8221
  if (isBooleanAttr(key)) {
8217
8222
  actual = el.hasAttribute(key);
8218
8223
  expected = includeBooleanAttr(clientValue);
8224
+ } else if (clientValue == null) {
8225
+ actual = el.hasAttribute(key);
8226
+ expected = false;
8219
8227
  } else {
8220
8228
  if (el.hasAttribute(key)) {
8221
8229
  actual = el.getAttribute(key);
@@ -11349,7 +11357,7 @@ function isMemoSame(cached, memo) {
11349
11357
  return true;
11350
11358
  }
11351
11359
 
11352
- const version = "3.4.10";
11360
+ const version = "3.4.11";
11353
11361
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
11354
11362
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11355
11363
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.4.10
2
+ * @vue/compat v3.4.11
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -567,7 +567,7 @@ var Vue = (function () {
567
567
  if (!effect2.allowRecurse && effect2._runnings) {
568
568
  continue;
569
569
  }
570
- if (effect2._dirtyLevel < dirtyLevel && (!effect2._runnings || dirtyLevel !== 2)) {
570
+ if (effect2._dirtyLevel < dirtyLevel && (!effect2._runnings || effect2.allowRecurse || dirtyLevel !== 2)) {
571
571
  const lastDirtyLevel = effect2._dirtyLevel;
572
572
  effect2._dirtyLevel = dirtyLevel;
573
573
  if (lastDirtyLevel === 0 && (!effect2._queryings || dirtyLevel !== 2)) {
@@ -2984,9 +2984,11 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
2984
2984
  const getChildRoot = (vnode) => {
2985
2985
  const rawChildren = vnode.children;
2986
2986
  const dynamicChildren = vnode.dynamicChildren;
2987
- const childRoot = filterSingleRoot(rawChildren);
2987
+ const childRoot = filterSingleRoot(rawChildren, false);
2988
2988
  if (!childRoot) {
2989
2989
  return [vnode, void 0];
2990
+ } else if (childRoot.patchFlag > 0 && childRoot.patchFlag & 2048) {
2991
+ return getChildRoot(childRoot);
2990
2992
  }
2991
2993
  const index = rawChildren.indexOf(childRoot);
2992
2994
  const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;
@@ -3002,7 +3004,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
3002
3004
  };
3003
3005
  return [normalizeVNode(childRoot), setRoot];
3004
3006
  };
3005
- function filterSingleRoot(children) {
3007
+ function filterSingleRoot(children, recurse = true) {
3006
3008
  let singleRoot;
3007
3009
  for (let i = 0; i < children.length; i++) {
3008
3010
  const child = children[i];
@@ -3012,6 +3014,9 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
3012
3014
  return;
3013
3015
  } else {
3014
3016
  singleRoot = child;
3017
+ if (recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) {
3018
+ return filterSingleRoot(singleRoot.children);
3019
+ }
3015
3020
  }
3016
3021
  }
3017
3022
  } else {
@@ -6412,7 +6417,7 @@ If this is a native custom element, make sure to exclude it from component resol
6412
6417
  return vm;
6413
6418
  }
6414
6419
  }
6415
- Vue.version = `2.6.14-compat:${"3.4.10"}`;
6420
+ Vue.version = `2.6.14-compat:${"3.4.11"}`;
6416
6421
  Vue.config = singletonApp.config;
6417
6422
  Vue.use = (p, ...options) => {
6418
6423
  if (p && isFunction(p.install)) {
@@ -8162,6 +8167,9 @@ Server rendered element contains fewer child nodes than client vdom.`
8162
8167
  if (isBooleanAttr(key)) {
8163
8168
  actual = el.hasAttribute(key);
8164
8169
  expected = includeBooleanAttr(clientValue);
8170
+ } else if (clientValue == null) {
8171
+ actual = el.hasAttribute(key);
8172
+ expected = false;
8165
8173
  } else {
8166
8174
  if (el.hasAttribute(key)) {
8167
8175
  actual = el.getAttribute(key);
@@ -11224,7 +11232,7 @@ Component that was made reactive: `,
11224
11232
  return true;
11225
11233
  }
11226
11234
 
11227
- const version = "3.4.10";
11235
+ const version = "3.4.11";
11228
11236
  const warn = warn$1 ;
11229
11237
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11230
11238
  const devtools = devtools$1 ;