@vue/compat 3.4.18 → 3.4.19
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 +24 -13
- package/dist/vue.cjs.prod.js +15 -9
- package/dist/vue.esm-browser.js +24 -13
- package/dist/vue.esm-browser.prod.js +4 -4
- package/dist/vue.esm-bundler.js +24 -13
- package/dist/vue.global.js +24 -13
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +24 -13
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +24 -13
- package/dist/vue.runtime.global.js +24 -13
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +2 -2
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.19
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1330,6 +1330,7 @@ function markRaw(value) {
|
|
|
1330
1330
|
const toReactive = (value) => isObject(value) ? reactive(value) : value;
|
|
1331
1331
|
const toReadonly = (value) => isObject(value) ? readonly(value) : value;
|
|
1332
1332
|
|
|
1333
|
+
const COMPUTED_SIDE_EFFECT_WARN = `Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free`;
|
|
1333
1334
|
class ComputedRefImpl {
|
|
1334
1335
|
constructor(getter, _setter, isReadonly, isSSR) {
|
|
1335
1336
|
this._setter = _setter;
|
|
@@ -1354,6 +1355,7 @@ class ComputedRefImpl {
|
|
|
1354
1355
|
}
|
|
1355
1356
|
trackRefValue(self);
|
|
1356
1357
|
if (self.effect._dirtyLevel >= 2) {
|
|
1358
|
+
!!(process.env.NODE_ENV !== "production") && warn$2(COMPUTED_SIDE_EFFECT_WARN);
|
|
1357
1359
|
triggerRefValue(self, 2);
|
|
1358
1360
|
}
|
|
1359
1361
|
return self._value;
|
|
@@ -1377,7 +1379,7 @@ function computed$1(getterOrOptions, debugOptions, isSSR = false) {
|
|
|
1377
1379
|
if (onlyGetter) {
|
|
1378
1380
|
getter = getterOrOptions;
|
|
1379
1381
|
setter = !!(process.env.NODE_ENV !== "production") ? () => {
|
|
1380
|
-
|
|
1382
|
+
warn$2("Write operation failed: computed value is readonly");
|
|
1381
1383
|
} : NOOP;
|
|
1382
1384
|
} else {
|
|
1383
1385
|
getter = getterOrOptions.get;
|
|
@@ -1753,13 +1755,11 @@ const ErrorTypeStrings$1 = {
|
|
|
1753
1755
|
[14]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."
|
|
1754
1756
|
};
|
|
1755
1757
|
function callWithErrorHandling(fn, instance, type, args) {
|
|
1756
|
-
let res;
|
|
1757
1758
|
try {
|
|
1758
|
-
|
|
1759
|
+
return args ? fn(...args) : fn();
|
|
1759
1760
|
} catch (err) {
|
|
1760
1761
|
handleError(err, instance, type);
|
|
1761
1762
|
}
|
|
1762
|
-
return res;
|
|
1763
1763
|
}
|
|
1764
1764
|
function callWithAsyncErrorHandling(fn, instance, type, args) {
|
|
1765
1765
|
if (isFunction(fn)) {
|
|
@@ -6540,7 +6540,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6540
6540
|
return vm;
|
|
6541
6541
|
}
|
|
6542
6542
|
}
|
|
6543
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6543
|
+
Vue.version = `2.6.14-compat:${"3.4.19"}`;
|
|
6544
6544
|
Vue.config = singletonApp.config;
|
|
6545
6545
|
Vue.use = (p, ...options) => {
|
|
6546
6546
|
if (p && isFunction(p.install)) {
|
|
@@ -7488,8 +7488,16 @@ function validatePropName(key) {
|
|
|
7488
7488
|
return false;
|
|
7489
7489
|
}
|
|
7490
7490
|
function getType(ctor) {
|
|
7491
|
-
|
|
7492
|
-
|
|
7491
|
+
if (ctor === null) {
|
|
7492
|
+
return "null";
|
|
7493
|
+
}
|
|
7494
|
+
if (typeof ctor === "function") {
|
|
7495
|
+
return ctor.name || "";
|
|
7496
|
+
} else if (typeof ctor === "object") {
|
|
7497
|
+
const name = ctor.constructor && ctor.constructor.name;
|
|
7498
|
+
return name || "";
|
|
7499
|
+
}
|
|
7500
|
+
return "";
|
|
7493
7501
|
}
|
|
7494
7502
|
function isSameType(a, b) {
|
|
7495
7503
|
return getType(a) === getType(b);
|
|
@@ -8298,9 +8306,12 @@ function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
|
8298
8306
|
}
|
|
8299
8307
|
}
|
|
8300
8308
|
}
|
|
8301
|
-
const
|
|
8302
|
-
|
|
8303
|
-
|
|
8309
|
+
const root = instance == null ? void 0 : instance.subTree;
|
|
8310
|
+
if (vnode === root || (root == null ? void 0 : root.type) === Fragment && root.children.includes(vnode)) {
|
|
8311
|
+
const cssVars = (_a = instance == null ? void 0 : instance.getCssVars) == null ? void 0 : _a.call(instance);
|
|
8312
|
+
for (const key2 in cssVars) {
|
|
8313
|
+
expectedMap.set(`--${key2}`, String(cssVars[key2]));
|
|
8314
|
+
}
|
|
8304
8315
|
}
|
|
8305
8316
|
if (!isMapEqual(actualMap, expectedMap)) {
|
|
8306
8317
|
mismatchType = mismatchKey = "style";
|
|
@@ -11446,7 +11457,7 @@ function isMemoSame(cached, memo) {
|
|
|
11446
11457
|
return true;
|
|
11447
11458
|
}
|
|
11448
11459
|
|
|
11449
|
-
const version = "3.4.
|
|
11460
|
+
const version = "3.4.19";
|
|
11450
11461
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11451
11462
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11452
11463
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -11875,7 +11886,7 @@ const vShow = {
|
|
|
11875
11886
|
}
|
|
11876
11887
|
},
|
|
11877
11888
|
updated(el, { value, oldValue }, { transition }) {
|
|
11878
|
-
if (!value === !oldValue && el.style.display === el[vShowOldKey])
|
|
11889
|
+
if (!value === !oldValue && (el.style.display === el[vShowOldKey] || !value))
|
|
11879
11890
|
return;
|
|
11880
11891
|
if (transition) {
|
|
11881
11892
|
if (value) {
|
package/dist/vue.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.19
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1333,6 +1333,7 @@ var Vue = (function () {
|
|
|
1333
1333
|
const toReactive = (value) => isObject(value) ? reactive(value) : value;
|
|
1334
1334
|
const toReadonly = (value) => isObject(value) ? readonly(value) : value;
|
|
1335
1335
|
|
|
1336
|
+
const COMPUTED_SIDE_EFFECT_WARN = `Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free`;
|
|
1336
1337
|
class ComputedRefImpl {
|
|
1337
1338
|
constructor(getter, _setter, isReadonly, isSSR) {
|
|
1338
1339
|
this._setter = _setter;
|
|
@@ -1357,6 +1358,7 @@ var Vue = (function () {
|
|
|
1357
1358
|
}
|
|
1358
1359
|
trackRefValue(self);
|
|
1359
1360
|
if (self.effect._dirtyLevel >= 2) {
|
|
1361
|
+
warn$2(COMPUTED_SIDE_EFFECT_WARN);
|
|
1360
1362
|
triggerRefValue(self, 2);
|
|
1361
1363
|
}
|
|
1362
1364
|
return self._value;
|
|
@@ -1380,7 +1382,7 @@ var Vue = (function () {
|
|
|
1380
1382
|
if (onlyGetter) {
|
|
1381
1383
|
getter = getterOrOptions;
|
|
1382
1384
|
setter = () => {
|
|
1383
|
-
|
|
1385
|
+
warn$2("Write operation failed: computed value is readonly");
|
|
1384
1386
|
} ;
|
|
1385
1387
|
} else {
|
|
1386
1388
|
getter = getterOrOptions.get;
|
|
@@ -1754,13 +1756,11 @@ var Vue = (function () {
|
|
|
1754
1756
|
[14]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."
|
|
1755
1757
|
};
|
|
1756
1758
|
function callWithErrorHandling(fn, instance, type, args) {
|
|
1757
|
-
let res;
|
|
1758
1759
|
try {
|
|
1759
|
-
|
|
1760
|
+
return args ? fn(...args) : fn();
|
|
1760
1761
|
} catch (err) {
|
|
1761
1762
|
handleError(err, instance, type);
|
|
1762
1763
|
}
|
|
1763
|
-
return res;
|
|
1764
1764
|
}
|
|
1765
1765
|
function callWithAsyncErrorHandling(fn, instance, type, args) {
|
|
1766
1766
|
if (isFunction(fn)) {
|
|
@@ -6499,7 +6499,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6499
6499
|
return vm;
|
|
6500
6500
|
}
|
|
6501
6501
|
}
|
|
6502
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6502
|
+
Vue.version = `2.6.14-compat:${"3.4.19"}`;
|
|
6503
6503
|
Vue.config = singletonApp.config;
|
|
6504
6504
|
Vue.use = (p, ...options) => {
|
|
6505
6505
|
if (p && isFunction(p.install)) {
|
|
@@ -7444,8 +7444,16 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7444
7444
|
return false;
|
|
7445
7445
|
}
|
|
7446
7446
|
function getType(ctor) {
|
|
7447
|
-
|
|
7448
|
-
|
|
7447
|
+
if (ctor === null) {
|
|
7448
|
+
return "null";
|
|
7449
|
+
}
|
|
7450
|
+
if (typeof ctor === "function") {
|
|
7451
|
+
return ctor.name || "";
|
|
7452
|
+
} else if (typeof ctor === "object") {
|
|
7453
|
+
const name = ctor.constructor && ctor.constructor.name;
|
|
7454
|
+
return name || "";
|
|
7455
|
+
}
|
|
7456
|
+
return "";
|
|
7449
7457
|
}
|
|
7450
7458
|
function isSameType(a, b) {
|
|
7451
7459
|
return getType(a) === getType(b);
|
|
@@ -8244,9 +8252,12 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8244
8252
|
}
|
|
8245
8253
|
}
|
|
8246
8254
|
}
|
|
8247
|
-
const
|
|
8248
|
-
|
|
8249
|
-
|
|
8255
|
+
const root = instance == null ? void 0 : instance.subTree;
|
|
8256
|
+
if (vnode === root || (root == null ? void 0 : root.type) === Fragment && root.children.includes(vnode)) {
|
|
8257
|
+
const cssVars = (_a = instance == null ? void 0 : instance.getCssVars) == null ? void 0 : _a.call(instance);
|
|
8258
|
+
for (const key2 in cssVars) {
|
|
8259
|
+
expectedMap.set(`--${key2}`, String(cssVars[key2]));
|
|
8260
|
+
}
|
|
8250
8261
|
}
|
|
8251
8262
|
if (!isMapEqual(actualMap, expectedMap)) {
|
|
8252
8263
|
mismatchType = mismatchKey = "style";
|
|
@@ -11321,7 +11332,7 @@ Component that was made reactive: `,
|
|
|
11321
11332
|
return true;
|
|
11322
11333
|
}
|
|
11323
11334
|
|
|
11324
|
-
const version = "3.4.
|
|
11335
|
+
const version = "3.4.19";
|
|
11325
11336
|
const warn = warn$1 ;
|
|
11326
11337
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11327
11338
|
const devtools = devtools$1 ;
|
|
@@ -11742,7 +11753,7 @@ Component that was made reactive: `,
|
|
|
11742
11753
|
}
|
|
11743
11754
|
},
|
|
11744
11755
|
updated(el, { value, oldValue }, { transition }) {
|
|
11745
|
-
if (!value === !oldValue && el.style.display === el[vShowOldKey])
|
|
11756
|
+
if (!value === !oldValue && (el.style.display === el[vShowOldKey] || !value))
|
|
11746
11757
|
return;
|
|
11747
11758
|
if (transition) {
|
|
11748
11759
|
if (value) {
|