@vue/compat 3.3.0-alpha.2 → 3.3.0-alpha.3
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 +491 -491
- package/dist/vue.cjs.prod.js +459 -459
- package/dist/vue.esm-browser.js +445 -445
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.esm-bundler.js +446 -446
- package/dist/vue.global.js +445 -445
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +53 -53
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.esm-bundler.js +54 -54
- package/dist/vue.runtime.global.js +53 -53
- package/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +2 -2
|
@@ -1403,7 +1403,7 @@ var Vue = (function () {
|
|
|
1403
1403
|
callWithErrorHandling(
|
|
1404
1404
|
appWarnHandler,
|
|
1405
1405
|
instance,
|
|
1406
|
-
11,
|
|
1406
|
+
"11",
|
|
1407
1407
|
[
|
|
1408
1408
|
msg + args.join(""),
|
|
1409
1409
|
instance && instance.proxy,
|
|
@@ -1516,21 +1516,21 @@ var Vue = (function () {
|
|
|
1516
1516
|
["ec"]: "errorCaptured hook",
|
|
1517
1517
|
["rtc"]: "renderTracked hook",
|
|
1518
1518
|
["rtg"]: "renderTriggered hook",
|
|
1519
|
-
[0]: "setup function",
|
|
1520
|
-
[1]: "render function",
|
|
1521
|
-
[2]: "watcher getter",
|
|
1522
|
-
[3]: "watcher callback",
|
|
1523
|
-
[4]: "watcher cleanup function",
|
|
1524
|
-
[5]: "native event handler",
|
|
1525
|
-
[6]: "component event handler",
|
|
1526
|
-
[7]: "vnode hook",
|
|
1527
|
-
[8]: "directive hook",
|
|
1528
|
-
[9]: "transition hook",
|
|
1529
|
-
[10]: "app errorHandler",
|
|
1530
|
-
[11]: "app warnHandler",
|
|
1531
|
-
[12]: "ref function",
|
|
1532
|
-
[13]: "async component loader",
|
|
1533
|
-
[14]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"
|
|
1519
|
+
["0"]: "setup function",
|
|
1520
|
+
["1"]: "render function",
|
|
1521
|
+
["2"]: "watcher getter",
|
|
1522
|
+
["3"]: "watcher callback",
|
|
1523
|
+
["4"]: "watcher cleanup function",
|
|
1524
|
+
["5"]: "native event handler",
|
|
1525
|
+
["6"]: "component event handler",
|
|
1526
|
+
["7"]: "vnode hook",
|
|
1527
|
+
["8"]: "directive hook",
|
|
1528
|
+
["9"]: "transition hook",
|
|
1529
|
+
["10"]: "app errorHandler",
|
|
1530
|
+
["11"]: "app warnHandler",
|
|
1531
|
+
["12"]: "ref function",
|
|
1532
|
+
["13"]: "async component loader",
|
|
1533
|
+
["14"]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"
|
|
1534
1534
|
};
|
|
1535
1535
|
function callWithErrorHandling(fn, instance, type, args) {
|
|
1536
1536
|
let res;
|
|
@@ -1579,7 +1579,7 @@ var Vue = (function () {
|
|
|
1579
1579
|
callWithErrorHandling(
|
|
1580
1580
|
appErrorHandler,
|
|
1581
1581
|
null,
|
|
1582
|
-
10,
|
|
1582
|
+
"10",
|
|
1583
1583
|
[err, exposedInstance, errorInfo]
|
|
1584
1584
|
);
|
|
1585
1585
|
return;
|
|
@@ -1732,7 +1732,7 @@ var Vue = (function () {
|
|
|
1732
1732
|
if (check(job)) {
|
|
1733
1733
|
continue;
|
|
1734
1734
|
}
|
|
1735
|
-
callWithErrorHandling(job, null, 14);
|
|
1735
|
+
callWithErrorHandling(job, null, "14");
|
|
1736
1736
|
}
|
|
1737
1737
|
}
|
|
1738
1738
|
} finally {
|
|
@@ -2350,7 +2350,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
2350
2350
|
callWithAsyncErrorHandling(
|
|
2351
2351
|
cbs.map((cb) => cb.bind(instance.proxy)),
|
|
2352
2352
|
instance,
|
|
2353
|
-
6,
|
|
2353
|
+
"6",
|
|
2354
2354
|
args
|
|
2355
2355
|
);
|
|
2356
2356
|
}
|
|
@@ -2412,7 +2412,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
2412
2412
|
callWithErrorHandling(
|
|
2413
2413
|
modelHandler,
|
|
2414
2414
|
instance,
|
|
2415
|
-
6,
|
|
2415
|
+
"6",
|
|
2416
2416
|
args
|
|
2417
2417
|
);
|
|
2418
2418
|
}
|
|
@@ -2484,7 +2484,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
2484
2484
|
callWithAsyncErrorHandling(
|
|
2485
2485
|
handler,
|
|
2486
2486
|
instance,
|
|
2487
|
-
6,
|
|
2487
|
+
"6",
|
|
2488
2488
|
args
|
|
2489
2489
|
);
|
|
2490
2490
|
}
|
|
@@ -2499,7 +2499,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
2499
2499
|
callWithAsyncErrorHandling(
|
|
2500
2500
|
onceHandler,
|
|
2501
2501
|
instance,
|
|
2502
|
-
6,
|
|
2502
|
+
"6",
|
|
2503
2503
|
args
|
|
2504
2504
|
);
|
|
2505
2505
|
}
|
|
@@ -2683,7 +2683,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
2683
2683
|
}
|
|
2684
2684
|
} catch (err) {
|
|
2685
2685
|
blockStack.length = 0;
|
|
2686
|
-
handleError(err, instance, 1);
|
|
2686
|
+
handleError(err, instance, "1");
|
|
2687
2687
|
result = createVNode(Comment);
|
|
2688
2688
|
}
|
|
2689
2689
|
let root = result;
|
|
@@ -3210,7 +3210,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3210
3210
|
if (delayEnter) {
|
|
3211
3211
|
activeBranch.transition.afterLeave = () => {
|
|
3212
3212
|
if (pendingId === suspense.pendingId) {
|
|
3213
|
-
move(pendingBranch, container2, anchor2, 0);
|
|
3213
|
+
move(pendingBranch, container2, anchor2, "0");
|
|
3214
3214
|
}
|
|
3215
3215
|
};
|
|
3216
3216
|
}
|
|
@@ -3220,7 +3220,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3220
3220
|
unmount(activeBranch, parentComponent2, suspense, true);
|
|
3221
3221
|
}
|
|
3222
3222
|
if (!delayEnter) {
|
|
3223
|
-
move(pendingBranch, container2, anchor2, 0);
|
|
3223
|
+
move(pendingBranch, container2, anchor2, "0");
|
|
3224
3224
|
}
|
|
3225
3225
|
}
|
|
3226
3226
|
setActiveBranch(suspense, pendingBranch);
|
|
@@ -3298,7 +3298,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3298
3298
|
}
|
|
3299
3299
|
const hydratedEl = instance.vnode.el;
|
|
3300
3300
|
instance.asyncDep.catch((err) => {
|
|
3301
|
-
handleError(err, instance, 0);
|
|
3301
|
+
handleError(err, instance, "0");
|
|
3302
3302
|
}).then((asyncSetupResult) => {
|
|
3303
3303
|
if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) {
|
|
3304
3304
|
return;
|
|
@@ -3542,14 +3542,14 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3542
3542
|
} else if (isReactive(s)) {
|
|
3543
3543
|
return traverse(s);
|
|
3544
3544
|
} else if (isFunction(s)) {
|
|
3545
|
-
return callWithErrorHandling(s, instance, 2);
|
|
3545
|
+
return callWithErrorHandling(s, instance, "2");
|
|
3546
3546
|
} else {
|
|
3547
3547
|
warnInvalidSource(s);
|
|
3548
3548
|
}
|
|
3549
3549
|
});
|
|
3550
3550
|
} else if (isFunction(source)) {
|
|
3551
3551
|
if (cb) {
|
|
3552
|
-
getter = () => callWithErrorHandling(source, instance, 2);
|
|
3552
|
+
getter = () => callWithErrorHandling(source, instance, "2");
|
|
3553
3553
|
} else {
|
|
3554
3554
|
getter = () => {
|
|
3555
3555
|
if (instance && instance.isUnmounted) {
|
|
@@ -3561,7 +3561,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3561
3561
|
return callWithAsyncErrorHandling(
|
|
3562
3562
|
source,
|
|
3563
3563
|
instance,
|
|
3564
|
-
3,
|
|
3564
|
+
"3",
|
|
3565
3565
|
[onCleanup]
|
|
3566
3566
|
);
|
|
3567
3567
|
};
|
|
@@ -3587,7 +3587,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3587
3587
|
let cleanup;
|
|
3588
3588
|
let onCleanup = (fn) => {
|
|
3589
3589
|
cleanup = effect.onStop = () => {
|
|
3590
|
-
callWithErrorHandling(fn, instance, 4);
|
|
3590
|
+
callWithErrorHandling(fn, instance, "4");
|
|
3591
3591
|
};
|
|
3592
3592
|
};
|
|
3593
3593
|
let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
|
|
@@ -3603,7 +3603,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3603
3603
|
if (cleanup) {
|
|
3604
3604
|
cleanup();
|
|
3605
3605
|
}
|
|
3606
|
-
callWithAsyncErrorHandling(cb, instance, 3, [
|
|
3606
|
+
callWithAsyncErrorHandling(cb, instance, "3", [
|
|
3607
3607
|
newValue,
|
|
3608
3608
|
// pass undefined as the old value when it's changed for the first time
|
|
3609
3609
|
oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
|
|
@@ -3881,7 +3881,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3881
3881
|
hook && callWithAsyncErrorHandling(
|
|
3882
3882
|
hook,
|
|
3883
3883
|
instance,
|
|
3884
|
-
9,
|
|
3884
|
+
"9",
|
|
3885
3885
|
args
|
|
3886
3886
|
);
|
|
3887
3887
|
};
|
|
@@ -4113,7 +4113,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4113
4113
|
handleError(
|
|
4114
4114
|
err,
|
|
4115
4115
|
instance,
|
|
4116
|
-
13,
|
|
4116
|
+
"13",
|
|
4117
4117
|
!errorComponent
|
|
4118
4118
|
/* do not throw in dev if user provided error component */
|
|
4119
4119
|
);
|
|
@@ -4212,7 +4212,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4212
4212
|
const storageContainer = createElement("div");
|
|
4213
4213
|
sharedContext.activate = (vnode, container, anchor, isSVG, optimized) => {
|
|
4214
4214
|
const instance2 = vnode.component;
|
|
4215
|
-
move(vnode, container, anchor, 0, parentSuspense);
|
|
4215
|
+
move(vnode, container, anchor, "0", parentSuspense);
|
|
4216
4216
|
patch(
|
|
4217
4217
|
instance2.vnode,
|
|
4218
4218
|
vnode,
|
|
@@ -4240,7 +4240,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4240
4240
|
};
|
|
4241
4241
|
sharedContext.deactivate = (vnode) => {
|
|
4242
4242
|
const instance2 = vnode.component;
|
|
4243
|
-
move(vnode, storageContainer, null, 1, parentSuspense);
|
|
4243
|
+
move(vnode, storageContainer, null, "1", parentSuspense);
|
|
4244
4244
|
queuePostRenderEffect(() => {
|
|
4245
4245
|
if (instance2.da) {
|
|
4246
4246
|
invokeArrayFns(instance2.da);
|
|
@@ -4598,7 +4598,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4598
4598
|
}
|
|
4599
4599
|
if (hook) {
|
|
4600
4600
|
pauseTracking();
|
|
4601
|
-
callWithAsyncErrorHandling(hook, instance, 8, [
|
|
4601
|
+
callWithAsyncErrorHandling(hook, instance, "8", [
|
|
4602
4602
|
vnode.el,
|
|
4603
4603
|
binding,
|
|
4604
4604
|
vnode,
|
|
@@ -6581,7 +6581,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6581
6581
|
return vm;
|
|
6582
6582
|
}
|
|
6583
6583
|
}
|
|
6584
|
-
Vue.version = `2.6.14-compat:${"3.3.0-alpha.
|
|
6584
|
+
Vue.version = `2.6.14-compat:${"3.3.0-alpha.3"}`;
|
|
6585
6585
|
Vue.config = singletonApp.config;
|
|
6586
6586
|
Vue.use = (p, ...options) => {
|
|
6587
6587
|
if (p && isFunction(p.install)) {
|
|
@@ -7162,7 +7162,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7162
7162
|
}
|
|
7163
7163
|
}
|
|
7164
7164
|
if (isFunction(ref)) {
|
|
7165
|
-
callWithErrorHandling(ref, owner, 12, [value, refs]);
|
|
7165
|
+
callWithErrorHandling(ref, owner, "12", [value, refs]);
|
|
7166
7166
|
} else {
|
|
7167
7167
|
const _isString = isString(ref);
|
|
7168
7168
|
const _isRef = isRef(ref);
|
|
@@ -8835,7 +8835,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8835
8835
|
);
|
|
8836
8836
|
} else if (moved) {
|
|
8837
8837
|
if (j < 0 || i !== increasingNewIndexSequence[j]) {
|
|
8838
|
-
move(nextChild, container, anchor, 2);
|
|
8838
|
+
move(nextChild, container, anchor, "2");
|
|
8839
8839
|
} else {
|
|
8840
8840
|
j--;
|
|
8841
8841
|
}
|
|
@@ -8869,9 +8869,9 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8869
8869
|
moveStaticNode(vnode, container, anchor);
|
|
8870
8870
|
return;
|
|
8871
8871
|
}
|
|
8872
|
-
const needTransition = moveType !== 2 && shapeFlag & 1 && transition;
|
|
8872
|
+
const needTransition = moveType !== "2" && shapeFlag & 1 && transition;
|
|
8873
8873
|
if (needTransition) {
|
|
8874
|
-
if (moveType === 0) {
|
|
8874
|
+
if (moveType === "0") {
|
|
8875
8875
|
transition.beforeEnter(el);
|
|
8876
8876
|
hostInsert(el, container, anchor);
|
|
8877
8877
|
queuePostRenderEffect(() => transition.enter(el), parentSuspense);
|
|
@@ -9278,7 +9278,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9278
9278
|
container,
|
|
9279
9279
|
mainAnchor,
|
|
9280
9280
|
internals,
|
|
9281
|
-
1
|
|
9281
|
+
"1"
|
|
9282
9282
|
);
|
|
9283
9283
|
}
|
|
9284
9284
|
} else {
|
|
@@ -9293,7 +9293,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9293
9293
|
nextTarget,
|
|
9294
9294
|
null,
|
|
9295
9295
|
internals,
|
|
9296
|
-
0
|
|
9296
|
+
"0"
|
|
9297
9297
|
);
|
|
9298
9298
|
} else {
|
|
9299
9299
|
warn(
|
|
@@ -9308,7 +9308,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9308
9308
|
target,
|
|
9309
9309
|
targetAnchor,
|
|
9310
9310
|
internals,
|
|
9311
|
-
1
|
|
9311
|
+
"1"
|
|
9312
9312
|
);
|
|
9313
9313
|
}
|
|
9314
9314
|
}
|
|
@@ -9339,12 +9339,12 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9339
9339
|
move: moveTeleport,
|
|
9340
9340
|
hydrate: hydrateTeleport
|
|
9341
9341
|
};
|
|
9342
|
-
function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2) {
|
|
9343
|
-
if (moveType === 0) {
|
|
9342
|
+
function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = "2") {
|
|
9343
|
+
if (moveType === "0") {
|
|
9344
9344
|
insert(vnode.targetAnchor, container, parentAnchor);
|
|
9345
9345
|
}
|
|
9346
9346
|
const { el, anchor, shapeFlag, children, props } = vnode;
|
|
9347
|
-
const isReorder = moveType === 2;
|
|
9347
|
+
const isReorder = moveType === "2";
|
|
9348
9348
|
if (isReorder) {
|
|
9349
9349
|
insert(el, container, parentAnchor);
|
|
9350
9350
|
}
|
|
@@ -9355,7 +9355,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9355
9355
|
children[i],
|
|
9356
9356
|
container,
|
|
9357
9357
|
parentAnchor,
|
|
9358
|
-
2
|
|
9358
|
+
"2"
|
|
9359
9359
|
);
|
|
9360
9360
|
}
|
|
9361
9361
|
}
|
|
@@ -9844,7 +9844,7 @@ Component that was made reactive: `,
|
|
|
9844
9844
|
return ret;
|
|
9845
9845
|
}
|
|
9846
9846
|
function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
|
|
9847
|
-
callWithAsyncErrorHandling(hook, instance, 7, [
|
|
9847
|
+
callWithAsyncErrorHandling(hook, instance, "7", [
|
|
9848
9848
|
vnode,
|
|
9849
9849
|
prevVNode
|
|
9850
9850
|
]);
|
|
@@ -10010,7 +10010,7 @@ Component that was made reactive: `,
|
|
|
10010
10010
|
const setupResult = callWithErrorHandling(
|
|
10011
10011
|
setup,
|
|
10012
10012
|
instance,
|
|
10013
|
-
0,
|
|
10013
|
+
"0",
|
|
10014
10014
|
[shallowReadonly(instance.props) , setupContext]
|
|
10015
10015
|
);
|
|
10016
10016
|
resetTracking();
|
|
@@ -10021,7 +10021,7 @@ Component that was made reactive: `,
|
|
|
10021
10021
|
return setupResult.then((resolvedResult) => {
|
|
10022
10022
|
handleSetupResult(instance, resolvedResult, isSSR);
|
|
10023
10023
|
}).catch((e) => {
|
|
10024
|
-
handleError(e, instance, 0);
|
|
10024
|
+
handleError(e, instance, "0");
|
|
10025
10025
|
});
|
|
10026
10026
|
} else {
|
|
10027
10027
|
instance.asyncDep = setupResult;
|
|
@@ -10567,7 +10567,7 @@ Component that was made reactive: `,
|
|
|
10567
10567
|
return true;
|
|
10568
10568
|
}
|
|
10569
10569
|
|
|
10570
|
-
const version = "3.3.0-alpha.
|
|
10570
|
+
const version = "3.3.0-alpha.3";
|
|
10571
10571
|
const ssrUtils = null;
|
|
10572
10572
|
const resolveFilter = resolveFilter$1 ;
|
|
10573
10573
|
const _compatUtils = {
|
|
@@ -10899,7 +10899,7 @@ Component that was made reactive: `,
|
|
|
10899
10899
|
callWithAsyncErrorHandling(
|
|
10900
10900
|
patchStopImmediatePropagation(e, invoker.value),
|
|
10901
10901
|
instance,
|
|
10902
|
-
5,
|
|
10902
|
+
"5",
|
|
10903
10903
|
[e]
|
|
10904
10904
|
);
|
|
10905
10905
|
};
|