@vue/compat 3.3.0-alpha.3 → 3.3.0-alpha.5
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 +626 -610
- package/dist/vue.cjs.prod.js +592 -594
- package/dist/vue.esm-browser.js +566 -560
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.esm-bundler.js +577 -561
- package/dist/vue.global.js +566 -560
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +157 -151
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.esm-bundler.js +168 -152
- package/dist/vue.runtime.global.js +157 -151
- package/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +2 -2
|
@@ -10,6 +10,96 @@ var Vue = (function () {
|
|
|
10
10
|
return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
const EMPTY_OBJ = Object.freeze({}) ;
|
|
14
|
+
const EMPTY_ARR = Object.freeze([]) ;
|
|
15
|
+
const NOOP = () => {
|
|
16
|
+
};
|
|
17
|
+
const NO = () => false;
|
|
18
|
+
const onRE = /^on[^a-z]/;
|
|
19
|
+
const isOn = (key) => onRE.test(key);
|
|
20
|
+
const isModelListener = (key) => key.startsWith("onUpdate:");
|
|
21
|
+
const extend = Object.assign;
|
|
22
|
+
const remove = (arr, el) => {
|
|
23
|
+
const i = arr.indexOf(el);
|
|
24
|
+
if (i > -1) {
|
|
25
|
+
arr.splice(i, 1);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
29
|
+
const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
|
|
30
|
+
const isArray = Array.isArray;
|
|
31
|
+
const isMap = (val) => toTypeString(val) === "[object Map]";
|
|
32
|
+
const isSet = (val) => toTypeString(val) === "[object Set]";
|
|
33
|
+
const isDate = (val) => toTypeString(val) === "[object Date]";
|
|
34
|
+
const isRegExp = (val) => toTypeString(val) === "[object RegExp]";
|
|
35
|
+
const isFunction = (val) => typeof val === "function";
|
|
36
|
+
const isString = (val) => typeof val === "string";
|
|
37
|
+
const isSymbol = (val) => typeof val === "symbol";
|
|
38
|
+
const isObject = (val) => val !== null && typeof val === "object";
|
|
39
|
+
const isPromise = (val) => {
|
|
40
|
+
return isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
|
41
|
+
};
|
|
42
|
+
const objectToString = Object.prototype.toString;
|
|
43
|
+
const toTypeString = (value) => objectToString.call(value);
|
|
44
|
+
const toRawType = (value) => {
|
|
45
|
+
return toTypeString(value).slice(8, -1);
|
|
46
|
+
};
|
|
47
|
+
const isPlainObject = (val) => toTypeString(val) === "[object Object]";
|
|
48
|
+
const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
|
|
49
|
+
const isReservedProp = /* @__PURE__ */ makeMap(
|
|
50
|
+
// the leading comma is intentional so empty string "" is also included
|
|
51
|
+
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
52
|
+
);
|
|
53
|
+
const isBuiltInDirective = /* @__PURE__ */ makeMap(
|
|
54
|
+
"bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"
|
|
55
|
+
);
|
|
56
|
+
const cacheStringFunction = (fn) => {
|
|
57
|
+
const cache = /* @__PURE__ */ Object.create(null);
|
|
58
|
+
return (str) => {
|
|
59
|
+
const hit = cache[str];
|
|
60
|
+
return hit || (cache[str] = fn(str));
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
const camelizeRE = /-(\w)/g;
|
|
64
|
+
const camelize = cacheStringFunction((str) => {
|
|
65
|
+
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
|
|
66
|
+
});
|
|
67
|
+
const hyphenateRE = /\B([A-Z])/g;
|
|
68
|
+
const hyphenate = cacheStringFunction(
|
|
69
|
+
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
|
70
|
+
);
|
|
71
|
+
const capitalize = cacheStringFunction(
|
|
72
|
+
(str) => str.charAt(0).toUpperCase() + str.slice(1)
|
|
73
|
+
);
|
|
74
|
+
const toHandlerKey = cacheStringFunction(
|
|
75
|
+
(str) => str ? `on${capitalize(str)}` : ``
|
|
76
|
+
);
|
|
77
|
+
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
|
78
|
+
const invokeArrayFns = (fns, arg) => {
|
|
79
|
+
for (let i = 0; i < fns.length; i++) {
|
|
80
|
+
fns[i](arg);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
const def = (obj, key, value) => {
|
|
84
|
+
Object.defineProperty(obj, key, {
|
|
85
|
+
configurable: true,
|
|
86
|
+
enumerable: false,
|
|
87
|
+
value
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
const looseToNumber = (val) => {
|
|
91
|
+
const n = parseFloat(val);
|
|
92
|
+
return isNaN(n) ? val : n;
|
|
93
|
+
};
|
|
94
|
+
const toNumber = (val) => {
|
|
95
|
+
const n = isString(val) ? Number(val) : NaN;
|
|
96
|
+
return isNaN(n) ? val : n;
|
|
97
|
+
};
|
|
98
|
+
let _globalThis;
|
|
99
|
+
const getGlobalThis = () => {
|
|
100
|
+
return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
|
|
101
|
+
};
|
|
102
|
+
|
|
13
103
|
const GLOBALS_WHITE_LISTED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt";
|
|
14
104
|
const isGloballyWhitelisted = /* @__PURE__ */ makeMap(GLOBALS_WHITE_LISTED);
|
|
15
105
|
|
|
@@ -164,96 +254,6 @@ var Vue = (function () {
|
|
|
164
254
|
return val;
|
|
165
255
|
};
|
|
166
256
|
|
|
167
|
-
const EMPTY_OBJ = Object.freeze({}) ;
|
|
168
|
-
const EMPTY_ARR = Object.freeze([]) ;
|
|
169
|
-
const NOOP = () => {
|
|
170
|
-
};
|
|
171
|
-
const NO = () => false;
|
|
172
|
-
const onRE = /^on[^a-z]/;
|
|
173
|
-
const isOn = (key) => onRE.test(key);
|
|
174
|
-
const isModelListener = (key) => key.startsWith("onUpdate:");
|
|
175
|
-
const extend = Object.assign;
|
|
176
|
-
const remove = (arr, el) => {
|
|
177
|
-
const i = arr.indexOf(el);
|
|
178
|
-
if (i > -1) {
|
|
179
|
-
arr.splice(i, 1);
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
183
|
-
const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
|
|
184
|
-
const isArray = Array.isArray;
|
|
185
|
-
const isMap = (val) => toTypeString(val) === "[object Map]";
|
|
186
|
-
const isSet = (val) => toTypeString(val) === "[object Set]";
|
|
187
|
-
const isDate = (val) => toTypeString(val) === "[object Date]";
|
|
188
|
-
const isRegExp = (val) => toTypeString(val) === "[object RegExp]";
|
|
189
|
-
const isFunction = (val) => typeof val === "function";
|
|
190
|
-
const isString = (val) => typeof val === "string";
|
|
191
|
-
const isSymbol = (val) => typeof val === "symbol";
|
|
192
|
-
const isObject = (val) => val !== null && typeof val === "object";
|
|
193
|
-
const isPromise = (val) => {
|
|
194
|
-
return isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
|
195
|
-
};
|
|
196
|
-
const objectToString = Object.prototype.toString;
|
|
197
|
-
const toTypeString = (value) => objectToString.call(value);
|
|
198
|
-
const toRawType = (value) => {
|
|
199
|
-
return toTypeString(value).slice(8, -1);
|
|
200
|
-
};
|
|
201
|
-
const isPlainObject = (val) => toTypeString(val) === "[object Object]";
|
|
202
|
-
const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
|
|
203
|
-
const isReservedProp = /* @__PURE__ */ makeMap(
|
|
204
|
-
// the leading comma is intentional so empty string "" is also included
|
|
205
|
-
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
206
|
-
);
|
|
207
|
-
const isBuiltInDirective = /* @__PURE__ */ makeMap(
|
|
208
|
-
"bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"
|
|
209
|
-
);
|
|
210
|
-
const cacheStringFunction = (fn) => {
|
|
211
|
-
const cache = /* @__PURE__ */ Object.create(null);
|
|
212
|
-
return (str) => {
|
|
213
|
-
const hit = cache[str];
|
|
214
|
-
return hit || (cache[str] = fn(str));
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
const camelizeRE = /-(\w)/g;
|
|
218
|
-
const camelize = cacheStringFunction((str) => {
|
|
219
|
-
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
|
|
220
|
-
});
|
|
221
|
-
const hyphenateRE = /\B([A-Z])/g;
|
|
222
|
-
const hyphenate = cacheStringFunction(
|
|
223
|
-
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
|
224
|
-
);
|
|
225
|
-
const capitalize = cacheStringFunction(
|
|
226
|
-
(str) => str.charAt(0).toUpperCase() + str.slice(1)
|
|
227
|
-
);
|
|
228
|
-
const toHandlerKey = cacheStringFunction(
|
|
229
|
-
(str) => str ? `on${capitalize(str)}` : ``
|
|
230
|
-
);
|
|
231
|
-
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
|
232
|
-
const invokeArrayFns = (fns, arg) => {
|
|
233
|
-
for (let i = 0; i < fns.length; i++) {
|
|
234
|
-
fns[i](arg);
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
const def = (obj, key, value) => {
|
|
238
|
-
Object.defineProperty(obj, key, {
|
|
239
|
-
configurable: true,
|
|
240
|
-
enumerable: false,
|
|
241
|
-
value
|
|
242
|
-
});
|
|
243
|
-
};
|
|
244
|
-
const looseToNumber = (val) => {
|
|
245
|
-
const n = parseFloat(val);
|
|
246
|
-
return isNaN(n) ? val : n;
|
|
247
|
-
};
|
|
248
|
-
const toNumber = (val) => {
|
|
249
|
-
const n = isString(val) ? Number(val) : NaN;
|
|
250
|
-
return isNaN(n) ? val : n;
|
|
251
|
-
};
|
|
252
|
-
let _globalThis;
|
|
253
|
-
const getGlobalThis = () => {
|
|
254
|
-
return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
|
|
255
|
-
};
|
|
256
|
-
|
|
257
257
|
function warn$1(msg, ...args) {
|
|
258
258
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
259
259
|
}
|
|
@@ -1403,7 +1403,7 @@ var Vue = (function () {
|
|
|
1403
1403
|
callWithErrorHandling(
|
|
1404
1404
|
appWarnHandler,
|
|
1405
1405
|
instance,
|
|
1406
|
-
|
|
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
|
-
[
|
|
1520
|
-
[
|
|
1521
|
-
[
|
|
1522
|
-
[
|
|
1523
|
-
[
|
|
1524
|
-
[
|
|
1525
|
-
[
|
|
1526
|
-
[
|
|
1527
|
-
[
|
|
1528
|
-
[
|
|
1529
|
-
[
|
|
1530
|
-
[
|
|
1531
|
-
[
|
|
1532
|
-
[
|
|
1533
|
-
[
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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
|
-
|
|
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,
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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,
|
|
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,
|
|
4601
|
+
callWithAsyncErrorHandling(hook, instance, 8, [
|
|
4602
4602
|
vnode.el,
|
|
4603
4603
|
binding,
|
|
4604
4604
|
vnode,
|
|
@@ -4615,7 +4615,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
4615
4615
|
function resolveComponent(name, maybeSelfReference) {
|
|
4616
4616
|
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
4617
4617
|
}
|
|
4618
|
-
const NULL_DYNAMIC_COMPONENT = Symbol();
|
|
4618
|
+
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
4619
4619
|
function resolveDynamicComponent(component) {
|
|
4620
4620
|
if (isString(component)) {
|
|
4621
4621
|
return resolveAsset(COMPONENTS, component, false) || component;
|
|
@@ -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.5"}`;
|
|
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,
|
|
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,
|
|
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 !==
|
|
8872
|
+
const needTransition = moveType !== 2 && shapeFlag & 1 && transition;
|
|
8873
8873
|
if (needTransition) {
|
|
8874
|
-
if (moveType ===
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 =
|
|
9343
|
-
if (moveType ===
|
|
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 ===
|
|
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
|
-
|
|
9358
|
+
2
|
|
9359
9359
|
);
|
|
9360
9360
|
}
|
|
9361
9361
|
}
|
|
@@ -9476,10 +9476,10 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9476
9476
|
return comp;
|
|
9477
9477
|
}
|
|
9478
9478
|
|
|
9479
|
-
const Fragment = Symbol("
|
|
9480
|
-
const Text = Symbol("
|
|
9481
|
-
const Comment = Symbol("
|
|
9482
|
-
const Static = Symbol("
|
|
9479
|
+
const Fragment = Symbol.for("v-fgt");
|
|
9480
|
+
const Text = Symbol.for("v-txt");
|
|
9481
|
+
const Comment = Symbol.for("v-cmt");
|
|
9482
|
+
const Static = Symbol.for("v-stc");
|
|
9483
9483
|
const blockStack = [];
|
|
9484
9484
|
let currentBlock = null;
|
|
9485
9485
|
function openBlock(disableTracking = false) {
|
|
@@ -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,
|
|
9847
|
+
callWithAsyncErrorHandling(hook, instance, 7, [
|
|
9848
9848
|
vnode,
|
|
9849
9849
|
prevVNode
|
|
9850
9850
|
]);
|
|
@@ -9941,13 +9941,19 @@ Component that was made reactive: `,
|
|
|
9941
9941
|
}
|
|
9942
9942
|
let currentInstance = null;
|
|
9943
9943
|
const getCurrentInstance = () => currentInstance || currentRenderingInstance;
|
|
9944
|
+
let internalSetCurrentInstance;
|
|
9945
|
+
{
|
|
9946
|
+
internalSetCurrentInstance = (i) => {
|
|
9947
|
+
currentInstance = i;
|
|
9948
|
+
};
|
|
9949
|
+
}
|
|
9944
9950
|
const setCurrentInstance = (instance) => {
|
|
9945
|
-
|
|
9951
|
+
internalSetCurrentInstance(instance);
|
|
9946
9952
|
instance.scope.on();
|
|
9947
9953
|
};
|
|
9948
9954
|
const unsetCurrentInstance = () => {
|
|
9949
9955
|
currentInstance && currentInstance.scope.off();
|
|
9950
|
-
|
|
9956
|
+
internalSetCurrentInstance(null);
|
|
9951
9957
|
};
|
|
9952
9958
|
const isBuiltInTag = /* @__PURE__ */ makeMap("slot,component");
|
|
9953
9959
|
function validateComponentName(name, config) {
|
|
@@ -10010,7 +10016,7 @@ Component that was made reactive: `,
|
|
|
10010
10016
|
const setupResult = callWithErrorHandling(
|
|
10011
10017
|
setup,
|
|
10012
10018
|
instance,
|
|
10013
|
-
|
|
10019
|
+
0,
|
|
10014
10020
|
[shallowReadonly(instance.props) , setupContext]
|
|
10015
10021
|
);
|
|
10016
10022
|
resetTracking();
|
|
@@ -10021,7 +10027,7 @@ Component that was made reactive: `,
|
|
|
10021
10027
|
return setupResult.then((resolvedResult) => {
|
|
10022
10028
|
handleSetupResult(instance, resolvedResult, isSSR);
|
|
10023
10029
|
}).catch((e) => {
|
|
10024
|
-
handleError(e, instance,
|
|
10030
|
+
handleError(e, instance, 0);
|
|
10025
10031
|
});
|
|
10026
10032
|
} else {
|
|
10027
10033
|
instance.asyncDep = setupResult;
|
|
@@ -10359,7 +10365,7 @@ Component that was made reactive: `,
|
|
|
10359
10365
|
}
|
|
10360
10366
|
}
|
|
10361
10367
|
|
|
10362
|
-
const ssrContextKey = Symbol(
|
|
10368
|
+
const ssrContextKey = Symbol.for("v-scx");
|
|
10363
10369
|
const useSSRContext = () => {
|
|
10364
10370
|
{
|
|
10365
10371
|
warn(`useSSRContext() is not supported in the global build.`);
|
|
@@ -10567,7 +10573,7 @@ Component that was made reactive: `,
|
|
|
10567
10573
|
return true;
|
|
10568
10574
|
}
|
|
10569
10575
|
|
|
10570
|
-
const version = "3.3.0-alpha.
|
|
10576
|
+
const version = "3.3.0-alpha.5";
|
|
10571
10577
|
const ssrUtils = null;
|
|
10572
10578
|
const resolveFilter = resolveFilter$1 ;
|
|
10573
10579
|
const _compatUtils = {
|
|
@@ -10899,7 +10905,7 @@ Component that was made reactive: `,
|
|
|
10899
10905
|
callWithAsyncErrorHandling(
|
|
10900
10906
|
patchStopImmediatePropagation(e, invoker.value),
|
|
10901
10907
|
instance,
|
|
10902
|
-
|
|
10908
|
+
5,
|
|
10903
10909
|
[e]
|
|
10904
10910
|
);
|
|
10905
10911
|
};
|