@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
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -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);
|
|
@@ -3166,8 +3171,6 @@ function hasPropsChanged(prevProps, nextProps, emitsOptions) {
|
|
|
3166
3171
|
return false;
|
|
3167
3172
|
}
|
|
3168
3173
|
function updateHOCHostEl({ vnode, parent }, el) {
|
|
3169
|
-
if (!el)
|
|
3170
|
-
return;
|
|
3171
3174
|
while (parent) {
|
|
3172
3175
|
const root = parent.subTree;
|
|
3173
3176
|
if (root.suspense && root.suspense.activeBranch === vnode) {
|
|
@@ -3812,7 +3815,12 @@ function queueEffectWithSuspense(fn, suspense) {
|
|
|
3812
3815
|
function setActiveBranch(suspense, branch) {
|
|
3813
3816
|
suspense.activeBranch = branch;
|
|
3814
3817
|
const { vnode, parentComponent } = suspense;
|
|
3815
|
-
|
|
3818
|
+
let el = branch.el;
|
|
3819
|
+
while (!el && branch.component) {
|
|
3820
|
+
branch = branch.component.subTree;
|
|
3821
|
+
el = branch.el;
|
|
3822
|
+
}
|
|
3823
|
+
vnode.el = el;
|
|
3816
3824
|
if (parentComponent && parentComponent.subTree === vnode) {
|
|
3817
3825
|
parentComponent.vnode.el = el;
|
|
3818
3826
|
updateHOCHostEl(parentComponent, el);
|
|
@@ -6558,7 +6566,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6558
6566
|
return vm;
|
|
6559
6567
|
}
|
|
6560
6568
|
}
|
|
6561
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6569
|
+
Vue.version = `2.6.14-compat:${"3.4.8"}`;
|
|
6562
6570
|
Vue.config = singletonApp.config;
|
|
6563
6571
|
Vue.use = (p, ...options) => {
|
|
6564
6572
|
if (p && isFunction(p.install)) {
|
|
@@ -8297,29 +8305,34 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
8297
8305
|
let actual;
|
|
8298
8306
|
let expected;
|
|
8299
8307
|
if (key === "class") {
|
|
8300
|
-
actual =
|
|
8301
|
-
expected =
|
|
8302
|
-
if (!isSetEqual(actual, expected)) {
|
|
8308
|
+
actual = el.getAttribute("class");
|
|
8309
|
+
expected = normalizeClass(clientValue);
|
|
8310
|
+
if (!isSetEqual(toClassSet(actual || ""), toClassSet(expected))) {
|
|
8303
8311
|
mismatchType = mismatchKey = `class`;
|
|
8304
8312
|
}
|
|
8305
8313
|
} else if (key === "style") {
|
|
8306
|
-
actual =
|
|
8307
|
-
expected =
|
|
8308
|
-
|
|
8309
|
-
);
|
|
8314
|
+
actual = el.getAttribute("style");
|
|
8315
|
+
expected = isString(clientValue) ? clientValue : stringifyStyle(normalizeStyle(clientValue));
|
|
8316
|
+
const actualMap = toStyleMap(actual);
|
|
8317
|
+
const expectedMap = toStyleMap(expected);
|
|
8310
8318
|
if (vnode.dirs) {
|
|
8311
8319
|
for (const { dir, value } of vnode.dirs) {
|
|
8312
8320
|
if (dir.name === "show" && !value) {
|
|
8313
|
-
|
|
8321
|
+
expectedMap.set("display", "none");
|
|
8314
8322
|
}
|
|
8315
8323
|
}
|
|
8316
8324
|
}
|
|
8317
|
-
if (!isMapEqual(
|
|
8325
|
+
if (!isMapEqual(actualMap, expectedMap)) {
|
|
8318
8326
|
mismatchType = mismatchKey = "style";
|
|
8319
8327
|
}
|
|
8320
8328
|
} else if (el instanceof SVGElement && isKnownSvgAttr(key) || el instanceof HTMLElement && (isBooleanAttr(key) || isKnownHtmlAttr(key))) {
|
|
8321
|
-
|
|
8322
|
-
|
|
8329
|
+
if (isBooleanAttr(key)) {
|
|
8330
|
+
actual = el.hasAttribute(key);
|
|
8331
|
+
expected = includeBooleanAttr(clientValue);
|
|
8332
|
+
} else {
|
|
8333
|
+
actual = el.hasAttribute(key) ? el.getAttribute(key) : key in el ? el[key] : "";
|
|
8334
|
+
expected = clientValue == null ? "" : String(clientValue);
|
|
8335
|
+
}
|
|
8323
8336
|
if (actual !== expected) {
|
|
8324
8337
|
mismatchType = `attribute`;
|
|
8325
8338
|
mismatchKey = key;
|
|
@@ -11391,7 +11404,7 @@ function isMemoSame(cached, memo) {
|
|
|
11391
11404
|
return true;
|
|
11392
11405
|
}
|
|
11393
11406
|
|
|
11394
|
-
const version = "3.4.
|
|
11407
|
+
const version = "3.4.8";
|
|
11395
11408
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11396
11409
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11397
11410
|
const devtools = !!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__ ? devtools$1 : void 0;
|
package/dist/vue.global.js
CHANGED
|
@@ -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
|
|
|
@@ -3162,8 +3167,6 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3162
3167
|
return false;
|
|
3163
3168
|
}
|
|
3164
3169
|
function updateHOCHostEl({ vnode, parent }, el) {
|
|
3165
|
-
if (!el)
|
|
3166
|
-
return;
|
|
3167
3170
|
while (parent) {
|
|
3168
3171
|
const root = parent.subTree;
|
|
3169
3172
|
if (root.suspense && root.suspense.activeBranch === vnode) {
|
|
@@ -3808,7 +3811,12 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3808
3811
|
function setActiveBranch(suspense, branch) {
|
|
3809
3812
|
suspense.activeBranch = branch;
|
|
3810
3813
|
const { vnode, parentComponent } = suspense;
|
|
3811
|
-
|
|
3814
|
+
let el = branch.el;
|
|
3815
|
+
while (!el && branch.component) {
|
|
3816
|
+
branch = branch.component.subTree;
|
|
3817
|
+
el = branch.el;
|
|
3818
|
+
}
|
|
3819
|
+
vnode.el = el;
|
|
3812
3820
|
if (parentComponent && parentComponent.subTree === vnode) {
|
|
3813
3821
|
parentComponent.vnode.el = el;
|
|
3814
3822
|
updateHOCHostEl(parentComponent, el);
|
|
@@ -6517,7 +6525,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6517
6525
|
return vm;
|
|
6518
6526
|
}
|
|
6519
6527
|
}
|
|
6520
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6528
|
+
Vue.version = `2.6.14-compat:${"3.4.8"}`;
|
|
6521
6529
|
Vue.config = singletonApp.config;
|
|
6522
6530
|
Vue.use = (p, ...options) => {
|
|
6523
6531
|
if (p && isFunction(p.install)) {
|
|
@@ -8243,29 +8251,34 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8243
8251
|
let actual;
|
|
8244
8252
|
let expected;
|
|
8245
8253
|
if (key === "class") {
|
|
8246
|
-
actual =
|
|
8247
|
-
expected =
|
|
8248
|
-
if (!isSetEqual(actual, expected)) {
|
|
8254
|
+
actual = el.getAttribute("class");
|
|
8255
|
+
expected = normalizeClass(clientValue);
|
|
8256
|
+
if (!isSetEqual(toClassSet(actual || ""), toClassSet(expected))) {
|
|
8249
8257
|
mismatchType = mismatchKey = `class`;
|
|
8250
8258
|
}
|
|
8251
8259
|
} else if (key === "style") {
|
|
8252
|
-
actual =
|
|
8253
|
-
expected =
|
|
8254
|
-
|
|
8255
|
-
);
|
|
8260
|
+
actual = el.getAttribute("style");
|
|
8261
|
+
expected = isString(clientValue) ? clientValue : stringifyStyle(normalizeStyle(clientValue));
|
|
8262
|
+
const actualMap = toStyleMap(actual);
|
|
8263
|
+
const expectedMap = toStyleMap(expected);
|
|
8256
8264
|
if (vnode.dirs) {
|
|
8257
8265
|
for (const { dir, value } of vnode.dirs) {
|
|
8258
8266
|
if (dir.name === "show" && !value) {
|
|
8259
|
-
|
|
8267
|
+
expectedMap.set("display", "none");
|
|
8260
8268
|
}
|
|
8261
8269
|
}
|
|
8262
8270
|
}
|
|
8263
|
-
if (!isMapEqual(
|
|
8271
|
+
if (!isMapEqual(actualMap, expectedMap)) {
|
|
8264
8272
|
mismatchType = mismatchKey = "style";
|
|
8265
8273
|
}
|
|
8266
8274
|
} else if (el instanceof SVGElement && isKnownSvgAttr(key) || el instanceof HTMLElement && (isBooleanAttr(key) || isKnownHtmlAttr(key))) {
|
|
8267
|
-
|
|
8268
|
-
|
|
8275
|
+
if (isBooleanAttr(key)) {
|
|
8276
|
+
actual = el.hasAttribute(key);
|
|
8277
|
+
expected = includeBooleanAttr(clientValue);
|
|
8278
|
+
} else {
|
|
8279
|
+
actual = el.hasAttribute(key) ? el.getAttribute(key) : key in el ? el[key] : "";
|
|
8280
|
+
expected = clientValue == null ? "" : String(clientValue);
|
|
8281
|
+
}
|
|
8269
8282
|
if (actual !== expected) {
|
|
8270
8283
|
mismatchType = `attribute`;
|
|
8271
8284
|
mismatchKey = key;
|
|
@@ -11266,7 +11279,7 @@ Component that was made reactive: `,
|
|
|
11266
11279
|
return true;
|
|
11267
11280
|
}
|
|
11268
11281
|
|
|
11269
|
-
const version = "3.4.
|
|
11282
|
+
const version = "3.4.8";
|
|
11270
11283
|
const warn = warn$1 ;
|
|
11271
11284
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11272
11285
|
const devtools = devtools$1 ;
|