@vue/runtime-core 3.5.34 → 3.5.35
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/runtime-core.cjs.js +33 -29
- package/dist/runtime-core.cjs.prod.js +28 -16
- package/dist/runtime-core.esm-bundler.js +34 -30
- package/package.json +3 -3
package/dist/runtime-core.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.35
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1158,19 +1158,18 @@ const TeleportImpl = {
|
|
|
1158
1158
|
target,
|
|
1159
1159
|
props
|
|
1160
1160
|
} = vnode;
|
|
1161
|
-
|
|
1161
|
+
const shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
1162
1162
|
const pendingMount = pendingMounts.get(vnode);
|
|
1163
1163
|
if (pendingMount) {
|
|
1164
1164
|
pendingMount.flags |= 8;
|
|
1165
1165
|
pendingMounts.delete(vnode);
|
|
1166
|
-
shouldRemove = false;
|
|
1167
1166
|
}
|
|
1168
1167
|
if (target) {
|
|
1169
1168
|
hostRemove(targetStart);
|
|
1170
1169
|
hostRemove(targetAnchor);
|
|
1171
1170
|
}
|
|
1172
1171
|
doRemove && hostRemove(anchor);
|
|
1173
|
-
if (shapeFlag & 16) {
|
|
1172
|
+
if (!pendingMount && shapeFlag & 16) {
|
|
1174
1173
|
for (let i = 0; i < children.length; i++) {
|
|
1175
1174
|
const child = children[i];
|
|
1176
1175
|
unmount(
|
|
@@ -2138,20 +2137,16 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
2138
2137
|
slotScopeIds,
|
|
2139
2138
|
optimized
|
|
2140
2139
|
);
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
`Hydration children mismatch on`,
|
|
2147
|
-
el,
|
|
2148
|
-
`
|
|
2140
|
+
if (next && !isMismatchAllowed(el, 1 /* CHILDREN */)) {
|
|
2141
|
+
warn$1(
|
|
2142
|
+
`Hydration children mismatch on`,
|
|
2143
|
+
el,
|
|
2144
|
+
`
|
|
2149
2145
|
Server rendered element contains more child nodes than client vdom.`
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
}
|
|
2146
|
+
);
|
|
2147
|
+
logMismatchError();
|
|
2148
|
+
}
|
|
2149
|
+
while (next) {
|
|
2155
2150
|
const cur = next;
|
|
2156
2151
|
next = next.nextSibling;
|
|
2157
2152
|
remove(cur);
|
|
@@ -2214,7 +2209,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
2214
2209
|
optimized = optimized || !!parentVNode.dynamicChildren;
|
|
2215
2210
|
const children = parentVNode.children;
|
|
2216
2211
|
const l = children.length;
|
|
2217
|
-
let
|
|
2212
|
+
let hasCheckedMismatch = false;
|
|
2218
2213
|
for (let i = 0; i < l; i++) {
|
|
2219
2214
|
const vnode = optimized ? children[i] : children[i] = normalizeVNode(children[i]);
|
|
2220
2215
|
const isText = vnode.type === Text;
|
|
@@ -2242,17 +2237,17 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
2242
2237
|
} else if (isText && !vnode.children) {
|
|
2243
2238
|
insert(vnode.el = createText(""), container);
|
|
2244
2239
|
} else {
|
|
2245
|
-
if (!
|
|
2246
|
-
|
|
2240
|
+
if (!hasCheckedMismatch) {
|
|
2241
|
+
hasCheckedMismatch = true;
|
|
2242
|
+
if (!isMismatchAllowed(container, 1 /* CHILDREN */)) {
|
|
2247
2243
|
warn$1(
|
|
2248
2244
|
`Hydration children mismatch on`,
|
|
2249
2245
|
container,
|
|
2250
2246
|
`
|
|
2251
2247
|
Server rendered element contains fewer child nodes than client vdom.`
|
|
2252
2248
|
);
|
|
2253
|
-
|
|
2249
|
+
logMismatchError();
|
|
2254
2250
|
}
|
|
2255
|
-
logMismatchError();
|
|
2256
2251
|
}
|
|
2257
2252
|
patch(
|
|
2258
2253
|
null,
|
|
@@ -6531,9 +6526,13 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6531
6526
|
const needTransition2 = moveType !== 2 && shapeFlag & 1 && transition;
|
|
6532
6527
|
if (needTransition2) {
|
|
6533
6528
|
if (moveType === 0) {
|
|
6534
|
-
transition.
|
|
6535
|
-
|
|
6536
|
-
|
|
6529
|
+
if (transition.persisted && !el[leaveCbKey]) {
|
|
6530
|
+
hostInsert(el, container, anchor);
|
|
6531
|
+
} else {
|
|
6532
|
+
transition.beforeEnter(el);
|
|
6533
|
+
hostInsert(el, container, anchor);
|
|
6534
|
+
queuePostRenderEffect(() => transition.enter(el), parentSuspense);
|
|
6535
|
+
}
|
|
6537
6536
|
} else {
|
|
6538
6537
|
const { leave, delayLeave, afterLeave } = transition;
|
|
6539
6538
|
const remove2 = () => {
|
|
@@ -6544,16 +6543,21 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6544
6543
|
}
|
|
6545
6544
|
};
|
|
6546
6545
|
const performLeave = () => {
|
|
6546
|
+
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
6547
6547
|
if (el._isLeaving) {
|
|
6548
6548
|
el[leaveCbKey](
|
|
6549
6549
|
true
|
|
6550
6550
|
/* cancelled */
|
|
6551
6551
|
);
|
|
6552
6552
|
}
|
|
6553
|
-
|
|
6553
|
+
if (transition.persisted && !wasLeaving) {
|
|
6554
6554
|
remove2();
|
|
6555
|
-
|
|
6556
|
-
|
|
6555
|
+
} else {
|
|
6556
|
+
leave(el, () => {
|
|
6557
|
+
remove2();
|
|
6558
|
+
afterLeave && afterLeave();
|
|
6559
|
+
});
|
|
6560
|
+
}
|
|
6557
6561
|
};
|
|
6558
6562
|
if (delayLeave) {
|
|
6559
6563
|
delayLeave(el, remove2, performLeave);
|
|
@@ -8560,7 +8564,7 @@ function isMemoSame(cached, memo) {
|
|
|
8560
8564
|
return true;
|
|
8561
8565
|
}
|
|
8562
8566
|
|
|
8563
|
-
const version = "3.5.
|
|
8567
|
+
const version = "3.5.35";
|
|
8564
8568
|
const warn = warn$1 ;
|
|
8565
8569
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8566
8570
|
const devtools = devtools$1 ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.35
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -702,19 +702,18 @@ const TeleportImpl = {
|
|
|
702
702
|
target,
|
|
703
703
|
props
|
|
704
704
|
} = vnode;
|
|
705
|
-
|
|
705
|
+
const shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
706
706
|
const pendingMount = pendingMounts.get(vnode);
|
|
707
707
|
if (pendingMount) {
|
|
708
708
|
pendingMount.flags |= 8;
|
|
709
709
|
pendingMounts.delete(vnode);
|
|
710
|
-
shouldRemove = false;
|
|
711
710
|
}
|
|
712
711
|
if (target) {
|
|
713
712
|
hostRemove(targetStart);
|
|
714
713
|
hostRemove(targetAnchor);
|
|
715
714
|
}
|
|
716
715
|
doRemove && hostRemove(anchor);
|
|
717
|
-
if (shapeFlag & 16) {
|
|
716
|
+
if (!pendingMount && shapeFlag & 16) {
|
|
718
717
|
for (let i = 0; i < children.length; i++) {
|
|
719
718
|
const child = children[i];
|
|
720
719
|
unmount(
|
|
@@ -1617,10 +1616,10 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
1617
1616
|
slotScopeIds,
|
|
1618
1617
|
optimized
|
|
1619
1618
|
);
|
|
1619
|
+
if (next && !isMismatchAllowed(el, 1 /* CHILDREN */)) {
|
|
1620
|
+
logMismatchError();
|
|
1621
|
+
}
|
|
1620
1622
|
while (next) {
|
|
1621
|
-
if (!isMismatchAllowed(el, 1 /* CHILDREN */)) {
|
|
1622
|
-
logMismatchError();
|
|
1623
|
-
}
|
|
1624
1623
|
const cur = next;
|
|
1625
1624
|
next = next.nextSibling;
|
|
1626
1625
|
remove(cur);
|
|
@@ -1682,6 +1681,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
1682
1681
|
optimized = optimized || !!parentVNode.dynamicChildren;
|
|
1683
1682
|
const children = parentVNode.children;
|
|
1684
1683
|
const l = children.length;
|
|
1684
|
+
let hasCheckedMismatch = false;
|
|
1685
1685
|
for (let i = 0; i < l; i++) {
|
|
1686
1686
|
const vnode = optimized ? children[i] : children[i] = normalizeVNode(children[i]);
|
|
1687
1687
|
const isText = vnode.type === Text;
|
|
@@ -1709,8 +1709,11 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
1709
1709
|
} else if (isText && !vnode.children) {
|
|
1710
1710
|
insert(vnode.el = createText(""), container);
|
|
1711
1711
|
} else {
|
|
1712
|
-
if (!
|
|
1713
|
-
|
|
1712
|
+
if (!hasCheckedMismatch) {
|
|
1713
|
+
hasCheckedMismatch = true;
|
|
1714
|
+
if (!isMismatchAllowed(container, 1 /* CHILDREN */)) {
|
|
1715
|
+
logMismatchError();
|
|
1716
|
+
}
|
|
1714
1717
|
}
|
|
1715
1718
|
patch(
|
|
1716
1719
|
null,
|
|
@@ -5067,9 +5070,13 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5067
5070
|
const needTransition2 = moveType !== 2 && shapeFlag & 1 && transition;
|
|
5068
5071
|
if (needTransition2) {
|
|
5069
5072
|
if (moveType === 0) {
|
|
5070
|
-
transition.
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
+
if (transition.persisted && !el[leaveCbKey]) {
|
|
5074
|
+
hostInsert(el, container, anchor);
|
|
5075
|
+
} else {
|
|
5076
|
+
transition.beforeEnter(el);
|
|
5077
|
+
hostInsert(el, container, anchor);
|
|
5078
|
+
queuePostRenderEffect(() => transition.enter(el), parentSuspense);
|
|
5079
|
+
}
|
|
5073
5080
|
} else {
|
|
5074
5081
|
const { leave, delayLeave, afterLeave } = transition;
|
|
5075
5082
|
const remove2 = () => {
|
|
@@ -5080,16 +5087,21 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5080
5087
|
}
|
|
5081
5088
|
};
|
|
5082
5089
|
const performLeave = () => {
|
|
5090
|
+
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
5083
5091
|
if (el._isLeaving) {
|
|
5084
5092
|
el[leaveCbKey](
|
|
5085
5093
|
true
|
|
5086
5094
|
/* cancelled */
|
|
5087
5095
|
);
|
|
5088
5096
|
}
|
|
5089
|
-
|
|
5097
|
+
if (transition.persisted && !wasLeaving) {
|
|
5090
5098
|
remove2();
|
|
5091
|
-
|
|
5092
|
-
|
|
5099
|
+
} else {
|
|
5100
|
+
leave(el, () => {
|
|
5101
|
+
remove2();
|
|
5102
|
+
afterLeave && afterLeave();
|
|
5103
|
+
});
|
|
5104
|
+
}
|
|
5093
5105
|
};
|
|
5094
5106
|
if (delayLeave) {
|
|
5095
5107
|
delayLeave(el, remove2, performLeave);
|
|
@@ -6693,7 +6705,7 @@ function isMemoSame(cached, memo) {
|
|
|
6693
6705
|
return true;
|
|
6694
6706
|
}
|
|
6695
6707
|
|
|
6696
|
-
const version = "3.5.
|
|
6708
|
+
const version = "3.5.35";
|
|
6697
6709
|
const warn$1 = shared.NOOP;
|
|
6698
6710
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
6699
6711
|
const devtools = void 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.35
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1161,19 +1161,18 @@ const TeleportImpl = {
|
|
|
1161
1161
|
target,
|
|
1162
1162
|
props
|
|
1163
1163
|
} = vnode;
|
|
1164
|
-
|
|
1164
|
+
const shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
1165
1165
|
const pendingMount = pendingMounts.get(vnode);
|
|
1166
1166
|
if (pendingMount) {
|
|
1167
1167
|
pendingMount.flags |= 8;
|
|
1168
1168
|
pendingMounts.delete(vnode);
|
|
1169
|
-
shouldRemove = false;
|
|
1170
1169
|
}
|
|
1171
1170
|
if (target) {
|
|
1172
1171
|
hostRemove(targetStart);
|
|
1173
1172
|
hostRemove(targetAnchor);
|
|
1174
1173
|
}
|
|
1175
1174
|
doRemove && hostRemove(anchor);
|
|
1176
|
-
if (shapeFlag & 16) {
|
|
1175
|
+
if (!pendingMount && shapeFlag & 16) {
|
|
1177
1176
|
for (let i = 0; i < children.length; i++) {
|
|
1178
1177
|
const child = children[i];
|
|
1179
1178
|
unmount(
|
|
@@ -2142,20 +2141,16 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
2142
2141
|
slotScopeIds,
|
|
2143
2142
|
optimized
|
|
2144
2143
|
);
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
`Hydration children mismatch on`,
|
|
2151
|
-
el,
|
|
2152
|
-
`
|
|
2144
|
+
if (next && !isMismatchAllowed(el, 1 /* CHILDREN */)) {
|
|
2145
|
+
(!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(
|
|
2146
|
+
`Hydration children mismatch on`,
|
|
2147
|
+
el,
|
|
2148
|
+
`
|
|
2153
2149
|
Server rendered element contains more child nodes than client vdom.`
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
}
|
|
2150
|
+
);
|
|
2151
|
+
logMismatchError();
|
|
2152
|
+
}
|
|
2153
|
+
while (next) {
|
|
2159
2154
|
const cur = next;
|
|
2160
2155
|
next = next.nextSibling;
|
|
2161
2156
|
remove(cur);
|
|
@@ -2229,7 +2224,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
2229
2224
|
optimized = optimized || !!parentVNode.dynamicChildren;
|
|
2230
2225
|
const children = parentVNode.children;
|
|
2231
2226
|
const l = children.length;
|
|
2232
|
-
let
|
|
2227
|
+
let hasCheckedMismatch = false;
|
|
2233
2228
|
for (let i = 0; i < l; i++) {
|
|
2234
2229
|
const vnode = optimized ? children[i] : children[i] = normalizeVNode(children[i]);
|
|
2235
2230
|
const isText = vnode.type === Text;
|
|
@@ -2257,17 +2252,17 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
2257
2252
|
} else if (isText && !vnode.children) {
|
|
2258
2253
|
insert(vnode.el = createText(""), container);
|
|
2259
2254
|
} else {
|
|
2260
|
-
if (!
|
|
2261
|
-
|
|
2262
|
-
|
|
2255
|
+
if (!hasCheckedMismatch) {
|
|
2256
|
+
hasCheckedMismatch = true;
|
|
2257
|
+
if (!isMismatchAllowed(container, 1 /* CHILDREN */)) {
|
|
2258
|
+
(!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(
|
|
2263
2259
|
`Hydration children mismatch on`,
|
|
2264
2260
|
container,
|
|
2265
2261
|
`
|
|
2266
2262
|
Server rendered element contains fewer child nodes than client vdom.`
|
|
2267
2263
|
);
|
|
2268
|
-
|
|
2264
|
+
logMismatchError();
|
|
2269
2265
|
}
|
|
2270
|
-
logMismatchError();
|
|
2271
2266
|
}
|
|
2272
2267
|
patch(
|
|
2273
2268
|
null,
|
|
@@ -6591,9 +6586,13 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6591
6586
|
const needTransition2 = moveType !== 2 && shapeFlag & 1 && transition;
|
|
6592
6587
|
if (needTransition2) {
|
|
6593
6588
|
if (moveType === 0) {
|
|
6594
|
-
transition.
|
|
6595
|
-
|
|
6596
|
-
|
|
6589
|
+
if (transition.persisted && !el[leaveCbKey]) {
|
|
6590
|
+
hostInsert(el, container, anchor);
|
|
6591
|
+
} else {
|
|
6592
|
+
transition.beforeEnter(el);
|
|
6593
|
+
hostInsert(el, container, anchor);
|
|
6594
|
+
queuePostRenderEffect(() => transition.enter(el), parentSuspense);
|
|
6595
|
+
}
|
|
6597
6596
|
} else {
|
|
6598
6597
|
const { leave, delayLeave, afterLeave } = transition;
|
|
6599
6598
|
const remove2 = () => {
|
|
@@ -6604,16 +6603,21 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6604
6603
|
}
|
|
6605
6604
|
};
|
|
6606
6605
|
const performLeave = () => {
|
|
6606
|
+
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
6607
6607
|
if (el._isLeaving) {
|
|
6608
6608
|
el[leaveCbKey](
|
|
6609
6609
|
true
|
|
6610
6610
|
/* cancelled */
|
|
6611
6611
|
);
|
|
6612
6612
|
}
|
|
6613
|
-
|
|
6613
|
+
if (transition.persisted && !wasLeaving) {
|
|
6614
6614
|
remove2();
|
|
6615
|
-
|
|
6616
|
-
|
|
6615
|
+
} else {
|
|
6616
|
+
leave(el, () => {
|
|
6617
|
+
remove2();
|
|
6618
|
+
afterLeave && afterLeave();
|
|
6619
|
+
});
|
|
6620
|
+
}
|
|
6617
6621
|
};
|
|
6618
6622
|
if (delayLeave) {
|
|
6619
6623
|
delayLeave(el, remove2, performLeave);
|
|
@@ -8634,7 +8638,7 @@ function isMemoSame(cached, memo) {
|
|
|
8634
8638
|
return true;
|
|
8635
8639
|
}
|
|
8636
8640
|
|
|
8637
|
-
const version = "3.5.
|
|
8641
|
+
const version = "3.5.35";
|
|
8638
8642
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8639
8643
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8640
8644
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/runtime-core",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.35",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@vue/shared": "3.5.
|
|
50
|
-
"@vue/reactivity": "3.5.
|
|
49
|
+
"@vue/shared": "3.5.35",
|
|
50
|
+
"@vue/reactivity": "3.5.35"
|
|
51
51
|
}
|
|
52
52
|
}
|