@vue/compat 3.5.2 → 3.5.4

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,13 +1,14 @@
1
1
  /**
2
- * @vue/compat v3.5.2
2
+ * @vue/compat v3.5.4
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
6
6
  /*! #__NO_SIDE_EFFECTS__ */
7
7
  // @__NO_SIDE_EFFECTS__
8
- function makeMap(str, expectsLowerCase) {
9
- const set = new Set(str.split(","));
10
- return expectsLowerCase ? (val) => set.has(val.toLowerCase()) : (val) => set.has(val);
8
+ function makeMap(str) {
9
+ const map = /* @__PURE__ */ Object.create(null);
10
+ for (const key of str.split(",")) map[key] = 1;
11
+ return (val) => val in map;
11
12
  }
12
13
 
13
14
  const EMPTY_OBJ = !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
@@ -678,7 +679,7 @@ function cleanupDeps(sub) {
678
679
  }
679
680
  function isDirty(sub) {
680
681
  for (let link = sub.deps; link; link = link.nextDep) {
681
- if (link.dep.version !== link.version || link.dep.computed && refreshComputed(link.dep.computed) === false || link.dep.version !== link.version) {
682
+ if (link.dep.version !== link.version || link.dep.computed && refreshComputed(link.dep.computed) || link.dep.version !== link.version) {
682
683
  return true;
683
684
  }
684
685
  }
@@ -956,9 +957,25 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
956
957
  globalVersion++;
957
958
  return;
958
959
  }
959
- let deps = [];
960
+ const run = (dep) => {
961
+ if (dep) {
962
+ if (!!(process.env.NODE_ENV !== "production")) {
963
+ dep.trigger({
964
+ target,
965
+ type,
966
+ key,
967
+ newValue,
968
+ oldValue,
969
+ oldTarget
970
+ });
971
+ } else {
972
+ dep.trigger();
973
+ }
974
+ }
975
+ };
976
+ startBatch();
960
977
  if (type === "clear") {
961
- deps = [...depsMap.values()];
978
+ depsMap.forEach(run);
962
979
  } else {
963
980
  const targetIsArray = isArray(target);
964
981
  const isArrayIndex = targetIsArray && isIntegerKey(key);
@@ -966,59 +983,43 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
966
983
  const newLength = Number(newValue);
967
984
  depsMap.forEach((dep, key2) => {
968
985
  if (key2 === "length" || key2 === ARRAY_ITERATE_KEY || !isSymbol(key2) && key2 >= newLength) {
969
- deps.push(dep);
986
+ run(dep);
970
987
  }
971
988
  });
972
989
  } else {
973
- const push = (dep) => dep && deps.push(dep);
974
990
  if (key !== void 0) {
975
- push(depsMap.get(key));
991
+ run(depsMap.get(key));
976
992
  }
977
993
  if (isArrayIndex) {
978
- push(depsMap.get(ARRAY_ITERATE_KEY));
994
+ run(depsMap.get(ARRAY_ITERATE_KEY));
979
995
  }
980
996
  switch (type) {
981
997
  case "add":
982
998
  if (!targetIsArray) {
983
- push(depsMap.get(ITERATE_KEY));
999
+ run(depsMap.get(ITERATE_KEY));
984
1000
  if (isMap(target)) {
985
- push(depsMap.get(MAP_KEY_ITERATE_KEY));
1001
+ run(depsMap.get(MAP_KEY_ITERATE_KEY));
986
1002
  }
987
1003
  } else if (isArrayIndex) {
988
- push(depsMap.get("length"));
1004
+ run(depsMap.get("length"));
989
1005
  }
990
1006
  break;
991
1007
  case "delete":
992
1008
  if (!targetIsArray) {
993
- push(depsMap.get(ITERATE_KEY));
1009
+ run(depsMap.get(ITERATE_KEY));
994
1010
  if (isMap(target)) {
995
- push(depsMap.get(MAP_KEY_ITERATE_KEY));
1011
+ run(depsMap.get(MAP_KEY_ITERATE_KEY));
996
1012
  }
997
1013
  }
998
1014
  break;
999
1015
  case "set":
1000
1016
  if (isMap(target)) {
1001
- push(depsMap.get(ITERATE_KEY));
1017
+ run(depsMap.get(ITERATE_KEY));
1002
1018
  }
1003
1019
  break;
1004
1020
  }
1005
1021
  }
1006
1022
  }
1007
- startBatch();
1008
- for (const dep of deps) {
1009
- if (!!(process.env.NODE_ENV !== "production")) {
1010
- dep.trigger({
1011
- target,
1012
- type,
1013
- key,
1014
- newValue,
1015
- oldValue,
1016
- oldTarget
1017
- });
1018
- } else {
1019
- dep.trigger();
1020
- }
1021
- }
1022
1023
  endBatch();
1023
1024
  }
