@vue/compat 3.5.16 → 3.5.17
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 +34 -22
- package/dist/vue.cjs.prod.js +33 -21
- package/dist/vue.esm-browser.js +34 -22
- package/dist/vue.esm-browser.prod.js +8 -8
- package/dist/vue.esm-bundler.js +34 -22
- package/dist/vue.global.js +34 -22
- package/dist/vue.global.prod.js +8 -8
- package/dist/vue.runtime.esm-browser.js +22 -10
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +22 -10
- package/dist/vue.runtime.global.js +22 -10
- 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.17
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -126,7 +126,7 @@ const PatchFlagNames = {
|
|
|
126
126
|
[512]: `NEED_PATCH`,
|
|
127
127
|
[1024]: `DYNAMIC_SLOTS`,
|
|
128
128
|
[2048]: `DEV_ROOT_FRAGMENT`,
|
|
129
|
-
[-1]: `
|
|
129
|
+
[-1]: `CACHED`,
|
|
130
130
|
[-2]: `BAIL`
|
|
131
131
|
};
|
|
132
132
|
|
|
@@ -857,6 +857,7 @@ class Link {
|
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
859
|
class Dep {
|
|
860
|
+
// TODO isolatedDeclarations "__v_skip"
|
|
860
861
|
constructor(computed) {
|
|
861
862
|
this.computed = computed;
|
|
862
863
|
this.version = 0;
|
|
@@ -877,6 +878,10 @@ class Dep {
|
|
|
877
878
|
* Subscriber counter
|
|
878
879
|
*/
|
|
879
880
|
this.sc = 0;
|
|
881
|
+
/**
|
|
882
|
+
* @internal
|
|
883
|
+
*/
|
|
884
|
+
this.__v_skip = true;
|
|
880
885
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
881
886
|
this.subsHead = void 0;
|
|
882
887
|
}
|
|
@@ -5041,7 +5046,7 @@ function isMismatchAllowed(el, allowedType) {
|
|
|
5041
5046
|
if (allowedType === 0 /* TEXT */ && list.includes("children")) {
|
|
5042
5047
|
return true;
|
|
5043
5048
|
}
|
|
5044
|
-
return
|
|
5049
|
+
return list.includes(MismatchTypeString[allowedType]);
|
|
5045
5050
|
}
|
|
5046
5051
|
}
|
|
5047
5052
|
|
|
@@ -7233,7 +7238,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7233
7238
|
return vm;
|
|
7234
7239
|
}
|
|
7235
7240
|
}
|
|
7236
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7241
|
+
Vue.version = `2.6.14-compat:${"3.5.17"}`;
|
|
7237
7242
|
Vue.config = singletonApp.config;
|
|
7238
7243
|
Vue.use = (plugin, ...options) => {
|
|
7239
7244
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -8382,6 +8387,8 @@ const assignSlots = (slots, children, optimized) => {
|
|
|
8382
8387
|
const initSlots = (instance, children, optimized) => {
|
|
8383
8388
|
const slots = instance.slots = createInternalObject();
|
|
8384
8389
|
if (instance.vnode.shapeFlag & 32) {
|
|
8390
|
+
const cacheIndexes = children.__;
|
|
8391
|
+
if (cacheIndexes) def(slots, "__", cacheIndexes, true);
|
|
8385
8392
|
const type = children._;
|
|
8386
8393
|
if (type) {
|
|
8387
8394
|
assignSlots(slots, children, optimized);
|
|
@@ -8620,6 +8627,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8620
8627
|
}
|
|
8621
8628
|
if (ref != null && parentComponent) {
|
|
8622
8629
|
setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
|
|
8630
|
+
} else if (ref == null && n1 && n1.ref != null) {
|
|
8631
|
+
setRef(n1.ref, null, parentSuspense, n1, true);
|
|
8623
8632
|
}
|
|
8624
8633
|
};
|
|
8625
8634
|
const processText = (n1, n2, container, anchor) => {
|
|
@@ -9194,7 +9203,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9194
9203
|
hydrateSubTree();
|
|
9195
9204
|
}
|
|
9196
9205
|
} else {
|
|
9197
|
-
if (root.ce
|
|
9206
|
+
if (root.ce && // @ts-expect-error _def is private
|
|
9207
|
+
root.ce._def.shadowRoot !== false) {
|
|
9198
9208
|
root.ce._injectChildStyle(type);
|
|
9199
9209
|
}
|
|
9200
9210
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
@@ -10290,8 +10300,9 @@ function emit(instance, event, ...rawArgs) {
|
|
|
10290
10300
|
}
|
|
10291
10301
|
}
|
|
10292
10302
|
let args = rawArgs;
|
|
10293
|
-
const
|
|
10294
|
-
const
|
|
10303
|
+
const isCompatModelListener = compatModelEventPrefix + event in props;
|
|
10304
|
+
const isModelListener = isCompatModelListener || event.startsWith("update:");
|
|
10305
|
+
const modifiers = isCompatModelListener ? props.modelModifiers : isModelListener && getModelModifiers(props, event.slice(7));
|
|
10295
10306
|
if (modifiers) {
|
|
10296
10307
|
if (modifiers.trim) {
|
|
10297
10308
|
args = rawArgs.map((a) => isString(a) ? a.trim() : a);
|
|
@@ -12443,7 +12454,7 @@ function isMemoSame(cached, memo) {
|
|
|
12443
12454
|
return true;
|
|
12444
12455
|
}
|
|
12445
12456
|
|
|
12446
|
-
const version = "3.5.
|
|
12457
|
+
const version = "3.5.17";
|
|
12447
12458
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
12448
12459
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12449
12460
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -13534,9 +13545,10 @@ class VueElement extends BaseClass {
|
|
|
13534
13545
|
};
|
|
13535
13546
|
const asyncDef = this._def.__asyncLoader;
|
|
13536
13547
|
if (asyncDef) {
|
|
13537
|
-
this._pendingResolve = asyncDef().then(
|
|
13538
|
-
|
|
13539
|
-
|
|
13548
|
+
this._pendingResolve = asyncDef().then((def) => {
|
|
13549
|
+
def.configureApp = this._def.configureApp;
|
|
13550
|
+
resolve(this._def = def, true);
|
|
13551
|
+
});
|
|
13540
13552
|
} else {
|
|
13541
13553
|
resolve(this._def);
|
|
13542
13554
|
}
|
|
@@ -15553,7 +15565,7 @@ class Tokenizer {
|
|
|
15553
15565
|
this.buffer = input;
|
|
15554
15566
|
while (this.index < this.buffer.length) {
|
|
15555
15567
|
const c = this.buffer.charCodeAt(this.index);
|
|
15556
|
-
if (c === 10) {
|
|
15568
|
+
if (c === 10 && this.state !== 33) {
|
|
15557
15569
|
this.newlines.push(this.index);
|
|
15558
15570
|
}
|
|
15559
15571
|
switch (this.state) {
|
|
@@ -16708,7 +16720,7 @@ function isUpperCase(c) {
|
|
|
16708
16720
|
return c > 64 && c < 91;
|
|
16709
16721
|
}
|
|
16710
16722
|
const windowsNewlineRE = /\r\n/g;
|
|
16711
|
-
function condenseWhitespace(nodes
|
|
16723
|
+
function condenseWhitespace(nodes) {
|
|
16712
16724
|
const shouldCondense = currentOptions.whitespace !== "preserve";
|
|
16713
16725
|
let removedWhitespace = false;
|
|
16714
16726
|
for (let i = 0; i < nodes.length; i++) {
|
|
@@ -16872,12 +16884,12 @@ function cacheStatic(root, context) {
|
|
|
16872
16884
|
context,
|
|
16873
16885
|
// Root node is unfortunately non-hoistable due to potential parent
|
|
16874
16886
|
// fallthrough attributes.
|
|
16875
|
-
|
|
16887
|
+
!!getSingleElementRoot(root)
|
|
16876
16888
|
);
|
|
16877
16889
|
}
|
|
16878
|
-
function
|
|
16879
|
-
const
|
|
16880
|
-
return children.length === 1 &&
|
|
16890
|
+
function getSingleElementRoot(root) {
|
|
16891
|
+
const children = root.children.filter((x) => x.type !== 3);
|
|
16892
|
+
return children.length === 1 && children[0].type === 1 && !isSlotOutlet(children[0]) ? children[0] : null;
|
|
16881
16893
|
}
|
|
16882
16894
|
function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
|
|
16883
16895
|
const { children } = node;
|
|
@@ -17344,15 +17356,15 @@ function createRootCodegen(root, context) {
|
|
|
17344
17356
|
const { helper } = context;
|
|
17345
17357
|
const { children } = root;
|
|
17346
17358
|
if (children.length === 1) {
|
|
17347
|
-
const
|
|
17348
|
-
if (
|
|
17349
|
-
const codegenNode =
|
|
17359
|
+
const singleElementRootChild = getSingleElementRoot(root);
|
|
17360
|
+
if (singleElementRootChild && singleElementRootChild.codegenNode) {
|
|
17361
|
+
const codegenNode = singleElementRootChild.codegenNode;
|
|
17350
17362
|
if (codegenNode.type === 13) {
|
|
17351
17363
|
convertToBlock(codegenNode, context);
|
|
17352
17364
|
}
|
|
17353
17365
|
root.codegenNode = codegenNode;
|
|
17354
17366
|
} else {
|
|
17355
|
-
root.codegenNode =
|
|
17367
|
+
root.codegenNode = children[0];
|
|
17356
17368
|
}
|
|
17357
17369
|
} else if (children.length > 1) {
|
|
17358
17370
|
let patchFlag = 64;
|
|
@@ -18709,7 +18721,7 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
|
|
|
18709
18721
|
let prev;
|
|
18710
18722
|
while (j--) {
|
|
18711
18723
|
prev = children[j];
|
|
18712
|
-
if (prev.type !== 3) {
|
|
18724
|
+
if (prev.type !== 3 && isNonWhitespaceContent(prev)) {
|
|
18713
18725
|
break;
|
|
18714
18726
|
}
|
|
18715
18727
|
}
|
package/dist/vue.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.17
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -129,7 +129,7 @@ var Vue = (function () {
|
|
|
129
129
|
[512]: `NEED_PATCH`,
|
|
130
130
|
[1024]: `DYNAMIC_SLOTS`,
|
|
131
131
|
[2048]: `DEV_ROOT_FRAGMENT`,
|
|
132
|
-
[-1]: `
|
|
132
|
+
[-1]: `CACHED`,
|
|
133
133
|
[-2]: `BAIL`
|
|
134
134
|
};
|
|
135
135
|
|
|
@@ -860,6 +860,7 @@ var Vue = (function () {
|
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
862
|
class Dep {
|
|
863
|
+
// TODO isolatedDeclarations "__v_skip"
|
|
863
864
|
constructor(computed) {
|
|
864
865
|
this.computed = computed;
|
|
865
866
|
this.version = 0;
|
|
@@ -880,6 +881,10 @@ var Vue = (function () {
|
|
|
880
881
|
* Subscriber counter
|
|
881
882
|
*/
|
|
882
883
|
this.sc = 0;
|
|
884
|
+
/**
|
|
885
|
+
* @internal
|
|
886
|
+
*/
|
|
887
|
+
this.__v_skip = true;
|
|
883
888
|
{
|
|
884
889
|
this.subsHead = void 0;
|
|
885
890
|
}
|
|
@@ -5014,7 +5019,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
5014
5019
|
if (allowedType === 0 /* TEXT */ && list.includes("children")) {
|
|
5015
5020
|
return true;
|
|
5016
5021
|
}
|
|
5017
|
-
return
|
|
5022
|
+
return list.includes(MismatchTypeString[allowedType]);
|
|
5018
5023
|
}
|
|
5019
5024
|
}
|
|
5020
5025
|
|
|
@@ -7195,7 +7200,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
7195
7200
|
return vm;
|
|
7196
7201
|
}
|
|
7197
7202
|
}
|
|
7198
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7203
|
+
Vue.version = `2.6.14-compat:${"3.5.17"}`;
|
|
7199
7204
|
Vue.config = singletonApp.config;
|
|
7200
7205
|
Vue.use = (plugin, ...options) => {
|
|
7201
7206
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -8342,6 +8347,8 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8342
8347
|
const initSlots = (instance, children, optimized) => {
|
|
8343
8348
|
const slots = instance.slots = createInternalObject();
|
|
8344
8349
|
if (instance.vnode.shapeFlag & 32) {
|
|
8350
|
+
const cacheIndexes = children.__;
|
|
8351
|
+
if (cacheIndexes) def(slots, "__", cacheIndexes, true);
|
|
8345
8352
|
const type = children._;
|
|
8346
8353
|
if (type) {
|
|
8347
8354
|
assignSlots(slots, children, optimized);
|
|
@@ -8553,6 +8560,8 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
8553
8560
|
}
|
|
8554
8561
|
if (ref != null && parentComponent) {
|
|
8555
8562
|
setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
|
|
8563
|
+
} else if (ref == null && n1 && n1.ref != null) {
|
|
8564
|
+
setRef(n1.ref, null, parentSuspense, n1, true);
|
|
8556
8565
|
}
|
|
8557
8566
|
};
|
|
8558
8567
|
const processText = (n1, n2, container, anchor) => {
|
|
@@ -9116,7 +9125,8 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
9116
9125
|
hydrateSubTree();
|
|
9117
9126
|
}
|
|
9118
9127
|
} else {
|
|
9119
|
-
if (root.ce
|
|
9128
|
+
if (root.ce && // @ts-expect-error _def is private
|
|
9129
|
+
root.ce._def.shadowRoot !== false) {
|
|
9120
9130
|
root.ce._injectChildStyle(type);
|
|
9121
9131
|
}
|
|
9122
9132
|
{
|
|
@@ -10184,8 +10194,9 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
10184
10194
|
}
|
|
10185
10195
|
}
|
|
10186
10196
|
let args = rawArgs;
|
|
10187
|
-
const
|
|
10188
|
-
const
|
|
10197
|
+
const isCompatModelListener = compatModelEventPrefix + event in props;
|
|
10198
|
+
const isModelListener = isCompatModelListener || event.startsWith("update:");
|
|
10199
|
+
const modifiers = isCompatModelListener ? props.modelModifiers : isModelListener && getModelModifiers(props, event.slice(7));
|
|
10189
10200
|
if (modifiers) {
|
|
10190
10201
|
if (modifiers.trim) {
|
|
10191
10202
|
args = rawArgs.map((a) => isString(a) ? a.trim() : a);
|
|
@@ -12309,7 +12320,7 @@ Component that was made reactive: `,
|
|
|
12309
12320
|
return true;
|
|
12310
12321
|
}
|
|
12311
12322
|
|
|
12312
|
-
const version = "3.5.
|
|
12323
|
+
const version = "3.5.17";
|
|
12313
12324
|
const warn = warn$1 ;
|
|
12314
12325
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12315
12326
|
const devtools = devtools$1 ;
|
|
@@ -13381,9 +13392,10 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
13381
13392
|
};
|
|
13382
13393
|
const asyncDef = this._def.__asyncLoader;
|
|
13383
13394
|
if (asyncDef) {
|
|
13384
|
-
this._pendingResolve = asyncDef().then(
|
|
13385
|
-
|
|
13386
|
-
|
|
13395
|
+
this._pendingResolve = asyncDef().then((def) => {
|
|
13396
|
+
def.configureApp = this._def.configureApp;
|
|
13397
|
+
resolve(this._def = def, true);
|
|
13398
|
+
});
|
|
13387
13399
|
} else {
|
|
13388
13400
|
resolve(this._def);
|
|
13389
13401
|
}
|
|
@@ -15353,7 +15365,7 @@ Make sure to use the production build (*.prod.js) when deploying for production.
|
|
|
15353
15365
|
this.buffer = input;
|
|
15354
15366
|
while (this.index < this.buffer.length) {
|
|
15355
15367
|
const c = this.buffer.charCodeAt(this.index);
|
|
15356
|
-
if (c === 10) {
|
|
15368
|
+
if (c === 10 && this.state !== 33) {
|
|
15357
15369
|
this.newlines.push(this.index);
|
|
15358
15370
|
}
|
|
15359
15371
|
switch (this.state) {
|
|
@@ -16508,7 +16520,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
16508
16520
|
return c > 64 && c < 91;
|
|
16509
16521
|
}
|
|
16510
16522
|
const windowsNewlineRE = /\r\n/g;
|
|
16511
|
-
function condenseWhitespace(nodes
|
|
16523
|
+
function condenseWhitespace(nodes) {
|
|
16512
16524
|
const shouldCondense = currentOptions.whitespace !== "preserve";
|
|
16513
16525
|
let removedWhitespace = false;
|
|
16514
16526
|
for (let i = 0; i < nodes.length; i++) {
|
|
@@ -16672,12 +16684,12 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
16672
16684
|
context,
|
|
16673
16685
|
// Root node is unfortunately non-hoistable due to potential parent
|
|
16674
16686
|
// fallthrough attributes.
|
|
16675
|
-
|
|
16687
|
+
!!getSingleElementRoot(root)
|
|
16676
16688
|
);
|
|
16677
16689
|
}
|
|
16678
|
-
function
|
|
16679
|
-
const
|
|
16680
|
-
return children.length === 1 &&
|
|
16690
|
+
function getSingleElementRoot(root) {
|
|
16691
|
+
const children = root.children.filter((x) => x.type !== 3);
|
|
16692
|
+
return children.length === 1 && children[0].type === 1 && !isSlotOutlet(children[0]) ? children[0] : null;
|
|
16681
16693
|
}
|
|
16682
16694
|
function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
|
|
16683
16695
|
const { children } = node;
|
|
@@ -17143,15 +17155,15 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
17143
17155
|
const { helper } = context;
|
|
17144
17156
|
const { children } = root;
|
|
17145
17157
|
if (children.length === 1) {
|
|
17146
|
-
const
|
|
17147
|
-
if (
|
|
17148
|
-
const codegenNode =
|
|
17158
|
+
const singleElementRootChild = getSingleElementRoot(root);
|
|
17159
|
+
if (singleElementRootChild && singleElementRootChild.codegenNode) {
|
|
17160
|
+
const codegenNode = singleElementRootChild.codegenNode;
|
|
17149
17161
|
if (codegenNode.type === 13) {
|
|
17150
17162
|
convertToBlock(codegenNode, context);
|
|
17151
17163
|
}
|
|
17152
17164
|
root.codegenNode = codegenNode;
|
|
17153
17165
|
} else {
|
|
17154
|
-
root.codegenNode =
|
|
17166
|
+
root.codegenNode = children[0];
|
|
17155
17167
|
}
|
|
17156
17168
|
} else if (children.length > 1) {
|
|
17157
17169
|
let patchFlag = 64;
|
|
@@ -18506,7 +18518,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
18506
18518
|
let prev;
|
|
18507
18519
|
while (j--) {
|
|
18508
18520
|
prev = children[j];
|
|
18509
|
-
if (prev.type !== 3) {
|
|
18521
|
+
if (prev.type !== 3 && isNonWhitespaceContent(prev)) {
|
|
18510
18522
|
break;
|
|
18511
18523
|
}
|
|
18512
18524
|
}
|