@vue/runtime-dom 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/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
|
@@ -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
|
**/
|
|
@@ -403,7 +403,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
403
403
|
/**
|
|
404
404
|
* @internal
|
|
405
405
|
*/
|
|
406
|
-
this._dirtyLevel =
|
|
406
|
+
this._dirtyLevel = 2;
|
|
407
407
|
/**
|
|
408
408
|
* @internal
|
|
409
409
|
*/
|
|
@@ -415,7 +415,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
415
415
|
/**
|
|
416
416
|
* @internal
|
|
417
417
|
*/
|
|
418
|
-
this.
|
|
418
|
+
this._shouldSchedule = false;
|
|
419
419
|
/**
|
|
420
420
|
* @internal
|
|
421
421
|
*/
|
|
@@ -424,10 +424,9 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
424
424
|
}
|
|
425
425
|
get dirty() {
|
|
426
426
|
if (this._dirtyLevel === 1) {
|
|
427
|
-
this._dirtyLevel = 0;
|
|
428
|
-
this._queryings++;
|
|
429
427
|
pauseTracking();
|
|
430
|
-
for (
|
|
428
|
+
for (let i = 0; i < this._depsLength; i++) {
|
|
429
|
+
const dep = this.deps[i];
|
|
431
430
|
if (dep.computed) {
|
|
432
431
|
triggerComputed(dep.computed);
|
|
433
432
|
if (this._dirtyLevel >= 2) {
|
|
@@ -435,13 +434,15 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
435
434
|
}
|
|
436
435
|
}
|
|
437
436
|
}
|
|
437
|
+
if (this._dirtyLevel < 2) {
|
|
438
|
+
this._dirtyLevel = 0;
|
|
439
|
+
}
|
|
438
440
|
resetTracking();
|
|
439
|
-
this._queryings--;
|
|
440
441
|
}
|
|
441
442
|
return this._dirtyLevel >= 2;
|
|
442
443
|
}
|
|
443
444
|
set dirty(v) {
|
|
444
|
-
this._dirtyLevel = v ?
|
|
445
|
+
this._dirtyLevel = v ? 2 : 0;
|
|
445
446
|
}
|
|
446
447
|
run() {
|
|
447
448
|
this._dirtyLevel = 0;
|
|
@@ -564,22 +565,24 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
564
565
|
var _a;
|
|
565
566
|
pauseScheduling();
|
|
566
567
|
for (const effect2 of dep.keys()) {
|
|
567
|
-
if (
|
|
568
|
+
if (dep.get(effect2) !== effect2._trackId) {
|
|
568
569
|
continue;
|
|
569
570
|
}
|
|
570
|
-
if (effect2._dirtyLevel < dirtyLevel
|
|
571
|
+
if (effect2._dirtyLevel < dirtyLevel) {
|
|
571
572
|
const lastDirtyLevel = effect2._dirtyLevel;
|
|
572
573
|
effect2._dirtyLevel = dirtyLevel;
|
|
573
|
-
if (lastDirtyLevel === 0
|
|
574
|
+
if (lastDirtyLevel === 0) {
|
|
575
|
+
effect2._shouldSchedule = true;
|
|
574
576
|
{
|
|
575
577
|
(_a = effect2.onTrigger) == null ? void 0 : _a.call(effect2, extend({ effect: effect2 }, debuggerEventExtraInfo));
|
|
576
578
|
}
|
|
577
579
|
effect2.trigger();
|
|
578
|
-
if (effect2.scheduler) {
|
|
579
|
-
queueEffectSchedulers.push(effect2.scheduler);
|
|
580
|
-
}
|
|
581
580
|
}
|
|
582
581
|
}
|
|
582
|
+
if (effect2.scheduler && effect2._shouldSchedule && (!effect2._runnings || effect2.allowRecurse)) {
|
|
583
|
+
effect2._shouldSchedule = false;
|
|
584
|
+
queueEffectSchedulers.push(effect2.scheduler);
|
|
585
|
+
}
|
|
583
586
|
}
|
|
584
587
|
resetScheduling();
|
|
585
588
|
}
|
|
@@ -665,7 +668,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
665
668
|
if (dep) {
|
|
666
669
|
triggerEffects(
|
|
667
670
|
dep,
|
|
668
|
-
|
|
671
|
+
2,
|
|
669
672
|
{
|
|
670
673
|
target,
|
|
671
674
|
type,
|
|
@@ -1272,12 +1275,12 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
1272
1275
|
}
|
|
1273
1276
|
get value() {
|
|
1274
1277
|
const self = toRaw(this);
|
|
1275
|
-
trackRefValue(self);
|
|
1276
1278
|
if (!self._cacheable || self.effect.dirty) {
|
|
1277
1279
|
if (hasChanged(self._value, self._value = self.effect.run())) {
|
|
1278
1280
|
triggerRefValue(self, 2);
|
|
1279
1281
|
}
|
|
1280
1282
|
}
|
|
1283
|
+
trackRefValue(self);
|
|
1281
1284
|
return self._value;
|
|
1282
1285
|
}
|
|
1283
1286
|
set value(newValue) {
|
|
@@ -1330,7 +1333,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
1330
1333
|
);
|
|
1331
1334
|
}
|
|
1332
1335
|
}
|
|
1333
|
-
function triggerRefValue(ref2, dirtyLevel =
|
|
1336
|
+
function triggerRefValue(ref2, dirtyLevel = 2, newVal) {
|
|
1334
1337
|
ref2 = toRaw(ref2);
|
|
1335
1338
|
const dep = ref2.dep;
|
|
1336
1339
|
if (dep) {
|
|
@@ -1379,12 +1382,12 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
1379
1382
|
if (hasChanged(newVal, this._rawValue)) {
|
|
1380
1383
|
this._rawValue = newVal;
|
|
1381
1384
|
this._value = useDirectValue ? newVal : toReactive(newVal);
|
|
1382
|
-
triggerRefValue(this,
|
|
1385
|
+
triggerRefValue(this, 2, newVal);
|
|
1383
1386
|
}
|
|
1384
1387
|
}
|
|
1385
1388
|
}
|
|
1386
1389
|
function triggerRef(ref2) {
|
|
1387
|
-
triggerRefValue(ref2,
|
|
1390
|
+
triggerRefValue(ref2, 2, ref2.value );
|
|
1388
1391
|
}
|
|
1389
1392
|
function unref(ref2) {
|
|
1390
1393
|
return isRef(ref2) ? ref2.value : ref2;
|
|
@@ -9495,7 +9498,7 @@ Component that was made reactive: `,
|
|
|
9495
9498
|
return true;
|
|
9496
9499
|
}
|
|
9497
9500
|
|
|
9498
|
-
const version = "3.4.
|
|
9501
|
+
const version = "3.4.13";
|
|
9499
9502
|
const warn = warn$1 ;
|
|
9500
9503
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9501
9504
|
const devtools = devtools$1 ;
|