@vue/compat 3.5.3 → 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.3
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
  }
@@ -688,9 +689,6 @@ function isDirty(sub) {
688
689
  return false;
689
690
  }
690
691
  function refreshComputed(computed) {
691
- if (computed.flags & 2) {
692
- return false;
693
- }
694
692
  if (computed.flags & 4 && !(computed.flags & 16)) {
695
693
  return;
696
694
  }
@@ -959,9 +957,25 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
959
957
  globalVersion++;
960
958
  return;
961
959
  }
962
- 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();
963
977
  if (type === "clear") {
964
- deps = [...depsMap.values()];
978
+ depsMap.forEach(run);
965
979
  } else {
966
980
  const targetIsArray = isArray(target);
967
981
  const isArrayIndex = targetIsArray && isIntegerKey(key);
@@ -969,59 +983,43 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
969
983
  const newLength = Number(newValue);
970
984
  depsMap.forEach((dep, key2) => {
971
985
  if (key2 === "length" || key2 === ARRAY_ITERATE_KEY || !isSymbol(key2) && key2 >= newLength) {
972
- deps.push(dep);
986
+ run(dep);
973
987
  }
974
988
  });
975
989
  } else {
976
- const push = (dep) => dep && deps.push(dep);
977
990
  if (key !== void 0) {
978
- push(depsMap.get(key));
991
+ run(depsMap.get(key));
979
992
  }
980
993
  if (isArrayIndex) {
981
- push(depsMap.get(ARRAY_ITERATE_KEY));
994
+ run(depsMap.get(ARRAY_ITERATE_KEY));
982
995
  }
983
996
  switch (type) {
984
997
  case "add":
985
998
  if (!targetIsArray) {
986
- push(depsMap.get(ITERATE_KEY));
999
+ run(depsMap.get(ITERATE_KEY));
987
1000
  if (isMap(target)) {
988
- push(depsMap.get(MAP_KEY_ITERATE_KEY));
1001
+ run(depsMap.get(MAP_KEY_ITERATE_KEY));
989
1002
  }
990
1003
  } else if (isArrayIndex) {
991
- push(depsMap.get("length"));
1004
+ run(depsMap.get("length"));
992
1005
  }
993
1006
  break;
994
1007
  case "delete":
995
1008
  if (!targetIsArray) {
996
- push(depsMap.get(ITERATE_KEY));
1009
+ run(depsMap.get(ITERATE_KEY));
997
1010
  if (isMap(target)) {
998
- push(depsMap.get(MAP_KEY_ITERATE_KEY));
1011
+ run(depsMap.get(MAP_KEY_ITERATE_KEY));
999
1012
  }
1000
1013
  }
1001
1014
  break;
1002
1015
  case "set":
1003
1016
  if (isMap(target)) {
1004
- push(depsMap.get(ITERATE_KEY));
1017
+ run(depsMap.get(ITERATE_KEY));
1005
1018
  }
1006
1019
  break;
1007
1020
  }
1008
1021
  }
1009
1022
  }
1010
- startBatch();
1011
- for (const dep of deps) {
1012
- if (!!(process.env.NODE_ENV !== "production")) {
1013
- dep.trigger({
1014
- target,
1015
- type,
1016
- key,
1017
- newValue,
1018
- oldValue,
1019
- oldTarget
1020
- });
1021
- } else {
1022
- dep.trigger();
1023
- }
1024
- }
1025
1023
  endBatch();
1026
1024
  }
