@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 if (!!(process.env.NODE_ENV !== "production")) {
|
|
416
|
+
} else if (!!(process.env.NODE_ENV !== "production") && 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() {
|
|
@@ -7496,7 +7506,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7496
7506
|
return vm;
|
|
7497
7507
|
}
|
|
7498
7508
|
}
|
|
7499
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7509
|
+
Vue.version = `2.6.14-compat:${"3.5.34"}`;
|
|
7500
7510
|
Vue.config = singletonApp.config;
|
|
7501
7511
|
Vue.use = (plugin, ...options) => {
|
|
7502
7512
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -9133,7 +9143,7 @@ function getInvalidTypeMessage(name, value, expectedTypes) {
|
|
|
9133
9143
|
const receivedType = toRawType(value);
|
|
9134
9144
|
const expectedValue = styleValue(value, expectedType);
|
|
9135
9145
|
const receivedValue = styleValue(value, receivedType);
|
|
9136
|
-
if (expectedTypes.length === 1 && isExplicable(expectedType) &&
|
|
9146
|
+
if (expectedTypes.length === 1 && isExplicable(expectedType) && isCoercible(expectedType, receivedType)) {
|
|
9137
9147
|
message += ` with value ${expectedValue}`;
|
|
9138
9148
|
}
|
|
9139
9149
|
message += `, got ${receivedType} `;
|
|
@@ -9143,7 +9153,9 @@ function getInvalidTypeMessage(name, value, expectedTypes) {
|
|
|
9143
9153
|
return message;
|
|
9144
9154
|
}
|
|
9145
9155
|
function styleValue(value, type) {
|
|
9146
|
-
if (
|
|
9156
|
+
if (isSymbol(value)) {
|
|
9157
|
+
return value.toString();
|
|
9158
|
+
} else if (type === "String") {
|
|
9147
9159
|
return `"${value}"`;
|
|
9148
9160
|
} else if (type === "Number") {
|
|
9149
9161
|
return `${Number(value)}`;
|
|
@@ -9155,8 +9167,11 @@ function isExplicable(type) {
|
|
|
9155
9167
|
const explicitTypes = ["string", "number", "boolean"];
|
|
9156
9168
|
return explicitTypes.some((elem) => type.toLowerCase() === elem);
|
|
9157
9169
|
}
|
|
9158
|
-
function
|
|
9159
|
-
return args.
|
|
9170
|
+
function isCoercible(...args) {
|
|
9171
|
+
return args.every((elem) => {
|
|
9172
|
+
const value = elem.toLowerCase();
|
|
9173
|
+
return value !== "boolean" && value !== "symbol";
|
|
9174
|
+
});
|
|
9160
9175
|
}
|
|
9161
9176
|
|
|
9162
9177
|
const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
|
|
@@ -11248,13 +11263,14 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
11248
11263
|
suspense.isHydrating = false;
|
|
11249
11264
|
} else if (!resume) {
|
|
11250
11265
|
delayEnter = activeBranch && pendingBranch.transition && pendingBranch.transition.mode === "out-in";
|
|
11266
|
+
let hasUpdatedAnchor = false;
|
|
11251
11267
|
if (delayEnter) {
|
|
11252
11268
|
activeBranch.transition.afterLeave = () => {
|
|
11253
11269
|
if (pendingId === suspense.pendingId) {
|
|
11254
11270
|
move(
|
|
11255
11271
|
pendingBranch,
|
|
11256
11272
|
container2,
|
|
11257
|
-
anchor === initialAnchor ? next(activeBranch) : anchor,
|
|
11273
|
+
anchor === initialAnchor && !hasUpdatedAnchor ? next(activeBranch) : anchor,
|
|
11258
11274
|
0
|
|
11259
11275
|
);
|
|
11260
11276
|
queuePostFlushCb(effects);
|
|
@@ -11267,6 +11283,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
11267
11283
|
if (activeBranch && !suspense.isFallbackMountPending) {
|
|
11268
11284
|
if (parentNode(activeBranch.el) === container2) {
|
|
11269
11285
|
anchor = next(activeBranch);
|
|
11286
|
+
hasUpdatedAnchor = true;
|
|
11270
11287
|
}
|
|
11271
11288
|
unmount(activeBranch, parentComponent2, suspense, true);
|
|
11272
11289
|
if (!delayEnter && isInFallback && vnode2.ssFallback) {
|
|
@@ -12666,7 +12683,7 @@ function isMemoSame(cached, memo) {
|
|
|
12666
12683
|
return true;
|
|
12667
12684
|
}
|
|
12668
12685
|
|
|
12669
|
-
const version = "3.5.
|
|
12686
|
+
const version = "3.5.34";
|
|
12670
12687
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
12671
12688
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12672
12689
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -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
|
**/
|
|
@@ -357,12 +357,18 @@ var Vue = (function () {
|
|
|
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 Vue = (function () {
|
|
|
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 Vue = (function () {
|
|
|
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() {
|
|
@@ -7430,7 +7440,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
7430
7440
|
return vm;
|
|
7431
7441
|
}
|
|
7432
7442
|
}
|
|
7433
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7443
|
+
Vue.version = `2.6.14-compat:${"3.5.34"}`;
|
|
7434
7444
|
Vue.config = singletonApp.config;
|
|
7435
7445
|
Vue.use = (plugin, ...options) => {
|
|
7436
7446
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -9065,7 +9075,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9065
9075
|
const receivedType = toRawType(value);
|
|
9066
9076
|
const expectedValue = styleValue(value, expectedType);
|
|
9067
9077
|
const receivedValue = styleValue(value, receivedType);
|
|
9068
|
-
if (expectedTypes.length === 1 && isExplicable(expectedType) &&
|
|
9078
|
+
if (expectedTypes.length === 1 && isExplicable(expectedType) && isCoercible(expectedType, receivedType)) {
|
|
9069
9079
|
message += ` with value ${expectedValue}`;
|
|
9070
9080
|
}
|
|
9071
9081
|
message += `, got ${receivedType} `;
|
|
@@ -9075,7 +9085,9 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9075
9085
|
return message;
|
|
9076
9086
|
}
|
|
9077
9087
|
function styleValue(value, type) {
|
|
9078
|
-
if (
|
|
9088
|
+
if (isSymbol(value)) {
|
|
9089
|
+
return value.toString();
|
|
9090
|
+
} else if (type === "String") {
|
|
9079
9091
|
return `"${value}"`;
|
|
9080
9092
|
} else if (type === "Number") {
|
|
9081
9093
|
return `${Number(value)}`;
|
|
@@ -9087,8 +9099,11 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9087
9099
|
const explicitTypes = ["string", "number", "boolean"];
|
|
9088
9100
|
return explicitTypes.some((elem) => type.toLowerCase() === elem);
|
|
9089
9101
|
}
|
|
9090
|
-
function
|
|
9091
|
-
return args.
|
|
9102
|
+
function isCoercible(...args) {
|
|
9103
|
+
return args.every((elem) => {
|
|
9104
|
+
const value = elem.toLowerCase();
|
|
9105
|
+
return value !== "boolean" && value !== "symbol";
|
|
9106
|
+
});
|
|
9092
9107
|
}
|
|
9093
9108
|
|
|
9094
9109
|
const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
|
|
@@ -11142,13 +11157,14 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
11142
11157
|
suspense.isHydrating = false;
|
|
11143
11158
|
} else if (!resume) {
|
|
11144
11159
|
delayEnter = activeBranch && pendingBranch.transition && pendingBranch.transition.mode === "out-in";
|
|
11160
|
+
let hasUpdatedAnchor = false;
|
|
11145
11161
|
if (delayEnter) {
|
|
11146
11162
|
activeBranch.transition.afterLeave = () => {
|
|
11147
11163
|
if (pendingId === suspense.pendingId) {
|
|
11148
11164
|
move(
|
|
11149
11165
|
pendingBranch,
|
|
11150
11166
|
container2,
|
|
11151
|
-
anchor === initialAnchor ? next(activeBranch) : anchor,
|
|
11167
|
+
anchor === initialAnchor && !hasUpdatedAnchor ? next(activeBranch) : anchor,
|
|
11152
11168
|
0
|
|
11153
11169
|
);
|
|
11154
11170
|
queuePostFlushCb(effects);
|
|
@@ -11161,6 +11177,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
11161
11177
|
if (activeBranch && !suspense.isFallbackMountPending) {
|
|
11162
11178
|
if (parentNode(activeBranch.el) === container2) {
|
|
11163
11179
|
anchor = next(activeBranch);
|
|
11180
|
+
hasUpdatedAnchor = true;
|
|
11164
11181
|
}
|
|
11165
11182
|
unmount(activeBranch, parentComponent2, suspense, true);
|
|
11166
11183
|
if (!delayEnter && isInFallback && vnode2.ssFallback) {
|
|
@@ -12532,7 +12549,7 @@ Component that was made reactive: `,
|
|
|
12532
12549
|
return true;
|
|
12533
12550
|
}
|
|
12534
12551
|
|
|
12535
|
-
const version = "3.5.
|
|
12552
|
+
const version = "3.5.34";
|
|
12536
12553
|
const warn = warn$1 ;
|
|
12537
12554
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12538
12555
|
const devtools = devtools$1 ;
|