@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.
- package/dist/vue.cjs.js +23 -19
- package/dist/vue.cjs.prod.js +6 -16
- package/dist/vue.esm-browser.js +23 -19
- package/dist/vue.esm-browser.prod.js +2 -2
- package/dist/vue.esm-bundler.js +23 -19
- package/dist/vue.global.js +23 -19
- package/dist/vue.global.prod.js +2 -2
- package/dist/vue.runtime.esm-browser.js +19 -5
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +19 -5
- package/dist/vue.runtime.global.js +19 -5
- package/dist/vue.runtime.global.prod.js +5 -5
- package/package.json +3 -3
|
@@ -6454,7 +6454,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6454
6454
|
return vm;
|
|
6455
6455
|
}
|
|
6456
6456
|
}
|
|
6457
|
-
Vue.version = `2.6.14-compat:${"3.4.0-
|
|
6457
|
+
Vue.version = `2.6.14-compat:${"3.4.0-rc.1"}`;
|
|
6458
6458
|
Vue.config = singletonApp.config;
|
|
6459
6459
|
Vue.use = (p, ...options) => {
|
|
6460
6460
|
if (p && isFunction(p.install)) {
|
|
@@ -8195,9 +8195,9 @@ function propHasMismatch(el, key, clientValue) {
|
|
|
8195
8195
|
let actual;
|
|
8196
8196
|
let expected;
|
|
8197
8197
|
if (key === "class") {
|
|
8198
|
-
actual = el.getAttribute("class");
|
|
8199
|
-
expected = normalizeClass(clientValue);
|
|
8200
|
-
if (actual
|
|
8198
|
+
actual = toClassSet(el.getAttribute("class") || "");
|
|
8199
|
+
expected = toClassSet(normalizeClass(clientValue));
|
|
8200
|
+
if (!isSetEqual(actual, expected)) {
|
|
8201
8201
|
mismatchType = mismatchKey = `class`;
|
|
8202
8202
|
}
|
|
8203
8203
|
} else if (key === "style") {
|
|
@@ -8229,6 +8229,20 @@ function propHasMismatch(el, key, clientValue) {
|
|
|
8229
8229
|
}
|
|
8230
8230
|
return false;
|
|
8231
8231
|
}
|
|
8232
|
+
function toClassSet(str) {
|
|
8233
|
+
return new Set(str.trim().split(/\s+/));
|
|
8234
|
+
}
|
|
8235
|
+
function isSetEqual(a, b) {
|
|
8236
|
+
if (a.size !== b.size) {
|
|
8237
|
+
return false;
|
|
8238
|
+
}
|
|
8239
|
+
for (const s of a) {
|
|
8240
|
+
if (!b.has(s)) {
|
|
8241
|
+
return false;
|
|
8242
|
+
}
|
|
8243
|
+
}
|
|
8244
|
+
return true;
|
|
8245
|
+
}
|
|
8232
8246
|
|
|
8233
8247
|
let supported;
|
|
8234
8248
|
let perf;
|
|
@@ -11242,7 +11256,7 @@ function isMemoSame(cached, memo) {
|
|
|
11242
11256
|
return true;
|
|
11243
11257
|
}
|
|
11244
11258
|
|
|
11245
|
-
const version = "3.4.0-
|
|
11259
|
+
const version = "3.4.0-rc.1";
|
|
11246
11260
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11247
11261
|
const _ssrUtils = {
|
|
11248
11262
|
createComponentInstance,
|
|
@@ -6417,7 +6417,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6417
6417
|
return vm;
|
|
6418
6418
|
}
|
|
6419
6419
|
}
|
|
6420
|
-
Vue.version = `2.6.14-compat:${"3.4.0-
|
|
6420
|
+
Vue.version = `2.6.14-compat:${"3.4.0-rc.1"}`;
|
|
6421
6421
|
Vue.config = singletonApp.config;
|
|
6422
6422
|
Vue.use = (p, ...options) => {
|
|
6423
6423
|
if (p && isFunction(p.install)) {
|
|
@@ -8145,9 +8145,9 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8145
8145
|
let actual;
|
|
8146
8146
|
let expected;
|
|
8147
8147
|
if (key === "class") {
|
|
8148
|
-
actual = el.getAttribute("class");
|
|
8149
|
-
expected = normalizeClass(clientValue);
|
|
8150
|
-
if (actual
|
|
8148
|
+
actual = toClassSet(el.getAttribute("class") || "");
|
|
8149
|
+
expected = toClassSet(normalizeClass(clientValue));
|
|
8150
|
+
if (!isSetEqual(actual, expected)) {
|
|
8151
8151
|
mismatchType = mismatchKey = `class`;
|
|
8152
8152
|
}
|
|
8153
8153
|
} else if (key === "style") {
|
|
@@ -8179,6 +8179,20 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8179
8179
|
}
|
|
8180
8180
|
return false;
|
|
8181
8181
|
}
|
|
8182
|
+
function toClassSet(str) {
|
|
8183
|
+
return new Set(str.trim().split(/\s+/));
|
|
8184
|
+
}
|
|
8185
|
+
function isSetEqual(a, b) {
|
|
8186
|
+
if (a.size !== b.size) {
|
|
8187
|
+
return false;
|
|
8188
|
+
}
|
|
8189
|
+
for (const s of a) {
|
|
8190
|
+
if (!b.has(s)) {
|
|
8191
|
+
return false;
|
|
8192
|
+
}
|
|
8193
|
+
}
|
|
8194
|
+
return true;
|
|
8195
|
+
}
|
|
8182
8196
|
|
|
8183
8197
|
let supported;
|
|
8184
8198
|
let perf;
|
|
@@ -11115,7 +11129,7 @@ Component that was made reactive: `,
|
|
|
11115
11129
|
return true;
|
|
11116
11130
|
}
|
|
11117
11131
|
|
|
11118
|
-
const version = "3.4.0-
|
|
11132
|
+
const version = "3.4.0-rc.1";
|
|
11119
11133
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11120
11134
|
const ssrUtils = null;
|
|
11121
11135
|
const resolveFilter = resolveFilter$1 ;
|