@vue/compat 3.3.0-alpha.3 → 3.3.0-alpha.4
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
|
@@ -1400,7 +1400,7 @@ function warn(msg, ...args) {
|
|
|
1400
1400
|
callWithErrorHandling(
|
|
1401
1401
|
appWarnHandler,
|
|
1402
1402
|
instance,
|
|
1403
|
-
|
|
1403
|
+
11,
|
|
1404
1404
|
[
|
|
1405
1405
|
msg + args.join(""),
|
|
1406
1406
|
instance && instance.proxy,
|
|
@@ -1513,21 +1513,21 @@ const ErrorTypeStrings = {
|
|
|
1513
1513
|
["ec"]: "errorCaptured hook",
|
|
1514
1514
|
["rtc"]: "renderTracked hook",
|
|
1515
1515
|
["rtg"]: "renderTriggered hook",
|
|
1516
|
-
[
|
|
1517
|
-
[
|
|
1518
|
-
[
|
|
1519
|
-
[
|
|
1520
|
-
[
|
|
1521
|
-
[
|
|
1522
|
-
[
|
|
1523
|
-
[
|
|
1524
|
-
[
|
|
1525
|
-
[
|
|
1526
|
-
[
|
|
1527
|
-
[
|
|
1528
|
-
[
|
|
1529
|
-
[
|
|
1530
|
-
[
|
|
1516
|
+
[0]: "setup function",
|
|
1517
|
+
[1]: "render function",
|
|
1518
|
+
[2]: "watcher getter",
|
|
1519
|
+
[3]: "watcher callback",
|
|
1520
|
+
[4]: "watcher cleanup function",
|
|
1521
|
+
[5]: "native event handler",
|
|
1522
|
+
[6]: "component event handler",
|
|
1523
|
+
[7]: "vnode hook",
|
|
1524
|
+
[8]: "directive hook",
|
|
1525
|
+
[9]: "transition hook",
|
|
1526
|
+
[10]: "app errorHandler",
|
|
1527
|
+
[11]: "app warnHandler",
|
|
1528
|
+
[12]: "ref function",
|
|
1529
|
+
[13]: "async component loader",
|
|
1530
|
+
[14]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"
|
|
1531
1531
|
};
|
|
1532
1532
|
function callWithErrorHandling(fn, instance, type, args) {
|
|
1533
1533
|
let res;
|
|
@@ -1576,7 +1576,7 @@ function handleError(err, instance, type, throwInDev = true) {
|
|
|
1576
1576
|
callWithErrorHandling(
|
|
1577
1577
|
appErrorHandler,
|
|
1578
1578
|
null,
|
|
1579
|
-
|
|
1579
|
+
10,
|
|
1580
1580
|
[err, exposedInstance, errorInfo]
|
|
1581
1581
|
);
|
|
1582
1582
|
return;
|
|
@@ -1729,7 +1729,7 @@ function flushJobs(seen) {
|
|
|
1729
1729
|
if (check(job)) {
|
|
1730
1730
|
continue;
|
|
1731
1731
|
}
|
|
1732
|
-
callWithErrorHandling(job, null,
|
|
1732
|
+
callWithErrorHandling(job, null, 14);
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
1735
|
} finally {
|
|
@@ -2347,7 +2347,7 @@ function emit$1(instance, event, args) {
|
|
|
2347
2347
|
callWithAsyncErrorHandling(
|
|
2348
2348
|
cbs.map((cb) => cb.bind(instance.proxy)),
|
|
2349
2349
|
instance,
|
|
2350
|
-
|
|
2350
|
+
6,
|
|
2351
2351
|
args
|
|
2352
2352
|
);
|
|
2353
2353
|
}
|
|
@@ -2409,7 +2409,7 @@ function compatModelEmit(instance, event, args) {
|
|
|
2409
2409
|
callWithErrorHandling(
|
|
2410
2410
|
modelHandler,
|
|
2411
2411
|
instance,
|
|
2412
|
-
|
|
2412
|
+
6,
|
|
2413
2413
|
args
|
|
2414
2414
|
);
|
|
2415
2415
|
}
|
|
@@ -2481,7 +2481,7 @@ function emit(instance, event, ...rawArgs) {
|
|
|
2481
2481
|
callWithAsyncErrorHandling(
|
|
2482
2482
|
handler,
|
|
2483
2483
|
instance,
|
|
2484
|
-
|
|
2484
|
+
6,
|
|
2485
2485
|
args
|
|
2486
2486
|
);
|
|
2487
2487
|
}
|
|
@@ -2496,7 +2496,7 @@ function emit(instance, event, ...rawArgs) {
|
|
|
2496
2496
|
callWithAsyncErrorHandling(
|
|
2497
2497
|
onceHandler,
|
|
2498
2498
|
instance,
|
|
2499
|
-
|
|
2499
|
+
6,
|
|
2500
2500
|
args
|
|
2501
2501
|
);
|
|
2502
2502
|
}
|
|
@@ -2680,7 +2680,7 @@ function renderComponentRoot(instance) {
|
|
|
2680
2680
|
}
|
|
2681
2681
|
} catch (err) {
|
|
2682
2682
|
blockStack.length = 0;
|
|
2683
|
-
handleError(err, instance,
|
|
2683
|
+
handleError(err, instance, 1);
|
|
2684
2684
|
result = createVNode(Comment);
|
|
2685
2685
|
}
|
|
2686
2686
|
let root = result;
|
|
@@ -3207,7 +3207,7 @@ function createSuspenseBoundary(vnode, parent, parentComponent, container, hidde
|
|
|
3207
3207
|
if (delayEnter) {
|
|
3208
3208
|
activeBranch.transition.afterLeave = () => {
|
|
3209
3209
|
if (pendingId === suspense.pendingId) {
|
|
3210
|
-
move(pendingBranch, container2, anchor2,
|
|
3210
|
+
move(pendingBranch, container2, anchor2, 0);
|
|
3211
3211
|
}
|
|
3212
3212
|
};
|
|
3213
3213
|
}
|
|
@@ -3217,7 +3217,7 @@ function createSuspenseBoundary(vnode, parent, parentComponent, container, hidde
|
|
|
3217
3217
|
unmount(activeBranch, parentComponent2, suspense, true);
|
|
3218
3218
|
}
|
|
3219
3219
|
if (!delayEnter) {
|
|
3220
|
-
move(pendingBranch, container2, anchor2,
|
|
3220
|
+
move(pendingBranch, container2, anchor2, 0);
|
|
3221
3221
|
}
|
|
3222
3222
|
}
|
|
3223
3223
|
setActiveBranch(suspense, pendingBranch);
|
|
@@ -3295,7 +3295,7 @@ function createSuspenseBoundary(vnode, parent, parentComponent, container, hidde
|
|
|
3295
3295
|
}
|
|
3296
3296
|
const hydratedEl = instance.vnode.el;
|
|
3297
3297
|
instance.asyncDep.catch((err) => {
|
|
3298
|
-
handleError(err, instance,
|
|
3298
|
+
handleError(err, instance, 0);
|
|
3299
3299
|
}).then((asyncSetupResult) => {
|
|
3300
3300
|
if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) {
|
|
3301
3301
|
return;
|
|
@@ -3539,14 +3539,14 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3539
3539
|
} else if (isReactive(s)) {
|
|
3540
3540
|
return traverse(s);
|
|
3541
3541
|
} else if (isFunction(s)) {
|
|
3542
|
-
return callWithErrorHandling(s, instance,
|
|
3542
|
+
return callWithErrorHandling(s, instance, 2);
|
|
3543
3543
|
} else {
|
|
3544
3544
|
warnInvalidSource(s);
|
|
3545
3545
|
}
|
|
3546
3546
|
});
|
|
3547
3547
|
} else if (isFunction(source)) {
|
|
3548
3548
|
if (cb) {
|
|
3549
|
-
getter = () => callWithErrorHandling(source, instance,
|
|
3549
|
+
getter = () => callWithErrorHandling(source, instance, 2);
|
|
3550
3550
|
} else {
|
|
3551
3551
|
getter = () => {
|
|
3552
3552
|
if (instance && instance.isUnmounted) {
|
|
@@ -3558,7 +3558,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3558
3558
|
return callWithAsyncErrorHandling(
|
|
3559
3559
|
source,
|
|
3560
3560
|
instance,
|
|
3561
|
-
|
|
3561
|
+
3,
|
|
3562
3562
|
[onCleanup]
|
|
3563
3563
|
);
|
|
3564
3564
|
};
|
|
@@ -3584,7 +3584,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3584
3584
|
let cleanup;
|
|
3585
3585
|
let onCleanup = (fn) => {
|
|
3586
3586
|
cleanup = effect.onStop = () => {
|
|
3587
|
-
callWithErrorHandling(fn, instance,
|
|
3587
|
+
callWithErrorHandling(fn, instance, 4);
|
|
3588
3588
|
};
|
|
3589
3589
|
};
|
|
3590
3590
|
let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
|
|
@@ -3600,7 +3600,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3600
3600
|
if (cleanup) {
|
|
3601
3601
|
cleanup();
|
|
3602
3602
|
}
|
|
3603
|
-
callWithAsyncErrorHandling(cb, instance,
|
|
3603
|
+
callWithAsyncErrorHandling(cb, instance, 3, [
|
|
3604
3604
|
newValue,
|
|
3605
3605
|
// pass undefined as the old value when it's changed for the first time
|
|
3606
3606
|
oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
|
|
@@ -3878,7 +3878,7 @@ function resolveTransitionHooks(vnode, props, state, instance) {
|
|
|
3878
3878
|
hook && callWithAsyncErrorHandling(
|
|
3879
3879
|
hook,
|
|
3880
3880
|
instance,
|
|
3881
|
-
|
|
3881
|
+
9,
|
|
3882
3882
|
args
|
|
3883
3883
|
);
|
|
3884
3884
|
};
|
|
@@ -4110,7 +4110,7 @@ function defineAsyncComponent(source) {
|
|
|
4110
4110
|
handleError(
|
|
4111
4111
|
err,
|
|
4112
4112
|
instance,
|
|
4113
|
-
|
|
4113
|
+
13,
|
|
4114
4114
|
!errorComponent
|
|
4115
4115
|
/* do not throw in dev if user provided error component */
|
|
4116
4116
|
);
|
|
@@ -4209,7 +4209,7 @@ const KeepAliveImpl = {
|
|
|
4209
4209
|
const storageContainer = createElement("div");
|
|
4210
4210
|
sharedContext.activate = (vnode, container, anchor, isSVG, optimized) => {
|
|
4211
4211
|
const instance2 = vnode.component;
|
|
4212
|
-
move(vnode, container, anchor,
|
|
4212
|
+
move(vnode, container, anchor, 0, parentSuspense);
|
|
4213
4213
|
patch(
|
|
4214
4214
|
instance2.vnode,
|
|
4215
4215
|
vnode,
|
|
@@ -4237,7 +4237,7 @@ const KeepAliveImpl = {
|
|
|
4237
4237
|
};
|
|
4238
4238
|
sharedContext.deactivate = (vnode) => {
|
|
4239
4239
|
const instance2 = vnode.component;
|
|
4240
|
-
move(vnode, storageContainer, null,
|
|
4240
|
+
move(vnode, storageContainer, null, 1, parentSuspense);
|
|
4241
4241
|
queuePostRenderEffect(() => {
|
|
4242
4242
|
if (instance2.da) {
|
|
4243
4243
|
invokeArrayFns(instance2.da);
|
|
@@ -4595,7 +4595,7 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
|
|
|
4595
4595
|
}
|
|
4596
4596
|
if (hook) {
|
|
4597
4597
|
pauseTracking();
|
|
4598
|
-
callWithAsyncErrorHandling(hook, instance,
|
|
4598
|
+
callWithAsyncErrorHandling(hook, instance, 8, [
|
|
4599
4599
|
vnode.el,
|
|
4600
4600
|
binding,
|
|
4601
4601
|
vnode,
|
|
@@ -6578,7 +6578,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6578
6578
|
return vm;
|
|
6579
6579
|
}
|
|
6580
6580
|
}
|
|
6581
|
-
Vue.version = `2.6.14-compat:${"3.3.0-alpha.
|
|
6581
|
+
Vue.version = `2.6.14-compat:${"3.3.0-alpha.4"}`;
|
|
6582
6582
|
Vue.config = singletonApp.config;
|
|
6583
6583
|
Vue.use = (p, ...options) => {
|
|
6584
6584
|
if (p && isFunction(p.install)) {
|
|
@@ -7159,7 +7159,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
7159
7159
|
}
|
|
7160
7160
|
}
|
|
7161
7161
|
if (isFunction(ref)) {
|
|
7162
|
-
callWithErrorHandling(ref, owner,
|
|
7162
|
+
callWithErrorHandling(ref, owner, 12, [value, refs]);
|
|
7163
7163
|
} else {
|
|
7164
7164
|
const _isString = isString(ref);
|
|
7165
7165
|
const _isRef = isRef(ref);
|
|
@@ -8832,7 +8832,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8832
8832
|
);
|
|
8833
8833
|
} else if (moved) {
|
|
8834
8834
|
if (j < 0 || i !== increasingNewIndexSequence[j]) {
|
|
8835
|
-
move(nextChild, container, anchor,
|
|
8835
|
+
move(nextChild, container, anchor, 2);
|
|
8836
8836
|
} else {
|
|
8837
8837
|
j--;
|
|
8838
8838
|
}
|
|
@@ -8866,9 +8866,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8866
8866
|
moveStaticNode(vnode, container, anchor);
|
|
8867
8867
|
return;
|
|
8868
8868
|
}
|
|
8869
|
-
const needTransition = moveType !==
|
|
8869
|
+
const needTransition = moveType !== 2 && shapeFlag & 1 && transition;
|
|
8870
8870
|
if (needTransition) {
|
|
8871
|
-
if (moveType ===
|
|
8871
|
+
if (moveType === 0) {
|
|
8872
8872
|
transition.beforeEnter(el);
|
|
8873
8873
|
hostInsert(el, container, anchor);
|
|
8874
8874
|
queuePostRenderEffect(() => transition.enter(el), parentSuspense);
|
|
@@ -9275,7 +9275,7 @@ const TeleportImpl = {
|
|
|
9275
9275
|
container,
|
|
9276
9276
|
mainAnchor,
|
|
9277
9277
|
internals,
|
|
9278
|
-
|
|
9278
|
+
1
|
|
9279
9279
|
);
|
|
9280
9280
|
}
|
|
9281
9281
|
} else {
|
|
@@ -9290,7 +9290,7 @@ const TeleportImpl = {
|
|
|
9290
9290
|
nextTarget,
|
|
9291
9291
|
null,
|
|
9292
9292
|
internals,
|
|
9293
|
-
|
|
9293
|
+
0
|
|
9294
9294
|
);
|
|
9295
9295
|
} else {
|
|
9296
9296
|
warn(
|
|
@@ -9305,7 +9305,7 @@ const TeleportImpl = {
|
|
|
9305
9305
|
target,
|
|
9306
9306
|
targetAnchor,
|
|
9307
9307
|
internals,
|
|
9308
|
-
|
|
9308
|
+
1
|
|
9309
9309
|
);
|
|
9310
9310
|
}
|
|
9311
9311
|
}
|
|
@@ -9336,12 +9336,12 @@ const TeleportImpl = {
|
|
|
9336
9336
|
move: moveTeleport,
|
|
9337
9337
|
hydrate: hydrateTeleport
|
|
9338
9338
|
};
|
|
9339
|
-
function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType =
|
|
9340
|
-
if (moveType ===
|
|
9339
|
+
function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2) {
|
|
9340
|
+
if (moveType === 0) {
|
|
9341
9341
|
insert(vnode.targetAnchor, container, parentAnchor);
|
|
9342
9342
|
}
|
|
9343
9343
|
const { el, anchor, shapeFlag, children, props } = vnode;
|
|
9344
|
-
const isReorder = moveType ===
|
|
9344
|
+
const isReorder = moveType === 2;
|
|
9345
9345
|
if (isReorder) {
|
|
9346
9346
|
insert(el, container, parentAnchor);
|
|
9347
9347
|
}
|
|
@@ -9352,7 +9352,7 @@ function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }
|
|
|
9352
9352
|
children[i],
|
|
9353
9353
|
container,
|
|
9354
9354
|
parentAnchor,
|
|
9355
|
-
|
|
9355
|
+
2
|
|
9356
9356
|
);
|
|
9357
9357
|
}
|
|
9358
9358
|
}
|
|
@@ -9841,7 +9841,7 @@ function mergeProps(...args) {
|
|
|
9841
9841
|
return ret;
|
|
9842
9842
|
}
|
|
9843
9843
|
function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
|
|
9844
|
-
callWithAsyncErrorHandling(hook, instance,
|
|
9844
|
+
callWithAsyncErrorHandling(hook, instance, 7, [
|
|
9845
9845
|
vnode,
|
|
9846
9846
|
prevVNode
|
|
9847
9847
|
]);
|
|
@@ -10007,7 +10007,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
10007
10007
|
const setupResult = callWithErrorHandling(
|
|
10008
10008
|
setup,
|
|
10009
10009
|
instance,
|
|
10010
|
-
|
|
10010
|
+
0,
|
|
10011
10011
|
[shallowReadonly(instance.props) , setupContext]
|
|
10012
10012
|
);
|
|
10013
10013
|
resetTracking();
|
|
@@ -10018,7 +10018,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
10018
10018
|
return setupResult.then((resolvedResult) => {
|
|
10019
10019
|
handleSetupResult(instance, resolvedResult, isSSR);
|
|
10020
10020
|
}).catch((e) => {
|
|
10021
|
-
handleError(e, instance,
|
|
10021
|
+
handleError(e, instance, 0);
|
|
10022
10022
|
});
|
|
10023
10023
|
} else {
|
|
10024
10024
|
instance.asyncDep = setupResult;
|
|
@@ -10570,7 +10570,7 @@ function isMemoSame(cached, memo) {
|
|
|
10570
10570
|
return true;
|
|
10571
10571
|
}
|
|
10572
10572
|
|
|
10573
|
-
const version = "3.3.0-alpha.
|
|
10573
|
+
const version = "3.3.0-alpha.4";
|
|
10574
10574
|
const ssrUtils = null;
|
|
10575
10575
|
const resolveFilter = resolveFilter$1 ;
|
|
10576
10576
|
const _compatUtils = {
|
|
@@ -10902,7 +10902,7 @@ function createInvoker(initialValue, instance) {
|
|
|
10902
10902
|
callWithAsyncErrorHandling(
|
|
10903
10903
|
patchStopImmediatePropagation(e, invoker.value),
|
|
10904
10904
|
instance,
|
|
10905
|
-
|
|
10905
|
+
5,
|
|
10906
10906
|
[e]
|
|
10907
10907
|
);
|
|
10908
10908
|
};
|