vue 3.4.12 → 3.4.13
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 -20
- package/dist/vue.esm-browser.prod.js +4 -4
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +23 -20
- package/dist/vue.global.prod.js +4 -4
- package/dist/vue.runtime.esm-browser.js +23 -20
- package/dist/vue.runtime.esm-browser.prod.js +4 -4
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +23 -20
- 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.13
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -465,7 +465,7 @@ class ReactiveEffect {
|
|
|
465
465
|
/**
|
|
466
466
|
* @internal
|
|
467
467
|
*/
|
|
468
|
-
this._dirtyLevel =
|
|
468
|
+
this._dirtyLevel = 2;
|
|
469
469
|
/**
|
|
470
470
|
* @internal
|
|
471
471
|
*/
|
|
@@ -477,7 +477,7 @@ class ReactiveEffect {
|
|
|
477
477
|
/**
|
|
478
478
|
* @internal
|
|
479
479
|
*/
|
|
480
|
-
this.
|
|
480
|
+
this._shouldSchedule = false;
|
|
481
481
|
/**
|
|
482
482
|
* @internal
|
|
483
483
|
*/
|
|
@@ -486,10 +486,9 @@ class ReactiveEffect {
|
|
|
486
486
|
}
|
|
487
487
|
get dirty() {
|
|
488
488
|
if (this._dirtyLevel === 1) {
|
|
489
|
-
this._dirtyLevel = 0;
|
|
490
|
-
this._queryings++;
|
|
491
489
|
pauseTracking();
|
|
492
|
-
for (
|
|
490
|
+
for (let i = 0; i < this._depsLength; i++) {
|
|
491
|
+
const dep = this.deps[i];
|
|
493
492
|
if (dep.computed) {
|
|
494
493
|
triggerComputed(dep.computed);
|
|
495
494
|
if (this._dirtyLevel >= 2) {
|
|
@@ -497,13 +496,15 @@ class ReactiveEffect {
|
|
|
497
496
|
}
|
|
498
497
|
}
|
|
499
498
|
}
|
|
499
|
+
if (this._dirtyLevel < 2) {
|
|
500
|
+
this._dirtyLevel = 0;
|
|
501
|
+
}
|
|
500
502
|
resetTracking();
|
|
501
|
-
this._queryings--;
|
|
502
503
|
}
|
|
503
504
|
return this._dirtyLevel >= 2;
|
|
504
505
|
}
|
|
505
506
|
set dirty(v) {
|
|
506
|
-
this._dirtyLevel = v ?
|
|
507
|
+
this._dirtyLevel = v ? 2 : 0;
|
|
507
508
|
}
|
|
508
509
|
run() {
|
|
509
510
|
this._dirtyLevel = 0;
|
|
@@ -626,22 +627,24 @@ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
|
|
|
626
627
|
var _a;
|
|
627
628
|
pauseScheduling();
|
|
628
629
|
for (const effect2 of dep.keys()) {
|
|
629
|
-
if (
|
|
630
|
+
if (dep.get(effect2) !== effect2._trackId) {
|
|
630
631
|
continue;
|
|
631
632
|
}
|
|
632
|
-
if (effect2._dirtyLevel < dirtyLevel
|
|
633
|
+
if (effect2._dirtyLevel < dirtyLevel) {
|
|
633
634
|
const lastDirtyLevel = effect2._dirtyLevel;
|
|
634
635
|
effect2._dirtyLevel = dirtyLevel;
|
|
635
|
-
if (lastDirtyLevel === 0
|
|
636
|
+
if (lastDirtyLevel === 0) {
|
|
637
|
+
effect2._shouldSchedule = true;
|
|
636
638
|
{
|
|
637
639
|
(_a = effect2.onTrigger) == null ? void 0 : _a.call(effect2, extend({ effect: effect2 }, debuggerEventExtraInfo));
|
|
638
640
|
}
|
|
639
641
|
effect2.trigger();
|
|
640
|
-
if (effect2.scheduler) {
|
|
641
|
-
queueEffectSchedulers.push(effect2.scheduler);
|
|
642
|
-
}
|
|
643
642
|
}
|
|
644
643
|
}
|
|
644
|
+
if (effect2.scheduler && effect2._shouldSchedule && (!effect2._runnings || effect2.allowRecurse)) {
|
|
645
|
+
effect2._shouldSchedule = false;
|
|
646
|
+
queueEffectSchedulers.push(effect2.scheduler);
|
|
647
|
+
}
|
|
645
648
|
}
|
|
646
649
|
resetScheduling();
|
|
647
650
|
}
|
|
@@ -727,7 +730,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
727
730
|
if (dep) {
|
|
728
731
|
triggerEffects(
|
|
729
732
|
dep,
|
|
730
|
-
|
|
733
|
+
2,
|
|
731
734
|
{
|
|
732
735
|
target,
|
|
733
736
|
type,
|
|
@@ -1334,12 +1337,12 @@ class ComputedRefImpl {
|
|
|
1334
1337
|
}
|
|
1335
1338
|
get value() {
|
|
1336
1339
|
const self = toRaw(this);
|
|
1337
|
-
trackRefValue(self);
|
|
1338
1340
|
if (!self._cacheable || self.effect.dirty) {
|
|
1339
1341
|
if (hasChanged(self._value, self._value = self.effect.run())) {
|
|
1340
1342
|
triggerRefValue(self, 2);
|
|
1341
1343
|
}
|
|
1342
1344
|
}
|
|
1345
|
+
trackRefValue(self);
|
|
1343
1346
|
return self._value;
|
|
1344
1347
|
}
|
|
1345
1348
|
set value(newValue) {
|
|
@@ -1392,7 +1395,7 @@ function trackRefValue(ref2) {
|
|
|
1392
1395
|
);
|
|
1393
1396
|
}
|
|
1394
1397
|
}
|
|
1395
|
-
function triggerRefValue(ref2, dirtyLevel =
|
|
1398
|
+
function triggerRefValue(ref2, dirtyLevel = 2, newVal) {
|
|
1396
1399
|
ref2 = toRaw(ref2);
|
|
1397
1400
|
const dep = ref2.dep;
|
|
1398
1401
|
if (dep) {
|
|
@@ -1441,12 +1444,12 @@ class RefImpl {
|
|
|
1441
1444
|
if (hasChanged(newVal, this._rawValue)) {
|
|
1442
1445
|
this._rawValue = newVal;
|
|
1443
1446
|
this._value = useDirectValue ? newVal : toReactive(newVal);
|
|
1444
|
-
triggerRefValue(this,
|
|
1447
|
+
triggerRefValue(this, 2, newVal);
|
|
1445
1448
|
}
|
|
1446
1449
|
}
|
|
1447
1450
|
}
|
|
1448
1451
|
function triggerRef(ref2) {
|
|
1449
|
-
triggerRefValue(ref2,
|
|
1452
|
+
triggerRefValue(ref2, 2, ref2.value );
|
|
1450
1453
|
}
|
|
1451
1454
|
function unref(ref2) {
|
|
1452
1455
|
return isRef(ref2) ? ref2.value : ref2;
|
|
@@ -9563,7 +9566,7 @@ function isMemoSame(cached, memo) {
|
|
|
9563
9566
|
return true;
|
|
9564
9567
|
}
|
|
9565
9568
|
|
|
9566
|
-
const version = "3.4.
|
|
9569
|
+
const version = "3.4.13";
|
|
9567
9570
|
const warn = warn$1 ;
|
|
9568
9571
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9569
9572
|
const devtools = devtools$1 ;
|