vue 3.2.21 → 3.2.22

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.
@@ -1659,6 +1659,7 @@ var Vue = (function (exports) {
1659
1659
  }
1660
1660
  }
1661
1661
  function setDevtoolsHook(hook, target) {
1662
+ var _a, _b;
1662
1663
  exports.devtools = hook;
1663
1664
  if (exports.devtools) {
1664
1665
  exports.devtools.enabled = true;
@@ -1671,7 +1672,10 @@ var Vue = (function (exports) {
1671
1672
  // (#4815)
1672
1673
  // eslint-disable-next-line no-restricted-globals
1673
1674
  typeof window !== 'undefined' &&
1674
- !navigator.userAgent.includes('jsdom')) {
1675
+ // some envs mock window but not fully
1676
+ window.HTMLElement &&
1677
+ // also exclude jsdom
1678
+ !((_b = (_a = window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === null || _b === void 0 ? void 0 : _b.includes('jsdom'))) {
1675
1679
  const replay = (target.__VUE_DEVTOOLS_HOOK_REPLAY__ =
1676
1680
  target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []);
1677
1681
  replay.push((newHook) => {
@@ -6396,8 +6400,8 @@ var Vue = (function (exports) {
6396
6400
  *
6397
6401
  * #2080
6398
6402
  * Inside keyed `template` fragment static children, if a fragment is moved,
6399
- * the children will always moved so that need inherit el form previous nodes
6400
- * to ensure correct moved position.
6403
+ * the children will always be moved. Therefore, in order to ensure correct move
6404
+ * position, el should be inherited from previous nodes.
6401
6405
  */
6402
6406
  function traverseStaticChildren(n1, n2, shallow = false) {
6403
6407
  const ch1 = n1.children;
@@ -7177,7 +7181,8 @@ var Vue = (function (exports) {
7177
7181
  else if (isOn(key)) {
7178
7182
  const existing = ret[key];
7179
7183
  const incoming = toMerge[key];
7180
- if (existing !== incoming) {
7184
+ if (existing !== incoming &&
7185
+ !(isArray(existing) && existing.includes(incoming))) {
7181
7186
  ret[key] = existing
7182
7187
  ? [].concat(existing, incoming)
7183
7188
  : incoming;
@@ -9036,7 +9041,7 @@ var Vue = (function (exports) {
9036
9041
  }
9037
9042
 
9038
9043
  // Core API ------------------------------------------------------------------
9039
- const version = "3.2.21";
9044
+ const version = "3.2.22";
9040
9045
  /**
9041
9046
  * SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
9042
9047
  * @internal
@@ -14536,7 +14541,7 @@ var Vue = (function (exports) {
14536
14541
  return propsNamesString + `]`;
14537
14542
  }
14538
14543
  function isComponentTag(tag) {
14539
- return tag[0].toLowerCase() + tag.slice(1) === 'component';
14544
+ return tag === 'component' || tag === 'Component';
14540
14545
  }
14541
14546
 
14542
14547
  const transformSlotOutlet = (node, context) => {