vue 3.4.30 → 3.4.31
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 +20 -35
- package/dist/vue.esm-browser.prod.js +6 -6
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +20 -35
- package/dist/vue.global.prod.js +6 -6
- package/dist/vue.runtime.esm-browser.js +20 -35
- package/dist/vue.runtime.esm-browser.prod.js +2 -2
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +20 -35
- package/dist/vue.runtime.global.prod.js +2 -2
- package/package.json +6 -6
package/dist/vue.esm-bundler.js
CHANGED
package/dist/vue.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.4.
|
|
2
|
+
* vue v3.4.31
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -330,11 +330,14 @@ var Vue = (function (exports) {
|
|
|
330
330
|
return arr.findIndex((item) => looseEqual(item, val));
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
+
const isRef$1 = (val) => {
|
|
334
|
+
return !!(val && val.__v_isRef === true);
|
|
335
|
+
};
|
|
333
336
|
const toDisplayString = (val) => {
|
|
334
|
-
return isString(val) ? val : val == null ? "" : isArray(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? JSON.stringify(val, replacer, 2) : String(val);
|
|
337
|
+
return isString(val) ? val : val == null ? "" : isArray(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? isRef$1(val) ? toDisplayString(val.value) : JSON.stringify(val, replacer, 2) : String(val);
|
|
335
338
|
};
|
|
336
339
|
const replacer = (_key, val) => {
|
|
337
|
-
if (val
|
|
340
|
+
if (isRef$1(val)) {
|
|
338
341
|
return replacer(_key, val.value);
|
|
339
342
|
} else if (isMap(val)) {
|
|
340
343
|
return {
|
|
@@ -481,7 +484,7 @@ var Vue = (function (exports) {
|
|
|
481
484
|
/**
|
|
482
485
|
* @internal
|
|
483
486
|
*/
|
|
484
|
-
this._dirtyLevel =
|
|
487
|
+
this._dirtyLevel = 4;
|
|
485
488
|
/**
|
|
486
489
|
* @internal
|
|
487
490
|
*/
|
|
@@ -501,20 +504,14 @@ var Vue = (function (exports) {
|
|
|
501
504
|
recordEffectScope(this, scope);
|
|
502
505
|
}
|
|
503
506
|
get dirty() {
|
|
504
|
-
if (this._dirtyLevel === 2)
|
|
505
|
-
return false;
|
|
506
|
-
if (this._dirtyLevel === 3 || this._dirtyLevel === 4) {
|
|
507
|
+
if (this._dirtyLevel === 2 || this._dirtyLevel === 3) {
|
|
507
508
|
this._dirtyLevel = 1;
|
|
508
509
|
pauseTracking();
|
|
509
510
|
for (let i = 0; i < this._depsLength; i++) {
|
|
510
511
|
const dep = this.deps[i];
|
|
511
512
|
if (dep.computed) {
|
|
512
|
-
if (dep.computed.effect._dirtyLevel === 2) {
|
|
513
|
-
resetTracking();
|
|
514
|
-
return true;
|
|
515
|
-
}
|
|
516
513
|
triggerComputed(dep.computed);
|
|
517
|
-
if (this._dirtyLevel >=
|
|
514
|
+
if (this._dirtyLevel >= 4) {
|
|
518
515
|
break;
|
|
519
516
|
}
|
|
520
517
|
}
|
|
@@ -524,10 +521,10 @@ var Vue = (function (exports) {
|
|
|
524
521
|
}
|
|
525
522
|
resetTracking();
|
|
526
523
|
}
|
|
527
|
-
return this._dirtyLevel >=
|
|
524
|
+
return this._dirtyLevel >= 4;
|
|
528
525
|
}
|
|
529
526
|
set dirty(v) {
|
|
530
|
-
this._dirtyLevel = v ?
|
|
527
|
+
this._dirtyLevel = v ? 4 : 0;
|
|
531
528
|
}
|
|
532
529
|
run() {
|
|
533
530
|
this._dirtyLevel = 0;
|
|
@@ -649,17 +646,8 @@ var Vue = (function (exports) {
|
|
|
649
646
|
pauseScheduling();
|
|
650
647
|
for (const effect2 of dep.keys()) {
|
|
651
648
|
let tracking;
|
|
652
|
-
if (!dep.computed && effect2.computed) {
|
|
653
|
-
if (effect2._runnings > 0 && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
654
|
-
effect2._dirtyLevel = 2;
|
|
655
|
-
continue;
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
649
|
if (effect2._dirtyLevel < dirtyLevel && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
659
650
|
effect2._shouldSchedule || (effect2._shouldSchedule = effect2._dirtyLevel === 0);
|
|
660
|
-
if (effect2.computed && effect2._dirtyLevel === 2) {
|
|
661
|
-
effect2._shouldSchedule = true;
|
|
662
|
-
}
|
|
663
651
|
effect2._dirtyLevel = dirtyLevel;
|
|
664
652
|
}
|
|
665
653
|
if (effect2._shouldSchedule && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
@@ -667,7 +655,7 @@ var Vue = (function (exports) {
|
|
|
667
655
|
(_a = effect2.onTrigger) == null ? void 0 : _a.call(effect2, extend({ effect: effect2 }, debuggerEventExtraInfo));
|
|
668
656
|
}
|
|
669
657
|
effect2.trigger();
|
|
670
|
-
if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !==
|
|
658
|
+
if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 2) {
|
|
671
659
|
effect2._shouldSchedule = false;
|
|
672
660
|
if (effect2.scheduler) {
|
|
673
661
|
queueEffectSchedulers.push(effect2.scheduler);
|
|
@@ -759,7 +747,7 @@ var Vue = (function (exports) {
|
|
|
759
747
|
if (dep) {
|
|
760
748
|
triggerEffects(
|
|
761
749
|
dep,
|
|
762
|
-
|
|
750
|
+
4,
|
|
763
751
|
{
|
|
764
752
|
target,
|
|
765
753
|
type,
|
|
@@ -1362,7 +1350,7 @@ var Vue = (function (exports) {
|
|
|
1362
1350
|
() => getter(this._value),
|
|
1363
1351
|
() => triggerRefValue(
|
|
1364
1352
|
this,
|
|
1365
|
-
this.effect._dirtyLevel ===
|
|
1353
|
+
this.effect._dirtyLevel === 2 ? 2 : 3
|
|
1366
1354
|
)
|
|
1367
1355
|
);
|
|
1368
1356
|
this.effect.computed = this;
|
|
@@ -1371,11 +1359,8 @@ var Vue = (function (exports) {
|
|
|
1371
1359
|
}
|
|
1372
1360
|
get value() {
|
|
1373
1361
|
const self = toRaw(this);
|
|
1374
|
-
const lastDirtyLevel = self.effect._dirtyLevel;
|
|
1375
1362
|
if ((!self._cacheable || self.effect.dirty) && hasChanged(self._value, self._value = self.effect.run())) {
|
|
1376
|
-
|
|
1377
|
-
triggerRefValue(self, 5);
|
|
1378
|
-
}
|
|
1363
|
+
triggerRefValue(self, 4);
|
|
1379
1364
|
}
|
|
1380
1365
|
trackRefValue(self);
|
|
1381
1366
|
if (self.effect._dirtyLevel >= 2) {
|
|
@@ -1384,7 +1369,7 @@ var Vue = (function (exports) {
|
|
|
1384
1369
|
|
|
1385
1370
|
getter: `, this.getter);
|
|
1386
1371
|
}
|
|
1387
|
-
triggerRefValue(self,
|
|
1372
|
+
triggerRefValue(self, 2);
|
|
1388
1373
|
}
|
|
1389
1374
|
return self._value;
|
|
1390
1375
|
}
|
|
@@ -1439,7 +1424,7 @@ getter: `, this.getter);
|
|
|
1439
1424
|
);
|
|
1440
1425
|
}
|
|
1441
1426
|
}
|
|
1442
|
-
function triggerRefValue(ref2, dirtyLevel =
|
|
1427
|
+
function triggerRefValue(ref2, dirtyLevel = 4, newVal, oldVal) {
|
|
1443
1428
|
ref2 = toRaw(ref2);
|
|
1444
1429
|
const dep = ref2.dep;
|
|
1445
1430
|
if (dep) {
|
|
@@ -1490,12 +1475,12 @@ getter: `, this.getter);
|
|
|
1490
1475
|
const oldVal = this._rawValue;
|
|
1491
1476
|
this._rawValue = newVal;
|
|
1492
1477
|
this._value = useDirectValue ? newVal : toReactive(newVal);
|
|
1493
|
-
triggerRefValue(this,
|
|
1478
|
+
triggerRefValue(this, 4, newVal, oldVal);
|
|
1494
1479
|
}
|
|
1495
1480
|
}
|
|
1496
1481
|
}
|
|
1497
1482
|
function triggerRef(ref2) {
|
|
1498
|
-
triggerRefValue(ref2,
|
|
1483
|
+
triggerRefValue(ref2, 4, ref2.value );
|
|
1499
1484
|
}
|
|
1500
1485
|
function unref(ref2) {
|
|
1501
1486
|
return isRef(ref2) ? ref2.value : ref2;
|
|
@@ -9647,7 +9632,7 @@ Component that was made reactive: `,
|
|
|
9647
9632
|
return true;
|
|
9648
9633
|
}
|
|
9649
9634
|
|
|
9650
|
-
const version = "3.4.
|
|
9635
|
+
const version = "3.4.31";
|
|
9651
9636
|
const warn = warn$1 ;
|
|
9652
9637
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9653
9638
|
const devtools = devtools$1 ;
|