@vue/compat 3.3.9 → 3.3.10
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 +33 -17
- package/dist/vue.cjs.prod.js +30 -14
- package/dist/vue.esm-browser.js +29 -17
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +29 -17
- package/dist/vue.global.js +29 -17
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +26 -17
- package/dist/vue.runtime.esm-browser.prod.js +5 -5
- package/dist/vue.runtime.esm-bundler.js +26 -17
- package/dist/vue.runtime.global.js +26 -17
- package/dist/vue.runtime.global.prod.js +5 -5
- package/package.json +3 -3
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -12,8 +12,8 @@ const EMPTY_ARR = !!(process.env.NODE_ENV !== "production") ? Object.freeze([])
|
|
|
12
12
|
const NOOP = () => {
|
|
13
13
|
};
|
|
14
14
|
const NO = () => false;
|
|
15
|
-
const
|
|
16
|
-
|
|
15
|
+
const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter
|
|
16
|
+
(key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
|
|
17
17
|
const isModelListener = (key) => key.startsWith("onUpdate:");
|
|
18
18
|
const extend = Object.assign;
|
|
19
19
|
const remove = (arr, el) => {
|
|
@@ -3389,7 +3389,12 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3389
3389
|
if (delayEnter) {
|
|
3390
3390
|
activeBranch.transition.afterLeave = () => {
|
|
3391
3391
|
if (pendingId === suspense.pendingId) {
|
|
3392
|
-
move(
|
|
3392
|
+
move(
|
|
3393
|
+
pendingBranch,
|
|
3394
|
+
container2,
|
|
3395
|
+
next(activeBranch),
|
|
3396
|
+
0
|
|
3397
|
+
);
|
|
3393
3398
|
queuePostFlushCb(effects);
|
|
3394
3399
|
}
|
|
3395
3400
|
};
|
|
@@ -3436,7 +3441,6 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3436
3441
|
}
|
|
3437
3442
|
const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, isSVG: isSVG2 } = suspense;
|
|
3438
3443
|
triggerEvent(vnode2, "onFallback");
|
|
3439
|
-
const anchor2 = next(activeBranch);
|
|
3440
3444
|
const mountFallback = () => {
|
|
3441
3445
|
if (!suspense.isInFallback) {
|
|
3442
3446
|
return;
|
|
@@ -3445,7 +3449,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
3445
3449
|
null,
|
|
3446
3450
|
fallbackVNode,
|
|
3447
3451
|
container2,
|
|
3448
|
-
|
|
3452
|
+
next(activeBranch),
|
|
3449
3453
|
parentComponent2,
|
|
3450
3454
|
null,
|
|
3451
3455
|
// fallback tree will not have suspense context
|
|
@@ -6317,7 +6321,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6317
6321
|
return vm;
|
|
6318
6322
|
}
|
|
6319
6323
|
}
|
|
6320
|
-
Vue.version = `2.6.14-compat:${"3.3.
|
|
6324
|
+
Vue.version = `2.6.14-compat:${"3.3.10"}`;
|
|
6321
6325
|
Vue.config = singletonApp.config;
|
|
6322
6326
|
Vue.use = (p, ...options) => {
|
|
6323
6327
|
if (p && isFunction(p.install)) {
|
|
@@ -10779,9 +10783,9 @@ function initCustomFormatter() {
|
|
|
10779
10783
|
return;
|
|
10780
10784
|
}
|
|
10781
10785
|
const vueStyle = { style: "color:#3ba776" };
|
|
10782
|
-
const numberStyle = { style: "color:#
|
|
10783
|
-
const stringStyle = { style: "color:#
|
|
10784
|
-
const keywordStyle = { style: "color:#
|
|
10786
|
+
const numberStyle = { style: "color:#1677ff" };
|
|
10787
|
+
const stringStyle = { style: "color:#f5222d" };
|
|
10788
|
+
const keywordStyle = { style: "color:#eb2f96" };
|
|
10785
10789
|
const formatter = {
|
|
10786
10790
|
header(obj) {
|
|
10787
10791
|
if (!isObject(obj)) {
|
|
@@ -10975,7 +10979,7 @@ function isMemoSame(cached, memo) {
|
|
|
10975
10979
|
return true;
|
|
10976
10980
|
}
|
|
10977
10981
|
|
|
10978
|
-
const version = "3.3.
|
|
10982
|
+
const version = "3.3.10";
|
|
10979
10983
|
const _ssrUtils = {
|
|
10980
10984
|
createComponentInstance,
|
|
10981
10985
|
setupComponent,
|
|
@@ -11689,7 +11693,8 @@ function patchStopImmediatePropagation(e, value) {
|
|
|
11689
11693
|
}
|
|
11690
11694
|
}
|
|
11691
11695
|
|
|
11692
|
-
const
|
|
11696
|
+
const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter
|
|
11697
|
+
key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
|
|
11693
11698
|
const patchProp = (el, key, prevValue, nextValue, isSVG = false, prevChildren, parentComponent, parentSuspense, unmountChildren) => {
|
|
11694
11699
|
if (key === "class") {
|
|
11695
11700
|
patchClass(el, nextValue, isSVG);
|
|
@@ -11723,7 +11728,7 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
11723
11728
|
if (key === "innerHTML" || key === "textContent") {
|
|
11724
11729
|
return true;
|
|
11725
11730
|
}
|
|
11726
|
-
if (key in el &&
|
|
11731
|
+
if (key in el && isNativeOn(key) && isFunction(value)) {
|
|
11727
11732
|
return true;
|
|
11728
11733
|
}
|
|
11729
11734
|
return false;
|
|
@@ -11740,7 +11745,11 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
11740
11745
|
if (key === "type" && el.tagName === "TEXTAREA") {
|
|
11741
11746
|
return false;
|
|
11742
11747
|
}
|
|
11743
|
-
if (
|
|
11748
|
+
if (key === "width" || key === "height") {
|
|
11749
|
+
const tag = el.tagName;
|
|
11750
|
+
return !(tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE");
|
|
11751
|
+
}
|
|
11752
|
+
if (isNativeOn(key) && isString(value)) {
|
|
11744
11753
|
return false;
|
|
11745
11754
|
}
|
|
11746
11755
|
return key in el;
|
|
@@ -12464,14 +12473,14 @@ const modifierGuards = {
|
|
|
12464
12473
|
exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
|
|
12465
12474
|
};
|
|
12466
12475
|
const withModifiers = (fn, modifiers) => {
|
|
12467
|
-
return (event, ...args) => {
|
|
12476
|
+
return fn._withMods || (fn._withMods = (event, ...args) => {
|
|
12468
12477
|
for (let i = 0; i < modifiers.length; i++) {
|
|
12469
12478
|
const guard = modifierGuards[modifiers[i]];
|
|
12470
12479
|
if (guard && guard(event, modifiers))
|
|
12471
12480
|
return;
|
|
12472
12481
|
}
|
|
12473
12482
|
return fn(event, ...args);
|
|
12474
|
-
};
|
|
12483
|
+
});
|
|
12475
12484
|
};
|
|
12476
12485
|
const keyNames = {
|
|
12477
12486
|
esc: "escape",
|
|
@@ -12499,7 +12508,7 @@ const withKeys = (fn, modifiers) => {
|
|
|
12499
12508
|
);
|
|
12500
12509
|
}
|
|
12501
12510
|
}
|
|
12502
|
-
return (event) => {
|
|
12511
|
+
return fn._withKeys || (fn._withKeys = (event) => {
|
|
12503
12512
|
if (!("key" in event)) {
|
|
12504
12513
|
return;
|
|
12505
12514
|
}
|
|
@@ -12527,7 +12536,7 @@ const withKeys = (fn, modifiers) => {
|
|
|
12527
12536
|
}
|
|
12528
12537
|
}
|
|
12529
12538
|
}
|
|
12530
|
-
};
|
|
12539
|
+
});
|
|
12531
12540
|
};
|
|
12532
12541
|
|
|
12533
12542
|
const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
|
|
@@ -16354,6 +16363,9 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
|
|
|
16354
16363
|
if (isEventHandler && isReservedProp(name)) {
|
|
16355
16364
|
hasVnodeHook = true;
|
|
16356
16365
|
}
|
|
16366
|
+
if (isEventHandler && value.type === 14) {
|
|
16367
|
+
value = value.arguments[0];
|
|
16368
|
+
}
|
|
16357
16369
|
if (value.type === 20 || (value.type === 4 || value.type === 8) && getConstantType(value, context) > 0) {
|
|
16358
16370
|
return;
|
|
16359
16371
|
}
|
package/dist/vue.global.js
CHANGED
|
@@ -15,8 +15,8 @@ var Vue = (function () {
|
|
|
15
15
|
const NOOP = () => {
|
|
16
16
|
};
|
|
17
17
|
const NO = () => false;
|
|
18
|
-
const
|
|
19
|
-
|
|
18
|
+
const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter
|
|
19
|
+
(key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
|
|
20
20
|
const isModelListener = (key) => key.startsWith("onUpdate:");
|
|
21
21
|
const extend = Object.assign;
|
|
22
22
|
const remove = (arr, el) => {
|
|
@@ -3375,7 +3375,12 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3375
3375
|
if (delayEnter) {
|
|
3376
3376
|
activeBranch.transition.afterLeave = () => {
|
|
3377
3377
|
if (pendingId === suspense.pendingId) {
|
|
3378
|
-
move(
|
|
3378
|
+
move(
|
|
3379
|
+
pendingBranch,
|
|
3380
|
+
container2,
|
|
3381
|
+
next(activeBranch),
|
|
3382
|
+
0
|
|
3383
|
+
);
|
|
3379
3384
|
queuePostFlushCb(effects);
|
|
3380
3385
|
}
|
|
3381
3386
|
};
|
|
@@ -3422,7 +3427,6 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3422
3427
|
}
|
|
3423
3428
|
const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, isSVG: isSVG2 } = suspense;
|
|
3424
3429
|
triggerEvent(vnode2, "onFallback");
|
|
3425
|
-
const anchor2 = next(activeBranch);
|
|
3426
3430
|
const mountFallback = () => {
|
|
3427
3431
|
if (!suspense.isInFallback) {
|
|
3428
3432
|
return;
|
|
@@ -3431,7 +3435,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
3431
3435
|
null,
|
|
3432
3436
|
fallbackVNode,
|
|
3433
3437
|
container2,
|
|
3434
|
-
|
|
3438
|
+
next(activeBranch),
|
|
3435
3439
|
parentComponent2,
|
|
3436
3440
|
null,
|
|
3437
3441
|
// fallback tree will not have suspense context
|
|
@@ -6272,7 +6276,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6272
6276
|
return vm;
|
|
6273
6277
|
}
|
|
6274
6278
|
}
|
|
6275
|
-
Vue.version = `2.6.14-compat:${"3.3.
|
|
6279
|
+
Vue.version = `2.6.14-compat:${"3.3.10"}`;
|
|
6276
6280
|
Vue.config = singletonApp.config;
|
|
6277
6281
|
Vue.use = (p, ...options) => {
|
|
6278
6282
|
if (p && isFunction(p.install)) {
|
|
@@ -10663,9 +10667,9 @@ Component that was made reactive: `,
|
|
|
10663
10667
|
return;
|
|
10664
10668
|
}
|
|
10665
10669
|
const vueStyle = { style: "color:#3ba776" };
|
|
10666
|
-
const numberStyle = { style: "color:#
|
|
10667
|
-
const stringStyle = { style: "color:#
|
|
10668
|
-
const keywordStyle = { style: "color:#
|
|
10670
|
+
const numberStyle = { style: "color:#1677ff" };
|
|
10671
|
+
const stringStyle = { style: "color:#f5222d" };
|
|
10672
|
+
const keywordStyle = { style: "color:#eb2f96" };
|
|
10669
10673
|
const formatter = {
|
|
10670
10674
|
header(obj) {
|
|
10671
10675
|
if (!isObject(obj)) {
|
|
@@ -10859,7 +10863,7 @@ Component that was made reactive: `,
|
|
|
10859
10863
|
return true;
|
|
10860
10864
|
}
|
|
10861
10865
|
|
|
10862
|
-
const version = "3.3.
|
|
10866
|
+
const version = "3.3.10";
|
|
10863
10867
|
const ssrUtils = null;
|
|
10864
10868
|
const resolveFilter = resolveFilter$1 ;
|
|
10865
10869
|
const _compatUtils = {
|
|
@@ -11558,7 +11562,8 @@ Component that was made reactive: `,
|
|
|
11558
11562
|
}
|
|
11559
11563
|
}
|
|
11560
11564
|
|
|
11561
|
-
const
|
|
11565
|
+
const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter
|
|
11566
|
+
key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
|
|
11562
11567
|
const patchProp = (el, key, prevValue, nextValue, isSVG = false, prevChildren, parentComponent, parentSuspense, unmountChildren) => {
|
|
11563
11568
|
if (key === "class") {
|
|
11564
11569
|
patchClass(el, nextValue, isSVG);
|
|
@@ -11592,7 +11597,7 @@ Component that was made reactive: `,
|
|
|
11592
11597
|
if (key === "innerHTML" || key === "textContent") {
|
|
11593
11598
|
return true;
|
|
11594
11599
|
}
|
|
11595
|
-
if (key in el &&
|
|
11600
|
+
if (key in el && isNativeOn(key) && isFunction(value)) {
|
|
11596
11601
|
return true;
|
|
11597
11602
|
}
|
|
11598
11603
|
return false;
|
|
@@ -11609,7 +11614,11 @@ Component that was made reactive: `,
|
|
|
11609
11614
|
if (key === "type" && el.tagName === "TEXTAREA") {
|
|
11610
11615
|
return false;
|
|
11611
11616
|
}
|
|
11612
|
-
if (
|
|
11617
|
+
if (key === "width" || key === "height") {
|
|
11618
|
+
const tag = el.tagName;
|
|
11619
|
+
return !(tag === "IMG" || tag === "VIDEO" || tag === "CANVAS" || tag === "SOURCE");
|
|
11620
|
+
}
|
|
11621
|
+
if (isNativeOn(key) && isString(value)) {
|
|
11613
11622
|
return false;
|
|
11614
11623
|
}
|
|
11615
11624
|
return key in el;
|
|
@@ -12287,14 +12296,14 @@ Component that was made reactive: `,
|
|
|
12287
12296
|
exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
|
|
12288
12297
|
};
|
|
12289
12298
|
const withModifiers = (fn, modifiers) => {
|
|
12290
|
-
return (event, ...args) => {
|
|
12299
|
+
return fn._withMods || (fn._withMods = (event, ...args) => {
|
|
12291
12300
|
for (let i = 0; i < modifiers.length; i++) {
|
|
12292
12301
|
const guard = modifierGuards[modifiers[i]];
|
|
12293
12302
|
if (guard && guard(event, modifiers))
|
|
12294
12303
|
return;
|
|
12295
12304
|
}
|
|
12296
12305
|
return fn(event, ...args);
|
|
12297
|
-
};
|
|
12306
|
+
});
|
|
12298
12307
|
};
|
|
12299
12308
|
const keyNames = {
|
|
12300
12309
|
esc: "escape",
|
|
@@ -12322,7 +12331,7 @@ Component that was made reactive: `,
|
|
|
12322
12331
|
);
|
|
12323
12332
|
}
|
|
12324
12333
|
}
|
|
12325
|
-
return (event) => {
|
|
12334
|
+
return fn._withKeys || (fn._withKeys = (event) => {
|
|
12326
12335
|
if (!("key" in event)) {
|
|
12327
12336
|
return;
|
|
12328
12337
|
}
|
|
@@ -12350,7 +12359,7 @@ Component that was made reactive: `,
|
|
|
12350
12359
|
}
|
|
12351
12360
|
}
|
|
12352
12361
|
}
|
|
12353
|
-
};
|
|
12362
|
+
});
|
|
12354
12363
|
};
|
|
12355
12364
|
|
|
12356
12365
|
const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
|
|
@@ -16173,6 +16182,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
16173
16182
|
if (isEventHandler && isReservedProp(name)) {
|
|
16174
16183
|
hasVnodeHook = true;
|
|
16175
16184
|
}
|
|
16185
|
+
if (isEventHandler && value.type === 14) {
|
|
16186
|
+
value = value.arguments[0];
|
|
16187
|
+
}
|
|
16176
16188
|
if (value.type === 20 || (value.type === 4 || value.type === 8) && getConstantType(value, context) > 0) {
|
|
16177
16189
|
return;
|
|
16178
16190
|
}
|