@vue/runtime-core 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.
@@ -5055,9 +5055,9 @@ function propHasMismatch(el, key, clientValue) {
5055
5055
  let actual;
5056
5056
  let expected;
5057
5057
  if (key === "class") {
5058
- actual = el.getAttribute("class");
5059
- expected = shared.normalizeClass(clientValue);
5060
- if (actual !== expected) {
5058
+ actual = toClassSet(el.getAttribute("class") || "");
5059
+ expected = toClassSet(shared.normalizeClass(clientValue));
5060
+ if (!isSetEqual(actual, expected)) {
5061
5061
  mismatchType = mismatchKey = `class`;
5062
5062
  }
5063
5063
  } else if (key === "style") {
@@ -5089,6 +5089,20 @@ function propHasMismatch(el, key, clientValue) {
5089
5089
  }
5090
5090
  return false;
5091
5091
  }
5092
+ function toClassSet(str) {
5093
+ return new Set(str.trim().split(/\s+/));
5094
+ }
5095
+ function isSetEqual(a, b) {
5096
+ if (a.size !== b.size) {
5097
+ return false;
5098
+ }
5099
+ for (const s of a) {
5100
+ if (!b.has(s)) {
5101
+ return false;
5102
+ }
5103
+ }
5104
+ return true;
5105
+ }
5092
5106
 
5093
5107
  let supported;
5094
5108
  let perf;
@@ -7945,7 +7959,7 @@ function isMemoSame(cached, memo) {
7945
7959
  return true;
7946
7960
  }
7947
7961
 
7948
- const version = "3.4.0-beta.4";
7962
+ const version = "3.4.0-rc.1";
7949
7963
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
7950
7964
  const _ssrUtils = {
7951
7965
  createComponentInstance,
@@ -6232,7 +6232,7 @@ function isMemoSame(cached, memo) {
6232
6232
  return true;
6233
6233
  }
6234
6234
 
6235
- const version = "3.4.0-beta.4";
6235
+ const version = "3.4.0-rc.1";
6236
6236
  const ErrorTypeStrings = null;
6237
6237
  const _ssrUtils = {
6238
6238
  createComponentInstance,
@@ -5075,9 +5075,9 @@ function propHasMismatch(el, key, clientValue) {
5075
5075
  let actual;
5076
5076
  let expected;
5077
5077
  if (key === "class") {
5078
- actual = el.getAttribute("class");
5079
- expected = normalizeClass(clientValue);
5080
- if (actual !== expected) {
5078
+ actual = toClassSet(el.getAttribute("class") || "");
5079
+ expected = toClassSet(normalizeClass(clientValue));
5080
+ if (!isSetEqual(actual, expected)) {
5081
5081
  mismatchType = mismatchKey = `class`;
5082
5082
  }
5083
5083
  } else if (key === "style") {
@@ -5109,6 +5109,20 @@ function propHasMismatch(el, key, clientValue) {
5109
5109
  }
5110
5110
  return false;
5111
5111
  }
5112
+ function toClassSet(str) {
5113
+ return new Set(str.trim().split(/\s+/));
5114
+ }
5115
+ function isSetEqual(a, b) {
5116
+ if (a.size !== b.size) {
5117
+ return false;
5118
+ }
5119
+ for (const s of a) {
5120
+ if (!b.has(s)) {
5121
+ return false;
5122
+ }
5123
+ }
5124
+ return true;
5125
+ }
5112
5126
 
5113
5127
  let supported;
5114
5128
  let perf;
@@ -8019,7 +8033,7 @@ function isMemoSame(cached, memo) {
8019
8033
  return true;
8020
8034
  }
8021
8035
 
8022
- const version = "3.4.0-beta.4";
8036
+ const version = "3.4.0-rc.1";
8023
8037
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
8024
8038
  const _ssrUtils = {
8025
8039
  createComponentInstance,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/runtime-core",
3
- "version": "3.4.0-beta.4",
3
+ "version": "3.4.0-rc.1",
4
4
  "description": "@vue/runtime-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/runtime-core.esm-bundler.js",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
34
34
  "dependencies": {
35
- "@vue/shared": "3.4.0-beta.4",
36
- "@vue/reactivity": "3.4.0-beta.4"
35
+ "@vue/shared": "3.4.0-rc.1",
36
+ "@vue/reactivity": "3.4.0-rc.1"
37
37
  }
38
38
  }