vue 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 +1 -1
- package/dist/vue.cjs.prod.js +1 -1
- package/dist/vue.esm-browser.js +23 -12
- package/dist/vue.esm-browser.prod.js +3 -3
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +23 -12
- package/dist/vue.global.prod.js +3 -3
- package/dist/vue.runtime.esm-browser.js +23 -12
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +23 -12
- package/dist/vue.runtime.global.prod.js +4 -4
- package/package.json +6 -6
package/dist/vue.cjs.js
CHANGED
package/dist/vue.cjs.prod.js
CHANGED
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.4.
|
|
2
|
+
* vue 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
|
+
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 = () => {
|
|
1380
|
-
|
|
1382
|
+
warn$2("Write operation failed: computed value is readonly");
|
|
1381
1383
|
} ;
|
|
1382
1384
|
} else {
|
|
1383
1385
|
getter = getterOrOptions.get;
|
|
@@ -1751,13 +1753,11 @@ const ErrorTypeStrings$1 = {
|
|
|
1751
1753
|
[14]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."
|
|
1752
1754
|
};
|
|
1753
1755
|
function callWithErrorHandling(fn, instance, type, args) {
|
|
1754
|
-
let res;
|
|
1755
1756
|
try {
|
|
1756
|
-
|
|
1757
|
+
return args ? fn(...args) : fn();
|
|
1757
1758
|
} catch (err) {
|
|
1758
1759
|
handleError(err, instance, type);
|
|
1759
1760
|
}
|
|
1760
|
-
return res;
|
|
1761
1761
|
}
|
|
1762
1762
|
function callWithAsyncErrorHandling(fn, instance, type, args) {
|
|
1763
1763
|
if (isFunction(fn)) {
|
|
@@ -5819,8 +5819,16 @@ function validatePropName(key) {
|
|
|
5819
5819
|
return false;
|
|
5820
5820
|
}
|
|
5821
5821
|
function getType(ctor) {
|
|
5822
|
-
|
|
5823
|
-
|
|
5822
|
+
if (ctor === null) {
|
|
5823
|
+
return "null";
|
|
5824
|
+
}
|
|
5825
|
+
if (typeof ctor === "function") {
|
|
5826
|
+
return ctor.name || "";
|
|
5827
|
+
} else if (typeof ctor === "object") {
|
|
5828
|
+
const name = ctor.constructor && ctor.constructor.name;
|
|
5829
|
+
return name || "";
|
|
5830
|
+
}
|
|
5831
|
+
return "";
|
|
5824
5832
|
}
|
|
5825
5833
|
function isSameType(a, b) {
|
|
5826
5834
|
return getType(a) === getType(b);
|
|
@@ -6617,9 +6625,12 @@ function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
|
6617
6625
|
}
|
|
6618
6626
|
}
|
|
6619
6627
|
}
|
|
6620
|
-
const
|
|
6621
|
-
|
|
6622
|
-
|
|
6628
|
+
const root = instance == null ? void 0 : instance.subTree;
|
|
6629
|
+
if (vnode === root || (root == null ? void 0 : root.type) === Fragment && root.children.includes(vnode)) {
|
|
6630
|
+
const cssVars = (_a = instance == null ? void 0 : instance.getCssVars) == null ? void 0 : _a.call(instance);
|
|
6631
|
+
for (const key2 in cssVars) {
|
|
6632
|
+
expectedMap.set(`--${key2}`, String(cssVars[key2]));
|
|
6633
|
+
}
|
|
6623
6634
|
}
|
|
6624
6635
|
if (!isMapEqual(actualMap, expectedMap)) {
|
|
6625
6636
|
mismatchType = mismatchKey = "style";
|
|
@@ -9587,7 +9598,7 @@ function isMemoSame(cached, memo) {
|
|
|
9587
9598
|
return true;
|
|
9588
9599
|
}
|
|
9589
9600
|
|
|
9590
|
-
const version = "3.4.
|
|
9601
|
+
const version = "3.4.19";
|
|
9591
9602
|
const warn = warn$1 ;
|
|
9592
9603
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9593
9604
|
const devtools = devtools$1 ;
|
|
@@ -9964,7 +9975,7 @@ const vShow = {
|
|
|
9964
9975
|
}
|
|
9965
9976
|
},
|
|
9966
9977
|
updated(el, { value, oldValue }, { transition }) {
|
|
9967
|
-
if (!value === !oldValue && el.style.display === el[vShowOldKey])
|
|
9978
|
+
if (!value === !oldValue && (el.style.display === el[vShowOldKey] || !value))
|
|
9968
9979
|
return;
|
|
9969
9980
|
if (transition) {
|
|
9970
9981
|
if (value) {
|