@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
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -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
|
**/
|
|
@@ -427,12 +427,18 @@ class EffectScope {
|
|
|
427
427
|
*/
|
|
428
428
|
this.cleanups = [];
|
|
429
429
|
this._isPaused = false;
|
|
430
|
+
this._warnOnRun = true;
|
|
430
431
|
this.__v_skip = true;
|
|
431
|
-
this.parent = activeEffectScope;
|
|
432
432
|
if (!detached && activeEffectScope) {
|
|
433
|
-
|
|
434
|
-
this
|
|
435
|
-
|
|
433
|
+
if (activeEffectScope.active) {
|
|
434
|
+
this.parent = activeEffectScope;
|
|
435
|
+
this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
|
|
436
|
+
this
|
|
437
|
+
) - 1;
|
|
438
|
+
} else {
|
|
439
|
+
this._active = false;
|
|
440
|
+
this._warnOnRun = false;
|
|
441
|
+
}
|
|
436
442
|
}
|
|
437
443
|
}
|
|
438
444
|
get active() {
|
|
@@ -480,7 +486,7 @@ class EffectScope {
|
|
|
480
486
|
} finally {
|
|
481
487
|
activeEffectScope = currentEffectScope;
|
|
482
488
|
}
|
|
483
|
-
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
489
|
+
} else if (!!(process.env.NODE_ENV !== "production") && this._warnOnRun) {
|
|
484
490
|
warn$2(`cannot run an inactive effect scope.`);
|
|
485
491
|
}
|
|
486
492
|
}
|
|
@@ -586,8 +592,12 @@ class ReactiveEffect {
|
|
|
586
592
|
*/
|
|
587
593
|
this.cleanup = void 0;
|
|
588
594
|
this.scheduler = void 0;
|
|
589
|
-
if (activeEffectScope
|
|
590
|
-
activeEffectScope.
|
|
595
|
+
if (activeEffectScope) {
|
|
596
|
+
if (activeEffectScope.active) {
|
|
597
|
+
activeEffectScope.effects.push(this);
|
|
598
|
+
} else {
|
|
599
|
+
this.flags &= -2;
|
|
600
|
+
}
|
|
591
601
|
}
|
|
592
602
|
}
|
|
593
603
|
pause() {
|
|
@@ -7569,7 +7579,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7569
7579
|
return vm;
|
|
7570
7580
|
}
|
|
7571
7581
|
}
|
|
7572
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7582
|
+
Vue.version = `2.6.14-compat:${"3.5.34"}`;
|
|
7573
7583
|
Vue.config = singletonApp.config;
|
|
7574
7584
|
Vue.use = (plugin, ...options) => {
|
|
7575
7585
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -9206,7 +9216,7 @@ function getInvalidTypeMessage(name, value, expectedTypes) {
|
|
|
9206
9216
|
const receivedType = toRawType(value);
|
|
9207
9217
|
const expectedValue = styleValue(value, expectedType);
|
|
9208
9218
|
const receivedValue = styleValue(value, receivedType);
|
|
9209
|
-
if (expectedTypes.length === 1 && isExplicable(expectedType) &&
|
|
9219
|
+
if (expectedTypes.length === 1 && isExplicable(expectedType) && isCoercible(expectedType, receivedType)) {
|
|
9210
9220
|
message += ` with value ${expectedValue}`;
|
|
9211
9221
|
}
|
|
9212
9222
|
message += `, got ${receivedType} `;
|
|
@@ -9216,7 +9226,9 @@ function getInvalidTypeMessage(name, value, expectedTypes) {
|
|
|
9216
9226
|
return message;
|
|
9217
9227
|
}
|
|
9218
9228
|
function styleValue(value, type) {
|
|
9219
|
-
if (
|
|
9229
|
+
if (isSymbol(value)) {
|
|
9230
|
+
return value.toString();
|
|
9231
|
+
} else if (type === "String") {
|
|
9220
9232
|
return `"${value}"`;
|
|
9221
9233
|
} else if (type === "Number") {
|
|
9222
9234
|
return `${Number(value)}`;
|
|
@@ -9228,8 +9240,11 @@ function isExplicable(type) {
|
|
|
9228
9240
|
const explicitTypes = ["string", "number", "boolean"];
|
|
9229
9241
|
return explicitTypes.some((elem) => type.toLowerCase() === elem);
|
|
9230
9242
|
}
|
|
9231
|
-
function
|
|
9232
|
-
return args.
|
|
9243
|
+
function isCoercible(...args) {
|
|
9244
|
+
return args.every((elem) => {
|
|
9245
|
+
const value = elem.toLowerCase();
|
|
9246
|
+
return value !== "boolean" && value !== "symbol";
|
|
9247
|
+
});
|
|
9233
9248
|
}
|
|
9234
9249
|
|
|
9235
9250
|
const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
|
|
@@ -11321,13 +11336,14 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
11321
11336
|
suspense.isHydrating = false;
|
|
11322
11337
|
} else if (!resume) {
|
|
11323
11338
|
delayEnter = activeBranch && pendingBranch.transition && pendingBranch.transition.mode === "out-in";
|
|
11339
|
+
let hasUpdatedAnchor = false;
|
|
11324
11340
|
if (delayEnter) {
|
|
11325
11341
|
activeBranch.transition.afterLeave = () => {
|
|
11326
11342
|
if (pendingId === suspense.pendingId) {
|
|
11327
11343
|
move(
|
|
11328
11344
|
pendingBranch,
|
|
11329
11345
|
container2,
|
|
11330
|
-
anchor === initialAnchor ? next(activeBranch) : anchor,
|
|
11346
|
+
anchor === initialAnchor && !hasUpdatedAnchor ? next(activeBranch) : anchor,
|
|
11331
11347
|
0
|
|
11332
11348
|
);
|
|
11333
11349
|
queuePostFlushCb(effects);
|
|
@@ -11340,6 +11356,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
11340
11356
|
if (activeBranch && !suspense.isFallbackMountPending) {
|
|
11341
11357
|
if (parentNode(activeBranch.el) === container2) {
|
|
11342
11358
|
anchor = next(activeBranch);
|
|
11359
|
+
hasUpdatedAnchor = true;
|
|
11343
11360
|
}
|
|
11344
11361
|
unmount(activeBranch, parentComponent2, suspense, true);
|
|
11345
11362
|
if (!delayEnter && isInFallback && vnode2.ssFallback) {
|
|
@@ -12739,7 +12756,7 @@ function isMemoSame(cached, memo) {
|
|
|
12739
12756
|
return true;
|
|
12740
12757
|
}
|
|
12741
12758
|
|
|
12742
|
-
const version = "3.5.
|
|
12759
|
+
const version = "3.5.34";
|
|
12743
12760
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
12744
12761
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12745
12762
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
package/dist/vue.global.js
CHANGED
|
@@ -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
|
**/
|
|
@@ -430,12 +430,18 @@ var Vue = (function () {
|
|
|
430
430
|
*/
|
|
431
431
|
this.cleanups = [];
|
|
432
432
|
this._isPaused = false;
|
|
433
|
+
this._warnOnRun = true;
|
|
433
434
|
this.__v_skip = true;
|
|
434
|
-
this.parent = activeEffectScope;
|
|
435
435
|
if (!detached && activeEffectScope) {
|
|
436
|
-
|
|
437
|
-
this
|
|
438
|
-
|
|
436
|
+
if (activeEffectScope.active) {
|
|
437
|
+
this.parent = activeEffectScope;
|
|
438
|
+
this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
|
|
439
|
+
this
|
|
440
|
+
) - 1;
|
|
441
|
+
} else {
|
|
442
|
+
this._active = false;
|
|
443
|
+
this._warnOnRun = false;
|
|
444
|
+
}
|
|
439
445
|
}
|
|
440
446
|
}
|
|
441
447
|
get active() {
|
|
@@ -483,7 +489,7 @@ var Vue = (function () {
|
|
|
483
489
|
} finally {
|
|
484
490
|
activeEffectScope = currentEffectScope;
|
|
485
491
|
}
|
|
486
|
-
} else {
|
|
492
|
+
} else if (this._warnOnRun) {
|
|
487
493
|
warn$2(`cannot run an inactive effect scope.`);
|
|
488
494
|
}
|
|
489
495
|
}
|
|
@@ -589,8 +595,12 @@ var Vue = (function () {
|
|
|
589
595
|
*/
|
|
590
596
|
this.cleanup = void 0;
|
|
591
597
|
this.scheduler = void 0;
|
|
592
|
-
if (activeEffectScope
|
|
593
|
-
activeEffectScope.
|
|
598
|
+
if (activeEffectScope) {
|
|
599
|
+
if (activeEffectScope.active) {
|
|
600
|
+
activeEffectScope.effects.push(this);
|
|
601
|
+
} else {
|
|
602
|
+
this.flags &= -2;
|
|
603
|
+
}
|
|
594
604
|
}
|
|
595
605
|
}
|
|
596
606
|
pause() {
|
|
@@ -7503,7 +7513,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
7503
7513
|
return vm;
|
|
7504
7514
|
}
|
|
7505
7515
|
}
|
|
7506
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7516
|
+
Vue.version = `2.6.14-compat:${"3.5.34"}`;
|
|
7507
7517
|
Vue.config = singletonApp.config;
|
|
7508
7518
|
Vue.use = (plugin, ...options) => {
|
|
7509
7519
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -9138,7 +9148,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9138
9148
|
const receivedType = toRawType(value);
|
|
9139
9149
|
const expectedValue = styleValue(value, expectedType);
|
|
9140
9150
|
const receivedValue = styleValue(value, receivedType);
|
|
9141
|
-
if (expectedTypes.length === 1 && isExplicable(expectedType) &&
|
|
9151
|
+
if (expectedTypes.length === 1 && isExplicable(expectedType) && isCoercible(expectedType, receivedType)) {
|
|
9142
9152
|
message += ` with value ${expectedValue}`;
|
|
9143
9153
|
}
|
|
9144
9154
|
message += `, got ${receivedType} `;
|
|
@@ -9148,7 +9158,9 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9148
9158
|
return message;
|
|
9149
9159
|
}
|
|
9150
9160
|
function styleValue(value, type) {
|
|
9151
|
-
if (
|
|
9161
|
+
if (isSymbol(value)) {
|
|
9162
|
+
return value.toString();
|
|
9163
|
+
} else if (type === "String") {
|
|
9152
9164
|
return `"${value}"`;
|
|
9153
9165
|
} else if (type === "Number") {
|
|
9154
9166
|
return `${Number(value)}`;
|
|
@@ -9160,8 +9172,11 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9160
9172
|
const explicitTypes = ["string", "number", "boolean"];
|
|
9161
9173
|
return explicitTypes.some((elem) => type.toLowerCase() === elem);
|
|
9162
9174
|
}
|
|
9163
|
-
function
|
|
9164
|
-
return args.
|
|
9175
|
+
function isCoercible(...args) {
|
|
9176
|
+
return args.every((elem) => {
|
|
9177
|
+
const value = elem.toLowerCase();
|
|
9178
|
+
return value !== "boolean" && value !== "symbol";
|
|
9179
|
+
});
|
|
9165
9180
|
}
|
|
9166
9181
|
|
|
9167
9182
|
const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
|
|
@@ -11215,13 +11230,14 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
11215
11230
|
suspense.isHydrating = false;
|
|
11216
11231
|
} else if (!resume) {
|
|
11217
11232
|
delayEnter = activeBranch && pendingBranch.transition && pendingBranch.transition.mode === "out-in";
|
|
11233
|
+
let hasUpdatedAnchor = false;
|
|
11218
11234
|
if (delayEnter) {
|
|
11219
11235
|
activeBranch.transition.afterLeave = () => {
|
|
11220
11236
|
if (pendingId === suspense.pendingId) {
|
|
11221
11237
|
move(
|
|
11222
11238
|
pendingBranch,
|
|
11223
11239
|
container2,
|
|
11224
|
-
anchor === initialAnchor ? next(activeBranch) : anchor,
|
|
11240
|
+
anchor === initialAnchor && !hasUpdatedAnchor ? next(activeBranch) : anchor,
|
|
11225
11241
|
0
|
|
11226
11242
|
);
|
|
11227
11243
|
queuePostFlushCb(effects);
|
|
@@ -11234,6 +11250,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
11234
11250
|
if (activeBranch && !suspense.isFallbackMountPending) {
|
|
11235
11251
|
if (parentNode(activeBranch.el) === container2) {
|
|
11236
11252
|
anchor = next(activeBranch);
|
|
11253
|
+
hasUpdatedAnchor = true;
|
|
11237
11254
|
}
|
|
11238
11255
|
unmount(activeBranch, parentComponent2, suspense, true);
|
|
11239
11256
|
if (!delayEnter && isInFallback && vnode2.ssFallback) {
|
|
@@ -12605,7 +12622,7 @@ Component that was made reactive: `,
|
|
|
12605
12622
|
return true;
|
|
12606
12623
|
}
|
|
12607
12624
|
|
|
12608
|
-
const version = "3.5.
|
|
12625
|
+
const version = "3.5.34";
|
|
12609
12626
|
const warn = warn$1 ;
|
|
12610
12627
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12611
12628
|
const devtools = devtools$1 ;
|