@vue/compat 3.4.0-beta.3 → 3.4.0-beta.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.
@@ -1899,8 +1899,10 @@ function checkRecursiveUpdates(seen, fn) {
1899
1899
  if (count > RECURSION_LIMIT) {
1900
1900
  const instance = fn.ownerInstance;
1901
1901
  const componentName = instance && getComponentName(instance.type);
1902
- warn(
1903
- `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.`
1902
+ handleError(
1903
+ `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.`,
1904
+ null,
1905
+ 10
1904
1906
  );
1905
1907
  return true;
1906
1908
  } else {
@@ -6452,7 +6454,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6452
6454
  return vm;
6453
6455
  }
6454
6456
  }
6455
- Vue.version = `2.6.14-compat:${"3.4.0-beta.3"}`;
6457
+ Vue.version = `2.6.14-compat:${"3.4.0-beta.4"}`;
6456
6458
  Vue.config = singletonApp.config;
6457
6459
  Vue.use = (p, ...options) => {
6458
6460
  if (p && isFunction(p.install)) {
@@ -8193,7 +8195,7 @@ function propHasMismatch(el, key, clientValue) {
8193
8195
  let actual;
8194
8196
  let expected;
8195
8197
  if (key === "class") {
8196
- actual = el.className;
8198
+ actual = el.getAttribute("class");
8197
8199
  expected = normalizeClass(clientValue);
8198
8200
  if (actual !== expected) {
8199
8201
  mismatchType = mismatchKey = `class`;
@@ -11240,7 +11242,7 @@ function isMemoSame(cached, memo) {
11240
11242
  return true;
11241
11243
  }
11242
11244
 
11243
- const version = "3.4.0-beta.3";
11245
+ const version = "3.4.0-beta.4";
11244
11246
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11245
11247
  const _ssrUtils = {
11246
11248
  createComponentInstance,
@@ -12748,7 +12750,9 @@ const modifierGuards = {
12748
12750
  exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
12749
12751
  };
12750
12752
  const withModifiers = (fn, modifiers) => {
12751
- return fn._withMods || (fn._withMods = (event, ...args) => {
12753
+ const cache = fn._withMods || (fn._withMods = {});
12754
+ const cacheKey = modifiers.join(".");
12755
+ return cache[cacheKey] || (cache[cacheKey] = (event, ...args) => {
12752
12756
  for (let i = 0; i < modifiers.length; i++) {
12753
12757
  const guard = modifierGuards[modifiers[i]];
12754
12758
  if (guard && guard(event, modifiers))
@@ -12783,7 +12787,9 @@ const withKeys = (fn, modifiers) => {
12783
12787
  );
12784
12788
  }
12785
12789
  }
12786
- return fn._withKeys || (fn._withKeys = (event) => {
12790
+ const cache = fn._withKeys || (fn._withKeys = {});
12791
+ const cacheKey = modifiers.join(".");
12792
+ return cache[cacheKey] || (cache[cacheKey] = (event) => {
12787
12793
  if (!("key" in event)) {
12788
12794
  return;
12789
12795
  }
@@ -1896,8 +1896,10 @@ var Vue = (function () {
1896
1896
  if (count > RECURSION_LIMIT) {
1897
1897
  const instance = fn.ownerInstance;
1898
1898
  const componentName = instance && getComponentName(instance.type);
1899
- warn(
1900
- `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.`
1899
+ handleError(
1900
+ `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.`,
1901
+ null,
1902
+ 10
1901
1903
  );
1902
1904
  return true;
1903
1905
  } else {
@@ -6415,7 +6417,7 @@ If this is a native custom element, make sure to exclude it from component resol
6415
6417
  return vm;
6416
6418
  }
6417
6419
  }
6418
- Vue.version = `2.6.14-compat:${"3.4.0-beta.3"}`;
6420
+ Vue.version = `2.6.14-compat:${"3.4.0-beta.4"}`;
6419
6421
  Vue.config = singletonApp.config;
6420
6422
  Vue.use = (p, ...options) => {
6421
6423
  if (p && isFunction(p.install)) {
@@ -8143,7 +8145,7 @@ Server rendered element contains fewer child nodes than client vdom.`
8143
8145
  let actual;
8144
8146
  let expected;
8145
8147
  if (key === "class") {
8146
- actual = el.className;
8148
+ actual = el.getAttribute("class");
8147
8149
  expected = normalizeClass(clientValue);
8148
8150
  if (actual !== expected) {
8149
8151
  mismatchType = mismatchKey = `class`;
@@ -11113,7 +11115,7 @@ Component that was made reactive: `,
11113
11115
  return true;
11114
11116
  }
11115
11117
 
11116
- const version = "3.4.0-beta.3";
11118
+ const version = "3.4.0-beta.4";
11117
11119
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11118
11120
  const ssrUtils = null;
11119
11121
  const resolveFilter = resolveFilter$1 ;
@@ -12560,7 +12562,9 @@ Component that was made reactive: `,
12560
12562
  exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
12561
12563
  };
12562
12564
  const withModifiers = (fn, modifiers) => {
12563
- return fn._withMods || (fn._withMods = (event, ...args) => {
12565
+ const cache = fn._withMods || (fn._withMods = {});
12566
+ const cacheKey = modifiers.join(".");
12567
+ return cache[cacheKey] || (cache[cacheKey] = (event, ...args) => {
12564
12568
  for (let i = 0; i < modifiers.length; i++) {
12565
12569
  const guard = modifierGuards[modifiers[i]];
12566
12570
  if (guard && guard(event, modifiers))
@@ -12595,7 +12599,9 @@ Component that was made reactive: `,
12595
12599
  );
12596
12600
  }
12597
12601
  }
12598
- return fn._withKeys || (fn._withKeys = (event) => {
12602
+ const cache = fn._withKeys || (fn._withKeys = {});
12603
+ const cacheKey = modifiers.join(".");
12604
+ return cache[cacheKey] || (cache[cacheKey] = (event) => {
12599
12605
  if (!("key" in event)) {
12600
12606
  return;
12601
12607
  }