1027
1025
  function getDepFromReactive(object, key) {
@@ -1759,7 +1757,7 @@ function toRaw(observed) {
1759
1757
  return raw ? toRaw(raw) : observed;
1760
1758
  }
1761
1759
  function markRaw(value) {
1762
- if (Object.isExtensible(value)) {
1760
+ if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) {
1763
1761
  def(value, "__v_skip", true);
1764
1762
  }
1765
1763
  return value;
@@ -1975,8 +1973,8 @@ class ComputedRefImpl {
1975
1973
  * @internal
1976
1974
  */
1977
1975
  notify() {
1976
+ this.flags |= 16;
1978
1977
  if (activeSub !== this) {
1979
- this.flags |= 16;
1980
1978
  this.dep.notify();
1981
1979
  } else if (!!(process.env.NODE_ENV !== "production")) ;
1982
1980
  }
@@ -2669,23 +2667,19 @@ function flushJobs(seen) {
2669
2667
  }
2670
2668
  }
2671
2669
  function checkRecursiveUpdates(seen, fn) {
2672
- if (!seen.has(fn)) {
2673
- seen.set(fn, 1);
2674
- } else {
2675
- const count = seen.get(fn);
2676
- if (count > RECURSION_LIMIT) {
2677
- const instance = fn.i;
2678
- const componentName = instance && getComponentName(instance.type);
2679
- handleError(
2680
- `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.`,
2681
- null,
2682
- 10
2683
- );
2684
- return true;
2685
- } else {
2686
- seen.set(fn, count + 1);
2687
- }
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;
2688
2680
  }
2681
+ seen.set(fn, count + 1);
2682
+ return false;
2689
2683
  }
2690
2684
 
2691
2685
  let isHmrUpdating = false;
@@ -5876,13 +5870,15 @@ function renderList(source, renderItem, cache, index) {
5876
5870
  const sourceIsArray = isArray(source);
5877
5871
  if (sourceIsArray || isString(source)) {
5878
5872
  const sourceIsReactiveArray = sourceIsArray && isReactive(source);
5873
+ let needsWrap = false;
5879
5874
  if (sourceIsReactiveArray) {
5875
+ needsWrap = !isShallow(source);
5880
5876
  source = shallowReadArray(source);
5881
5877
  }
5882
5878
  ret = new Array(source.length);
5883
5879
  for (let i = 0, l = source.length; i < l; i++) {
5884
5880
  ret[i] = renderItem(
5885
- sourceIsReactiveArray ? toReactive(source[i]) : source[i],
5881
+ needsWrap ? toReactive(source[i]) : source[i],
5886
5882
  i,
5887
5883
  void 0,
5888
5884
  cached && cached[i]
@@ -7135,7 +7131,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7135
7131
  return vm;
7136
7132
  }
7137
7133
  }
7138
- Vue.version = `2.6.14-compat:${"3.5.3"}`;
7134
+ Vue.version = `2.6.14-compat:${"3.5.4"}`;
7139
7135
  Vue.config = singletonApp.config;
7140
7136
  Vue.use = (plugin, ...options) => {
7141
7137
  if (plugin && isFunction(plugin.install)) {
@@ -12302,7 +12298,7 @@ function isMemoSame(cached, memo) {
12302
12298
  return true;
12303
12299
  }
12304
12300
 
12305
- const version = "3.5.3";
12301
+ const version = "3.5.4";
12306
12302
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
12307
12303
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12308
12304
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
@@ -17179,10 +17175,8 @@ function createRootCodegen(root, context) {
17179
17175
  }
17180
17176
  } else if (children.length > 1) {
17181
17177
  let patchFlag = 64;
17182
- let patchFlagText = PatchFlagNames[64];
17183
17178
  if (!!(process.env.NODE_ENV !== "production") && children.filter((c) => c.type !== 3).length === 1) {
17184
17179
  patchFlag |= 2048;
17185
- patchFlagText += `, ${PatchFlagNames[2048]}`;
17186
17180
  }
17187
17181
  root.codegenNode = createVNodeCall(
17188
17182
  context,
@@ -18092,10 +18086,8 @@ function createChildrenCodegenNode(branch, keyIndex, context) {
18092
18086
  return vnodeCall;
18093
18087
  } else {
18094
18088
  let patchFlag = 64;
18095
- let patchFlagText = PatchFlagNames[64];
18096
18089
  if (!!(process.env.NODE_ENV !== "production") && !branch.isTemplateIf && children.filter((c) => c.type !== 3).length === 1) {
18097
18090
  patchFlag |= 2048;
18098
- patchFlagText += `, ${PatchFlagNames[2048]}`;
18099
18091
  }
18100
18092
  return createVNodeCall(
18101
18093
  context,
@@ -20070,10 +20062,7 @@ const isNonKeyModifier = /* @__PURE__ */ makeMap(
20070
20062
  `stop,prevent,self,ctrl,shift,alt,meta,exact,middle`
20071
20063
  );
20072
20064
  const maybeKeyModifier = /* @__PURE__ */ makeMap("left,right");
20073
- const isKeyboardEvent = /* @__PURE__ */ makeMap(
20074
- `onkeyup,onkeydown,onkeypress`,
20075
- true
20076
- );
20065
+ const isKeyboardEvent = /* @__PURE__ */ makeMap(`onkeyup,onkeydown,onkeypress`);
20077
20066
  const resolveModifiers = (key, modifiers, context, loc) => {
20078
20067
  const keyModifiers = [];
20079
20068
  const nonKeyModifiers = [];
@@ -20091,7 +20080,7 @@ const resolveModifiers = (key, modifiers, context, loc) => {
20091
20080
  } else {
20092
20081
  if (maybeKeyModifier(modifier)) {
20093
20082
  if (isStaticExp(key)) {
20094
- if (isKeyboardEvent(key.content)) {
20083
+ if (isKeyboardEvent(key.content.toLowerCase())) {
20095
20084
  keyModifiers.push(modifier);
20096
20085
  } else {
20097
20086
  nonKeyModifiers.push(modifier);
@@ -20144,7 +20133,7 @@ const transformOn = (dir, node, context) => {
20144
20133
  ]);
20145
20134
  }
20146
20135
  if (keyModifiers.length && // if event name is dynamic, always wrap with keys guard
20147
- (!isStaticExp(key) || isKeyboardEvent(key.content))) {
20136
+ (!isStaticExp(key) || isKeyboardEvent(key.content.toLowerCase()))) {
20148
20137
  handlerExp = createCallExpression(context.helper(V_ON_WITH_KEYS), [
20149
20138
  handlerExp,
20150
20139
  JSON.stringify(keyModifiers)
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.5.3
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
  }
@@ -691,9 +692,6 @@ var Vue = (function () {
691
692
  return false;
692
693
  }
693
694
  function refreshComputed(computed) {
694
- if (computed.flags & 2) {
695
- return false;
696
- }
697
695
  if (computed.flags & 4 && !(computed.flags & 16)) {
698
696
  return;
699
697
  }
@@ -960,9 +958,23 @@ var Vue = (function () {
960
958
  globalVersion++;
961
959
  return;
962
960
  }
963
- 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();
964
976
  if (type === "clear") {
965
- deps = [...depsMap.values()];
977
+ depsMap.forEach(run);
966
978
  } else {
967
979
  const targetIsArray = isArray(target);
968
980
  const isArrayIndex = targetIsArray && isIntegerKey(key);
@@ -970,57 +982,43 @@ var Vue = (function () {
970
982
  const newLength = Number(newValue);
971
983
  depsMap.forEach((dep, key2) => {
972
984
  if (key2 === "length" || key2 === ARRAY_ITERATE_KEY || !isSymbol(key2) && key2 >= newLength) {
973
- deps.push(dep);
985
+ run(dep);
974
986
  }
975
987
  });
976
988
  } else {
977
- const push = (dep) => dep && deps.push(dep);
978
989
  if (key !== void 0) {
979
- push(depsMap.get(key));
990
+ run(depsMap.get(key));
980
991
  }
981
992
  if (isArrayIndex) {
982
- push(depsMap.get(ARRAY_ITERATE_KEY));
993
+ run(depsMap.get(ARRAY_ITERATE_KEY));
983
994
  }
984
995
  switch (type) {
985
996
  case "add":
986
997
  if (!targetIsArray) {
987
- push(depsMap.get(ITERATE_KEY));
998
+ run(depsMap.get(ITERATE_KEY));
988
999
  if (isMap(target)) {
989
- push(depsMap.get(MAP_KEY_ITERATE_KEY));
1000
+ run(depsMap.get(MAP_KEY_ITERATE_KEY));
990
1001
  }
991
1002
  } else if (isArrayIndex) {
992
- push(depsMap.get("length"));
1003
+ run(depsMap.get("length"));
993
1004
  }
994
1005
  break;
995
1006
  case "delete":
996
1007
  if (!targetIsArray) {
997
- push(depsMap.get(ITERATE_KEY));
1008
+ run(depsMap.get(ITERATE_KEY));
998
1009
  if (isMap(target)) {
999
- push(depsMap.get(MAP_KEY_ITERATE_KEY));
1010
+ run(depsMap.get(MAP_KEY_ITERATE_KEY));
1000
1011
  }
1001
1012
  }
1002
1013
  break;
1003
1014
  case "set":
1004
1015
  if (isMap(target)) {
1005
- push(depsMap.get(ITERATE_KEY));
1016
+ run(depsMap.get(ITERATE_KEY));
1006
1017
  }
1007
1018
  break;
1008
1019
  }
1009
1020
  }
1010
1021
  }
1011
- startBatch();
1012
- for (const dep of deps) {
1013
- {
1014
- dep.trigger({
1015
- target,
1016
- type,
1017
- key,
1018
- newValue,
1019
- oldValue,
1020
- oldTarget
1021
- });
1022
- }
1023
- }
1024
1022
  endBatch();
1025
1023
  }
1026
1024
  function getDepFromReactive(object, key) {
@@ -1758,7 +1756,7 @@ var Vue = (function () {
1758
1756
  return raw ? toRaw(raw) : observed;
1759
1757
  }
1760
1758
  function markRaw(value) {
1761
- if (Object.isExtensible(value)) {
1759
+ if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) {
1762
1760
  def(value, "__v_skip", true);
1763
1761
  }
1764
1762
  return value;
@@ -1968,8 +1966,8 @@ var Vue = (function () {
1968
1966
  * @internal
1969
1967
  */
1970
1968
  notify() {
1969
+ this.flags |= 16;
1971
1970
  if (activeSub !== this) {
1972
- this.flags |= 16;
1973
1971
  this.dep.notify();
1974
1972
  }
1975
1973
  }
@@ -2657,23 +2655,19 @@ var Vue = (function () {
2657
2655
  }
2658
2656
  }
2659
2657
  function checkRecursiveUpdates(seen, fn) {
2660
- if (!seen.has(fn)) {
2661
- seen.set(fn, 1);
2662
- } else {
2663
- const count = seen.get(fn);
2664
- if (count > RECURSION_LIMIT) {
2665
- const instance = fn.i;
2666
- const componentName = instance && getComponentName(instance.type);
2667
- handleError(
2668
- `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.`,
2669
- null,
2670
- 10
2671
- );
2672
- return true;
2673
- } else {
2674
- seen.set(fn, count + 1);
2675
- }
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;
2676
2668
  }
2669
+ seen.set(fn, count + 1);
2670
+ return false;
2677
2671
  }
2678
2672
 
2679
2673
  let isHmrUpdating = false;
@@ -5843,13 +5837,15 @@ If this is a native custom element, make sure to exclude it from component resol
5843
5837
  const sourceIsArray = isArray(source);
5844
5838
  if (sourceIsArray || isString(source)) {
5845
5839
  const sourceIsReactiveArray = sourceIsArray && isReactive(source);
5840
+ let needsWrap = false;
5846
5841
  if (sourceIsReactiveArray) {
5842
+ needsWrap = !isShallow(source);
5847
5843
  source = shallowReadArray(source);
5848
5844
  }
5849
5845
  ret = new Array(source.length);
5850
5846
  for (let i = 0, l = source.length; i < l; i++) {
5851
5847
  ret[i] = renderItem(
5852
- sourceIsReactiveArray ? toReactive(source[i]) : source[i],
5848
+ needsWrap ? toReactive(source[i]) : source[i],
5853
5849
  i,
5854
5850
  void 0,
5855
5851
  cached && cached[i]
@@ -7097,7 +7093,7 @@ If this is a native custom element, make sure to exclude it from component resol
7097
7093
  return vm;
7098
7094
  }
7099
7095
  }
7100
- Vue.version = `2.6.14-compat:${"3.5.3"}`;
7096
+ Vue.version = `2.6.14-compat:${"3.5.4"}`;
7101
7097
  Vue.config = singletonApp.config;
7102
7098
  Vue.use = (plugin, ...options) => {
7103
7099
  if (plugin && isFunction(plugin.install)) {
@@ -12174,7 +12170,7 @@ Component that was made reactive: `,
12174
12170
  return true;
12175
12171
  }
12176
12172
 
12177
- const version = "3.5.3";
12173
+ const version = "3.5.4";
12178
12174
  const warn = warn$1 ;
12179
12175
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12180
12176
  const devtools = devtools$1 ;
@@ -16984,10 +16980,8 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
16984
16980
  }
16985
16981
  } else if (children.length > 1) {
16986
16982
  let patchFlag = 64;
16987
- let patchFlagText = PatchFlagNames[64];
16988
16983
  if (children.filter((c) => c.type !== 3).length === 1) {
16989
16984
  patchFlag |= 2048;
16990
- patchFlagText += `, ${PatchFlagNames[2048]}`;
16991
16985
  }
16992
16986
  root.codegenNode = createVNodeCall(
16993
16987
  context,
@@ -17895,10 +17889,8 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
17895
17889
  return vnodeCall;
17896
17890
  } else {
17897
17891
  let patchFlag = 64;
17898
- let patchFlagText = PatchFlagNames[64];
17899
17892
  if (!branch.isTemplateIf && children.filter((c) => c.type !== 3).length === 1) {
17900
17893
  patchFlag |= 2048;
17901
- patchFlagText += `, ${PatchFlagNames[2048]}`;
17902
17894
  }
17903
17895
  return createVNodeCall(
17904
17896
  context,
@@ -19873,10 +19865,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
19873
19865
  `stop,prevent,self,ctrl,shift,alt,meta,exact,middle`
19874
19866
  );
19875
19867
  const maybeKeyModifier = /* @__PURE__ */ makeMap("left,right");
19876
- const isKeyboardEvent = /* @__PURE__ */ makeMap(
19877
- `onkeyup,onkeydown,onkeypress`,
19878
- true
19879
- );
19868
+ const isKeyboardEvent = /* @__PURE__ */ makeMap(`onkeyup,onkeydown,onkeypress`);
19880
19869
  const resolveModifiers = (key, modifiers, context, loc) => {
19881
19870
  const keyModifiers = [];
19882
19871
  const nonKeyModifiers = [];
@@ -19894,7 +19883,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
19894
19883
  } else {
19895
19884
  if (maybeKeyModifier(modifier)) {
19896
19885
  if (isStaticExp(key)) {
19897
- if (isKeyboardEvent(key.content)) {
19886
+ if (isKeyboardEvent(key.content.toLowerCase())) {
19898
19887
  keyModifiers.push(modifier);
19899
19888
  } else {
19900
19889
  nonKeyModifiers.push(modifier);
@@ -19947,7 +19936,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
19947
19936
  ]);
19948
19937
  }
19949
19938
  if (keyModifiers.length && // if event name is dynamic, always wrap with keys guard
19950
- (!isStaticExp(key) || isKeyboardEvent(key.content))) {
19939
+ (!isStaticExp(key) || isKeyboardEvent(key.content.toLowerCase()))) {
19951
19940
  handlerExp = createCallExpression(context.helper(V_ON_WITH_KEYS), [
19952
19941
  handlerExp,
19953
19942
  JSON.stringify(keyModifiers)