@vue/compat 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/vue.cjs.js +32 -15
- package/dist/vue.cjs.prod.js +22 -10
- package/dist/vue.esm-browser.js +32 -15
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +32 -15
- package/dist/vue.global.js +32 -15
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +32 -15
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +32 -15
- package/dist/vue.runtime.global.js +32 -15
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.34
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -354,12 +354,18 @@ class EffectScope {
|
|
|
354
354
|
*/
|
|
355
355
|
this.cleanups = [];
|
|
356
356
|
this._isPaused = false;
|
|
357
|
+
this._warnOnRun = true;
|
|
357
358
|
this.__v_skip = true;
|
|
358
|
-
this.parent = activeEffectScope;
|
|
359
359
|
if (!detached && activeEffectScope) {
|
|
360
|
-
|
|
361
|
-
this
|
|
362
|
-
|
|
360
|
+
if (activeEffectScope.active) {
|
|
361
|
+
this.parent = activeEffectScope;
|
|
362
|
+
this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
|
|
363
|
+
this
|
|
364
|
+
) - 1;
|
|
365
|
+
} else {
|
|
366
|
+
this._active = false;
|
|
367
|
+
this._warnOnRun = false;
|
|
368
|
+
}
|
|
363
369
|
}
|
|
364
370
|
}
|
|
365
371
|
get active() {
|
|
@@ -407,7 +413,7 @@ class EffectScope {
|
|
|
407
413
|
} finally {
|
|
408
414
|
activeEffectScope = currentEffectScope;
|
|
409
415
|
}
|
|
410
|
-
} else {
|
|
416
|
+
} else if (this._warnOnRun) {
|
|
411
417
|
warn$2(`cannot run an inactive effect scope.`);
|
|
412
418
|
}
|
|
413
419
|
}
|
|
@@ -513,8 +519,12 @@ class ReactiveEffect {
|
|
|
513
519
|
*/
|
|
514
520
|
this.cleanup = void 0;
|
|
515
521
|
this.scheduler = void 0;
|
|
516
|
-
if (activeEffectScope
|
|
517
|
-
activeEffectScope.
|
|
522
|
+
if (activeEffectScope) {
|
|
523
|
+
if (activeEffectScope.active) {
|
|
524
|
+
activeEffectScope.effects.push(this);
|
|
525
|
+
} else {
|
|
526
|
+
this.flags &= -2;
|
|
527
|
+
}
|
|
518
528
|
}
|
|
519
529
|
}
|
|
520
530
|
pause() {
|
|
@@ -7464,7 +7474,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7464
7474
|
return vm;
|
|
7465
7475
|
}
|
|
7466
7476
|
}
|
|
7467
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7477
|
+
Vue.version = `2.6.14-compat:${"3.5.34"}`;
|
|
7468
7478
|
Vue.config = singletonApp.config;
|
|
7469
7479
|
Vue.use = (plugin, ...options) => {
|
|
7470
7480
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -9099,7 +9109,7 @@ function getInvalidTypeMessage(name, value, expectedTypes) {
|
|
|
9099
9109
|
const receivedType = toRawType(value);
|
|
9100
9110
|
const expectedValue = styleValue(value, expectedType);
|
|
9101
9111
|
const receivedValue = styleValue(value, receivedType);
|
|
9102
|
-
if (expectedTypes.length === 1 && isExplicable(expectedType) &&
|
|
9112
|
+
if (expectedTypes.length === 1 && isExplicable(expectedType) && isCoercible(expectedType, receivedType)) {
|
|
9103
9113
|
message += ` with value ${expectedValue}`;
|
|
9104
9114
|
}
|
|
9105
9115
|
message += `, got ${receivedType} `;
|
|
@@ -9109,7 +9119,9 @@ function getInvalidTypeMessage(name, value, expectedTypes) {
|
|
|
9109
9119
|
return message;
|
|
9110
9120
|
}
|
|
9111
9121
|
function styleValue(value, type) {
|
|
9112
|
-
if (
|
|
9122
|
+
if (isSymbol(value)) {
|
|
9123
|
+
return value.toString();
|
|
9124
|
+
} else if (type === "String") {
|
|
9113
9125
|
return `"${value}"`;
|
|
9114
9126
|
} else if (type === "Number") {
|
|
9115
9127
|
return `${Number(value)}`;
|
|
@@ -9121,8 +9133,11 @@ function isExplicable(type) {
|
|
|
9121
9133
|
const explicitTypes = ["string", "number", "boolean"];
|
|
9122
9134
|
return explicitTypes.some((elem) => type.toLowerCase() === elem);
|
|
9123
9135
|
}
|
|
9124
|
-
function
|
|
9125
|
-
return args.
|
|
9136
|
+
function isCoercible(...args) {
|
|
9137
|
+
return args.every((elem) => {
|
|
9138
|
+
const value = elem.toLowerCase();
|
|
9139
|
+
return value !== "boolean" && value !== "symbol";
|
|
9140
|
+
});
|
|
9126
9141
|
}
|
|
9127
9142
|
|
|
9128
9143
|
const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
|
|
@@ -11176,13 +11191,14 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
11176
11191
|
suspense.isHydrating = false;
|
|
11177
11192
|
} else if (!resume) {
|
|
11178
11193
|
delayEnter = activeBranch && pendingBranch.transition && pendingBranch.transition.mode === "out-in";
|
|
11194
|
+
let hasUpdatedAnchor = false;
|
|
11179
11195
|
if (delayEnter) {
|
|
11180
11196
|
activeBranch.transition.afterLeave = () => {
|
|
11181
11197
|
if (pendingId === suspense.pendingId) {
|
|
11182
11198
|
move(
|
|
11183
11199
|
pendingBranch,
|
|
11184
11200
|
container2,
|
|
11185
|
-
anchor === initialAnchor ? next(activeBranch) : anchor,
|
|
11201
|
+
anchor === initialAnchor && !hasUpdatedAnchor ? next(activeBranch) : anchor,
|
|
11186
11202
|
0
|
|
11187
11203
|
);
|
|
11188
11204
|
queuePostFlushCb(effects);
|
|
@@ -11195,6 +11211,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
11195
11211
|
if (activeBranch && !suspense.isFallbackMountPending) {
|
|
11196
11212
|
if (parentNode(activeBranch.el) === container2) {
|
|
11197
11213
|
anchor = next(activeBranch);
|
|
11214
|
+
hasUpdatedAnchor = true;
|
|
11198
11215
|
}
|
|
11199
11216
|
unmount(activeBranch, parentComponent2, suspense, true);
|
|
11200
11217
|
if (!delayEnter && isInFallback && vnode2.ssFallback) {
|
|
@@ -12580,7 +12597,7 @@ function isMemoSame(cached, memo) {
|
|
|
12580
12597
|
return true;
|
|
12581
12598
|
}
|
|
12582
12599
|
|
|
12583
|
-
const version = "3.5.
|
|
12600
|
+
const version = "3.5.34";
|
|
12584
12601
|
const warn = warn$1 ;
|
|
12585
12602
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12586
12603
|
const devtools = devtools$1 ;
|