vue 3.4.28 → 3.4.29
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 +32 -19
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +32 -19
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +32 -19
- package/dist/vue.runtime.esm-browser.prod.js +5 -5
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +32 -19
- package/dist/vue.runtime.global.prod.js +5 -5
- 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.29
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -478,7 +478,7 @@ class ReactiveEffect {
|
|
|
478
478
|
/**
|
|
479
479
|
* @internal
|
|
480
480
|
*/
|
|
481
|
-
this._dirtyLevel =
|
|
481
|
+
this._dirtyLevel = 5;
|
|
482
482
|
/**
|
|
483
483
|
* @internal
|
|
484
484
|
*/
|
|
@@ -498,14 +498,18 @@ class ReactiveEffect {
|
|
|
498
498
|
recordEffectScope(this, scope);
|
|
499
499
|
}
|
|
500
500
|
get dirty() {
|
|
501
|
-
if (this._dirtyLevel === 2
|
|
501
|
+
if (this._dirtyLevel === 2)
|
|
502
|
+
return false;
|
|
503
|
+
if (this._dirtyLevel === 3 || this._dirtyLevel === 4) {
|
|
502
504
|
this._dirtyLevel = 1;
|
|
503
505
|
pauseTracking();
|
|
504
506
|
for (let i = 0; i < this._depsLength; i++) {
|
|
505
507
|
const dep = this.deps[i];
|
|
506
508
|
if (dep.computed) {
|
|
509
|
+
if (dep.computed.effect._dirtyLevel === 2)
|
|
510
|
+
return true;
|
|
507
511
|
triggerComputed(dep.computed);
|
|
508
|
-
if (this._dirtyLevel >=
|
|
512
|
+
if (this._dirtyLevel >= 5) {
|
|
509
513
|
break;
|
|
510
514
|
}
|
|
511
515
|
}
|
|
@@ -515,10 +519,10 @@ class ReactiveEffect {
|
|
|
515
519
|
}
|
|
516
520
|
resetTracking();
|
|
517
521
|
}
|
|
518
|
-
return this._dirtyLevel >=
|
|
522
|
+
return this._dirtyLevel >= 5;
|
|
519
523
|
}
|
|
520
524
|
set dirty(v) {
|
|
521
|
-
this._dirtyLevel = v ?
|
|
525
|
+
this._dirtyLevel = v ? 5 : 0;
|
|
522
526
|
}
|
|
523
527
|
run() {
|
|
524
528
|
this._dirtyLevel = 0;
|
|
@@ -639,9 +643,18 @@ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
|
|
|
639
643
|
var _a;
|
|
640
644
|
pauseScheduling();
|
|
641
645
|
for (const effect2 of dep.keys()) {
|
|
646
|
+
if (!dep.computed && effect2.computed) {
|
|
647
|
+
if (dep.get(effect2) === effect2._trackId && effect2._runnings > 0) {
|
|
648
|
+
effect2._dirtyLevel = 2;
|
|
649
|
+
continue;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
642
652
|
let tracking;
|
|
643
653
|
if (effect2._dirtyLevel < dirtyLevel && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
644
654
|
effect2._shouldSchedule || (effect2._shouldSchedule = effect2._dirtyLevel === 0);
|
|
655
|
+
if (effect2.computed && effect2._dirtyLevel === 2) {
|
|
656
|
+
effect2._shouldSchedule = true;
|
|
657
|
+
}
|
|
645
658
|
effect2._dirtyLevel = dirtyLevel;
|
|
646
659
|
}
|
|
647
660
|
if (effect2._shouldSchedule && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
@@ -649,7 +662,7 @@ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
|
|
|
649
662
|
(_a = effect2.onTrigger) == null ? void 0 : _a.call(effect2, extend({ effect: effect2 }, debuggerEventExtraInfo));
|
|
650
663
|
}
|
|
651
664
|
effect2.trigger();
|
|
652
|
-
if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !==
|
|
665
|
+
if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 3) {
|
|
653
666
|
effect2._shouldSchedule = false;
|
|
654
667
|
if (effect2.scheduler) {
|
|
655
668
|
queueEffectSchedulers.push(effect2.scheduler);
|
|
@@ -741,7 +754,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
741
754
|
if (dep) {
|
|
742
755
|
triggerEffects(
|
|
743
756
|
dep,
|
|
744
|
-
|
|
757
|
+
5,
|
|
745
758
|
{
|
|
746
759
|
target,
|
|
747
760
|
type,
|
|
@@ -1344,7 +1357,7 @@ class ComputedRefImpl {
|
|
|
1344
1357
|
() => getter(this._value),
|
|
1345
1358
|
() => triggerRefValue(
|
|
1346
1359
|
this,
|
|
1347
|
-
this.effect._dirtyLevel ===
|
|
1360
|
+
this.effect._dirtyLevel === 3 ? 3 : 4
|
|
1348
1361
|
)
|
|
1349
1362
|
);
|
|
1350
1363
|
this.effect.computed = this;
|
|
@@ -1354,7 +1367,7 @@ class ComputedRefImpl {
|
|
|
1354
1367
|
get value() {
|
|
1355
1368
|
const self = toRaw(this);
|
|
1356
1369
|
if ((!self._cacheable || self.effect.dirty) && hasChanged(self._value, self._value = self.effect.run())) {
|
|
1357
|
-
triggerRefValue(self,
|
|
1370
|
+
triggerRefValue(self, 5);
|
|
1358
1371
|
}
|
|
1359
1372
|
trackRefValue(self);
|
|
1360
1373
|
if (self.effect._dirtyLevel >= 2) {
|
|
@@ -1363,7 +1376,7 @@ class ComputedRefImpl {
|
|
|
1363
1376
|
|
|
1364
1377
|
getter: `, this.getter);
|
|
1365
1378
|
}
|
|
1366
|
-
triggerRefValue(self,
|
|
1379
|
+
triggerRefValue(self, 3);
|
|
1367
1380
|
}
|
|
1368
1381
|
return self._value;
|
|
1369
1382
|
}
|
|
@@ -1418,7 +1431,7 @@ function trackRefValue(ref2) {
|
|
|
1418
1431
|
);
|
|
1419
1432
|
}
|
|
1420
1433
|
}
|
|
1421
|
-
function triggerRefValue(ref2, dirtyLevel =
|
|
1434
|
+
function triggerRefValue(ref2, dirtyLevel = 5, newVal, oldVal) {
|
|
1422
1435
|
ref2 = toRaw(ref2);
|
|
1423
1436
|
const dep = ref2.dep;
|
|
1424
1437
|
if (dep) {
|
|
@@ -1469,12 +1482,12 @@ class RefImpl {
|
|
|
1469
1482
|
const oldVal = this._rawValue;
|
|
1470
1483
|
this._rawValue = newVal;
|
|
1471
1484
|
this._value = useDirectValue ? newVal : toReactive(newVal);
|
|
1472
|
-
triggerRefValue(this,
|
|
1485
|
+
triggerRefValue(this, 5, newVal, oldVal);
|
|
1473
1486
|
}
|
|
1474
1487
|
}
|
|
1475
1488
|
}
|
|
1476
1489
|
function triggerRef(ref2) {
|
|
1477
|
-
triggerRefValue(ref2,
|
|
1490
|
+
triggerRefValue(ref2, 5, ref2.value );
|
|
1478
1491
|
}
|
|
1479
1492
|
function unref(ref2) {
|
|
1480
1493
|
return isRef(ref2) ? ref2.value : ref2;
|
|
@@ -9636,7 +9649,7 @@ function isMemoSame(cached, memo) {
|
|
|
9636
9649
|
return true;
|
|
9637
9650
|
}
|
|
9638
9651
|
|
|
9639
|
-
const version = "3.4.
|
|
9652
|
+
const version = "3.4.29";
|
|
9640
9653
|
const warn = warn$1 ;
|
|
9641
9654
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9642
9655
|
const devtools = devtools$1 ;
|
|
@@ -10425,8 +10438,8 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
10425
10438
|
|
|
10426
10439
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
10427
10440
|
// @__NO_SIDE_EFFECTS__
|
|
10428
|
-
function defineCustomElement(options, hydrate2) {
|
|
10429
|
-
const Comp = defineComponent(options);
|
|
10441
|
+
function defineCustomElement(options, extraOptions, hydrate2) {
|
|
10442
|
+
const Comp = defineComponent(options, extraOptions);
|
|
10430
10443
|
class VueCustomElement extends VueElement {
|
|
10431
10444
|
constructor(initialProps) {
|
|
10432
10445
|
super(Comp, initialProps, hydrate2);
|
|
@@ -10436,8 +10449,8 @@ function defineCustomElement(options, hydrate2) {
|
|
|
10436
10449
|
return VueCustomElement;
|
|
10437
10450
|
}
|
|
10438
10451
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
10439
|
-
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options) => {
|
|
10440
|
-
return /* @__PURE__ */ defineCustomElement(options, hydrate);
|
|
10452
|
+
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
10453
|
+
return /* @__PURE__ */ defineCustomElement(options, extraOptions, hydrate);
|
|
10441
10454
|
};
|
|
10442
10455
|
const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
|
|
10443
10456
|
};
|