@vue/compat 3.4.0-beta.4 → 3.4.0-rc.1

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.
@@ -6414,7 +6414,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6414
6414
  return vm;
6415
6415
  }
6416
6416
  }
6417
- Vue.version = `2.6.14-compat:${"3.4.0-beta.4"}`;
6417
+ Vue.version = `2.6.14-compat:${"3.4.0-rc.1"}`;
6418
6418
  Vue.config = singletonApp.config;
6419
6419
  Vue.use = (p, ...options) => {
6420
6420
  if (p && isFunction(p.install)) {
@@ -8142,9 +8142,9 @@ function propHasMismatch(el, key, clientValue) {
8142
8142
  let actual;
8143
8143
  let expected;
8144
8144
  if (key === "class") {
8145
- actual = el.getAttribute("class");
8146
- expected = normalizeClass(clientValue);
8147
- if (actual !== expected) {
8145
+ actual = toClassSet(el.getAttribute("class") || "");
8146
+ expected = toClassSet(normalizeClass(clientValue));
8147
+ if (!isSetEqual(actual, expected)) {
8148
8148
  mismatchType = mismatchKey = `class`;
8149
8149
  }
8150
8150
  } else if (key === "style") {
@@ -8176,6 +8176,20 @@ function propHasMismatch(el, key, clientValue) {
8176
8176
  }
8177
8177
  return false;
8178
8178
  }
8179
+ function toClassSet(str) {
8180
+ return new Set(str.trim().split(/\s+/));
8181
+ }
8182
+ function isSetEqual(a, b) {
8183
+ if (a.size !== b.size) {
8184
+ return false;
8185
+ }
8186
+ for (const s of a) {
8187
+ if (!b.has(s)) {
8188
+ return false;
8189
+ }
8190
+ }
8191
+ return true;
8192
+ }
8179
8193
 
8180
8194
  let supported;
8181
8195
  let perf;
@@ -11118,7 +11132,7 @@ function isMemoSame(cached, memo) {
11118
11132
  return true;
11119
11133
  }
11120
11134
 
11121
- const version = "3.4.0-beta.4";
11135
+ const version = "3.4.0-rc.1";
11122
11136
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11123
11137
  const ssrUtils = null;
11124
11138
  const resolveFilter = resolveFilter$1 ;