@vue/compat 3.4.10 → 3.4.12

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/compat v3.4.10
2
+ * @vue/compat v3.4.12
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -3097,9 +3097,11 @@ function renderComponentRoot(instance) {
3097
3097
  const getChildRoot = (vnode) => {
3098
3098
  const rawChildren = vnode.children;
3099
3099
  const dynamicChildren = vnode.dynamicChildren;
3100
- const childRoot = filterSingleRoot(rawChildren);
3100
+ const childRoot = filterSingleRoot(rawChildren, false);
3101
3101
  if (!childRoot) {
3102
3102
  return [vnode, void 0];
3103
+ } else if (childRoot.patchFlag > 0 && childRoot.patchFlag & 2048) {
3104
+ return getChildRoot(childRoot);
3103
3105
  }
3104
3106
  const index = rawChildren.indexOf(childRoot);
3105
3107
  const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;
@@ -3115,7 +3117,7 @@ const getChildRoot = (vnode) => {
3115
3117
  };
3116
3118
  return [normalizeVNode(childRoot), setRoot];
3117
3119
  };
3118
- function filterSingleRoot(children) {
3120
+ function filterSingleRoot(children, recurse = true) {
3119
3121
  let singleRoot;
3120
3122
  for (let i = 0; i < children.length; i++) {
3121
3123
  const child = children[i];
@@ -3125,6 +3127,9 @@ function filterSingleRoot(children) {
3125
3127
  return;
3126
3128
  } else {
3127
3129
  singleRoot = child;
3130
+ if (recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) {
3131
+ return filterSingleRoot(singleRoot.children);
3132
+ }
3128
3133
  }
3129
3134
  }
3130
3135
  } else {
@@ -6558,7 +6563,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6558
6563
  return vm;
6559
6564
  }
6560
6565
  }
6561
- Vue.version = `2.6.14-compat:${"3.4.10"}`;
6566
+ Vue.version = `2.6.14-compat:${"3.4.12"}`;
6562
6567
  Vue.config = singletonApp.config;
6563
6568
  Vue.use = (p, ...options) => {
6564
6569
  if (p && isFunction(p.install)) {
@@ -8308,6 +8313,9 @@ function propHasMismatch(el, key, clientValue, vnode) {
8308
8313
  if (isBooleanAttr(key)) {
8309
8314
  actual = el.hasAttribute(key);
8310
8315
  expected = includeBooleanAttr(clientValue);
8316
+ } else if (clientValue == null) {
8317
+ actual = el.hasAttribute(key);
8318
+ expected = false;
8311
8319
  } else {
8312
8320
  if (el.hasAttribute(key)) {
8313
8321
  actual = el.getAttribute(key);
@@ -11387,7 +11395,7 @@ function isMemoSame(cached, memo) {
11387
11395
  return true;
11388
11396
  }
11389
11397
 
11390
- const version = "3.4.10";
11398
+ const version = "3.4.12";
11391
11399
  const warn = warn$1 ;
11392
11400
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11393
11401
  const devtools = devtools$1 ;
@@ -14488,7 +14496,7 @@ function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [
14488
14496
  if (includeAll || isRefed && !isLocal) {
14489
14497
  onIdentifier(node, parent, parentStack, isRefed, isLocal);
14490
14498
  }
14491
- } else if (node.type === "ObjectProperty" && parent.type === "ObjectPattern") {
14499
+ } else if (node.type === "ObjectProperty" && (parent == null ? void 0 : parent.type) === "ObjectPattern") {
14492
14500
  node.inPattern = true;
14493
14501
  } else if (isFunctionType(node)) {
14494
14502
  if (node.scopeIds) {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.4.10
2
+ * @vue/compat v3.4.12
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -2193,7 +2193,7 @@ function renderComponentRoot(instance) {
2193
2193
  setCurrentRenderingInstance(prev);
2194
2194
  return result;
2195
2195
  }
2196
- function filterSingleRoot(children) {
2196
+ function filterSingleRoot(children, recurse = true) {
2197
2197
  let singleRoot;
2198
2198
  for (let i = 0; i < children.length; i++) {
2199
2199
  const child = children[i];
@@ -5247,7 +5247,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
5247
5247
  return vm;
5248
5248
  }
5249
5249
  }
5250
- Vue.version = `2.6.14-compat:${"3.4.10"}`;
5250
+ Vue.version = `2.6.14-compat:${"3.4.12"}`;
5251
5251
  Vue.config = singletonApp.config;
5252
5252
  Vue.use = (p, ...options) => {
5253
5253
  if (p && isFunction(p.install)) {
@@ -9106,7 +9106,7 @@ function isMemoSame(cached, memo) {
9106
9106
  return true;
9107
9107
  }
9108
9108
 
9109
- const version = "3.4.10";
9109
+ const version = "3.4.12";
9110
9110
  const warn$1 = NOOP;
9111
9111
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
9112
9112
  const devtools = void 0;
@@ -12033,7 +12033,7 @@ function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [
12033
12033
  if (includeAll || isRefed && !isLocal) {
12034
12034
  onIdentifier(node, parent, parentStack, isRefed, isLocal);
12035
12035
  }
12036
- } else if (node.type === "ObjectProperty" && parent.type === "ObjectPattern") {
12036
+ } else if (node.type === "ObjectProperty" && (parent == null ? void 0 : parent.type) === "ObjectPattern") {
12037
12037
  node.inPattern = true;
12038
12038
  } else if (isFunctionType(node)) {
12039
12039
  if (node.scopeIds) {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.4.10
2
+ * @vue/compat v3.4.12
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -3046,9 +3046,11 @@ function renderComponentRoot(instance) {
3046
3046
  const getChildRoot = (vnode) => {
3047
3047
  const rawChildren = vnode.children;
3048
3048
  const dynamicChildren = vnode.dynamicChildren;
3049
- const childRoot = filterSingleRoot(rawChildren);
3049
+ const childRoot = filterSingleRoot(rawChildren, false);
3050
3050
  if (!childRoot) {
3051
3051
  return [vnode, void 0];
3052
+ } else if (childRoot.patchFlag > 0 && childRoot.patchFlag & 2048) {
3053
+ return getChildRoot(childRoot);
3052
3054
  }
3053
3055
  const index = rawChildren.indexOf(childRoot);
3054
3056
  const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;
@@ -3064,7 +3066,7 @@ const getChildRoot = (vnode) => {
3064
3066
  };
3065
3067
  return [normalizeVNode(childRoot), setRoot];
3066
3068
  };
3067
- function filterSingleRoot(children) {
3069
+ function filterSingleRoot(children, recurse = true) {
3068
3070
  let singleRoot;
3069
3071
  for (let i = 0; i < children.length; i++) {
3070
3072
  const child = children[i];
@@ -3074,6 +3076,9 @@ function filterSingleRoot(children) {
3074
3076
  return;
3075
3077
  } else {
3076
3078
  singleRoot = child;
3079
+ if (recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) {
3080
+ return filterSingleRoot(singleRoot.children);
3081
+ }
3077
3082
  }
3078
3083
  }
3079
3084
  } else {
@@ -6480,7 +6485,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6480
6485
  return vm;
6481
6486
  }
6482
6487
  }
6483
- Vue.version = `2.6.14-compat:${"3.4.10"}`;
6488
+ Vue.version = `2.6.14-compat:${"3.4.12"}`;
6484
6489
  Vue.config = singletonApp.config;
6485
6490
  Vue.use = (p, ...options) => {
6486
6491
  if (p && isFunction(p.install)) {
@@ -8230,6 +8235,9 @@ function propHasMismatch(el, key, clientValue, vnode) {
8230
8235
  if (isBooleanAttr(key)) {
8231
8236
  actual = el.hasAttribute(key);
8232
8237
  expected = includeBooleanAttr(clientValue);
8238
+ } else if (clientValue == null) {
8239
+ actual = el.hasAttribute(key);
8240
+ expected = false;
8233
8241
  } else {
8234
8242
  if (el.hasAttribute(key)) {
8235
8243
  actual = el.getAttribute(key);
@@ -11292,7 +11300,7 @@ function isMemoSame(cached, memo) {
11292
11300
  return true;
11293
11301
  }
11294
11302
 
11295
- const version = "3.4.10";
11303
+ const version = "3.4.12";
11296
11304
  const warn = warn$1 ;
11297
11305
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11298
11306
  const devtools = devtools$1 ;