@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
  **/
@@ -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)) {
@@ -3053,9 +3053,11 @@ function renderComponentRoot(instance) {
3053
3053
  const getChildRoot = (vnode) => {
3054
3054
  const rawChildren = vnode.children;
3055
3055
  const dynamicChildren = vnode.dynamicChildren;
3056
- const childRoot = filterSingleRoot(rawChildren);
3056
+ const childRoot = filterSingleRoot(rawChildren, false);
3057
3057
  if (!childRoot) {
3058
3058
  return [vnode, void 0];
3059
+ } else if (!!(process.env.NODE_ENV !== "production") && childRoot.patchFlag > 0 && childRoot.patchFlag & 2048) {
3060
+ return getChildRoot(childRoot);
3059
3061
  }
3060
3062
  const index = rawChildren.indexOf(childRoot);
3061
3063
  const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;
@@ -3071,7 +3073,7 @@ const getChildRoot = (vnode) => {
3071
3073
  };
3072
3074
  return [normalizeVNode(childRoot), setRoot];
3073
3075
  };
3074
- function filterSingleRoot(children) {
3076
+ function filterSingleRoot(children, recurse = true) {
3075
3077
  let singleRoot;
3076
3078
  for (let i = 0; i < children.length; i++) {
3077
3079
  const child = children[i];
@@ -3081,6 +3083,9 @@ function filterSingleRoot(children) {
3081
3083
  return;
3082
3084
  } else {
3083
3085
  singleRoot = child;
3086
+ if (!!(process.env.NODE_ENV !== "production") && recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) {
3087
+ return filterSingleRoot(singleRoot.children);
3088
+ }
3084
3089
  }
3085
3090
  }
3086
3091
  } else {
@@ -6518,7 +6523,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6518
6523
  return vm;
6519
6524
  }
6520
6525
  }
6521
- Vue.version = `2.6.14-compat:${"3.4.10"}`;
6526
+ Vue.version = `2.6.14-compat:${"3.4.11"}`;
6522
6527
  Vue.config = singletonApp.config;
6523
6528
  Vue.use = (p, ...options) => {
6524
6529
  if (p && isFunction(p.install)) {
@@ -8281,6 +8286,9 @@ function propHasMismatch(el, key, clientValue, vnode) {
8281
8286
  if (isBooleanAttr(key)) {
8282
8287
  actual = el.hasAttribute(key);
8283
8288
  expected = includeBooleanAttr(clientValue);
8289
+ } else if (clientValue == null) {
8290
+ actual = el.hasAttribute(key);
8291
+ expected = false;
8284
8292
  } else {
8285
8293
  if (el.hasAttribute(key)) {
8286
8294
  actual = el.getAttribute(key);
@@ -11414,7 +11422,7 @@ function isMemoSame(cached, memo) {
11414
11422
  return true;
11415
11423
  }
11416
11424
 
11417
- const version = "3.4.10";
11425
+ const version = "3.4.11";
11418
11426
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
11419
11427
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11420
11428
  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
  **/
@@ -632,7 +632,7 @@ var Vue = (function () {
632
632
  if (!effect2.allowRecurse && effect2._runnings) {
633
633
  continue;
634
634
  }
635
- if (effect2._dirtyLevel < dirtyLevel && (!effect2._runnings || dirtyLevel !== 2)) {
635
+ if (effect2._dirtyLevel < dirtyLevel && (!effect2._runnings || effect2.allowRecurse || dirtyLevel !== 2)) {
636
636
  const lastDirtyLevel = effect2._dirtyLevel;
637
637
  effect2._dirtyLevel = dirtyLevel;
638
638
  if (lastDirtyLevel === 0 && (!effect2._queryings || dirtyLevel !== 2)) {
@@ -3049,9 +3049,11 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
3049
3049
  const getChildRoot = (vnode) => {
3050
3050
  const rawChildren = vnode.children;
3051
3051
  const dynamicChildren = vnode.dynamicChildren;
3052
- const childRoot = filterSingleRoot(rawChildren);
3052
+ const childRoot = filterSingleRoot(rawChildren, false);
3053
3053
  if (!childRoot) {
3054
3054
  return [vnode, void 0];
3055
+ } else if (childRoot.patchFlag > 0 && childRoot.patchFlag & 2048) {
3056
+ return getChildRoot(childRoot);
3055
3057
  }
3056
3058
  const index = rawChildren.indexOf(childRoot);
3057
3059
  const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;
@@ -3067,7 +3069,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
3067
3069
  };
3068
3070
  return [normalizeVNode(childRoot), setRoot];
3069
3071
  };
3070
- function filterSingleRoot(children) {
3072
+ function filterSingleRoot(children, recurse = true) {
3071
3073
  let singleRoot;
3072
3074
  for (let i = 0; i < children.length; i++) {
3073
3075
  const child = children[i];
@@ -3077,6 +3079,9 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
3077
3079
  return;
3078
3080
  } else {
3079
3081
  singleRoot = child;
3082
+ if (recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) {
3083
+ return filterSingleRoot(singleRoot.children);
3084
+ }
3080
3085
  }
3081
3086
  }
3082
3087
  } else {
@@ -6477,7 +6482,7 @@ If this is a native custom element, make sure to exclude it from component resol
6477
6482
  return vm;
6478
6483
  }
6479
6484
  }
6480
- Vue.version = `2.6.14-compat:${"3.4.10"}`;
6485
+ Vue.version = `2.6.14-compat:${"3.4.11"}`;
6481
6486
  Vue.config = singletonApp.config;
6482
6487
  Vue.use = (p, ...options) => {
6483
6488
  if (p && isFunction(p.install)) {
@@ -8227,6 +8232,9 @@ Server rendered element contains fewer child nodes than client vdom.`
8227
8232
  if (isBooleanAttr(key)) {
8228
8233
  actual = el.hasAttribute(key);
8229
8234
  expected = includeBooleanAttr(clientValue);
8235
+ } else if (clientValue == null) {
8236
+ actual = el.hasAttribute(key);
8237
+ expected = false;
8230
8238
  } else {
8231
8239
  if (el.hasAttribute(key)) {
8232
8240
  actual = el.getAttribute(key);
@@ -11289,7 +11297,7 @@ Component that was made reactive: `,
11289
11297
  return true;
11290
11298
  }
11291
11299
 
11292
- const version = "3.4.10";
11300
+ const version = "3.4.11";
11293
11301
  const warn = warn$1 ;
11294
11302
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11295
11303
  const devtools = devtools$1 ;