@vue/runtime-dom 3.4.11 → 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/runtime-dom.cjs.js +1 -1
- package/dist/runtime-dom.cjs.prod.js +1 -1
- package/dist/runtime-dom.esm-browser.js +23 -20
- package/dist/runtime-dom.esm-browser.prod.js +4 -4
- package/dist/runtime-dom.esm-bundler.js +1 -1
- package/dist/runtime-dom.global.js +23 -20
- package/dist/runtime-dom.global.prod.js +4 -4
- package/package.json +3 -3
package/dist/runtime-dom.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.4.
|
|
2
|
+
* @vue/runtime-dom v3.4.13
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -400,7 +400,7 @@ class ReactiveEffect {
|
|
|
400
400
|
/**
|
|
401
401
|
* @internal
|
|
402
402
|
*/
|
|
403
|
-
this._dirtyLevel =
|
|
403
|
+
this._dirtyLevel = 2;
|
|
404
404
|
/**
|
|
405
405
|
* @internal
|
|
406
406
|
*/
|
|
@@ -412,7 +412,7 @@ class ReactiveEffect {
|
|
|
412
412
|
/**
|
|
413
413
|
* @internal
|
|
414
414
|
*/
|
|
415
|
-
this.
|
|
415
|
+
this._shouldSchedule = false;
|
|
416
416
|
/**
|
|
417
417
|
* @internal
|
|
418
418
|
*/
|
|
@@ -421,10 +421,9 @@ class ReactiveEffect {
|
|
|
421
421
|
}
|
|
422
422
|
get dirty() {
|
|
423
423
|
if (this._dirtyLevel === 1) {
|
|
424
|
-
this._dirtyLevel = 0;
|
|
425
|
-
this._queryings++;
|
|
426
424
|
pauseTracking();
|
|
427
|
-
for (
|
|
425
|
+
for (let i = 0; i < this._depsLength; i++) {
|
|
426
|
+
const dep = this.deps[i];
|
|
428
427
|
if (dep.computed) {
|
|
429
428
|
triggerComputed(dep.computed);
|
|
430
429
|
if (this._dirtyLevel >= 2) {
|
|
@@ -432,13 +431,15 @@ class ReactiveEffect {
|
|
|
432
431
|
}
|
|
433
432
|
}
|
|
434
433
|
}
|
|
434
|
+
if (this._dirtyLevel < 2) {
|
|
435
|
+
this._dirtyLevel = 0;
|
|
436
|
+
}
|
|
435
437
|
resetTracking();
|
|
436
|
-
this._queryings--;
|
|
437
438
|
}
|
|
438
439
|
return this._dirtyLevel >= 2;
|
|
439
440
|
}
|
|
440
441
|
set dirty(v) {
|
|
441
|
-
this._dirtyLevel = v ?
|
|
442
|
+
this._dirtyLevel = v ? 2 : 0;
|
|
442
443
|
}
|
|
443
444
|
run() {
|
|
444
445
|
this._dirtyLevel = 0;
|
|
@@ -561,22 +562,24 @@ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
|
|
|
561
562
|
var _a;
|
|
562
563
|
pauseScheduling();
|
|
563
564
|
for (const effect2 of dep.keys()) {
|
|
564
|
-
if (
|
|
565
|
+
if (dep.get(effect2) !== effect2._trackId) {
|
|
565
566
|
continue;
|
|
566
567
|
}
|
|
567
|
-
if (effect2._dirtyLevel < dirtyLevel
|
|
568
|
+
if (effect2._dirtyLevel < dirtyLevel) {
|
|
568
569
|
const lastDirtyLevel = effect2._dirtyLevel;
|
|
569
570
|
effect2._dirtyLevel = dirtyLevel;
|
|
570
|
-
if (lastDirtyLevel === 0
|
|
571
|
+
if (lastDirtyLevel === 0) {
|
|
572
|
+
effect2._shouldSchedule = true;
|
|
571
573
|
{
|
|
572
574
|
(_a = effect2.onTrigger) == null ? void 0 : _a.call(effect2, extend({ effect: effect2 }, debuggerEventExtraInfo));
|
|
573
575
|
}
|
|
574
576
|
effect2.trigger();
|
|
575
|
-
if (effect2.scheduler) {
|
|
576
|
-
queueEffectSchedulers.push(effect2.scheduler);
|
|
577
|
-
}
|
|
578
577
|
}
|
|
579
578
|
}
|
|
579
|
+
if (effect2.scheduler && effect2._shouldSchedule && (!effect2._runnings || effect2.allowRecurse)) {
|
|
580
|
+
effect2._shouldSchedule = false;
|
|
581
|
+
queueEffectSchedulers.push(effect2.scheduler);
|
|
582
|
+
}
|
|
580
583
|
}
|
|
581
584
|
resetScheduling();
|
|
582
585
|
}
|
|
@@ -662,7 +665,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
662
665
|
if (dep) {
|
|
663
666
|
triggerEffects(
|
|
664
667
|
dep,
|
|
665
|
-
|
|
668
|
+
2,
|
|
666
669
|
{
|
|
667
670
|
target,
|
|
668
671
|
type,
|
|
@@ -1269,12 +1272,12 @@ class ComputedRefImpl {
|
|
|
1269
1272
|
}
|
|
1270
1273
|
get value() {
|
|
1271
1274
|
const self = toRaw(this);
|
|
1272
|
-
trackRefValue(self);
|
|
1273
1275
|
if (!self._cacheable || self.effect.dirty) {
|
|
1274
1276
|
if (hasChanged(self._value, self._value = self.effect.run())) {
|
|
1275
1277
|
triggerRefValue(self, 2);
|
|
1276
1278
|
}
|
|
1277
1279
|
}
|
|
1280
|
+
trackRefValue(self);
|
|
1278
1281
|
return self._value;
|
|
1279
1282
|
}
|
|
1280
1283
|
set value(newValue) {
|
|
@@ -1327,7 +1330,7 @@ function trackRefValue(ref2) {
|
|
|
1327
1330
|
);
|
|
1328
1331
|
}
|
|
1329
1332
|
}
|
|
1330
|
-
function triggerRefValue(ref2, dirtyLevel =
|
|
1333
|
+
function triggerRefValue(ref2, dirtyLevel = 2, newVal) {
|
|
1331
1334
|
ref2 = toRaw(ref2);
|
|
1332
1335
|
const dep = ref2.dep;
|
|
1333
1336
|
if (dep) {
|
|
@@ -1376,12 +1379,12 @@ class RefImpl {
|
|
|
1376
1379
|
if (hasChanged(newVal, this._rawValue)) {
|
|
1377
1380
|
this._rawValue = newVal;
|
|
1378
1381
|
this._value = useDirectValue ? newVal : toReactive(newVal);
|
|
1379
|
-
triggerRefValue(this,
|
|
1382
|
+
triggerRefValue(this, 2, newVal);
|
|
1380
1383
|
}
|
|
1381
1384
|
}
|
|
1382
1385
|
}
|
|
1383
1386
|
function triggerRef(ref2) {
|
|
1384
|
-
triggerRefValue(ref2,
|
|
1387
|
+
triggerRefValue(ref2, 2, ref2.value );
|
|
1385
1388
|
}
|
|
1386
1389
|
function unref(ref2) {
|
|
1387
1390
|
return isRef(ref2) ? ref2.value : ref2;
|
|
@@ -9498,7 +9501,7 @@ function isMemoSame(cached, memo) {
|
|
|
9498
9501
|
return true;
|
|
9499
9502
|
}
|
|
9500
9503
|
|
|
9501
|
-
const version = "3.4.
|
|
9504
|
+
const version = "3.4.13";
|
|
9502
9505
|
const warn = warn$1 ;
|
|
9503
9506
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9504
9507
|
const devtools = devtools$1 ;
|