@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
|
@@ -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
|
**/
|
|
@@ -411,7 +411,7 @@ class ReactiveEffect {
|
|
|
411
411
|
/**
|
|
412
412
|
* @internal
|
|
413
413
|
*/
|
|
414
|
-
this._dirtyLevel =
|
|
414
|
+
this._dirtyLevel = 5;
|
|
415
415
|
/**
|
|
416
416
|
* @internal
|
|
417
417
|
*/
|
|
@@ -431,14 +431,18 @@ class ReactiveEffect {
|
|
|
431
431
|
recordEffectScope(this, scope);
|
|
432
432
|
}
|
|
433
433
|
get dirty() {
|
|
434
|
-
if (this._dirtyLevel === 2
|
|
434
|
+
if (this._dirtyLevel === 2)
|
|
435
|
+
return false;
|
|
436
|
+
if (this._dirtyLevel === 3 || this._dirtyLevel === 4) {
|
|
435
437
|
this._dirtyLevel = 1;
|
|
436
438
|
pauseTracking();
|
|
437
439
|
for (let i = 0; i < this._depsLength; i++) {
|
|
438
440
|
const dep = this.deps[i];
|
|
439
441
|
if (dep.computed) {
|
|
442
|
+
if (dep.computed.effect._dirtyLevel === 2)
|
|
443
|
+
return true;
|
|
440
444
|
triggerComputed(dep.computed);
|
|
441
|
-
if (this._dirtyLevel >=
|
|
445
|
+
if (this._dirtyLevel >= 5) {
|
|
442
446
|
break;
|
|
443
447
|
}
|
|
444
448
|
}
|
|
@@ -448,10 +452,10 @@ class ReactiveEffect {
|
|
|
448
452
|
}
|
|
449
453
|
resetTracking();
|
|
450
454
|
}
|
|
451
|
-
return this._dirtyLevel >=
|
|
455
|
+
return this._dirtyLevel >= 5;
|
|
452
456
|
}
|
|
453
457
|
set dirty(v) {
|
|
454
|
-
this._dirtyLevel = v ?
|
|
458
|
+
this._dirtyLevel = v ? 5 : 0;
|
|
455
459
|
}
|
|
456
460
|
run() {
|
|
457
461
|
this._dirtyLevel = 0;
|
|
@@ -572,9 +576,18 @@ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
|
|
|
572
576
|
var _a;
|
|
573
577
|
pauseScheduling();
|
|
574
578
|
for (const effect2 of dep.keys()) {
|
|
579
|
+
if (!dep.computed && effect2.computed) {
|
|
580
|
+
if (dep.get(effect2) === effect2._trackId && effect2._runnings > 0) {
|
|
581
|
+
effect2._dirtyLevel = 2;
|
|
582
|
+
continue;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
575
585
|
let tracking;
|
|
576
586
|
if (effect2._dirtyLevel < dirtyLevel && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
577
587
|
effect2._shouldSchedule || (effect2._shouldSchedule = effect2._dirtyLevel === 0);
|
|
588
|
+
if (effect2.computed && effect2._dirtyLevel === 2) {
|
|
589
|
+
effect2._shouldSchedule = true;
|
|
590
|
+
}
|
|
578
591
|
effect2._dirtyLevel = dirtyLevel;
|
|
579
592
|
}
|
|
580
593
|
if (effect2._shouldSchedule && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
@@ -582,7 +595,7 @@ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
|
|
|
582
595
|
(_a = effect2.onTrigger) == null ? void 0 : _a.call(effect2, extend({ effect: effect2 }, debuggerEventExtraInfo));
|
|
583
596
|
}
|
|
584
597
|
effect2.trigger();
|
|
585
|
-
if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !==
|
|
598
|
+
if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 3) {
|
|
586
599
|
effect2._shouldSchedule = false;
|
|
587
600
|
if (effect2.scheduler) {
|
|
588
601
|
queueEffectSchedulers.push(effect2.scheduler);
|
|
@@ -674,7 +687,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
674
687
|
if (dep) {
|
|
675
688
|
triggerEffects(
|
|
676
689
|
dep,
|
|
677
|
-
|
|
690
|
+
5,
|
|
678
691
|
{
|
|
679
692
|
target,
|
|
680
693
|
type,
|
|
@@ -1277,7 +1290,7 @@ class ComputedRefImpl {
|
|
|
1277
1290
|
() => getter(this._value),
|
|
1278
1291
|
() => triggerRefValue(
|
|
1279
1292
|
this,
|
|
1280
|
-
this.effect._dirtyLevel ===
|
|
1293
|
+
this.effect._dirtyLevel === 3 ? 3 : 4
|
|
1281
1294
|
)
|
|
1282
1295
|
);
|
|
1283
1296
|
this.effect.computed = this;
|
|
@@ -1287,7 +1300,7 @@ class ComputedRefImpl {
|
|
|
1287
1300
|
get value() {
|
|
1288
1301
|
const self = toRaw(this);
|
|
1289
1302
|
if ((!self._cacheable || self.effect.dirty) && hasChanged(self._value, self._value = self.effect.run())) {
|
|
1290
|
-
triggerRefValue(self,
|
|
1303
|
+
triggerRefValue(self, 5);
|
|
1291
1304
|
}
|
|
1292
1305
|
trackRefValue(self);
|
|
1293
1306
|
if (self.effect._dirtyLevel >= 2) {
|
|
@@ -1296,7 +1309,7 @@ class ComputedRefImpl {
|
|
|
1296
1309
|
|
|
1297
1310
|
getter: `, this.getter);
|
|
1298
1311
|
}
|
|
1299
|
-
triggerRefValue(self,
|
|
1312
|
+
triggerRefValue(self, 3);
|
|
1300
1313
|
}
|
|
1301
1314
|
return self._value;
|
|
1302
1315
|
}
|
|
@@ -1351,7 +1364,7 @@ function trackRefValue(ref2) {
|
|
|
1351
1364
|
);
|
|
1352
1365
|
}
|
|
1353
1366
|
}
|
|
1354
|
-
function triggerRefValue(ref2, dirtyLevel =
|
|
1367
|
+
function triggerRefValue(ref2, dirtyLevel = 5, newVal, oldVal) {
|
|
1355
1368
|
ref2 = toRaw(ref2);
|
|
1356
1369
|
const dep = ref2.dep;
|
|
1357
1370
|
if (dep) {
|
|
@@ -1402,12 +1415,12 @@ class RefImpl {
|
|
|
1402
1415
|
const oldVal = this._rawValue;
|
|
1403
1416
|
this._rawValue = newVal;
|
|
1404
1417
|
this._value = useDirectValue ? newVal : toReactive(newVal);
|
|
1405
|
-
triggerRefValue(this,
|
|
1418
|
+
triggerRefValue(this, 5, newVal, oldVal);
|
|
1406
1419
|
}
|
|
1407
1420
|
}
|
|
1408
1421
|
}
|
|
1409
1422
|
function triggerRef(ref2) {
|
|
1410
|
-
triggerRefValue(ref2,
|
|
1423
|
+
triggerRefValue(ref2, 5, ref2.value );
|
|
1411
1424
|
}
|
|
1412
1425
|
function unref(ref2) {
|
|
1413
1426
|
return isRef(ref2) ? ref2.value : ref2;
|
|
@@ -5610,7 +5623,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
5610
5623
|
return vm;
|
|
5611
5624
|
}
|
|
5612
5625
|
}
|
|
5613
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
5626
|
+
Vue.version = `2.6.14-compat:${"3.4.29"}`;
|
|
5614
5627
|
Vue.config = singletonApp.config;
|
|
5615
5628
|
Vue.use = (plugin, ...options) => {
|
|
5616
5629
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -11324,7 +11337,7 @@ function isMemoSame(cached, memo) {
|
|
|
11324
11337
|
return true;
|
|
11325
11338
|
}
|
|
11326
11339
|
|
|
11327
|
-
const version = "3.4.
|
|
11340
|
+
const version = "3.4.29";
|
|
11328
11341
|
const warn = warn$1 ;
|
|
11329
11342
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11330
11343
|
const devtools = devtools$1 ;
|
|
@@ -12201,8 +12214,8 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
12201
12214
|
|
|
12202
12215
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
12203
12216
|
// @__NO_SIDE_EFFECTS__
|
|
12204
|
-
function defineCustomElement(options, hydrate2) {
|
|
12205
|
-
const Comp = defineComponent(options);
|
|
12217
|
+
function defineCustomElement(options, extraOptions, hydrate2) {
|
|
12218
|
+
const Comp = defineComponent(options, extraOptions);
|
|
12206
12219
|
class VueCustomElement extends VueElement {
|
|
12207
12220
|
constructor(initialProps) {
|
|
12208
12221
|
super(Comp, initialProps, hydrate2);
|
|
@@ -12212,8 +12225,8 @@ function defineCustomElement(options, hydrate2) {
|
|
|
12212
12225
|
return VueCustomElement;
|
|
12213
12226
|
}
|
|
12214
12227
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
12215
|
-
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options) => {
|
|
12216
|
-
return /* @__PURE__ */ defineCustomElement(options, hydrate);
|
|
12228
|
+
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
12229
|
+
return /* @__PURE__ */ defineCustomElement(options, extraOptions, hydrate);
|
|
12217
12230
|
};
|
|
12218
12231
|
const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
|
|
12219
12232
|
};
|