@vue/compat 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 +33 -20
- package/dist/vue.cjs.prod.js +33 -20
- package/dist/vue.esm-browser.js +33 -20
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +33 -20
- package/dist/vue.global.js +33 -20
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +33 -20
- package/dist/vue.runtime.esm-browser.prod.js +5 -5
- package/dist/vue.runtime.esm-bundler.js +33 -20
- package/dist/vue.runtime.global.js +33 -20
- package/dist/vue.runtime.global.prod.js +5 -5
- package/package.json +2 -2
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat 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
|
!!(process.env.NODE_ENV !== "production") ? {
|
|
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, !!(process.env.NODE_ENV !== "production") ? ref2.value : void 0);
|
|
1478
1491
|
}
|
|
1479
1492
|
function unref(ref2) {
|
|
1480
1493
|
return isRef(ref2) ? ref2.value : ref2;
|
|
@@ -5685,7 +5698,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
5685
5698
|
return vm;
|
|
5686
5699
|
}
|
|
5687
5700
|
}
|
|
5688
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
5701
|
+
Vue.version = `2.6.14-compat:${"3.4.29"}`;
|
|
5689
5702
|
Vue.config = singletonApp.config;
|
|
5690
5703
|
Vue.use = (plugin, ...options) => {
|
|
5691
5704
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -11504,7 +11517,7 @@ function isMemoSame(cached, memo) {
|
|
|
11504
11517
|
return true;
|
|
11505
11518
|
}
|
|
11506
11519
|
|
|
11507
|
-
const version = "3.4.
|
|
11520
|
+
const version = "3.4.29";
|
|
11508
11521
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11509
11522
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11510
11523
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -12397,8 +12410,8 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
12397
12410
|
|
|
12398
12411
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
12399
12412
|
// @__NO_SIDE_EFFECTS__
|
|
12400
|
-
function defineCustomElement(options, hydrate2) {
|
|
12401
|
-
const Comp = defineComponent(options);
|
|
12413
|
+
function defineCustomElement(options, extraOptions, hydrate2) {
|
|
12414
|
+
const Comp = defineComponent(options, extraOptions);
|
|
12402
12415
|
class VueCustomElement extends VueElement {
|
|
12403
12416
|
constructor(initialProps) {
|
|
12404
12417
|
super(Comp, initialProps, hydrate2);
|
|
@@ -12408,8 +12421,8 @@ function defineCustomElement(options, hydrate2) {
|
|
|
12408
12421
|
return VueCustomElement;
|
|
12409
12422
|
}
|
|
12410
12423
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
12411
|
-
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options) => {
|
|
12412
|
-
return /* @__PURE__ */ defineCustomElement(options, hydrate);
|
|
12424
|
+
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
12425
|
+
return /* @__PURE__ */ defineCustomElement(options, extraOptions, hydrate);
|
|
12413
12426
|
};
|
|
12414
12427
|
const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
|
|
12415
12428
|
};
|
package/dist/vue.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat 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 () {
|
|
|
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 () {
|
|
|
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 () {
|
|
|
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 () {
|
|
|
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 () {
|
|
|
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 () {
|
|
|
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 () {
|
|
|
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 () {
|
|
|
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 () {
|
|
|
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;
|
|
@@ -5680,7 +5693,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5680
5693
|
return vm;
|
|
5681
5694
|
}
|
|
5682
5695
|
}
|
|
5683
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
5696
|
+
Vue.version = `2.6.14-compat:${"3.4.29"}`;
|
|
5684
5697
|
Vue.config = singletonApp.config;
|
|
5685
5698
|
Vue.use = (plugin, ...options) => {
|
|
5686
5699
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -11388,7 +11401,7 @@ Component that was made reactive: `,
|
|
|
11388
11401
|
return true;
|
|
11389
11402
|
}
|
|
11390
11403
|
|
|
11391
|
-
const version = "3.4.
|
|
11404
|
+
const version = "3.4.29";
|
|
11392
11405
|
const warn = warn$1 ;
|
|
11393
11406
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11394
11407
|
const devtools = devtools$1 ;
|
|
@@ -12265,8 +12278,8 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
12265
12278
|
|
|
12266
12279
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
12267
12280
|
// @__NO_SIDE_EFFECTS__
|
|
12268
|
-
function defineCustomElement(options, hydrate2) {
|
|
12269
|
-
const Comp = defineComponent(options);
|
|
12281
|
+
function defineCustomElement(options, extraOptions, hydrate2) {
|
|
12282
|
+
const Comp = defineComponent(options, extraOptions);
|
|
12270
12283
|
class VueCustomElement extends VueElement {
|
|
12271
12284
|
constructor(initialProps) {
|
|
12272
12285
|
super(Comp, initialProps, hydrate2);
|
|
@@ -12276,8 +12289,8 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
12276
12289
|
return VueCustomElement;
|
|
12277
12290
|
}
|
|
12278
12291
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
12279
|
-
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options) => {
|
|
12280
|
-
return /* @__PURE__ */ defineCustomElement(options, hydrate);
|
|
12292
|
+
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
12293
|
+
return /* @__PURE__ */ defineCustomElement(options, extraOptions, hydrate);
|
|
12281
12294
|
};
|
|
12282
12295
|
const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
|
|
12283
12296
|
};
|