@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
|
!!(process.env.NODE_ENV !== "production") ? {
|
|
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, !!(process.env.NODE_ENV !== "production") ? ref2.value : void 0);
|
|
1411
1424
|
}
|
|
1412
1425
|
function unref(ref2) {
|
|
1413
1426
|
return isRef(ref2) ? ref2.value : ref2;
|
|
@@ -5618,7 +5631,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
5618
5631
|
return vm;
|
|
5619
5632
|
}
|
|
5620
5633
|
}
|
|
5621
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
5634
|
+
Vue.version = `2.6.14-compat:${"3.4.29"}`;
|
|
5622
5635
|
Vue.config = singletonApp.config;
|
|
5623
5636
|
Vue.use = (plugin, ...options) => {
|
|
5624
5637
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -11437,7 +11450,7 @@ function isMemoSame(cached, memo) {
|
|
|
11437
11450
|
return true;
|
|
11438
11451
|
}
|
|
11439
11452
|
|
|
11440
|
-
const version = "3.4.
|
|
11453
|
+
const version = "3.4.29";
|
|
11441
11454
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11442
11455
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11443
11456
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -12330,8 +12343,8 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
12330
12343
|
|
|
12331
12344
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
12332
12345
|
// @__NO_SIDE_EFFECTS__
|
|
12333
|
-
function defineCustomElement(options, hydrate2) {
|
|
12334
|
-
const Comp = defineComponent(options);
|
|
12346
|
+
function defineCustomElement(options, extraOptions, hydrate2) {
|
|
12347
|
+
const Comp = defineComponent(options, extraOptions);
|
|
12335
12348
|
class VueCustomElement extends VueElement {
|
|
12336
12349
|
constructor(initialProps) {
|
|
12337
12350
|
super(Comp, initialProps, hydrate2);
|
|
@@ -12341,8 +12354,8 @@ function defineCustomElement(options, hydrate2) {
|
|
|
12341
12354
|
return VueCustomElement;
|
|
12342
12355
|
}
|
|
12343
12356
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
12344
|
-
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options) => {
|
|
12345
|
-
return /* @__PURE__ */ defineCustomElement(options, hydrate);
|
|
12357
|
+
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
12358
|
+
return /* @__PURE__ */ defineCustomElement(options, extraOptions, hydrate);
|
|
12346
12359
|
};
|
|
12347
12360
|
const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
|
|
12348
12361
|
};
|
|
@@ -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
|
**/
|
|
@@ -414,7 +414,7 @@ var Vue = (function () {
|
|
|
414
414
|
/**
|
|
415
415
|
* @internal
|
|
416
416
|
*/
|
|
417
|
-
this._dirtyLevel =
|
|
417
|
+
this._dirtyLevel = 5;
|
|
418
418
|
/**
|
|
419
419
|
* @internal
|
|
420
420
|
*/
|
|
@@ -434,14 +434,18 @@ var Vue = (function () {
|
|
|
434
434
|
recordEffectScope(this, scope);
|
|
435
435
|
}
|
|
436
436
|
get dirty() {
|
|
437
|
-
if (this._dirtyLevel === 2
|
|
437
|
+
if (this._dirtyLevel === 2)
|
|
438
|
+
return false;
|
|
439
|
+
if (this._dirtyLevel === 3 || this._dirtyLevel === 4) {
|
|
438
440
|
this._dirtyLevel = 1;
|
|
439
441
|
pauseTracking();
|
|
440
442
|
for (let i = 0; i < this._depsLength; i++) {
|
|
441
443
|
const dep = this.deps[i];
|
|
442
444
|
if (dep.computed) {
|
|
445
|
+
if (dep.computed.effect._dirtyLevel === 2)
|
|
446
|
+
return true;
|
|
443
447
|
triggerComputed(dep.computed);
|
|
444
|
-
if (this._dirtyLevel >=
|
|
448
|
+
if (this._dirtyLevel >= 5) {
|
|
445
449
|
break;
|
|
446
450
|
}
|
|
447
451
|
}
|
|
@@ -451,10 +455,10 @@ var Vue = (function () {
|
|
|
451
455
|
}
|
|
452
456
|
resetTracking();
|
|
453
457
|
}
|
|
454
|
-
return this._dirtyLevel >=
|
|
458
|
+
return this._dirtyLevel >= 5;
|
|
455
459
|
}
|
|
456
460
|
set dirty(v) {
|
|
457
|
-
this._dirtyLevel = v ?
|
|
461
|
+
this._dirtyLevel = v ? 5 : 0;
|
|
458
462
|
}
|
|
459
463
|
run() {
|
|
460
464
|
this._dirtyLevel = 0;
|
|
@@ -575,9 +579,18 @@ var Vue = (function () {
|
|
|
575
579
|
var _a;
|
|
576
580
|
pauseScheduling();
|
|
577
581
|
for (const effect2 of dep.keys()) {
|
|
582
|
+
if (!dep.computed && effect2.computed) {
|
|
583
|
+
if (dep.get(effect2) === effect2._trackId && effect2._runnings > 0) {
|
|
584
|
+
effect2._dirtyLevel = 2;
|
|
585
|
+
continue;
|
|
586
|
+
}
|
|
587
|
+
}
|
|
578
588
|
let tracking;
|
|
579
589
|
if (effect2._dirtyLevel < dirtyLevel && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
580
590
|
effect2._shouldSchedule || (effect2._shouldSchedule = effect2._dirtyLevel === 0);
|
|
591
|
+
if (effect2.computed && effect2._dirtyLevel === 2) {
|
|
592
|
+
effect2._shouldSchedule = true;
|
|
593
|
+
}
|
|
581
594
|
effect2._dirtyLevel = dirtyLevel;
|
|
582
595
|
}
|
|
583
596
|
if (effect2._shouldSchedule && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
@@ -585,7 +598,7 @@ var Vue = (function () {
|
|
|
585
598
|
(_a = effect2.onTrigger) == null ? void 0 : _a.call(effect2, extend({ effect: effect2 }, debuggerEventExtraInfo));
|
|
586
599
|
}
|
|
587
600
|
effect2.trigger();
|
|
588
|
-
if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !==
|
|
601
|
+
if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 3) {
|
|
589
602
|
effect2._shouldSchedule = false;
|
|
590
603
|
if (effect2.scheduler) {
|
|
591
604
|
queueEffectSchedulers.push(effect2.scheduler);
|
|
@@ -677,7 +690,7 @@ var Vue = (function () {
|
|
|
677
690
|
if (dep) {
|
|
678
691
|
triggerEffects(
|
|
679
692
|
dep,
|
|
680
|
-
|
|
693
|
+
5,
|
|
681
694
|
{
|
|
682
695
|
target,
|
|
683
696
|
type,
|
|
@@ -1280,7 +1293,7 @@ var Vue = (function () {
|
|
|
1280
1293
|
() => getter(this._value),
|
|
1281
1294
|
() => triggerRefValue(
|
|
1282
1295
|
this,
|
|
1283
|
-
this.effect._dirtyLevel ===
|
|
1296
|
+
this.effect._dirtyLevel === 3 ? 3 : 4
|
|
1284
1297
|
)
|
|
1285
1298
|
);
|
|
1286
1299
|
this.effect.computed = this;
|
|
@@ -1290,7 +1303,7 @@ var Vue = (function () {
|
|
|
1290
1303
|
get value() {
|
|
1291
1304
|
const self = toRaw(this);
|
|
1292
1305
|
if ((!self._cacheable || self.effect.dirty) && hasChanged(self._value, self._value = self.effect.run())) {
|
|
1293
|
-
triggerRefValue(self,
|
|
1306
|
+
triggerRefValue(self, 5);
|
|
1294
1307
|
}
|
|
1295
1308
|
trackRefValue(self);
|
|
1296
1309
|
if (self.effect._dirtyLevel >= 2) {
|
|
@@ -1299,7 +1312,7 @@ var Vue = (function () {
|
|
|
1299
1312
|
|
|
1300
1313
|
getter: `, this.getter);
|
|
1301
1314
|
}
|
|
1302
|
-
triggerRefValue(self,
|
|
1315
|
+
triggerRefValue(self, 3);
|
|
1303
1316
|
}
|
|
1304
1317
|
return self._value;
|
|
1305
1318
|
}
|
|
@@ -1354,7 +1367,7 @@ getter: `, this.getter);
|
|
|
1354
1367
|
);
|
|
1355
1368
|
}
|
|
1356
1369
|
}
|
|
1357
|
-
function triggerRefValue(ref2, dirtyLevel =
|
|
1370
|
+
function triggerRefValue(ref2, dirtyLevel = 5, newVal, oldVal) {
|
|
1358
1371
|
ref2 = toRaw(ref2);
|
|
1359
1372
|
const dep = ref2.dep;
|
|
1360
1373
|
if (dep) {
|
|
@@ -1405,12 +1418,12 @@ getter: `, this.getter);
|
|
|
1405
1418
|
const oldVal = this._rawValue;
|
|
1406
1419
|
this._rawValue = newVal;
|
|
1407
1420
|
this._value = useDirectValue ? newVal : toReactive(newVal);
|
|
1408
|
-
triggerRefValue(this,
|
|
1421
|
+
triggerRefValue(this, 5, newVal, oldVal);
|
|
1409
1422
|
}
|
|
1410
1423
|
}
|
|
1411
1424
|
}
|
|
1412
1425
|
function triggerRef(ref2) {
|
|
1413
|
-
triggerRefValue(ref2,
|
|
1426
|
+
triggerRefValue(ref2, 5, ref2.value );
|
|
1414
1427
|
}
|
|
1415
1428
|
function unref(ref2) {
|
|
1416
1429
|
return isRef(ref2) ? ref2.value : ref2;
|
|
@@ -5613,7 +5626,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5613
5626
|
return vm;
|
|
5614
5627
|
}
|
|
5615
5628
|
}
|
|
5616
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
5629
|
+
Vue.version = `2.6.14-compat:${"3.4.29"}`;
|
|
5617
5630
|
Vue.config = singletonApp.config;
|
|
5618
5631
|
Vue.use = (plugin, ...options) => {
|
|
5619
5632
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -11321,7 +11334,7 @@ Component that was made reactive: `,
|
|
|
11321
11334
|
return true;
|
|
11322
11335
|
}
|
|
11323
11336
|
|
|
11324
|
-
const version = "3.4.
|
|
11337
|
+
const version = "3.4.29";
|
|
11325
11338
|
const warn = warn$1 ;
|
|
11326
11339
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11327
11340
|
const devtools = devtools$1 ;
|
|
@@ -12198,8 +12211,8 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
12198
12211
|
|
|
12199
12212
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
12200
12213
|
// @__NO_SIDE_EFFECTS__
|
|
12201
|
-
function defineCustomElement(options, hydrate2) {
|
|
12202
|
-
const Comp = defineComponent(options);
|
|
12214
|
+
function defineCustomElement(options, extraOptions, hydrate2) {
|
|
12215
|
+
const Comp = defineComponent(options, extraOptions);
|
|
12203
12216
|
class VueCustomElement extends VueElement {
|
|
12204
12217
|
constructor(initialProps) {
|
|
12205
12218
|
super(Comp, initialProps, hydrate2);
|
|
@@ -12209,8 +12222,8 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
12209
12222
|
return VueCustomElement;
|
|
12210
12223
|
}
|
|
12211
12224
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
12212
|
-
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options) => {
|
|
12213
|
-
return /* @__PURE__ */ defineCustomElement(options, hydrate);
|
|
12225
|
+
const defineSSRCustomElement = /* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
|
|
12226
|
+
return /* @__PURE__ */ defineCustomElement(options, extraOptions, hydrate);
|
|
12214
12227
|
};
|
|
12215
12228
|
const BaseClass = typeof HTMLElement !== "undefined" ? HTMLElement : class {
|
|
12216
12229
|
};
|