1024
1025
  function getDepFromReactive(object, key) {
@@ -1756,7 +1757,7 @@ function toRaw(observed) {
1756
1757
  return raw ? toRaw(raw) : observed;
1757
1758
  }
1758
1759
  function markRaw(value) {
1759
- if (Object.isExtensible(value)) {
1760
+ if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) {
1760
1761
  def(value, "__v_skip", true);
1761
1762
  }
1762
1763
  return value;
@@ -2666,23 +2667,19 @@ function flushJobs(seen) {
2666
2667
  }
2667
2668
  }
2668
2669
  function checkRecursiveUpdates(seen, fn) {
2669
- if (!seen.has(fn)) {
2670
- seen.set(fn, 1);
2671
- } else {
2672
- const count = seen.get(fn);
2673
- if (count > RECURSION_LIMIT) {
2674
- const instance = fn.i;
2675
- const componentName = instance && getComponentName(instance.type);
2676
- handleError(
2677
- `Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
2678
- null,
2679
- 10
2680
- );
2681
- return true;
2682
- } else {
2683
- seen.set(fn, count + 1);
2684
- }
2670
+ const count = seen.get(fn) || 0;
2671
+ if (count > RECURSION_LIMIT) {
2672
+ const instance = fn.i;
2673
+ const componentName = instance && getComponentName(instance.type);
2674
+ handleError(
2675
+ `Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
2676
+ null,
2677
+ 10
2678
+ );
2679
+ return true;
2685
2680
  }
2681
+ seen.set(fn, count + 1);
2682
+ return false;
2686
2683
  }
2687
2684
 
2688
2685
  let isHmrUpdating = false;
@@ -4169,6 +4166,7 @@ function getInnerChild$1(vnode) {
4169
4166
  }
4170
4167
  function setTransitionHooks(vnode, hooks) {
4171
4168
  if (vnode.shapeFlag & 6 && vnode.component) {
4169
+ vnode.transition = hooks;
4172
4170
  setTransitionHooks(vnode.component.subTree, hooks);
4173
4171
  } else if (vnode.shapeFlag & 128) {
4174
4172
  vnode.ssContent.transition = hooks.clone(vnode.ssContent);
@@ -4213,7 +4211,7 @@ function defineComponent(options, extraOptions) {
4213
4211
  function useId() {
4214
4212
  const i = getCurrentInstance();
4215
4213
  if (i) {
4216
- return (i.appContext.config.idPrefix || "v") + ":" + i.ids[0] + i.ids[1]++;
4214
+ return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++;
4217
4215
  } else if (!!(process.env.NODE_ENV !== "production")) {
4218
4216
  warn$1(
4219
4217
  `useId() is called when there is no active component instance to be associated with.`
@@ -5872,13 +5870,15 @@ function renderList(source, renderItem, cache, index) {
5872
5870
  const sourceIsArray = isArray(source);
5873
5871
  if (sourceIsArray || isString(source)) {
5874
5872
  const sourceIsReactiveArray = sourceIsArray && isReactive(source);
5873
+ let needsWrap = false;
5875
5874
  if (sourceIsReactiveArray) {
5875
+ needsWrap = !isShallow(source);
5876
5876
  source = shallowReadArray(source);
5877
5877
  }
5878
5878
  ret = new Array(source.length);
5879
5879
  for (let i = 0, l = source.length; i < l; i++) {
5880
5880
  ret[i] = renderItem(
5881
- sourceIsReactiveArray ? toReactive(source[i]) : source[i],
5881
+ needsWrap ? toReactive(source[i]) : source[i],
5882
5882
  i,
5883
5883
  void 0,
5884
5884
  cached && cached[i]
@@ -7131,7 +7131,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7131
7131
  return vm;
7132
7132
  }
7133
7133
  }
7134
- Vue.version = `2.6.14-compat:${"3.5.2"}`;
7134
+ Vue.version = `2.6.14-compat:${"3.5.4"}`;
7135
7135
  Vue.config = singletonApp.config;
7136
7136
  Vue.use = (plugin, ...options) => {
7137
7137
  if (plugin && isFunction(plugin.install)) {
@@ -9076,7 +9076,7 @@ function baseCreateRenderer(options, createHydrationFns) {
9076
9076
  endMeasure(instance, `hydrate`);
9077
9077
  }
9078
9078
  };
9079
- if (isAsyncWrapperVNode) {
9079
+ if (isAsyncWrapperVNode && type.__asyncHydrate) {
9080
9080
  type.__asyncHydrate(
9081
9081
  el,
9082
9082
  instance,
@@ -10284,8 +10284,7 @@ function renderComponentRoot(instance) {
10284
10284
  data,
10285
10285
  setupState,
10286
10286
  ctx,
10287
- inheritAttrs,
10288
- isMounted
10287
+ inheritAttrs
10289
10288
  } = instance;
10290
10289
  const prev = setCurrentRenderingInstance(instance);
10291
10290
  let result;
@@ -10426,7 +10425,7 @@ function renderComponentRoot(instance) {
10426
10425
  `Component inside <Transition> renders non-element root node that cannot be animated.`
10427
10426
  );
10428
10427
  }
10429
- root.transition = isMounted ? vnode.component.subTree.transition : vnode.transition;
10428
+ setTransitionHooks(root, vnode.transition);
10430
10429
  }
10431
10430
  if (!!(process.env.NODE_ENV !== "production") && setRoot) {
10432
10431
  setRoot(root);
@@ -12299,7 +12298,7 @@ function isMemoSame(cached, memo) {
12299
12298
  return true;
12300
12299
  }
12301
12300
 
12302
- const version = "3.5.2";
12301
+ const version = "3.5.4";
12303
12302
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
12304
12303
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12305
12304
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
@@ -12312,7 +12311,9 @@ const _ssrUtils = {
12312
12311
  isVNode: isVNode,
12313
12312
  normalizeVNode,
12314
12313
  getComponentPublicInstance,
12315
- ensureValidVNode
12314
+ ensureValidVNode,
12315
+ pushWarningContext,
12316
+ popWarningContext
12316
12317
  };
12317
12318
  const ssrUtils = _ssrUtils ;
12318
12319
  const resolveFilter = resolveFilter$1 ;
@@ -17174,10 +17175,8 @@ function createRootCodegen(root, context) {
17174
17175
  }
17175
17176
  } else if (children.length > 1) {
17176
17177
  let patchFlag = 64;
17177
- let patchFlagText = PatchFlagNames[64];
17178
17178
  if (!!(process.env.NODE_ENV !== "production") && children.filter((c) => c.type !== 3).length === 1) {
17179
17179
  patchFlag |= 2048;
17180
- patchFlagText += `, ${PatchFlagNames[2048]}`;
17181
17180
  }
17182
17181
  root.codegenNode = createVNodeCall(
17183
17182
  context,
@@ -18087,10 +18086,8 @@ function createChildrenCodegenNode(branch, keyIndex, context) {
18087
18086
  return vnodeCall;
18088
18087
  } else {
18089
18088
  let patchFlag = 64;
18090
- let patchFlagText = PatchFlagNames[64];
18091
18089
  if (!!(process.env.NODE_ENV !== "production") && !branch.isTemplateIf && children.filter((c) => c.type !== 3).length === 1) {
18092
18090
  patchFlag |= 2048;
18093
- patchFlagText += `, ${PatchFlagNames[2048]}`;
18094
18091
  }
18095
18092
  return createVNodeCall(
18096
18093
  context,
@@ -20065,10 +20062,7 @@ const isNonKeyModifier = /* @__PURE__ */ makeMap(
20065
20062
  `stop,prevent,self,ctrl,shift,alt,meta,exact,middle`
20066
20063
  );
20067
20064
  const maybeKeyModifier = /* @__PURE__ */ makeMap("left,right");
20068
- const isKeyboardEvent = /* @__PURE__ */ makeMap(
20069
- `onkeyup,onkeydown,onkeypress`,
20070
- true
20071
- );
20065
+ const isKeyboardEvent = /* @__PURE__ */ makeMap(`onkeyup,onkeydown,onkeypress`);
20072
20066
  const resolveModifiers = (key, modifiers, context, loc) => {
20073
20067
  const keyModifiers = [];
20074
20068
  const nonKeyModifiers = [];
@@ -20086,7 +20080,7 @@ const resolveModifiers = (key, modifiers, context, loc) => {
20086
20080
  } else {
20087
20081
  if (maybeKeyModifier(modifier)) {
20088
20082
  if (isStaticExp(key)) {
20089
- if (isKeyboardEvent(key.content)) {
20083
+ if (isKeyboardEvent(key.content.toLowerCase())) {
20090
20084
  keyModifiers.push(modifier);
20091
20085
  } else {
20092
20086
  nonKeyModifiers.push(modifier);
@@ -20139,7 +20133,7 @@ const transformOn = (dir, node, context) => {
20139
20133
  ]);
20140
20134
  }
20141
20135
  if (keyModifiers.length && // if event name is dynamic, always wrap with keys guard
20142
- (!isStaticExp(key) || isKeyboardEvent(key.content))) {
20136
+ (!isStaticExp(key) || isKeyboardEvent(key.content.toLowerCase()))) {
20143
20137
  handlerExp = createCallExpression(context.helper(V_ON_WITH_KEYS), [
20144
20138
  handlerExp,
20145
20139
  JSON.stringify(keyModifiers)
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.5.2
2
+ * @vue/compat v3.5.4
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -8,9 +8,10 @@ var Vue = (function () {
8
8
 
9
9
  /*! #__NO_SIDE_EFFECTS__ */
10
10
  // @__NO_SIDE_EFFECTS__
11
- function makeMap(str, expectsLowerCase) {
12
- const set = new Set(str.split(","));
13
- return expectsLowerCase ? (val) => set.has(val.toLowerCase()) : (val) => set.has(val);
11
+ function makeMap(str) {
12
+ const map = /* @__PURE__ */ Object.create(null);
13
+ for (const key of str.split(",")) map[key] = 1;
14
+ return (val) => val in map;
14
15
  }
15
16
 
16
17
  const EMPTY_OBJ = Object.freeze({}) ;
@@ -681,7 +682,7 @@ var Vue = (function () {
681
682
  }
682
683
  function isDirty(sub) {
683
684
  for (let link = sub.deps; link; link = link.nextDep) {
684
- if (link.dep.version !== link.version || link.dep.computed && refreshComputed(link.dep.computed) === false || link.dep.version !== link.version) {
685
+ if (link.dep.version !== link.version || link.dep.computed && refreshComputed(link.dep.computed) || link.dep.version !== link.version) {
685
686
  return true;
686
687
  }
687
688
  }
@@ -957,9 +958,23 @@ var Vue = (function () {
957
958
  globalVersion++;
958
959
  return;
959
960
  }
960
- let deps = [];
961
+ const run = (dep) => {
962
+ if (dep) {
963
+ {
964
+ dep.trigger({
965
+ target,
966
+ type,
967
+ key,
968
+ newValue,
969
+ oldValue,
970
+ oldTarget
971
+ });
972
+ }
973
+ }
974
+ };
975
+ startBatch();
961
976
  if (type === "clear") {
962
- deps = [...depsMap.values()];
977
+ depsMap.forEach(run);
963
978
  } else {
964
979
  const targetIsArray = isArray(target);
965
980
  const isArrayIndex = targetIsArray && isIntegerKey(key);
@@ -967,57 +982,43 @@ var Vue = (function () {
967
982
  const newLength = Number(newValue);
968
983
  depsMap.forEach((dep, key2) => {
969
984
  if (key2 === "length" || key2 === ARRAY_ITERATE_KEY || !isSymbol(key2) && key2 >= newLength) {
970
- deps.push(dep);
985
+ run(dep);
971
986
  }
972
987
  });
973
988
  } else {
974
- const push = (dep) => dep && deps.push(dep);
975
989
  if (key !== void 0) {
976
- push(depsMap.get(key));
990
+ run(depsMap.get(key));
977
991
  }
978
992
  if (isArrayIndex) {
979
- push(depsMap.get(ARRAY_ITERATE_KEY));
993
+ run(depsMap.get(ARRAY_ITERATE_KEY));
980
994
  }
981
995
  switch (type) {
982
996
  case "add":
983
997
  if (!targetIsArray) {
984
- push(depsMap.get(ITERATE_KEY));
998
+ run(depsMap.get(ITERATE_KEY));
985
999
  if (isMap(target)) {
986
- push(depsMap.get(MAP_KEY_ITERATE_KEY));
1000
+ run(depsMap.get(MAP_KEY_ITERATE_KEY));
987
1001
  }
988
1002
  } else if (isArrayIndex) {
989
- push(depsMap.get("length"));
1003
+ run(depsMap.get("length"));
990
1004
  }
991
1005
  break;
992
1006
  case "delete":
993
1007
  if (!targetIsArray) {
994
- push(depsMap.get(ITERATE_KEY));
1008
+ run(depsMap.get(ITERATE_KEY));
995
1009
  if (isMap(target)) {
996
- push(depsMap.get(MAP_KEY_ITERATE_KEY));
1010
+ run(depsMap.get(MAP_KEY_ITERATE_KEY));
997
1011
  }
998
1012
  }
999
1013
  break;
1000
1014
  case "set":
1001
1015
  if (isMap(target)) {
1002
- push(depsMap.get(ITERATE_KEY));
1016
+ run(depsMap.get(ITERATE_KEY));
1003
1017
  }
1004
1018
  break;
1005
1019
  }
1006
1020
  }
1007
1021
  }
1008
- startBatch();
1009
- for (const dep of deps) {
1010
- {
1011
- dep.trigger({
1012
- target,
1013
- type,
1014
- key,
1015
- newValue,
1016
- oldValue,
1017
- oldTarget
1018
- });
1019
- }
1020
- }
1021
1022
  endBatch();
1022
1023
  }
1023
1024
  function getDepFromReactive(object, key) {
@@ -1755,7 +1756,7 @@ var Vue = (function () {
1755
1756
  return raw ? toRaw(raw) : observed;
1756
1757
  }
1757
1758
  function markRaw(value) {
1758
- if (Object.isExtensible(value)) {
1759
+ if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) {
1759
1760
  def(value, "__v_skip", true);
1760
1761
  }
1761
1762
  return value;
@@ -2654,23 +2655,19 @@ var Vue = (function () {
2654
2655
  }
2655
2656
  }
2656
2657
  function checkRecursiveUpdates(seen, fn) {
2657
- if (!seen.has(fn)) {
2658
- seen.set(fn, 1);
2659
- } else {
2660
- const count = seen.get(fn);
2661
- if (count > RECURSION_LIMIT) {
2662
- const instance = fn.i;
2663
- const componentName = instance && getComponentName(instance.type);
2664
- handleError(
2665
- `Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
2666
- null,
2667
- 10
2668
- );
2669
- return true;
2670
- } else {
2671
- seen.set(fn, count + 1);
2672
- }
2658
+ const count = seen.get(fn) || 0;
2659
+ if (count > RECURSION_LIMIT) {
2660
+ const instance = fn.i;
2661
+ const componentName = instance && getComponentName(instance.type);
2662
+ handleError(
2663
+ `Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
2664
+ null,
2665
+ 10
2666
+ );
2667
+ return true;
2673
2668
  }
2669
+ seen.set(fn, count + 1);
2670
+ return false;
2674
2671
  }
2675
2672
 
2676
2673
  let isHmrUpdating = false;
@@ -4153,6 +4150,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
4153
4150
  }
4154
4151
  function setTransitionHooks(vnode, hooks) {
4155
4152
  if (vnode.shapeFlag & 6 && vnode.component) {
4153
+ vnode.transition = hooks;
4156
4154
  setTransitionHooks(vnode.component.subTree, hooks);
4157
4155
  } else if (vnode.shapeFlag & 128) {
4158
4156
  vnode.ssContent.transition = hooks.clone(vnode.ssContent);
@@ -4197,7 +4195,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
4197
4195
  function useId() {
4198
4196
  const i = getCurrentInstance();
4199
4197
  if (i) {
4200
- return (i.appContext.config.idPrefix || "v") + ":" + i.ids[0] + i.ids[1]++;
4198
+ return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++;
4201
4199
  } else {
4202
4200
  warn$1(
4203
4201
  `useId() is called when there is no active component instance to be associated with.`
@@ -5839,13 +5837,15 @@ If this is a native custom element, make sure to exclude it from component resol
5839
5837
  const sourceIsArray = isArray(source);
5840
5838
  if (sourceIsArray || isString(source)) {
5841
5839
  const sourceIsReactiveArray = sourceIsArray && isReactive(source);
5840
+ let needsWrap = false;
5842
5841
  if (sourceIsReactiveArray) {
5842
+ needsWrap = !isShallow(source);
5843
5843
  source = shallowReadArray(source);
5844
5844
  }
5845
5845
  ret = new Array(source.length);
5846
5846
  for (let i = 0, l = source.length; i < l; i++) {
5847
5847
  ret[i] = renderItem(
5848
- sourceIsReactiveArray ? toReactive(source[i]) : source[i],
5848
+ needsWrap ? toReactive(source[i]) : source[i],
5849
5849
  i,
5850
5850
  void 0,
5851
5851
  cached && cached[i]
@@ -7093,7 +7093,7 @@ If this is a native custom element, make sure to exclude it from component resol
7093
7093
  return vm;
7094
7094
  }
7095
7095
  }
7096
- Vue.version = `2.6.14-compat:${"3.5.2"}`;
7096
+ Vue.version = `2.6.14-compat:${"3.5.4"}`;
7097
7097
  Vue.config = singletonApp.config;
7098
7098
  Vue.use = (plugin, ...options) => {
7099
7099
  if (plugin && isFunction(plugin.install)) {
@@ -8998,7 +8998,7 @@ If you want to remount the same app, move your app creation logic into a factory
8998
8998
  endMeasure(instance, `hydrate`);
8999
8999
  }
9000
9000
  };
9001
- if (isAsyncWrapperVNode) {
9001
+ if (isAsyncWrapperVNode && type.__asyncHydrate) {
9002
9002
  type.__asyncHydrate(
9003
9003
  el,
9004
9004
  instance,
@@ -10184,8 +10184,7 @@ If you want to remount the same app, move your app creation logic into a factory
10184
10184
  data,
10185
10185
  setupState,
10186
10186
  ctx,
10187
- inheritAttrs,
10188
- isMounted
10187
+ inheritAttrs
10189
10188
  } = instance;
10190
10189
  const prev = setCurrentRenderingInstance(instance);
10191
10190
  let result;
@@ -10326,7 +10325,7 @@ If you want to remount the same app, move your app creation logic into a factory
10326
10325
  `Component inside <Transition> renders non-element root node that cannot be animated.`
10327
10326
  );
10328
10327
  }
10329
- root.transition = isMounted ? vnode.component.subTree.transition : vnode.transition;
10328
+ setTransitionHooks(root, vnode.transition);
10330
10329
  }
10331
10330
  if (setRoot) {
10332
10331
  setRoot(root);
@@ -12171,7 +12170,7 @@ Component that was made reactive: `,
12171
12170
  return true;
12172
12171
  }
12173
12172
 
12174
- const version = "3.5.2";
12173
+ const version = "3.5.4";
12175
12174
  const warn = warn$1 ;
12176
12175
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12177
12176
  const devtools = devtools$1 ;
@@ -16981,10 +16980,8 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
16981
16980
  }
16982
16981
  } else if (children.length > 1) {
16983
16982
  let patchFlag = 64;
16984
- let patchFlagText = PatchFlagNames[64];
16985
16983
  if (children.filter((c) => c.type !== 3).length === 1) {
16986
16984
  patchFlag |= 2048;
16987
- patchFlagText += `, ${PatchFlagNames[2048]}`;
16988
16985
  }
16989
16986
  root.codegenNode = createVNodeCall(
16990
16987
  context,
@@ -17892,10 +17889,8 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
17892
17889
  return vnodeCall;
17893
17890
  } else {
17894
17891
  let patchFlag = 64;
17895
- let patchFlagText = PatchFlagNames[64];
17896
17892
  if (!branch.isTemplateIf && children.filter((c) => c.type !== 3).length === 1) {
17897
17893
  patchFlag |= 2048;
17898
- patchFlagText += `, ${PatchFlagNames[2048]}`;
17899
17894
  }
17900
17895
  return createVNodeCall(
17901
17896
  context,
@@ -19870,10 +19865,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
19870
19865
  `stop,prevent,self,ctrl,shift,alt,meta,exact,middle`
19871
19866
  );
19872
19867
  const maybeKeyModifier = /* @__PURE__ */ makeMap("left,right");
19873
- const isKeyboardEvent = /* @__PURE__ */ makeMap(
19874
- `onkeyup,onkeydown,onkeypress`,
19875
- true
19876
- );
19868
+ const isKeyboardEvent = /* @__PURE__ */ makeMap(`onkeyup,onkeydown,onkeypress`);
19877
19869
  const resolveModifiers = (key, modifiers, context, loc) => {
19878
19870
  const keyModifiers = [];
19879
19871
  const nonKeyModifiers = [];
@@ -19891,7 +19883,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
19891
19883
  } else {
19892
19884
  if (maybeKeyModifier(modifier)) {
19893
19885
  if (isStaticExp(key)) {
19894
- if (isKeyboardEvent(key.content)) {
19886
+ if (isKeyboardEvent(key.content.toLowerCase())) {
19895
19887
  keyModifiers.push(modifier);
19896
19888
  } else {
19897
19889
  nonKeyModifiers.push(modifier);
@@ -19944,7 +19936,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
19944
19936
  ]);
19945
19937
  }
19946
19938
  if (keyModifiers.length && // if event name is dynamic, always wrap with keys guard
19947
- (!isStaticExp(key) || isKeyboardEvent(key.content))) {
19939
+ (!isStaticExp(key) || isKeyboardEvent(key.content.toLowerCase()))) {
19948
19940
  handlerExp = createCallExpression(context.helper(V_ON_WITH_KEYS), [
19949
19941
  handlerExp,
19950
19942
  JSON.stringify(keyModifiers)