@vue/compat 3.4.7 → 3.4.8
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 +29 -16
- package/dist/vue.cjs.prod.js +13 -5
- package/dist/vue.esm-browser.js +29 -16
- package/dist/vue.esm-browser.prod.js +7 -2
- package/dist/vue.esm-bundler.js +29 -16
- package/dist/vue.global.js +29 -16
- package/dist/vue.global.prod.js +7 -2
- package/dist/vue.runtime.esm-browser.js +29 -16
- package/dist/vue.runtime.esm-browser.prod.js +7 -2
- package/dist/vue.runtime.esm-bundler.js +29 -16
- package/dist/vue.runtime.global.js +29 -16
- package/dist/vue.runtime.global.prod.js +7 -2
- package/package.json +2 -2
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vue/compat v3.4.8
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/
|
|
1
6
|
function makeMap(str, expectsLowerCase) {
|
|
2
7
|
const set = new Set(str.split(","));
|
|
3
8
|
return expectsLowerCase ? (val) => set.has(val.toLowerCase()) : (val) => set.has(val);
|
|
@@ -3101,8 +3106,6 @@ function hasPropsChanged(prevProps, nextProps, emitsOptions) {
|
|
|
3101
3106
|
return false;
|
|
3102
3107
|
}
|
|
3103
3108
|
function updateHOCHostEl({ vnode, parent }, el) {
|
|
3104
|
-
if (!el)
|
|
3105
|
-
return;
|
|
3106
3109
|
while (parent) {
|
|
3107
3110
|
const root = parent.subTree;
|
|
3108
3111
|
if (root.suspense && root.suspense.activeBranch === vnode) {
|
|
@@ -3747,7 +3750,12 @@ function queueEffectWithSuspense(fn, suspense) {
|
|
|
3747
3750
|
function setActiveBranch(suspense, branch) {
|
|
3748
3751
|
suspense.activeBranch = branch;
|
|
3749
3752
|
const { vnode, parentComponent } = suspense;
|
|
3750
|
-
|
|
3753
|
+
let el = branch.el;
|
|
3754
|
+
while (!el && branch.component) {
|
|
3755
|
+
branch = branch.component.subTree;
|
|
3756
|
+
el = branch.el;
|
|
3757
|
+
}
|
|
3758
|
+
vnode.el = el;
|
|
3751
3759
|
if (parentComponent && parentComponent.subTree === vnode) {
|
|
3752
3760
|
parentComponent.vnode.el = el;
|
|
3753
3761
|
updateHOCHostEl(parentComponent, el);
|
|
@@ -6493,7 +6501,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6493
6501
|
return vm;
|
|
6494
6502
|
}
|
|
6495
6503
|
}
|
|
6496
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6504
|
+
Vue.version = `2.6.14-compat:${"3.4.8"}`;
|
|
6497
6505
|
Vue.config = singletonApp.config;
|
|
6498
6506
|
Vue.use = (p, ...options) => {
|
|
6499
6507
|
if (p && isFunction(p.install)) {
|
|
@@ -8232,29 +8240,34 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
8232
8240
|
let actual;
|
|
8233
8241
|
let expected;
|
|
8234
8242
|
if (key === "class") {
|
|
8235
|
-
actual =
|
|
8236
|
-
expected =
|
|
8237
|
-
if (!isSetEqual(actual, expected)) {
|
|
8243
|
+
actual = el.getAttribute("class");
|
|
8244
|
+
expected = normalizeClass(clientValue);
|
|
8245
|
+
if (!isSetEqual(toClassSet(actual || ""), toClassSet(expected))) {
|
|
8238
8246
|
mismatchType = mismatchKey = `class`;
|
|
8239
8247
|
}
|
|
8240
8248
|
} else if (key === "style") {
|
|
8241
|
-
actual =
|
|
8242
|
-
expected =
|
|
8243
|
-
|
|
8244
|
-
);
|
|
8249
|
+
actual = el.getAttribute("style");
|
|
8250
|
+
expected = isString(clientValue) ? clientValue : stringifyStyle(normalizeStyle(clientValue));
|
|
8251
|
+
const actualMap = toStyleMap(actual);
|
|
8252
|
+
const expectedMap = toStyleMap(expected);
|
|
8245
8253
|
if (vnode.dirs) {
|
|
8246
8254
|
for (const { dir, value } of vnode.dirs) {
|
|
8247
8255
|
if (dir.name === "show" && !value) {
|
|
8248
|
-
|
|
8256
|
+
expectedMap.set("display", "none");
|
|
8249
8257
|
}
|
|
8250
8258
|
}
|
|
8251
8259
|
}
|
|
8252
|
-
if (!isMapEqual(
|
|
8260
|
+
if (!isMapEqual(actualMap, expectedMap)) {
|
|
8253
8261
|
mismatchType = mismatchKey = "style";
|
|
8254
8262
|
}
|
|
8255
8263
|
} else if (el instanceof SVGElement && isKnownSvgAttr(key) || el instanceof HTMLElement && (isBooleanAttr(key) || isKnownHtmlAttr(key))) {
|
|
8256
|
-
|
|
8257
|
-
|
|
8264
|
+
if (isBooleanAttr(key)) {
|
|
8265
|
+
actual = el.hasAttribute(key);
|
|
8266
|
+
expected = includeBooleanAttr(clientValue);
|
|
8267
|
+
} else {
|
|
8268
|
+
actual = el.hasAttribute(key) ? el.getAttribute(key) : key in el ? el[key] : "";
|
|
8269
|
+
expected = clientValue == null ? "" : String(clientValue);
|
|
8270
|
+
}
|
|
8258
8271
|
if (actual !== expected) {
|
|
8259
8272
|
mismatchType = `attribute`;
|
|
8260
8273
|
mismatchKey = key;
|
|
@@ -11326,7 +11339,7 @@ function isMemoSame(cached, memo) {
|
|
|
11326
11339
|
return true;
|
|
11327
11340
|
}
|
|
11328
11341
|
|
|
11329
|
-
const version = "3.4.
|
|
11342
|
+
const version = "3.4.8";
|
|
11330
11343
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11331
11344
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11332
11345
|
const devtools = !!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__ ? devtools$1 : void 0;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vue/compat v3.4.8
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/
|
|
1
6
|
var Vue = (function () {
|
|
2
7
|
'use strict';
|
|
3
8
|
|
|
@@ -3097,8 +3102,6 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3097
3102
|
return false;
|
|
3098
3103
|
}
|
|
3099
3104
|
function updateHOCHostEl({ vnode, parent }, el) {
|
|
3100
|
-
if (!el)
|
|
3101
|
-
return;
|
|
3102
3105
|
while (parent) {
|
|
3103
3106
|
const root = parent.subTree;
|
|
3104
3107
|
if (root.suspense && root.suspense.activeBranch === vnode) {
|
|
@@ -3743,7 +3746,12 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3743
3746
|
function setActiveBranch(suspense, branch) {
|
|
3744
3747
|
suspense.activeBranch = branch;
|
|
3745
3748
|
const { vnode, parentComponent } = suspense;
|
|
3746
|
-
|
|
3749
|
+
let el = branch.el;
|
|
3750
|
+
while (!el && branch.component) {
|
|
3751
|
+
branch = branch.component.subTree;
|
|
3752
|
+
el = branch.el;
|
|
3753
|
+
}
|
|
3754
|
+
vnode.el = el;
|
|
3747
3755
|
if (parentComponent && parentComponent.subTree === vnode) {
|
|
3748
3756
|
parentComponent.vnode.el = el;
|
|
3749
3757
|
updateHOCHostEl(parentComponent, el);
|
|
@@ -6452,7 +6460,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6452
6460
|
return vm;
|
|
6453
6461
|
}
|
|
6454
6462
|
}
|
|
6455
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6463
|
+
Vue.version = `2.6.14-compat:${"3.4.8"}`;
|
|
6456
6464
|
Vue.config = singletonApp.config;
|
|
6457
6465
|
Vue.use = (p, ...options) => {
|
|
6458
6466
|
if (p && isFunction(p.install)) {
|
|
@@ -8178,29 +8186,34 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8178
8186
|
let actual;
|
|
8179
8187
|
let expected;
|
|
8180
8188
|
if (key === "class") {
|
|
8181
|
-
actual =
|
|
8182
|
-
expected =
|
|
8183
|
-
if (!isSetEqual(actual, expected)) {
|
|
8189
|
+
actual = el.getAttribute("class");
|
|
8190
|
+
expected = normalizeClass(clientValue);
|
|
8191
|
+
if (!isSetEqual(toClassSet(actual || ""), toClassSet(expected))) {
|
|
8184
8192
|
mismatchType = mismatchKey = `class`;
|
|
8185
8193
|
}
|
|
8186
8194
|
} else if (key === "style") {
|
|
8187
|
-
actual =
|
|
8188
|
-
expected =
|
|
8189
|
-
|
|
8190
|
-
);
|
|
8195
|
+
actual = el.getAttribute("style");
|
|
8196
|
+
expected = isString(clientValue) ? clientValue : stringifyStyle(normalizeStyle(clientValue));
|
|
8197
|
+
const actualMap = toStyleMap(actual);
|
|
8198
|
+
const expectedMap = toStyleMap(expected);
|
|
8191
8199
|
if (vnode.dirs) {
|
|
8192
8200
|
for (const { dir, value } of vnode.dirs) {
|
|
8193
8201
|
if (dir.name === "show" && !value) {
|
|
8194
|
-
|
|
8202
|
+
expectedMap.set("display", "none");
|
|
8195
8203
|
}
|
|
8196
8204
|
}
|
|
8197
8205
|
}
|
|
8198
|
-
if (!isMapEqual(
|
|
8206
|
+
if (!isMapEqual(actualMap, expectedMap)) {
|
|
8199
8207
|
mismatchType = mismatchKey = "style";
|
|
8200
8208
|
}
|
|
8201
8209
|
} else if (el instanceof SVGElement && isKnownSvgAttr(key) || el instanceof HTMLElement && (isBooleanAttr(key) || isKnownHtmlAttr(key))) {
|
|
8202
|
-
|
|
8203
|
-
|
|
8210
|
+
if (isBooleanAttr(key)) {
|
|
8211
|
+
actual = el.hasAttribute(key);
|
|
8212
|
+
expected = includeBooleanAttr(clientValue);
|
|
8213
|
+
} else {
|
|
8214
|
+
actual = el.hasAttribute(key) ? el.getAttribute(key) : key in el ? el[key] : "";
|
|
8215
|
+
expected = clientValue == null ? "" : String(clientValue);
|
|
8216
|
+
}
|
|
8204
8217
|
if (actual !== expected) {
|
|
8205
8218
|
mismatchType = `attribute`;
|
|
8206
8219
|
mismatchKey = key;
|
|
@@ -11201,7 +11214,7 @@ Component that was made reactive: `,
|
|
|
11201
11214
|
return true;
|
|
11202
11215
|
}
|
|
11203
11216
|
|
|
11204
|
-
const version = "3.4.
|
|
11217
|
+
const version = "3.4.8";
|
|
11205
11218
|
const warn = warn$1 ;
|
|
11206
11219
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11207
11220
|
const devtools = devtools$1 ;
|