@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
|
@@ -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
|
**/
|
|
@@ -784,6 +784,7 @@ class Link {
|
|
|
784
784
|
}
|
|
785
785
|
}
|
|
786
786
|
class Dep {
|
|
787
|
+
// TODO isolatedDeclarations "__v_skip"
|
|
787
788
|
constructor(computed) {
|
|
788
789
|
this.computed = computed;
|
|
789
790
|
this.version = 0;
|
|
@@ -804,6 +805,10 @@ class Dep {
|
|
|
804
805
|
* Subscriber counter
|
|
805
806
|
*/
|
|
806
807
|
this.sc = 0;
|
|
808
|
+
/**
|
|
809
|
+
* @internal
|
|
810
|
+
*/
|
|
811
|
+
this.__v_skip = true;
|
|
807
812
|
{
|
|
808
813
|
this.subsHead = void 0;
|
|
809
814
|
}
|
|
@@ -4938,7 +4943,7 @@ function isMismatchAllowed(el, allowedType) {
|
|
|
4938
4943
|
if (allowedType === 0 /* TEXT */ && list.includes("children")) {
|
|
4939
4944
|
return true;
|
|
4940
4945
|
}
|
|
4941
|
-
return
|
|
4946
|
+
return list.includes(MismatchTypeString[allowedType]);
|
|
4942
4947
|
}
|
|
4943
4948
|
}
|
|
4944
4949
|
|
|
@@ -7128,7 +7133,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7128
7133
|
return vm;
|
|
7129
7134
|
}
|
|
7130
7135
|
}
|
|
7131
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7136
|
+
Vue.version = `2.6.14-compat:${"3.5.17"}`;
|
|
7132
7137
|
Vue.config = singletonApp.config;
|
|
7133
7138
|
Vue.use = (plugin, ...options) => {
|
|
7134
7139
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -8275,6 +8280,8 @@ const assignSlots = (slots, children, optimized) => {
|
|
|
8275
8280
|
const initSlots = (instance, children, optimized) => {
|
|
8276
8281
|
const slots = instance.slots = createInternalObject();
|
|
8277
8282
|
if (instance.vnode.shapeFlag & 32) {
|
|
8283
|
+
const cacheIndexes = children.__;
|
|
8284
|
+
if (cacheIndexes) def(slots, "__", cacheIndexes, true);
|
|
8278
8285
|
const type = children._;
|
|
8279
8286
|
if (type) {
|
|
8280
8287
|
assignSlots(slots, children, optimized);
|
|
@@ -8486,6 +8493,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8486
8493
|
}
|
|
8487
8494
|
if (ref != null && parentComponent) {
|
|
8488
8495
|
setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
|
|
8496
|
+
} else if (ref == null && n1 && n1.ref != null) {
|
|
8497
|
+
setRef(n1.ref, null, parentSuspense, n1, true);
|
|
8489
8498
|
}
|
|
8490
8499
|
};
|
|
8491
8500
|
const processText = (n1, n2, container, anchor) => {
|
|
@@ -9049,7 +9058,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9049
9058
|
hydrateSubTree();
|
|
9050
9059
|
}
|
|
9051
9060
|
} else {
|
|
9052
|
-
if (root.ce
|
|
9061
|
+
if (root.ce && // @ts-expect-error _def is private
|
|
9062
|
+
root.ce._def.shadowRoot !== false) {
|
|
9053
9063
|
root.ce._injectChildStyle(type);
|
|
9054
9064
|
}
|
|
9055
9065
|
{
|
|
@@ -10145,8 +10155,9 @@ function emit(instance, event, ...rawArgs) {
|
|
|
10145
10155
|
}
|
|
10146
10156
|
}
|
|
10147
10157
|
let args = rawArgs;
|
|
10148
|
-
const
|
|
10149
|
-
const
|
|
10158
|
+
const isCompatModelListener = compatModelEventPrefix + event in props;
|
|
10159
|
+
const isModelListener = isCompatModelListener || event.startsWith("update:");
|
|
10160
|
+
const modifiers = isCompatModelListener ? props.modelModifiers : isModelListener && getModelModifiers(props, event.slice(7));
|
|
10150
10161
|
if (modifiers) {
|
|
10151
10162
|
if (modifiers.trim) {
|
|
10152
10163
|
args = rawArgs.map((a) => isString(a) ? a.trim() : a);
|
|
@@ -12284,7 +12295,7 @@ function isMemoSame(cached, memo) {
|
|
|
12284
12295
|
return true;
|
|
12285
12296
|
}
|
|
12286
12297
|
|
|
12287
|
-
const version = "3.5.
|
|
12298
|
+
const version = "3.5.17";
|
|
12288
12299
|
const warn = warn$1 ;
|
|
12289
12300
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12290
12301
|
const devtools = devtools$1 ;
|
|
@@ -13375,9 +13386,10 @@ class VueElement extends BaseClass {
|
|
|
13375
13386
|
};
|
|
13376
13387
|
const asyncDef = this._def.__asyncLoader;
|
|
13377
13388
|
if (asyncDef) {
|
|
13378
|
-
this._pendingResolve = asyncDef().then(
|
|
13379
|
-
|
|
13380
|
-
|
|
13389
|
+
this._pendingResolve = asyncDef().then((def) => {
|
|
13390
|
+
def.configureApp = this._def.configureApp;
|
|
13391
|
+
resolve(this._def = def, true);
|
|
13392
|
+
});
|
|
13381
13393
|
} else {
|
|
13382
13394
|
resolve(this._def);
|
|
13383
13395
|
}
|