@vue/runtime-dom 3.5.33 → 3.5.34
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/runtime-dom.cjs.js +1 -1
- package/dist/runtime-dom.cjs.prod.js +1 -1
- package/dist/runtime-dom.esm-browser.js +31 -14
- package/dist/runtime-dom.esm-browser.prod.js +3 -3
- package/dist/runtime-dom.esm-bundler.js +1 -1
- package/dist/runtime-dom.global.js +31 -14
- package/dist/runtime-dom.global.prod.js +3 -3
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.5.
|
|
2
|
+
* @vue/runtime-dom v3.5.34
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -357,12 +357,18 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
357
357
|
*/
|
|
358
358
|
this.cleanups = [];
|
|
359
359
|
this._isPaused = false;
|
|
360
|
+
this._warnOnRun = true;
|
|
360
361
|
this.__v_skip = true;
|
|
361
|
-
this.parent = activeEffectScope;
|
|
362
362
|
if (!detached && activeEffectScope) {
|
|
363
|
-
|
|
364
|
-
this
|
|
365
|
-
|
|
363
|
+
if (activeEffectScope.active) {
|
|
364
|
+
this.parent = activeEffectScope;
|
|
365
|
+
this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
|
|
366
|
+
this
|
|
367
|
+
) - 1;
|
|
368
|
+
} else {
|
|
369
|
+
this._active = false;
|
|
370
|
+
this._warnOnRun = false;
|
|
371
|
+
}
|
|
366
372
|
}
|
|
367
373
|
}
|
|
368
374
|
get active() {
|
|
@@ -410,7 +416,7 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
410
416
|
} finally {
|
|
411
417
|
activeEffectScope = currentEffectScope;
|
|
412
418
|
}
|
|
413
|
-
} else {
|
|
419
|
+
} else if (this._warnOnRun) {
|
|
414
420
|
warn$2(`cannot run an inactive effect scope.`);
|
|
415
421
|
}
|
|
416
422
|
}
|
|
@@ -516,8 +522,12 @@ var VueRuntimeDOM = (function (exports) {
|
|
|
516
522
|
*/
|
|
517
523
|
this.cleanup = void 0;
|
|
518
524
|
this.scheduler = void 0;
|
|
519
|
-
if (activeEffectScope
|
|
520
|
-
activeEffectScope.
|
|
525
|
+
if (activeEffectScope) {
|
|
526
|
+
if (activeEffectScope.active) {
|
|
527
|
+
activeEffectScope.effects.push(this);
|
|
528
|
+
} else {
|
|
529
|
+
this.flags &= -2;
|
|
530
|
+
}
|
|
521
531
|
}
|
|
522
532
|
}
|
|
523
533
|
pause() {
|
|
@@ -7408,7 +7418,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7408
7418
|
const receivedType = toRawType(value);
|
|
7409
7419
|
const expectedValue = styleValue(value, expectedType);
|
|
7410
7420
|
const receivedValue = styleValue(value, receivedType);
|
|
7411
|
-
if (expectedTypes.length === 1 && isExplicable(expectedType) &&
|
|
7421
|
+
if (expectedTypes.length === 1 && isExplicable(expectedType) && isCoercible(expectedType, receivedType)) {
|
|
7412
7422
|
message += ` with value ${expectedValue}`;
|
|
7413
7423
|
}
|
|
7414
7424
|
message += `, got ${receivedType} `;
|
|
@@ -7418,7 +7428,9 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7418
7428
|
return message;
|
|
7419
7429
|
}
|
|
7420
7430
|
function styleValue(value, type) {
|
|
7421
|
-
if (
|
|
7431
|
+
if (isSymbol(value)) {
|
|
7432
|
+
return value.toString();
|
|
7433
|
+
} else if (type === "String") {
|
|
7422
7434
|
return `"${value}"`;
|
|
7423
7435
|
} else if (type === "Number") {
|
|
7424
7436
|
return `${Number(value)}`;
|
|
@@ -7430,8 +7442,11 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7430
7442
|
const explicitTypes = ["string", "number", "boolean"];
|
|
7431
7443
|
return explicitTypes.some((elem) => type.toLowerCase() === elem);
|
|
7432
7444
|
}
|
|
7433
|
-
function
|
|
7434
|
-
return args.
|
|
7445
|
+
function isCoercible(...args) {
|
|
7446
|
+
return args.every((elem) => {
|
|
7447
|
+
const value = elem.toLowerCase();
|
|
7448
|
+
return value !== "boolean" && value !== "symbol";
|
|
7449
|
+
});
|
|
7435
7450
|
}
|
|
7436
7451
|
|
|
7437
7452
|
const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
|
|
@@ -9451,13 +9466,14 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9451
9466
|
suspense.isHydrating = false;
|
|
9452
9467
|
} else if (!resume) {
|
|
9453
9468
|
delayEnter = activeBranch && pendingBranch.transition && pendingBranch.transition.mode === "out-in";
|
|
9469
|
+
let hasUpdatedAnchor = false;
|
|
9454
9470
|
if (delayEnter) {
|
|
9455
9471
|
activeBranch.transition.afterLeave = () => {
|
|
9456
9472
|
if (pendingId === suspense.pendingId) {
|
|
9457
9473
|
move(
|
|
9458
9474
|
pendingBranch,
|
|
9459
9475
|
container2,
|
|
9460
|
-
anchor === initialAnchor ? next(activeBranch) : anchor,
|
|
9476
|
+
anchor === initialAnchor && !hasUpdatedAnchor ? next(activeBranch) : anchor,
|
|
9461
9477
|
0
|
|
9462
9478
|
);
|
|
9463
9479
|
queuePostFlushCb(effects);
|
|
@@ -9470,6 +9486,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9470
9486
|
if (activeBranch && !suspense.isFallbackMountPending) {
|
|
9471
9487
|
if (parentNode(activeBranch.el) === container2) {
|
|
9472
9488
|
anchor = next(activeBranch);
|
|
9489
|
+
hasUpdatedAnchor = true;
|
|
9473
9490
|
}
|
|
9474
9491
|
unmount(activeBranch, parentComponent2, suspense, true);
|
|
9475
9492
|
if (!delayEnter && isInFallback && vnode2.ssFallback) {
|
|
@@ -10762,7 +10779,7 @@ Component that was made reactive: `,
|
|
|
10762
10779
|
return true;
|
|
10763
10780
|
}
|
|
10764
10781
|
|
|
10765
|
-
const version = "3.5.
|
|
10782
|
+
const version = "3.5.34";
|
|
10766
10783
|
const warn = warn$1 ;
|
|
10767
10784
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10768
10785
|
const devtools = devtools$1 ;
|