@vue/compat 3.4.9 → 3.4.11
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 +18 -14
- package/dist/vue.cjs.prod.js +6 -6
- package/dist/vue.esm-browser.js +17 -13
- package/dist/vue.esm-browser.prod.js +3 -3
- package/dist/vue.esm-bundler.js +17 -13
- package/dist/vue.global.js +17 -13
- package/dist/vue.global.prod.js +3 -3
- package/dist/vue.runtime.esm-browser.js +17 -13
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +17 -13
- package/dist/vue.runtime.global.js +17 -13
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +2 -2
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.11
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -629,7 +629,7 @@ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
|
|
|
629
629
|
if (!effect2.allowRecurse && effect2._runnings) {
|
|
630
630
|
continue;
|
|
631
631
|
}
|
|
632
|
-
if (effect2._dirtyLevel < dirtyLevel && (!effect2._runnings || dirtyLevel !== 2)) {
|
|
632
|
+
if (effect2._dirtyLevel < dirtyLevel && (!effect2._runnings || effect2.allowRecurse || dirtyLevel !== 2)) {
|
|
633
633
|
const lastDirtyLevel = effect2._dirtyLevel;
|
|
634
634
|
effect2._dirtyLevel = dirtyLevel;
|
|
635
635
|
if (lastDirtyLevel === 0 && (!effect2._queryings || dirtyLevel !== 2)) {
|
|
@@ -3053,9 +3053,11 @@ function renderComponentRoot(instance) {
|
|
|
3053
3053
|
const getChildRoot = (vnode) => {
|
|
3054
3054
|
const rawChildren = vnode.children;
|
|
3055
3055
|
const dynamicChildren = vnode.dynamicChildren;
|
|
3056
|
-
const childRoot = filterSingleRoot(rawChildren);
|
|
3056
|
+
const childRoot = filterSingleRoot(rawChildren, false);
|
|
3057
3057
|
if (!childRoot) {
|
|
3058
3058
|
return [vnode, void 0];
|
|
3059
|
+
} else if (!!(process.env.NODE_ENV !== "production") && childRoot.patchFlag > 0 && childRoot.patchFlag & 2048) {
|
|
3060
|
+
return getChildRoot(childRoot);
|
|
3059
3061
|
}
|
|
3060
3062
|
const index = rawChildren.indexOf(childRoot);
|
|
3061
3063
|
const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;
|
|
@@ -3071,7 +3073,7 @@ const getChildRoot = (vnode) => {
|
|
|
3071
3073
|
};
|
|
3072
3074
|
return [normalizeVNode(childRoot), setRoot];
|
|
3073
3075
|
};
|
|
3074
|
-
function filterSingleRoot(children) {
|
|
3076
|
+
function filterSingleRoot(children, recurse = true) {
|
|
3075
3077
|
let singleRoot;
|
|
3076
3078
|
for (let i = 0; i < children.length; i++) {
|
|
3077
3079
|
const child = children[i];
|
|
@@ -3081,6 +3083,9 @@ function filterSingleRoot(children) {
|
|
|
3081
3083
|
return;
|
|
3082
3084
|
} else {
|
|
3083
3085
|
singleRoot = child;
|
|
3086
|
+
if (!!(process.env.NODE_ENV !== "production") && recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) {
|
|
3087
|
+
return filterSingleRoot(singleRoot.children);
|
|
3088
|
+
}
|
|
3084
3089
|
}
|
|
3085
3090
|
}
|
|
3086
3091
|
} else {
|
|
@@ -6518,7 +6523,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6518
6523
|
return vm;
|
|
6519
6524
|
}
|
|
6520
6525
|
}
|
|
6521
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6526
|
+
Vue.version = `2.6.14-compat:${"3.4.11"}`;
|
|
6522
6527
|
Vue.config = singletonApp.config;
|
|
6523
6528
|
Vue.use = (p, ...options) => {
|
|
6524
6529
|
if (p && isFunction(p.install)) {
|
|
@@ -8281,18 +8286,17 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
8281
8286
|
if (isBooleanAttr(key)) {
|
|
8282
8287
|
actual = el.hasAttribute(key);
|
|
8283
8288
|
expected = includeBooleanAttr(clientValue);
|
|
8289
|
+
} else if (clientValue == null) {
|
|
8290
|
+
actual = el.hasAttribute(key);
|
|
8291
|
+
expected = false;
|
|
8284
8292
|
} else {
|
|
8285
8293
|
if (el.hasAttribute(key)) {
|
|
8286
8294
|
actual = el.getAttribute(key);
|
|
8287
|
-
} else
|
|
8295
|
+
} else {
|
|
8288
8296
|
const serverValue = el[key];
|
|
8289
|
-
|
|
8290
|
-
actual = serverValue == null ? "" : String(serverValue);
|
|
8291
|
-
}
|
|
8292
|
-
}
|
|
8293
|
-
if (!isObject(clientValue)) {
|
|
8294
|
-
expected = clientValue == null ? "" : String(clientValue);
|
|
8297
|
+
actual = isObject(serverValue) || serverValue == null ? "" : String(serverValue);
|
|
8295
8298
|
}
|
|
8299
|
+
expected = isObject(clientValue) || clientValue == null ? "" : String(clientValue);
|
|
8296
8300
|
}
|
|
8297
8301
|
if (actual !== expected) {
|
|
8298
8302
|
mismatchType = `attribute`;
|
|
@@ -11418,7 +11422,7 @@ function isMemoSame(cached, memo) {
|
|
|
11418
11422
|
return true;
|
|
11419
11423
|
}
|
|
11420
11424
|
|
|
11421
|
-
const version = "3.4.
|
|
11425
|
+
const version = "3.4.11";
|
|
11422
11426
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11423
11427
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11424
11428
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
package/dist/vue.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.4.
|
|
2
|
+
* @vue/compat v3.4.11
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -632,7 +632,7 @@ var Vue = (function () {
|
|
|
632
632
|
if (!effect2.allowRecurse && effect2._runnings) {
|
|
633
633
|
continue;
|
|
634
634
|
}
|
|
635
|
-
if (effect2._dirtyLevel < dirtyLevel && (!effect2._runnings || dirtyLevel !== 2)) {
|
|
635
|
+
if (effect2._dirtyLevel < dirtyLevel && (!effect2._runnings || effect2.allowRecurse || dirtyLevel !== 2)) {
|
|
636
636
|
const lastDirtyLevel = effect2._dirtyLevel;
|
|
637
637
|
effect2._dirtyLevel = dirtyLevel;
|
|
638
638
|
if (lastDirtyLevel === 0 && (!effect2._queryings || dirtyLevel !== 2)) {
|
|
@@ -3049,9 +3049,11 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3049
3049
|
const getChildRoot = (vnode) => {
|
|
3050
3050
|
const rawChildren = vnode.children;
|
|
3051
3051
|
const dynamicChildren = vnode.dynamicChildren;
|
|
3052
|
-
const childRoot = filterSingleRoot(rawChildren);
|
|
3052
|
+
const childRoot = filterSingleRoot(rawChildren, false);
|
|
3053
3053
|
if (!childRoot) {
|
|
3054
3054
|
return [vnode, void 0];
|
|
3055
|
+
} else if (childRoot.patchFlag > 0 && childRoot.patchFlag & 2048) {
|
|
3056
|
+
return getChildRoot(childRoot);
|
|
3055
3057
|
}
|
|
3056
3058
|
const index = rawChildren.indexOf(childRoot);
|
|
3057
3059
|
const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;
|
|
@@ -3067,7 +3069,7 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3067
3069
|
};
|
|
3068
3070
|
return [normalizeVNode(childRoot), setRoot];
|
|
3069
3071
|
};
|
|
3070
|
-
function filterSingleRoot(children) {
|
|
3072
|
+
function filterSingleRoot(children, recurse = true) {
|
|
3071
3073
|
let singleRoot;
|
|
3072
3074
|
for (let i = 0; i < children.length; i++) {
|
|
3073
3075
|
const child = children[i];
|
|
@@ -3077,6 +3079,9 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
|
|
|
3077
3079
|
return;
|
|
3078
3080
|
} else {
|
|
3079
3081
|
singleRoot = child;
|
|
3082
|
+
if (recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) {
|
|
3083
|
+
return filterSingleRoot(singleRoot.children);
|
|
3084
|
+
}
|
|
3080
3085
|
}
|
|
3081
3086
|
}
|
|
3082
3087
|
} else {
|
|
@@ -6477,7 +6482,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
6477
6482
|
return vm;
|
|
6478
6483
|
}
|
|
6479
6484
|
}
|
|
6480
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6485
|
+
Vue.version = `2.6.14-compat:${"3.4.11"}`;
|
|
6481
6486
|
Vue.config = singletonApp.config;
|
|
6482
6487
|
Vue.use = (p, ...options) => {
|
|
6483
6488
|
if (p && isFunction(p.install)) {
|
|
@@ -8227,18 +8232,17 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
8227
8232
|
if (isBooleanAttr(key)) {
|
|
8228
8233
|
actual = el.hasAttribute(key);
|
|
8229
8234
|
expected = includeBooleanAttr(clientValue);
|
|
8235
|
+
} else if (clientValue == null) {
|
|
8236
|
+
actual = el.hasAttribute(key);
|
|
8237
|
+
expected = false;
|
|
8230
8238
|
} else {
|
|
8231
8239
|
if (el.hasAttribute(key)) {
|
|
8232
8240
|
actual = el.getAttribute(key);
|
|
8233
|
-
} else
|
|
8241
|
+
} else {
|
|
8234
8242
|
const serverValue = el[key];
|
|
8235
|
-
|
|
8236
|
-
actual = serverValue == null ? "" : String(serverValue);
|
|
8237
|
-
}
|
|
8238
|
-
}
|
|
8239
|
-
if (!isObject(clientValue)) {
|
|
8240
|
-
expected = clientValue == null ? "" : String(clientValue);
|
|
8243
|
+
actual = isObject(serverValue) || serverValue == null ? "" : String(serverValue);
|
|
8241
8244
|
}
|
|
8245
|
+
expected = isObject(clientValue) || clientValue == null ? "" : String(clientValue);
|
|
8242
8246
|
}
|
|
8243
8247
|
if (actual !== expected) {
|
|
8244
8248
|
mismatchType = `attribute`;
|
|
@@ -11293,7 +11297,7 @@ Component that was made reactive: `,
|
|
|
11293
11297
|
return true;
|
|
11294
11298
|
}
|
|
11295
11299
|
|
|
11296
|
-
const version = "3.4.
|
|
11300
|
+
const version = "3.4.11";
|
|
11297
11301
|
const warn = warn$1 ;
|
|
11298
11302
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11299
11303
|
const devtools = devtools$1 ;
|