@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.cjs.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
|
'use strict';
|
|
2
7
|
|
|
3
8
|
var parser = require('@babel/parser');
|
|
@@ -3210,8 +3215,6 @@ function hasPropsChanged(prevProps, nextProps, emitsOptions) {
|
|
|
3210
3215
|
return false;
|
|
3211
3216
|
}
|
|
3212
3217
|
function updateHOCHostEl({ vnode, parent }, el) {
|
|
3213
|
-
if (!el)
|
|
3214
|
-
return;
|
|
3215
3218
|
while (parent) {
|
|
3216
3219
|
const root = parent.subTree;
|
|
3217
3220
|
if (root.suspense && root.suspense.activeBranch === vnode) {
|
|
@@ -3856,7 +3859,12 @@ function queueEffectWithSuspense(fn, suspense) {
|
|
|
3856
3859
|
function setActiveBranch(suspense, branch) {
|
|
3857
3860
|
suspense.activeBranch = branch;
|
|
3858
3861
|
const { vnode, parentComponent } = suspense;
|
|
3859
|
-
|
|
3862
|
+
let el = branch.el;
|
|
3863
|
+
while (!el && branch.component) {
|
|
3864
|
+
branch = branch.component.subTree;
|
|
3865
|
+
el = branch.el;
|
|
3866
|
+
}
|
|
3867
|
+
vnode.el = el;
|
|
3860
3868
|
if (parentComponent && parentComponent.subTree === vnode) {
|
|
3861
3869
|
parentComponent.vnode.el = el;
|
|
3862
3870
|
updateHOCHostEl(parentComponent, el);
|
|
@@ -6598,7 +6606,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6598
6606
|
return vm;
|
|
6599
6607
|
}
|
|
6600
6608
|
}
|
|
6601
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6609
|
+
Vue.version = `2.6.14-compat:${"3.4.8"}`;
|
|
6602
6610
|
Vue.config = singletonApp.config;
|
|
6603
6611
|
Vue.use = (p, ...options) => {
|
|
6604
6612
|
if (p && isFunction(p.install)) {
|
|
@@ -8324,29 +8332,34 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
8324
8332
|
let actual;
|
|
8325
8333
|
let expected;
|
|
8326
8334
|
if (key === "class") {
|
|
8327
|
-
actual =
|
|
8328
|
-
expected =
|
|
8329
|
-
if (!isSetEqual(actual, expected)) {
|
|
8335
|
+
actual = el.getAttribute("class");
|
|
8336
|
+
expected = normalizeClass(clientValue);
|
|
8337
|
+
if (!isSetEqual(toClassSet(actual || ""), toClassSet(expected))) {
|
|
8330
8338
|
mismatchType = mismatchKey = `class`;
|
|
8331
8339
|
}
|
|
8332
8340
|
} else if (key === "style") {
|
|
8333
|
-
actual =
|
|
8334
|
-
expected =
|
|
8335
|
-
|
|
8336
|
-
);
|
|
8341
|
+
actual = el.getAttribute("style");
|
|
8342
|
+
expected = isString(clientValue) ? clientValue : stringifyStyle(normalizeStyle(clientValue));
|
|
8343
|
+
const actualMap = toStyleMap(actual);
|
|
8344
|
+
const expectedMap = toStyleMap(expected);
|
|
8337
8345
|
if (vnode.dirs) {
|
|
8338
8346
|
for (const { dir, value } of vnode.dirs) {
|
|
8339
8347
|
if (dir.name === "show" && !value) {
|
|
8340
|
-
|
|
8348
|
+
expectedMap.set("display", "none");
|
|
8341
8349
|
}
|
|
8342
8350
|
}
|
|
8343
8351
|
}
|
|
8344
|
-
if (!isMapEqual(
|
|
8352
|
+
if (!isMapEqual(actualMap, expectedMap)) {
|
|
8345
8353
|
mismatchType = mismatchKey = "style";
|
|
8346
8354
|
}
|
|
8347
8355
|
} else if (el instanceof SVGElement && isKnownSvgAttr(key) || el instanceof HTMLElement && (isBooleanAttr(key) || isKnownHtmlAttr(key))) {
|
|
8348
|
-
|
|
8349
|
-
|
|
8356
|
+
if (isBooleanAttr(key)) {
|
|
8357
|
+
actual = el.hasAttribute(key);
|
|
8358
|
+
expected = includeBooleanAttr(clientValue);
|
|
8359
|
+
} else {
|
|
8360
|
+
actual = el.hasAttribute(key) ? el.getAttribute(key) : key in el ? el[key] : "";
|
|
8361
|
+
expected = clientValue == null ? "" : String(clientValue);
|
|
8362
|
+
}
|
|
8350
8363
|
if (actual !== expected) {
|
|
8351
8364
|
mismatchType = `attribute`;
|
|
8352
8365
|
mismatchKey = key;
|
|
@@ -11364,7 +11377,7 @@ function isMemoSame(cached, memo) {
|
|
|
11364
11377
|
return true;
|
|
11365
11378
|
}
|
|
11366
11379
|
|
|
11367
|
-
const version = "3.4.
|
|
11380
|
+
const version = "3.4.8";
|
|
11368
11381
|
const warn = warn$1 ;
|
|
11369
11382
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11370
11383
|
const devtools = devtools$1 ;
|
package/dist/vue.cjs.prod.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
|
'use strict';
|
|
2
7
|
|
|
3
8
|
var parser = require('@babel/parser');
|
|
@@ -2282,8 +2287,6 @@ function hasPropsChanged(prevProps, nextProps, emitsOptions) {
|
|
|
2282
2287
|
return false;
|
|
2283
2288
|
}
|
|
2284
2289
|
function updateHOCHostEl({ vnode, parent }, el) {
|
|
2285
|
-
if (!el)
|
|
2286
|
-
return;
|
|
2287
2290
|
while (parent) {
|
|
2288
2291
|
const root = parent.subTree;
|
|
2289
2292
|
if (root.suspense && root.suspense.activeBranch === vnode) {
|
|
@@ -2888,7 +2891,12 @@ function queueEffectWithSuspense(fn, suspense) {
|
|
|
2888
2891
|
function setActiveBranch(suspense, branch) {
|
|
2889
2892
|
suspense.activeBranch = branch;
|
|
2890
2893
|
const { vnode, parentComponent } = suspense;
|
|
2891
|
-
|
|
2894
|
+
let el = branch.el;
|
|
2895
|
+
while (!el && branch.component) {
|
|
2896
|
+
branch = branch.component.subTree;
|
|
2897
|
+
el = branch.el;
|
|
2898
|
+
}
|
|
2899
|
+
vnode.el = el;
|
|
2892
2900
|
if (parentComponent && parentComponent.subTree === vnode) {
|
|
2893
2901
|
parentComponent.vnode.el = el;
|
|
2894
2902
|
updateHOCHostEl(parentComponent, el);
|
|
@@ -5279,7 +5287,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
5279
5287
|
return vm;
|
|
5280
5288
|
}
|
|
5281
5289
|
}
|
|
5282
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
5290
|
+
Vue.version = `2.6.14-compat:${"3.4.8"}`;
|
|
5283
5291
|
Vue.config = singletonApp.config;
|
|
5284
5292
|
Vue.use = (p, ...options) => {
|
|
5285
5293
|
if (p && isFunction(p.install)) {
|
|
@@ -9093,7 +9101,7 @@ function isMemoSame(cached, memo) {
|
|
|
9093
9101
|
return true;
|
|
9094
9102
|
}
|
|
9095
9103
|
|
|
9096
|
-
const version = "3.4.
|
|
9104
|
+
const version = "3.4.8";
|
|
9097
9105
|
const warn$1 = NOOP;
|
|
9098
9106
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9099
9107
|
const devtools = void 0;
|
package/dist/vue.esm-browser.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);
|
|
@@ -3159,8 +3164,6 @@ function hasPropsChanged(prevProps, nextProps, emitsOptions) {
|
|
|
3159
3164
|
return false;
|
|
3160
3165
|
}
|
|
3161
3166
|
function updateHOCHostEl({ vnode, parent }, el) {
|
|
3162
|
-
if (!el)
|
|
3163
|
-
return;
|
|
3164
3167
|
while (parent) {
|
|
3165
3168
|
const root = parent.subTree;
|
|
3166
3169
|
if (root.suspense && root.suspense.activeBranch === vnode) {
|
|
@@ -3805,7 +3808,12 @@ function queueEffectWithSuspense(fn, suspense) {
|
|
|
3805
3808
|
function setActiveBranch(suspense, branch) {
|
|
3806
3809
|
suspense.activeBranch = branch;
|
|
3807
3810
|
const { vnode, parentComponent } = suspense;
|
|
3808
|
-
|
|
3811
|
+
let el = branch.el;
|
|
3812
|
+
while (!el && branch.component) {
|
|
3813
|
+
branch = branch.component.subTree;
|
|
3814
|
+
el = branch.el;
|
|
3815
|
+
}
|
|
3816
|
+
vnode.el = el;
|
|
3809
3817
|
if (parentComponent && parentComponent.subTree === vnode) {
|
|
3810
3818
|
parentComponent.vnode.el = el;
|
|
3811
3819
|
updateHOCHostEl(parentComponent, el);
|
|
@@ -6520,7 +6528,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6520
6528
|
return vm;
|
|
6521
6529
|
}
|
|
6522
6530
|
}
|
|
6523
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6531
|
+
Vue.version = `2.6.14-compat:${"3.4.8"}`;
|
|
6524
6532
|
Vue.config = singletonApp.config;
|
|
6525
6533
|
Vue.use = (p, ...options) => {
|
|
6526
6534
|
if (p && isFunction(p.install)) {
|
|
@@ -8246,29 +8254,34 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
8246
8254
|
let actual;
|
|
8247
8255
|
let expected;
|
|
8248
8256
|
if (key === "class") {
|
|
8249
|
-
actual =
|
|
8250
|
-
expected =
|
|
8251
|
-
if (!isSetEqual(actual, expected)) {
|
|
8257
|
+
actual = el.getAttribute("class");
|
|
8258
|
+
expected = normalizeClass(clientValue);
|
|
8259
|
+
if (!isSetEqual(toClassSet(actual || ""), toClassSet(expected))) {
|
|
8252
8260
|
mismatchType = mismatchKey = `class`;
|
|
8253
8261
|
}
|
|
8254
8262
|
} else if (key === "style") {
|
|
8255
|
-
actual =
|
|
8256
|
-
expected =
|
|
8257
|
-
|
|
8258
|
-
);
|
|
8263
|
+
actual = el.getAttribute("style");
|
|
8264
|
+
expected = isString(clientValue) ? clientValue : stringifyStyle(normalizeStyle(clientValue));
|
|
8265
|
+
const actualMap = toStyleMap(actual);
|
|
8266
|
+
const expectedMap = toStyleMap(expected);
|
|
8259
8267
|
if (vnode.dirs) {
|
|
8260
8268
|
for (const { dir, value } of vnode.dirs) {
|
|
8261
8269
|
if (dir.name === "show" && !value) {
|
|
8262
|
-
|
|
8270
|
+
expectedMap.set("display", "none");
|
|
8263
8271
|
}
|
|
8264
8272
|
}
|
|
8265
8273
|
}
|
|
8266
|
-
if (!isMapEqual(
|
|
8274
|
+
if (!isMapEqual(actualMap, expectedMap)) {
|
|
8267
8275
|
mismatchType = mismatchKey = "style";
|
|
8268
8276
|
}
|
|
8269
8277
|
} else if (el instanceof SVGElement && isKnownSvgAttr(key) || el instanceof HTMLElement && (isBooleanAttr(key) || isKnownHtmlAttr(key))) {
|
|
8270
|
-
|
|
8271
|
-
|
|
8278
|
+
if (isBooleanAttr(key)) {
|
|
8279
|
+
actual = el.hasAttribute(key);
|
|
8280
|
+
expected = includeBooleanAttr(clientValue);
|
|
8281
|
+
} else {
|
|
8282
|
+
actual = el.hasAttribute(key) ? el.getAttribute(key) : key in el ? el[key] : "";
|
|
8283
|
+
expected = clientValue == null ? "" : String(clientValue);
|
|
8284
|
+
}
|
|
8272
8285
|
if (actual !== expected) {
|
|
8273
8286
|
mismatchType = `attribute`;
|
|
8274
8287
|
mismatchKey = key;
|
|
@@ -11269,7 +11282,7 @@ function isMemoSame(cached, memo) {
|
|
|
11269
11282
|
return true;
|
|
11270
11283
|
}
|
|
11271
11284
|
|
|
11272
|
-
const version = "3.4.
|
|
11285
|
+
const version = "3.4.8";
|
|
11273
11286
|
const warn = warn$1 ;
|
|
11274
11287
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11275
11288
|
const devtools = devtools$1 ;
|