@vue/runtime-core 3.5.42 → 3.5.43
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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.43
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -2064,13 +2064,15 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
2064
2064
|
getContainerType(container),
|
|
2065
2065
|
optimized
|
|
2066
2066
|
);
|
|
2067
|
-
if (isAsyncWrapper(vnode) && !vnode.component.subTree) {
|
|
2067
|
+
if ((isAsyncWrapper(vnode) || vnode.component.asyncDep) && !vnode.component.subTree) {
|
|
2068
2068
|
let subTree;
|
|
2069
2069
|
if (isFragmentStart) {
|
|
2070
2070
|
subTree = createVNode(Static);
|
|
2071
2071
|
subTree.anchor = nextNode ? nextNode.previousSibling : container.lastChild;
|
|
2072
2072
|
} else {
|
|
2073
|
-
subTree = node.nodeType === 3 ? createTextVNode("") : createVNode(
|
|
2073
|
+
subTree = node.nodeType === 3 ? createTextVNode("") : createVNode(
|
|
2074
|
+
node.nodeType === 8 ? Comment : "div"
|
|
2075
|
+
);
|
|
2074
2076
|
}
|
|
2075
2077
|
subTree.el = node;
|
|
2076
2078
|
vnode.component.subTree = subTree;
|
|
@@ -5513,6 +5515,12 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5513
5515
|
optimized = false;
|
|
5514
5516
|
n2.dynamicChildren = null;
|
|
5515
5517
|
}
|
|
5518
|
+
if (n2.dynamicChildren && n1 && n1.dynamicChildren && n1.dynamicChildren.hasOnce) {
|
|
5519
|
+
if (n2.dynamicChildren === shared.EMPTY_ARR) {
|
|
5520
|
+
n2.dynamicChildren = [];
|
|
5521
|
+
}
|
|
5522
|
+
n2.dynamicChildren.hasOnce = true;
|
|
5523
|
+
}
|
|
5516
5524
|
const { type, ref, shapeFlag } = n2;
|
|
5517
5525
|
switch (type) {
|
|
5518
5526
|
case Text:
|
|
@@ -6120,6 +6128,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6120
6128
|
{
|
|
6121
6129
|
pushWarningContext(n2);
|
|
6122
6130
|
}
|
|
6131
|
+
n2.el = n1.el;
|
|
6123
6132
|
updateComponentPreRender(instance, n2, optimized);
|
|
6124
6133
|
{
|
|
6125
6134
|
popWarningContext();
|
|
@@ -6711,7 +6720,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6711
6720
|
cacheIndex,
|
|
6712
6721
|
memo
|
|
6713
6722
|
} = vnode;
|
|
6714
|
-
if (patchFlag === -2) {
|
|
6723
|
+
if (patchFlag === -2 || dynamicChildren && dynamicChildren.hasOnce) {
|
|
6715
6724
|
optimized = false;
|
|
6716
6725
|
}
|
|
6717
6726
|
if (ref != null) {
|
|
@@ -6719,7 +6728,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6719
6728
|
setRef(ref, null, parentSuspense, vnode, true);
|
|
6720
6729
|
reactivity.resetTracking();
|
|
6721
6730
|
}
|
|
6722
|
-
if (cacheIndex != null) {
|
|
6731
|
+
if (cacheIndex != null && (!vnode.ctx || vnode.ctx === parentComponent)) {
|
|
6723
6732
|
parentComponent.renderCache[cacheIndex] = void 0;
|
|
6724
6733
|
}
|
|
6725
6734
|
if (shapeFlag & 256) {
|
|
@@ -6800,6 +6809,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6800
6809
|
}
|
|
6801
6810
|
if (type === Static) {
|
|
6802
6811
|
removeStaticNode(vnode);
|
|
6812
|
+
if (transition && !transition.persisted && transition.afterLeave) {
|
|
6813
|
+
transition.afterLeave();
|
|
6814
|
+
}
|
|
6803
6815
|
return;
|
|
6804
6816
|
}
|
|
6805
6817
|
const performRemove = () => {
|
|
@@ -6843,6 +6855,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6843
6855
|
if (job) {
|
|
6844
6856
|
job.flags |= 8;
|
|
6845
6857
|
unmount(subTree, instance, parentSuspense, doRemove);
|
|
6858
|
+
} else if (instance.vnode.el && subTree) {
|
|
6859
|
+
subTree.transition = instance.vnode.transition;
|
|
6860
|
+
unmount(subTree, instance, parentSuspense, doRemove);
|
|
6846
6861
|
}
|
|
6847
6862
|
if (um) {
|
|
6848
6863
|
queuePostRenderEffect(um, parentSuspense);
|
|
@@ -7057,7 +7072,7 @@ const SuspenseImpl = {
|
|
|
7057
7072
|
rendererInternals
|
|
7058
7073
|
);
|
|
7059
7074
|
} else {
|
|
7060
|
-
if (parentSuspense && parentSuspense.deps > 0 && !n1.suspense.isInFallback) {
|
|
7075
|
+
if (parentSuspense && parentSuspense.deps > 0 && !n1.suspense.isInFallback && !parentSuspense.isHydrating) {
|
|
7061
7076
|
n2.suspense = n1.suspense;
|
|
7062
7077
|
n2.suspense.vnode = n2;
|
|
7063
7078
|
n2.el = n1.el;
|
|
@@ -7143,10 +7158,12 @@ function patchSuspense(n1, n2, container, anchor, parentComponent, namespace, sl
|
|
|
7143
7158
|
if (pendingBranch) {
|
|
7144
7159
|
suspense.pendingBranch = newBranch;
|
|
7145
7160
|
if (isSameVNodeType(pendingBranch, newBranch)) {
|
|
7161
|
+
suspense.deps++;
|
|
7146
7162
|
patch(
|
|
7147
7163
|
pendingBranch,
|
|
7148
7164
|
newBranch,
|
|
7149
|
-
|
|
7165
|
+
// a hydrating pending branch is adopted SSR DOM, already in place
|
|
7166
|
+
isHydrating ? container : suspense.hiddenContainer,
|
|
7150
7167
|
null,
|
|
7151
7168
|
parentComponent,
|
|
7152
7169
|
suspense,
|
|
@@ -7154,6 +7171,7 @@ function patchSuspense(n1, n2, container, anchor, parentComponent, namespace, sl
|
|
|
7154
7171
|
slotScopeIds,
|
|
7155
7172
|
optimized
|
|
7156
7173
|
);
|
|
7174
|
+
suspense.deps--;
|
|
7157
7175
|
if (suspense.deps <= 0) {
|
|
7158
7176
|
suspense.resolve();
|
|
7159
7177
|
} else if (isInFallback) {
|
|
@@ -7419,6 +7437,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
7419
7437
|
suspense.effects = [];
|
|
7420
7438
|
if (isSuspensible) {
|
|
7421
7439
|
if (parentSuspense && parentSuspense.pendingBranch && parentSuspenseId === parentSuspense.pendingId) {
|
|
7440
|
+
parentSuspenseId = void 0;
|
|
7422
7441
|
parentSuspense.deps--;
|
|
7423
7442
|
if (parentSuspense.deps === 0 && !sync) {
|
|
7424
7443
|
parentSuspense.resolve();
|
|
@@ -7492,6 +7511,12 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
7492
7511
|
return;
|
|
7493
7512
|
}
|
|
7494
7513
|
unsetCurrentInstance();
|
|
7514
|
+
if (hydratedEl && !instance.scope.active) {
|
|
7515
|
+
if (isInPendingSuspense && --suspense.deps === 0) {
|
|
7516
|
+
suspense.resolve();
|
|
7517
|
+
}
|
|
7518
|
+
return;
|
|
7519
|
+
}
|
|
7495
7520
|
instance.asyncResolved = true;
|
|
7496
7521
|
const { vnode: vnode2 } = instance;
|
|
7497
7522
|
{
|
|
@@ -7913,7 +7938,8 @@ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false
|
|
|
7913
7938
|
el: vnode.el,
|
|
7914
7939
|
anchor: vnode.anchor,
|
|
7915
7940
|
ctx: vnode.ctx,
|
|
7916
|
-
ce: vnode.ce
|
|
7941
|
+
ce: vnode.ce,
|
|
7942
|
+
cacheIndex: vnode.cacheIndex
|
|
7917
7943
|
};
|
|
7918
7944
|
if (transition && cloneTransition) {
|
|
7919
7945
|
setTransitionHooks(
|
|
@@ -8718,7 +8744,7 @@ function isMemoSame(cached, memo) {
|
|
|
8718
8744
|
return true;
|
|
8719
8745
|
}
|
|
8720
8746
|
|
|
8721
|
-
const version = "3.5.
|
|
8747
|
+
const version = "3.5.43";
|
|
8722
8748
|
const warn = warn$1 ;
|
|
8723
8749
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8724
8750
|
const devtools = devtools$1 ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.43
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1545,13 +1545,15 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
1545
1545
|
getContainerType(container),
|
|
1546
1546
|
optimized
|
|
1547
1547
|
);
|
|
1548
|
-
if (isAsyncWrapper(vnode) && !vnode.component.subTree) {
|
|
1548
|
+
if ((isAsyncWrapper(vnode) || vnode.component.asyncDep) && !vnode.component.subTree) {
|
|
1549
1549
|
let subTree;
|
|
1550
1550
|
if (isFragmentStart) {
|
|
1551
1551
|
subTree = createVNode(Static);
|
|
1552
1552
|
subTree.anchor = nextNode ? nextNode.previousSibling : container.lastChild;
|
|
1553
1553
|
} else {
|
|
1554
|
-
subTree = node.nodeType === 3 ? createTextVNode("") : createVNode(
|
|
1554
|
+
subTree = node.nodeType === 3 ? createTextVNode("") : createVNode(
|
|
1555
|
+
node.nodeType === 8 ? Comment : "div"
|
|
1556
|
+
);
|
|
1555
1557
|
}
|
|
1556
1558
|
subTree.el = node;
|
|
1557
1559
|
vnode.component.subTree = subTree;
|
|
@@ -4138,6 +4140,12 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4138
4140
|
optimized = false;
|
|
4139
4141
|
n2.dynamicChildren = null;
|
|
4140
4142
|
}
|
|
4143
|
+
if (n2.dynamicChildren && n1 && n1.dynamicChildren && n1.dynamicChildren.hasOnce) {
|
|
4144
|
+
if (n2.dynamicChildren === shared.EMPTY_ARR) {
|
|
4145
|
+
n2.dynamicChildren = [];
|
|
4146
|
+
}
|
|
4147
|
+
n2.dynamicChildren.hasOnce = true;
|
|
4148
|
+
}
|
|
4141
4149
|
const { type, ref, shapeFlag } = n2;
|
|
4142
4150
|
switch (type) {
|
|
4143
4151
|
case Text:
|
|
@@ -4690,6 +4698,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4690
4698
|
const instance = n2.component = n1.component;
|
|
4691
4699
|
if (shouldUpdateComponent(n1, n2, optimized)) {
|
|
4692
4700
|
if (instance.asyncDep && !instance.asyncResolved) {
|
|
4701
|
+
n2.el = n1.el;
|
|
4693
4702
|
updateComponentPreRender(instance, n2, optimized);
|
|
4694
4703
|
return;
|
|
4695
4704
|
} else {
|
|
@@ -5219,7 +5228,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5219
5228
|
cacheIndex,
|
|
5220
5229
|
memo
|
|
5221
5230
|
} = vnode;
|
|
5222
|
-
if (patchFlag === -2) {
|
|
5231
|
+
if (patchFlag === -2 || dynamicChildren && dynamicChildren.hasOnce) {
|
|
5223
5232
|
optimized = false;
|
|
5224
5233
|
}
|
|
5225
5234
|
if (ref != null) {
|
|
@@ -5227,7 +5236,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5227
5236
|
setRef(ref, null, parentSuspense, vnode, true);
|
|
5228
5237
|
reactivity.resetTracking();
|
|
5229
5238
|
}
|
|
5230
|
-
if (cacheIndex != null) {
|
|
5239
|
+
if (cacheIndex != null && (!vnode.ctx || vnode.ctx === parentComponent)) {
|
|
5231
5240
|
parentComponent.renderCache[cacheIndex] = void 0;
|
|
5232
5241
|
}
|
|
5233
5242
|
if (shapeFlag & 256) {
|
|
@@ -5300,6 +5309,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5300
5309
|
}
|
|
5301
5310
|
if (type === Static) {
|
|
5302
5311
|
removeStaticNode(vnode);
|
|
5312
|
+
if (transition && !transition.persisted && transition.afterLeave) {
|
|
5313
|
+
transition.afterLeave();
|
|
5314
|
+
}
|
|
5303
5315
|
return;
|
|
5304
5316
|
}
|
|
5305
5317
|
const performRemove = () => {
|
|
@@ -5340,6 +5352,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5340
5352
|
if (job) {
|
|
5341
5353
|
job.flags |= 8;
|
|
5342
5354
|
unmount(subTree, instance, parentSuspense, doRemove);
|
|
5355
|
+
} else if (instance.vnode.el && subTree) {
|
|
5356
|
+
subTree.transition = instance.vnode.transition;
|
|
5357
|
+
unmount(subTree, instance, parentSuspense, doRemove);
|
|
5343
5358
|
}
|
|
5344
5359
|
if (um) {
|
|
5345
5360
|
queuePostRenderEffect(um, parentSuspense);
|
|
@@ -5548,7 +5563,7 @@ const SuspenseImpl = {
|
|
|
5548
5563
|
rendererInternals
|
|
5549
5564
|
);
|
|
5550
5565
|
} else {
|
|
5551
|
-
if (parentSuspense && parentSuspense.deps > 0 && !n1.suspense.isInFallback) {
|
|
5566
|
+
if (parentSuspense && parentSuspense.deps > 0 && !n1.suspense.isInFallback && !parentSuspense.isHydrating) {
|
|
5552
5567
|
n2.suspense = n1.suspense;
|
|
5553
5568
|
n2.suspense.vnode = n2;
|
|
5554
5569
|
n2.el = n1.el;
|
|
@@ -5634,10 +5649,12 @@ function patchSuspense(n1, n2, container, anchor, parentComponent, namespace, sl
|
|
|
5634
5649
|
if (pendingBranch) {
|
|
5635
5650
|
suspense.pendingBranch = newBranch;
|
|
5636
5651
|
if (isSameVNodeType(pendingBranch, newBranch)) {
|
|
5652
|
+
suspense.deps++;
|
|
5637
5653
|
patch(
|
|
5638
5654
|
pendingBranch,
|
|
5639
5655
|
newBranch,
|
|
5640
|
-
|
|
5656
|
+
// a hydrating pending branch is adopted SSR DOM, already in place
|
|
5657
|
+
isHydrating ? container : suspense.hiddenContainer,
|
|
5641
5658
|
null,
|
|
5642
5659
|
parentComponent,
|
|
5643
5660
|
suspense,
|
|
@@ -5645,6 +5662,7 @@ function patchSuspense(n1, n2, container, anchor, parentComponent, namespace, sl
|
|
|
5645
5662
|
slotScopeIds,
|
|
5646
5663
|
optimized
|
|
5647
5664
|
);
|
|
5665
|
+
suspense.deps--;
|
|
5648
5666
|
if (suspense.deps <= 0) {
|
|
5649
5667
|
suspense.resolve();
|
|
5650
5668
|
} else if (isInFallback) {
|
|
@@ -5888,6 +5906,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
5888
5906
|
suspense.effects = [];
|
|
5889
5907
|
if (isSuspensible) {
|
|
5890
5908
|
if (parentSuspense && parentSuspense.pendingBranch && parentSuspenseId === parentSuspense.pendingId) {
|
|
5909
|
+
parentSuspenseId = void 0;
|
|
5891
5910
|
parentSuspense.deps--;
|
|
5892
5911
|
if (parentSuspense.deps === 0 && !sync) {
|
|
5893
5912
|
parentSuspense.resolve();
|
|
@@ -5961,6 +5980,12 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
5961
5980
|
return;
|
|
5962
5981
|
}
|
|
5963
5982
|
unsetCurrentInstance();
|
|
5983
|
+
if (hydratedEl && !instance.scope.active) {
|
|
5984
|
+
if (isInPendingSuspense && --suspense.deps === 0) {
|
|
5985
|
+
suspense.resolve();
|
|
5986
|
+
}
|
|
5987
|
+
return;
|
|
5988
|
+
}
|
|
5964
5989
|
instance.asyncResolved = true;
|
|
5965
5990
|
const { vnode: vnode2 } = instance;
|
|
5966
5991
|
handleSetupResult(instance, asyncSetupResult, false);
|
|
@@ -6330,7 +6355,8 @@ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false
|
|
|
6330
6355
|
el: vnode.el,
|
|
6331
6356
|
anchor: vnode.anchor,
|
|
6332
6357
|
ctx: vnode.ctx,
|
|
6333
|
-
ce: vnode.ce
|
|
6358
|
+
ce: vnode.ce,
|
|
6359
|
+
cacheIndex: vnode.cacheIndex
|
|
6334
6360
|
};
|
|
6335
6361
|
if (transition && cloneTransition) {
|
|
6336
6362
|
setTransitionHooks(
|
|
@@ -6810,7 +6836,7 @@ function isMemoSame(cached, memo) {
|
|
|
6810
6836
|
return true;
|
|
6811
6837
|
}
|
|
6812
6838
|
|
|
6813
|
-
const version = "3.5.
|
|
6839
|
+
const version = "3.5.43";
|
|
6814
6840
|
const warn$1 = shared.NOOP;
|
|
6815
6841
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
6816
6842
|
const devtools = void 0;
|
package/dist/runtime-core.d.ts
CHANGED
|
@@ -80,13 +80,11 @@ type PropConstructor<T = any> = {
|
|
|
80
80
|
} | {
|
|
81
81
|
(): T;
|
|
82
82
|
} | PropMethod<T>;
|
|
83
|
-
type PropMethod<T, TConstructor = any> =
|
|
84
|
-
((...args: any) => any) | undefined
|
|
85
|
-
] ? {
|
|
83
|
+
type PropMethod<T, TConstructor = any> = {
|
|
86
84
|
new (): TConstructor;
|
|
87
85
|
(): T;
|
|
88
86
|
readonly prototype: TConstructor;
|
|
89
|
-
}
|
|
87
|
+
};
|
|
90
88
|
type RequiredKeys<T> = {
|
|
91
89
|
[K in keyof T]: T[K] extends {
|
|
92
90
|
required: true;
|
|
@@ -119,7 +117,7 @@ type InferPropType<T, NullAsAny = true> = [T] extends [null] ? NullAsAny extends
|
|
|
119
117
|
type: DateConstructor;
|
|
120
118
|
}] ? Date : [T] extends [(infer U)[] | {
|
|
121
119
|
type: (infer U)[];
|
|
122
|
-
}] ? U extends DateConstructor ? Date | InferPropType<U, false> : InferPropType<U, false> : [T] extends [Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? IfAny<V, V, D> : V : V : T;
|
|
120
|
+
}] ? U extends DateConstructor ? Date | InferPropType<U, false> : InferPropType<U, false> : [T] extends [Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? IfAny<V, V, unknown extends D ? V : D> : V : V : T;
|
|
123
121
|
/**
|
|
124
122
|
* Extract prop types from a runtime props options object.
|
|
125
123
|
* The extracted types are **internal** - i.e. the resolved props received by
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.43
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -2068,13 +2068,15 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
2068
2068
|
getContainerType(container),
|
|
2069
2069
|
optimized
|
|
2070
2070
|
);
|
|
2071
|
-
if (isAsyncWrapper(vnode) && !vnode.component.subTree) {
|
|
2071
|
+
if ((isAsyncWrapper(vnode) || vnode.component.asyncDep) && !vnode.component.subTree) {
|
|
2072
2072
|
let subTree;
|
|
2073
2073
|
if (isFragmentStart) {
|
|
2074
2074
|
subTree = createVNode(Static);
|
|
2075
2075
|
subTree.anchor = nextNode ? nextNode.previousSibling : container.lastChild;
|
|
2076
2076
|
} else {
|
|
2077
|
-
subTree = node.nodeType === 3 ? createTextVNode("") : createVNode(
|
|
2077
|
+
subTree = node.nodeType === 3 ? createTextVNode("") : createVNode(
|
|
2078
|
+
node.nodeType === 8 ? Comment : "div"
|
|
2079
|
+
);
|
|
2078
2080
|
}
|
|
2079
2081
|
subTree.el = node;
|
|
2080
2082
|
vnode.component.subTree = subTree;
|
|
@@ -5563,6 +5565,12 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5563
5565
|
optimized = false;
|
|
5564
5566
|
n2.dynamicChildren = null;
|
|
5565
5567
|
}
|
|
5568
|
+
if (n2.dynamicChildren && n1 && n1.dynamicChildren && n1.dynamicChildren.hasOnce) {
|
|
5569
|
+
if (n2.dynamicChildren === EMPTY_ARR) {
|
|
5570
|
+
n2.dynamicChildren = [];
|
|
5571
|
+
}
|
|
5572
|
+
n2.dynamicChildren.hasOnce = true;
|
|
5573
|
+
}
|
|
5566
5574
|
const { type, ref, shapeFlag } = n2;
|
|
5567
5575
|
switch (type) {
|
|
5568
5576
|
case Text:
|
|
@@ -6181,6 +6189,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6181
6189
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6182
6190
|
pushWarningContext(n2);
|
|
6183
6191
|
}
|
|
6192
|
+
n2.el = n1.el;
|
|
6184
6193
|
updateComponentPreRender(instance, n2, optimized);
|
|
6185
6194
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
6186
6195
|
popWarningContext();
|
|
@@ -6772,7 +6781,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6772
6781
|
cacheIndex,
|
|
6773
6782
|
memo
|
|
6774
6783
|
} = vnode;
|
|
6775
|
-
if (patchFlag === -2) {
|
|
6784
|
+
if (patchFlag === -2 || dynamicChildren && dynamicChildren.hasOnce) {
|
|
6776
6785
|
optimized = false;
|
|
6777
6786
|
}
|
|
6778
6787
|
if (ref != null) {
|
|
@@ -6780,7 +6789,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6780
6789
|
setRef(ref, null, parentSuspense, vnode, true);
|
|
6781
6790
|
resetTracking();
|
|
6782
6791
|
}
|
|
6783
|
-
if (cacheIndex != null) {
|
|
6792
|
+
if (cacheIndex != null && (!vnode.ctx || vnode.ctx === parentComponent)) {
|
|
6784
6793
|
parentComponent.renderCache[cacheIndex] = void 0;
|
|
6785
6794
|
}
|
|
6786
6795
|
if (shapeFlag & 256) {
|
|
@@ -6861,6 +6870,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6861
6870
|
}
|
|
6862
6871
|
if (type === Static) {
|
|
6863
6872
|
removeStaticNode(vnode);
|
|
6873
|
+
if (transition && !transition.persisted && transition.afterLeave) {
|
|
6874
|
+
transition.afterLeave();
|
|
6875
|
+
}
|
|
6864
6876
|
return;
|
|
6865
6877
|
}
|
|
6866
6878
|
const performRemove = () => {
|
|
@@ -6904,6 +6916,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6904
6916
|
if (job) {
|
|
6905
6917
|
job.flags |= 8;
|
|
6906
6918
|
unmount(subTree, instance, parentSuspense, doRemove);
|
|
6919
|
+
} else if (instance.vnode.el && subTree) {
|
|
6920
|
+
subTree.transition = instance.vnode.transition;
|
|
6921
|
+
unmount(subTree, instance, parentSuspense, doRemove);
|
|
6907
6922
|
}
|
|
6908
6923
|
if (um) {
|
|
6909
6924
|
queuePostRenderEffect(um, parentSuspense);
|
|
@@ -7118,7 +7133,7 @@ const SuspenseImpl = {
|
|
|
7118
7133
|
rendererInternals
|
|
7119
7134
|
);
|
|
7120
7135
|
} else {
|
|
7121
|
-
if (parentSuspense && parentSuspense.deps > 0 && !n1.suspense.isInFallback) {
|
|
7136
|
+
if (parentSuspense && parentSuspense.deps > 0 && !n1.suspense.isInFallback && !parentSuspense.isHydrating) {
|
|
7122
7137
|
n2.suspense = n1.suspense;
|
|
7123
7138
|
n2.suspense.vnode = n2;
|
|
7124
7139
|
n2.el = n1.el;
|
|
@@ -7204,10 +7219,12 @@ function patchSuspense(n1, n2, container, anchor, parentComponent, namespace, sl
|
|
|
7204
7219
|
if (pendingBranch) {
|
|
7205
7220
|
suspense.pendingBranch = newBranch;
|
|
7206
7221
|
if (isSameVNodeType(pendingBranch, newBranch)) {
|
|
7222
|
+
suspense.deps++;
|
|
7207
7223
|
patch(
|
|
7208
7224
|
pendingBranch,
|
|
7209
7225
|
newBranch,
|
|
7210
|
-
|
|
7226
|
+
// a hydrating pending branch is adopted SSR DOM, already in place
|
|
7227
|
+
isHydrating ? container : suspense.hiddenContainer,
|
|
7211
7228
|
null,
|
|
7212
7229
|
parentComponent,
|
|
7213
7230
|
suspense,
|
|
@@ -7215,6 +7232,7 @@ function patchSuspense(n1, n2, container, anchor, parentComponent, namespace, sl
|
|
|
7215
7232
|
slotScopeIds,
|
|
7216
7233
|
optimized
|
|
7217
7234
|
);
|
|
7235
|
+
suspense.deps--;
|
|
7218
7236
|
if (suspense.deps <= 0) {
|
|
7219
7237
|
suspense.resolve();
|
|
7220
7238
|
} else if (isInFallback) {
|
|
@@ -7480,6 +7498,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
7480
7498
|
suspense.effects = [];
|
|
7481
7499
|
if (isSuspensible) {
|
|
7482
7500
|
if (parentSuspense && parentSuspense.pendingBranch && parentSuspenseId === parentSuspense.pendingId) {
|
|
7501
|
+
parentSuspenseId = void 0;
|
|
7483
7502
|
parentSuspense.deps--;
|
|
7484
7503
|
if (parentSuspense.deps === 0 && !sync) {
|
|
7485
7504
|
parentSuspense.resolve();
|
|
@@ -7553,6 +7572,12 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
7553
7572
|
return;
|
|
7554
7573
|
}
|
|
7555
7574
|
unsetCurrentInstance();
|
|
7575
|
+
if (hydratedEl && !instance.scope.active) {
|
|
7576
|
+
if (isInPendingSuspense && --suspense.deps === 0) {
|
|
7577
|
+
suspense.resolve();
|
|
7578
|
+
}
|
|
7579
|
+
return;
|
|
7580
|
+
}
|
|
7556
7581
|
instance.asyncResolved = true;
|
|
7557
7582
|
const { vnode: vnode2 } = instance;
|
|
7558
7583
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
@@ -7974,7 +7999,8 @@ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false
|
|
|
7974
7999
|
el: vnode.el,
|
|
7975
8000
|
anchor: vnode.anchor,
|
|
7976
8001
|
ctx: vnode.ctx,
|
|
7977
|
-
ce: vnode.ce
|
|
8002
|
+
ce: vnode.ce,
|
|
8003
|
+
cacheIndex: vnode.cacheIndex
|
|
7978
8004
|
};
|
|
7979
8005
|
if (transition && cloneTransition) {
|
|
7980
8006
|
setTransitionHooks(
|
|
@@ -8793,7 +8819,7 @@ function isMemoSame(cached, memo) {
|
|
|
8793
8819
|
return true;
|
|
8794
8820
|
}
|
|
8795
8821
|
|
|
8796
|
-
const version = "3.5.
|
|
8822
|
+
const version = "3.5.43";
|
|
8797
8823
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8798
8824
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8799
8825
|
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.43",
|
|
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.43",
|
|
50
|
+
"@vue/reactivity": "3.5.43"
|
|
51
51
|
}
|
|
52
52
|
}
|