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.esm-bundler.js
CHANGED
package/dist/vue.global.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
|
**/
|
|
@@ -481,7 +481,7 @@ var Vue = (function (exports) {
|
|
|
481
481
|
/**
|
|
482
482
|
* @internal
|
|
483
483
|
*/
|
|
484
|
-
this._dirtyLevel =
|
|
484
|
+
this._dirtyLevel = 5;
|
|
485
485
|
/**
|
|
486
486
|
* @internal
|
|
487
487
|
*/
|
|
@@ -501,14 +501,18 @@ var Vue = (function (exports) {
|
|
|
501
501
|
recordEffectScope(this, scope);
|
|
502
502
|
}
|
|
503
503
|
get dirty() {
|
|
504
|
-
if (this._dirtyLevel === 2
|
|
504
|
+
if (this._dirtyLevel === 2)
|
|
505
|
+
return false;
|
|
506
|
+
if (this._dirtyLevel === 3 || this._dirtyLevel === 4) {
|
|
505
507
|
this._dirtyLevel = 1;
|
|
506
508
|
pauseTracking();
|
|
507
509
|
for (let i = 0; i < this._depsLength; i++) {
|
|
508
510
|
const dep = this.deps[i];
|
|
509
511
|
if (dep.computed) {
|
|
512
|
+
if (dep.computed.effect._dirtyLevel === 2)
|
|
513
|
+
return true;
|
|
510
514
|
triggerComputed(dep.computed);
|
|
511
|
-
if (this._dirtyLevel >=
|
|
515
|
+
if (this._dirtyLevel >= 5) {
|
|
512
516
|
break;
|
|
513
517
|
}
|
|
514
518
|
}
|
|
@@ -518,10 +522,10 @@ var Vue = (function (exports) {
|
|
|
518
522
|
}
|
|
519
523
|
resetTracking();
|
|
520
524
|
}
|
|
521
|
-
return this._dirtyLevel >=
|
|
525
|
+
return this._dirtyLevel >= 5;
|
|
522
526
|
}
|
|
523
527
|
set dirty(v) {
|
|
524
|
-
this._dirtyLevel = v ?
|
|
528
|
+
this._dirtyLevel = v ? 5 : 0;
|
|
525
529
|
}
|
|
526
530
|
run() {
|
|
527
531
|
this._dirtyLevel = 0;
|
|
@@ -642,9 +646,18 @@ var Vue = (function (exports) {
|
|
|
642
646
|
var _a;
|
|
643
647
|
pauseScheduling();
|
|
644
648
|
for (const effect2 of dep.keys()) {
|
|
649
|
+
if (!dep.computed && effect2.computed) {
|
|
650
|
+
if (dep.get(effect2) === effect2._trackId && effect2._runnings > 0) {
|
|
651
|
+
effect2._dirtyLevel = 2;
|
|
652
|
+
continue;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
645
655
|
let tracking;
|
|
646
656
|
if (effect2._dirtyLevel < dirtyLevel && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
647
657
|
effect2._shouldSchedule || (effect2._shouldSchedule = effect2._dirtyLevel === 0);
|
|
658
|
+
if (effect2.computed && effect2._dirtyLevel === 2) {
|
|
659
|
+
effect2._shouldSchedule = true;
|
|
660
|
+
}
|
|
648
661
|
effect2._dirtyLevel = dirtyLevel;
|
|
649
662
|
}
|
|
650
663
|
if (effect2._shouldSchedule && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
@@ -652,7 +665,7 @@ var Vue = (function (exports) {
|
|
|
652
665
|
(_a = effect2.onTrigger) == null ? void 0 : _a.call(effect2, extend({ effect: effect2 }, debuggerEventExtraInfo));
|
|
653
666
|
}
|
|
654
667
|
effect2.trigger();
|
|
655
|
-
if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !==
|
|
668
|
+
if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 3) {
|
|
656
669
|
effect2._shouldSchedule = false;
|
|
657
670
|
if (effect2.scheduler) {
|
|
658
671
|
queueEffectSchedulers.push(effect2.scheduler);
|
|
@@ -744,7 +757,7 @@ var Vue = (function (exports) {
|
|
|
744
757
|
if (dep) {
|
|
745
758
|
triggerEffects(
|
|
746
759
|
dep,
|
|
747
|
-
|
|
760
|
+
5,
|
|
748
761
|
{
|
|
749
762
|
target,
|
|
750
763
|
type,
|
|
@@ -1347,7 +1360,7 @@ var Vue = (function (exports) {
|
|
|
1347
1360
|
() => getter(this._value),
|
|
1348
1361
|
() => triggerRefValue(
|
|
1349
1362
|
this,
|
|
1350
|
-
this.effect._dirtyLevel ===
|
|
1363
|
+
this.effect._dirtyLevel === 3 ? 3 : 4
|
|
1351
1364
|
)
|
|
1352
1365
|
);
|
|
1353
1366
|
this.effect.computed = this;
|
|
@@ -1357,7 +1370,7 @@ var Vue = (function (exports) {
|
|
|
1357
1370
|
get value() {
|
|
1358
1371
|
const self = toRaw(this);
|
|
1359
1372
|
if ((!self._cacheable || self.effect.dirty) && hasChanged(self._value, self._value = self.effect.run())) {
|
|
1360
|
-
triggerRefValue(self,
|
|
1373
|
+
triggerRefValue(self, 5);
|
|
1361
1374
|
}
|
|
1362
1375
|
trackRefValue(self);
|
|
1363
1376
|
if (self.effect._dirtyLevel >= 2) {
|
|
@@ -1366,7 +1379,7 @@ var Vue = (function (exports) {
|
|
|
1366
1379
|
|
|
1367
1380
|
getter: `, this.getter);
|
|
1368
1381
|
}
|
|
1369
|
-
triggerRefValue(self,
|
|
1382
|
+
triggerRefValue(self, 3);
|
|
1370
1383
|
}
|
|
1371
1384
|
return self._value;
|
|
1372
1385
|
}
|
|
@@ -1421,7 +1434,7 @@ getter: `, this.getter);
|
|
|
1421
1434
|
);
|
|
1422
1435
|
}
|
|
1423
1436
|
}
|
|
1424
|
-
function triggerRefValue(ref2, dirtyLevel =
|
|
1437
|
+
function triggerRefValue(ref2, dirtyLevel = 5, newVal, oldVal) {
|
|
1425
1438
|
ref2 = toRaw(ref2);
|
|
1426
1439
|
const dep = ref2.dep;
|
|
1427
1440
|
if (dep) {
|
|
@@ -1472,12 +1485,12 @@ getter: `, this.getter);
|
|
|
1472
1485
|
const oldVal = this._rawValue;
|
|
1473
1486
|
this._rawValue = newVal;
|
|
1474
1487
|
this._value = useDirectValue ? newVal : toReactive(newVal);
|
|
1475
|
-
triggerRefValue(this,
|
|
1488
|
+
triggerRefValue(this, 5, newVal, oldVal);
|
|
1476
1489
|
}
|
|
1477
1490
|
}
|
|
1478
1491
|
}
|
|
1479
1492
|
function triggerRef(ref2) {
|
|
1480
|
-
triggerRefValue(ref2,
|
|
1493
|
+
triggerRefValue(ref2, 5, ref2.value );
|
|
1481
1494
|
}
|
|
1482
1495
|
function unref(ref2) {
|
|
1483
1496
|
return isRef(ref2) ? ref2.value : ref2;
|
|
@@ -9633,7 +9646,7 @@ Component that was made reactive: `,
|
|
|
9633
9646
|
return true;
|
|
9634
9647
|
}
|
|
9635
9648
|
|
|
9636
|
-
const version = "3.4.
|
|
9649
|
+
const version = "3.4.29";
|
|
9637
9650
|
const warn = warn$1 ;
|
|
9638
9651
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9639
9652
|
const devtools = devtools$1 ;
|
|
@@ -10422,8 +10435,8 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
10422
10435
|
|
|
10423
10436
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
10424
10437
|
// @__NO_SIDE_EFFECTS__
|
|
10425
|
-
function defineCustomElement(options, hydrate2) {
|
|
10426
|
-
const Comp = defineComponent(options);
|
|
10438
|
+
function defineCustomElement(options, extraOptions, hydrate2) {
|
|
10439
|
+
const Comp = defineComponent(options, extraOptions);
|
|
10427
10440
|
class VueCustomElement extends VueElement {
|
|
10428
10441
|
constructor(initialProps) {
|
|
10429
10442
|
super(Comp, initialProps, hydrate2);
|
|
@@ -10433,8 +10446,8 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
10433
10446
|
return VueCustomElement;
|
|
10434
10447
|
}
|
|
10435
10448
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
10436
|
-
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options) => {
|
|
10437
|
-
return /* @__PURE__ */ defineCustomElement(options, hydrate);
|
|
10449
|
+
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
10450
|
+
return /* @__PURE__ */ defineCustomElement(options, extraOptions, hydrate);
|
|
10438
10451
|
};
|
|
10439
10452
|
const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
|
|
10440
10453
|
};
|