@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.cjs.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
|
**/
|
|
@@ -680,7 +680,7 @@ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
|
|
|
680
680
|
if (!effect2.allowRecurse && effect2._runnings) {
|
|
681
681
|
continue;
|
|
682
682
|
}
|
|
683
|
-
if (effect2._dirtyLevel < dirtyLevel && (!effect2._runnings || dirtyLevel !== 2)) {
|
|
683
|
+
if (effect2._dirtyLevel < dirtyLevel && (!effect2._runnings || effect2.allowRecurse || dirtyLevel !== 2)) {
|
|
684
684
|
const lastDirtyLevel = effect2._dirtyLevel;
|
|
685
685
|
effect2._dirtyLevel = dirtyLevel;
|
|
686
686
|
if (lastDirtyLevel === 0 && (!effect2._queryings || dirtyLevel !== 2)) {
|
|
@@ -3097,9 +3097,11 @@ function renderComponentRoot(instance) {
|
|
|
3097
3097
|
const getChildRoot = (vnode) => {
|
|
3098
3098
|
const rawChildren = vnode.children;
|
|
3099
3099
|
const dynamicChildren = vnode.dynamicChildren;
|
|
3100
|
-
const childRoot = filterSingleRoot(rawChildren);
|
|
3100
|
+
const childRoot = filterSingleRoot(rawChildren, false);
|
|
3101
3101
|
if (!childRoot) {
|
|
3102
3102
|
return [vnode, void 0];
|
|
3103
|
+
} else if (childRoot.patchFlag > 0 && childRoot.patchFlag & 2048) {
|
|
3104
|
+
return getChildRoot(childRoot);
|
|
3103
3105
|
}
|
|
3104
3106
|
const index = rawChildren.indexOf(childRoot);
|
|
3105
3107
|
const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;
|
|
@@ -3115,7 +3117,7 @@ const getChildRoot = (vnode) => {
|
|
|
3115
3117
|
};
|
|
3116
3118
|
return [normalizeVNode(childRoot), setRoot];
|
|
3117
3119
|
};
|
|
3118
|
-
function filterSingleRoot(children) {
|
|
3120
|
+
function filterSingleRoot(children, recurse = true) {
|
|
3119
3121
|
let singleRoot;
|
|
3120
3122
|
for (let i = 0; i < children.length; i++) {
|
|
3121
3123
|
const child = children[i];
|
|
@@ -3125,6 +3127,9 @@ function filterSingleRoot(children) {
|
|
|
3125
3127
|
return;
|
|
3126
3128
|
} else {
|
|
3127
3129
|
singleRoot = child;
|
|
3130
|
+
if (recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) {
|
|
3131
|
+
return filterSingleRoot(singleRoot.children);
|
|
3132
|
+
}
|
|
3128
3133
|
}
|
|
3129
3134
|
}
|
|
3130
3135
|
} else {
|
|
@@ -6558,7 +6563,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6558
6563
|
return vm;
|
|
6559
6564
|
}
|
|
6560
6565
|
}
|
|
6561
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6566
|
+
Vue.version = `2.6.14-compat:${"3.4.11"}`;
|
|
6562
6567
|
Vue.config = singletonApp.config;
|
|
6563
6568
|
Vue.use = (p, ...options) => {
|
|
6564
6569
|
if (p && isFunction(p.install)) {
|
|
@@ -8308,18 +8313,17 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
8308
8313
|
if (isBooleanAttr(key)) {
|
|
8309
8314
|
actual = el.hasAttribute(key);
|
|
8310
8315
|
expected = includeBooleanAttr(clientValue);
|
|
8316
|
+
} else if (clientValue == null) {
|
|
8317
|
+
actual = el.hasAttribute(key);
|
|
8318
|
+
expected = false;
|
|
8311
8319
|
} else {
|
|
8312
8320
|
if (el.hasAttribute(key)) {
|
|
8313
8321
|
actual = el.getAttribute(key);
|
|
8314
|
-
} else
|
|
8322
|
+
} else {
|
|
8315
8323
|
const serverValue = el[key];
|
|
8316
|
-
|
|
8317
|
-
actual = serverValue == null ? "" : String(serverValue);
|
|
8318
|
-
}
|
|
8319
|
-
}
|
|
8320
|
-
if (!isObject(clientValue)) {
|
|
8321
|
-
expected = clientValue == null ? "" : String(clientValue);
|
|
8324
|
+
actual = isObject(serverValue) || serverValue == null ? "" : String(serverValue);
|
|
8322
8325
|
}
|
|
8326
|
+
expected = isObject(clientValue) || clientValue == null ? "" : String(clientValue);
|
|
8323
8327
|
}
|
|
8324
8328
|
if (actual !== expected) {
|
|
8325
8329
|
mismatchType = `attribute`;
|
|
@@ -11391,7 +11395,7 @@ function isMemoSame(cached, memo) {
|
|
|
11391
11395
|
return true;
|
|
11392
11396
|
}
|
|
11393
11397
|
|
|
11394
|
-
const version = "3.4.
|
|
11398
|
+
const version = "3.4.11";
|
|
11395
11399
|
const warn = warn$1 ;
|
|
11396
11400
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11397
11401
|
const devtools = devtools$1 ;
|
|
@@ -14492,7 +14496,7 @@ function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [
|
|
|
14492
14496
|
if (includeAll || isRefed && !isLocal) {
|
|
14493
14497
|
onIdentifier(node, parent, parentStack, isRefed, isLocal);
|
|
14494
14498
|
}
|
|
14495
|
-
} else if (node.type === "ObjectProperty" && parent.type === "ObjectPattern") {
|
|
14499
|
+
} else if (node.type === "ObjectProperty" && (parent == null ? void 0 : parent.type) === "ObjectPattern") {
|
|
14496
14500
|
node.inPattern = true;
|
|
14497
14501
|
} else if (isFunctionType(node)) {
|
|
14498
14502
|
if (node.scopeIds) {
|
package/dist/vue.cjs.prod.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
|
**/
|
|
@@ -602,7 +602,7 @@ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
|
|
|
602
602
|
if (!effect2.allowRecurse && effect2._runnings) {
|
|
603
603
|
continue;
|
|
604
604
|
}
|
|
605
|
-
if (effect2._dirtyLevel < dirtyLevel && (!effect2._runnings || dirtyLevel !== 2)) {
|
|
605
|
+
if (effect2._dirtyLevel < dirtyLevel && (!effect2._runnings || effect2.allowRecurse || dirtyLevel !== 2)) {
|
|
606
606
|
const lastDirtyLevel = effect2._dirtyLevel;
|
|
607
607
|
effect2._dirtyLevel = dirtyLevel;
|
|
608
608
|
if (lastDirtyLevel === 0 && (!effect2._queryings || dirtyLevel !== 2)) {
|
|
@@ -2193,7 +2193,7 @@ function renderComponentRoot(instance) {
|
|
|
2193
2193
|
setCurrentRenderingInstance(prev);
|
|
2194
2194
|
return result;
|
|
2195
2195
|
}
|
|
2196
|
-
function filterSingleRoot(children) {
|
|
2196
|
+
function filterSingleRoot(children, recurse = true) {
|
|
2197
2197
|
let singleRoot;
|
|
2198
2198
|
for (let i = 0; i < children.length; i++) {
|
|
2199
2199
|
const child = children[i];
|
|
@@ -5247,7 +5247,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
5247
5247
|
return vm;
|
|
5248
5248
|
}
|
|
5249
5249
|
}
|
|
5250
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
5250
|
+
Vue.version = `2.6.14-compat:${"3.4.11"}`;
|
|
5251
5251
|
Vue.config = singletonApp.config;
|
|
5252
5252
|
Vue.use = (p, ...options) => {
|
|
5253
5253
|
if (p && isFunction(p.install)) {
|
|
@@ -9106,7 +9106,7 @@ function isMemoSame(cached, memo) {
|
|
|
9106
9106
|
return true;
|
|
9107
9107
|
}
|
|
9108
9108
|
|
|
9109
|
-
const version = "3.4.
|
|
9109
|
+
const version = "3.4.11";
|
|
9110
9110
|
const warn$1 = NOOP;
|
|
9111
9111
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
9112
9112
|
const devtools = void 0;
|
|
@@ -12033,7 +12033,7 @@ function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [
|
|
|
12033
12033
|
if (includeAll || isRefed && !isLocal) {
|
|
12034
12034
|
onIdentifier(node, parent, parentStack, isRefed, isLocal);
|
|
12035
12035
|
}
|
|
12036
|
-
} else if (node.type === "ObjectProperty" && parent.type === "ObjectPattern") {
|
|
12036
|
+
} else if (node.type === "ObjectProperty" && (parent == null ? void 0 : parent.type) === "ObjectPattern") {
|
|
12037
12037
|
node.inPattern = true;
|
|
12038
12038
|
} else if (isFunctionType(node)) {
|
|
12039
12039
|
if (node.scopeIds) {
|
package/dist/vue.esm-browser.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)) {
|
|
@@ -3046,9 +3046,11 @@ function renderComponentRoot(instance) {
|
|
|
3046
3046
|
const getChildRoot = (vnode) => {
|
|
3047
3047
|
const rawChildren = vnode.children;
|
|
3048
3048
|
const dynamicChildren = vnode.dynamicChildren;
|
|
3049
|
-
const childRoot = filterSingleRoot(rawChildren);
|
|
3049
|
+
const childRoot = filterSingleRoot(rawChildren, false);
|
|
3050
3050
|
if (!childRoot) {
|
|
3051
3051
|
return [vnode, void 0];
|
|
3052
|
+
} else if (childRoot.patchFlag > 0 && childRoot.patchFlag & 2048) {
|
|
3053
|
+
return getChildRoot(childRoot);
|
|
3052
3054
|
}
|
|
3053
3055
|
const index = rawChildren.indexOf(childRoot);
|
|
3054
3056
|
const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;
|
|
@@ -3064,7 +3066,7 @@ const getChildRoot = (vnode) => {
|
|
|
3064
3066
|
};
|
|
3065
3067
|
return [normalizeVNode(childRoot), setRoot];
|
|
3066
3068
|
};
|
|
3067
|
-
function filterSingleRoot(children) {
|
|
3069
|
+
function filterSingleRoot(children, recurse = true) {
|
|
3068
3070
|
let singleRoot;
|
|
3069
3071
|
for (let i = 0; i < children.length; i++) {
|
|
3070
3072
|
const child = children[i];
|
|
@@ -3074,6 +3076,9 @@ function filterSingleRoot(children) {
|
|
|
3074
3076
|
return;
|
|
3075
3077
|
} else {
|
|
3076
3078
|
singleRoot = child;
|
|
3079
|
+
if (recurse && singleRoot.patchFlag > 0 && singleRoot.patchFlag & 2048) {
|
|
3080
|
+
return filterSingleRoot(singleRoot.children);
|
|
3081
|
+
}
|
|
3077
3082
|
}
|
|
3078
3083
|
}
|
|
3079
3084
|
} else {
|
|
@@ -6480,7 +6485,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6480
6485
|
return vm;
|
|
6481
6486
|
}
|
|
6482
6487
|
}
|
|
6483
|
-
Vue.version = `2.6.14-compat:${"3.4.
|
|
6488
|
+
Vue.version = `2.6.14-compat:${"3.4.11"}`;
|
|
6484
6489
|
Vue.config = singletonApp.config;
|
|
6485
6490
|
Vue.use = (p, ...options) => {
|
|
6486
6491
|
if (p && isFunction(p.install)) {
|
|
@@ -8230,18 +8235,17 @@ function propHasMismatch(el, key, clientValue, vnode) {
|
|
|
8230
8235
|
if (isBooleanAttr(key)) {
|
|
8231
8236
|
actual = el.hasAttribute(key);
|
|
8232
8237
|
expected = includeBooleanAttr(clientValue);
|
|
8238
|
+
} else if (clientValue == null) {
|
|
8239
|
+
actual = el.hasAttribute(key);
|
|
8240
|
+
expected = false;
|
|
8233
8241
|
} else {
|
|
8234
8242
|
if (el.hasAttribute(key)) {
|
|
8235
8243
|
actual = el.getAttribute(key);
|
|
8236
|
-
} else
|
|
8244
|
+
} else {
|
|
8237
8245
|
const serverValue = el[key];
|
|
8238
|
-
|
|
8239
|
-
actual = serverValue == null ? "" : String(serverValue);
|
|
8240
|
-
}
|
|
8241
|
-
}
|
|
8242
|
-
if (!isObject(clientValue)) {
|
|
8243
|
-
expected = clientValue == null ? "" : String(clientValue);
|
|
8246
|
+
actual = isObject(serverValue) || serverValue == null ? "" : String(serverValue);
|
|
8244
8247
|
}
|
|
8248
|
+
expected = isObject(clientValue) || clientValue == null ? "" : String(clientValue);
|
|
8245
8249
|
}
|
|
8246
8250
|
if (actual !== expected) {
|
|
8247
8251
|
mismatchType = `attribute`;
|
|
@@ -11296,7 +11300,7 @@ function isMemoSame(cached, memo) {
|
|
|
11296
11300
|
return true;
|
|
11297
11301
|
}
|
|
11298
11302
|
|
|
11299
|
-
const version = "3.4.
|
|
11303
|
+
const version = "3.4.11";
|
|
11300
11304
|
const warn = warn$1 ;
|
|
11301
11305
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11302
11306
|
const devtools = devtools$1 ;
|