@vue/runtime-core 3.2.36 → 3.2.37
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
|
@@ -2823,7 +2823,7 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
2823
2823
|
const Component = instance.type;
|
|
2824
2824
|
// explicit self name has highest priority
|
|
2825
2825
|
if (type === COMPONENTS) {
|
|
2826
|
-
const selfName = getComponentName(Component);
|
|
2826
|
+
const selfName = getComponentName(Component, false /* do not include inferred name to avoid breaking existing code */);
|
|
2827
2827
|
if (selfName &&
|
|
2828
2828
|
(selfName === name ||
|
|
2829
2829
|
selfName === shared.camelize(name) ||
|
|
@@ -4494,7 +4494,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4494
4494
|
setupState[ref] = value;
|
|
4495
4495
|
}
|
|
4496
4496
|
}
|
|
4497
|
-
else if (
|
|
4497
|
+
else if (_isRef) {
|
|
4498
4498
|
ref.value = value;
|
|
4499
4499
|
if (rawRef.k)
|
|
4500
4500
|
refs[rawRef.k] = value;
|
|
@@ -4533,11 +4533,13 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4533
4533
|
`Performing full mount instead.`);
|
|
4534
4534
|
patch(null, vnode, container);
|
|
4535
4535
|
flushPostFlushCbs();
|
|
4536
|
+
container._vnode = vnode;
|
|
4536
4537
|
return;
|
|
4537
4538
|
}
|
|
4538
4539
|
hasMismatch = false;
|
|
4539
4540
|
hydrateNode(container.firstChild, vnode, null, null, null);
|
|
4540
4541
|
flushPostFlushCbs();
|
|
4542
|
+
container._vnode = vnode;
|
|
4541
4543
|
if (hasMismatch && !false) {
|
|
4542
4544
|
// this error should show up in production
|
|
4543
4545
|
console.error(`Hydration completed but contains mismatches.`);
|
|
@@ -4587,7 +4589,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4587
4589
|
}
|
|
4588
4590
|
break;
|
|
4589
4591
|
case Static:
|
|
4590
|
-
if (domType !== 1 /* ELEMENT */) {
|
|
4592
|
+
if (domType !== 1 /* ELEMENT */ && domType !== 3 /* TEXT */) {
|
|
4591
4593
|
nextNode = onMismatch();
|
|
4592
4594
|
}
|
|
4593
4595
|
else {
|
|
@@ -4598,7 +4600,10 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4598
4600
|
const needToAdoptContent = !vnode.children.length;
|
|
4599
4601
|
for (let i = 0; i < vnode.staticCount; i++) {
|
|
4600
4602
|
if (needToAdoptContent)
|
|
4601
|
-
vnode.children +=
|
|
4603
|
+
vnode.children +=
|
|
4604
|
+
nextNode.nodeType === 1 /* ELEMENT */
|
|
4605
|
+
? nextNode.outerHTML
|
|
4606
|
+
: nextNode.data;
|
|
4602
4607
|
if (i === vnode.staticCount - 1) {
|
|
4603
4608
|
vnode.anchor = nextNode;
|
|
4604
4609
|
}
|
|
@@ -7275,10 +7280,10 @@ function getExposeProxy(instance) {
|
|
|
7275
7280
|
}
|
|
7276
7281
|
const classifyRE = /(?:^|[-_])(\w)/g;
|
|
7277
7282
|
const classify = (str) => str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '');
|
|
7278
|
-
function getComponentName(Component) {
|
|
7283
|
+
function getComponentName(Component, includeInferred = true) {
|
|
7279
7284
|
return shared.isFunction(Component)
|
|
7280
7285
|
? Component.displayName || Component.name
|
|
7281
|
-
: Component.name;
|
|
7286
|
+
: Component.name || (includeInferred && Component.__name);
|
|
7282
7287
|
}
|
|
7283
7288
|
/* istanbul ignore next */
|
|
7284
7289
|
function formatComponentName(instance, Component, isRoot = false) {
|
|
@@ -7726,7 +7731,7 @@ function isMemoSame(cached, memo) {
|
|
|
7726
7731
|
}
|
|
7727
7732
|
|
|
7728
7733
|
// Core API ------------------------------------------------------------------
|
|
7729
|
-
const version = "3.2.
|
|
7734
|
+
const version = "3.2.37";
|
|
7730
7735
|
const _ssrUtils = {
|
|
7731
7736
|
createComponentInstance,
|
|
7732
7737
|
setupComponent,
|
|
@@ -7736,7 +7741,7 @@ const _ssrUtils = {
|
|
|
7736
7741
|
normalizeVNode
|
|
7737
7742
|
};
|
|
7738
7743
|
/**
|
|
7739
|
-
* SSR utils for \@vue/server-renderer. Only exposed in
|
|
7744
|
+
* SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
|
|
7740
7745
|
* @internal
|
|
7741
7746
|
*/
|
|
7742
7747
|
const ssrUtils = (_ssrUtils );
|
|
@@ -2300,7 +2300,7 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
2300
2300
|
const Component = instance.type;
|
|
2301
2301
|
// explicit self name has highest priority
|
|
2302
2302
|
if (type === COMPONENTS) {
|
|
2303
|
-
const selfName = getComponentName(Component);
|
|
2303
|
+
const selfName = getComponentName(Component, false /* do not include inferred name to avoid breaking existing code */);
|
|
2304
2304
|
if (selfName &&
|
|
2305
2305
|
(selfName === name ||
|
|
2306
2306
|
selfName === shared.camelize(name) ||
|
|
@@ -3525,7 +3525,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
3525
3525
|
setupState[ref] = value;
|
|
3526
3526
|
}
|
|
3527
3527
|
}
|
|
3528
|
-
else if (
|
|
3528
|
+
else if (_isRef) {
|
|
3529
3529
|
ref.value = value;
|
|
3530
3530
|
if (rawRef.k)
|
|
3531
3531
|
refs[rawRef.k] = value;
|
|
@@ -3557,11 +3557,13 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
3557
3557
|
if (!container.hasChildNodes()) {
|
|
3558
3558
|
patch(null, vnode, container);
|
|
3559
3559
|
flushPostFlushCbs();
|
|
3560
|
+
container._vnode = vnode;
|
|
3560
3561
|
return;
|
|
3561
3562
|
}
|
|
3562
3563
|
hasMismatch = false;
|
|
3563
3564
|
hydrateNode(container.firstChild, vnode, null, null, null);
|
|
3564
3565
|
flushPostFlushCbs();
|
|
3566
|
+
container._vnode = vnode;
|
|
3565
3567
|
if (hasMismatch && !false) {
|
|
3566
3568
|
// this error should show up in production
|
|
3567
3569
|
console.error(`Hydration completed but contains mismatches.`);
|
|
@@ -3608,7 +3610,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
3608
3610
|
}
|
|
3609
3611
|
break;
|
|
3610
3612
|
case Static:
|
|
3611
|
-
if (domType !== 1 /* ELEMENT */) {
|
|
3613
|
+
if (domType !== 1 /* ELEMENT */ && domType !== 3 /* TEXT */) {
|
|
3612
3614
|
nextNode = onMismatch();
|
|
3613
3615
|
}
|
|
3614
3616
|
else {
|
|
@@ -3619,7 +3621,10 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
3619
3621
|
const needToAdoptContent = !vnode.children.length;
|
|
3620
3622
|
for (let i = 0; i < vnode.staticCount; i++) {
|
|
3621
3623
|
if (needToAdoptContent)
|
|
3622
|
-
vnode.children +=
|
|
3624
|
+
vnode.children +=
|
|
3625
|
+
nextNode.nodeType === 1 /* ELEMENT */
|
|
3626
|
+
? nextNode.outerHTML
|
|
3627
|
+
: nextNode.data;
|
|
3623
3628
|
if (i === vnode.staticCount - 1) {
|
|
3624
3629
|
vnode.anchor = nextNode;
|
|
3625
3630
|
}
|
|
@@ -5921,10 +5926,10 @@ function getExposeProxy(instance) {
|
|
|
5921
5926
|
}
|
|
5922
5927
|
const classifyRE = /(?:^|[-_])(\w)/g;
|
|
5923
5928
|
const classify = (str) => str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '');
|
|
5924
|
-
function getComponentName(Component) {
|
|
5929
|
+
function getComponentName(Component, includeInferred = true) {
|
|
5925
5930
|
return shared.isFunction(Component)
|
|
5926
5931
|
? Component.displayName || Component.name
|
|
5927
|
-
: Component.name;
|
|
5932
|
+
: Component.name || (includeInferred && Component.__name);
|
|
5928
5933
|
}
|
|
5929
5934
|
/* istanbul ignore next */
|
|
5930
5935
|
function formatComponentName(instance, Component, isRoot = false) {
|
|
@@ -6161,7 +6166,7 @@ function isMemoSame(cached, memo) {
|
|
|
6161
6166
|
}
|
|
6162
6167
|
|
|
6163
6168
|
// Core API ------------------------------------------------------------------
|
|
6164
|
-
const version = "3.2.
|
|
6169
|
+
const version = "3.2.37";
|
|
6165
6170
|
const _ssrUtils = {
|
|
6166
6171
|
createComponentInstance,
|
|
6167
6172
|
setupComponent,
|
|
@@ -6171,7 +6176,7 @@ const _ssrUtils = {
|
|
|
6171
6176
|
normalizeVNode
|
|
6172
6177
|
};
|
|
6173
6178
|
/**
|
|
6174
|
-
* SSR utils for \@vue/server-renderer. Only exposed in
|
|
6179
|
+
* SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
|
|
6175
6180
|
* @internal
|
|
6176
6181
|
*/
|
|
6177
6182
|
const ssrUtils = (_ssrUtils );
|
package/dist/runtime-core.d.ts
CHANGED
|
@@ -431,6 +431,10 @@ declare interface ComponentInternalOptions {
|
|
|
431
431
|
* This one should be exposed so that devtools can make use of it
|
|
432
432
|
*/
|
|
433
433
|
__file?: string;
|
|
434
|
+
/**
|
|
435
|
+
* name inferred from filename
|
|
436
|
+
*/
|
|
437
|
+
__name?: string;
|
|
434
438
|
}
|
|
435
439
|
|
|
436
440
|
export declare type ComponentObjectPropsOptions<P = Data> = {
|
|
@@ -1544,7 +1548,9 @@ export declare function resolveDynamicComponent(component: unknown): VNodeTypes;
|
|
|
1544
1548
|
|
|
1545
1549
|
export declare function resolveTransitionHooks(vnode: VNode, props: BaseTransitionProps<any>, state: TransitionState, instance: ComponentInternalInstance): TransitionHooks;
|
|
1546
1550
|
|
|
1547
|
-
export declare type RootHydrateFunction = (vnode: VNode<Node, Element>, container: Element | ShadowRoot)
|
|
1551
|
+
export declare type RootHydrateFunction = (vnode: VNode<Node, Element>, container: (Element | ShadowRoot) & {
|
|
1552
|
+
_vnode?: VNode;
|
|
1553
|
+
}) => void;
|
|
1548
1554
|
|
|
1549
1555
|
export declare type RootRenderFunction<HostElement = RendererElement> = (vnode: VNode | null, container: HostElement, isSVG?: boolean) => void;
|
|
1550
1556
|
|
|
@@ -2833,7 +2833,7 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
2833
2833
|
const Component = instance.type;
|
|
2834
2834
|
// explicit self name has highest priority
|
|
2835
2835
|
if (type === COMPONENTS) {
|
|
2836
|
-
const selfName = getComponentName(Component);
|
|
2836
|
+
const selfName = getComponentName(Component, false /* do not include inferred name to avoid breaking existing code */);
|
|
2837
2837
|
if (selfName &&
|
|
2838
2838
|
(selfName === name ||
|
|
2839
2839
|
selfName === camelize(name) ||
|
|
@@ -4519,7 +4519,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4519
4519
|
setupState[ref] = value;
|
|
4520
4520
|
}
|
|
4521
4521
|
}
|
|
4522
|
-
else if (
|
|
4522
|
+
else if (_isRef) {
|
|
4523
4523
|
ref.value = value;
|
|
4524
4524
|
if (rawRef.k)
|
|
4525
4525
|
refs[rawRef.k] = value;
|
|
@@ -4559,11 +4559,13 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4559
4559
|
`Performing full mount instead.`);
|
|
4560
4560
|
patch(null, vnode, container);
|
|
4561
4561
|
flushPostFlushCbs();
|
|
4562
|
+
container._vnode = vnode;
|
|
4562
4563
|
return;
|
|
4563
4564
|
}
|
|
4564
4565
|
hasMismatch = false;
|
|
4565
4566
|
hydrateNode(container.firstChild, vnode, null, null, null);
|
|
4566
4567
|
flushPostFlushCbs();
|
|
4568
|
+
container._vnode = vnode;
|
|
4567
4569
|
if (hasMismatch && !false) {
|
|
4568
4570
|
// this error should show up in production
|
|
4569
4571
|
console.error(`Hydration completed but contains mismatches.`);
|
|
@@ -4614,7 +4616,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4614
4616
|
}
|
|
4615
4617
|
break;
|
|
4616
4618
|
case Static:
|
|
4617
|
-
if (domType !== 1 /* ELEMENT */) {
|
|
4619
|
+
if (domType !== 1 /* ELEMENT */ && domType !== 3 /* TEXT */) {
|
|
4618
4620
|
nextNode = onMismatch();
|
|
4619
4621
|
}
|
|
4620
4622
|
else {
|
|
@@ -4625,7 +4627,10 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4625
4627
|
const needToAdoptContent = !vnode.children.length;
|
|
4626
4628
|
for (let i = 0; i < vnode.staticCount; i++) {
|
|
4627
4629
|
if (needToAdoptContent)
|
|
4628
|
-
vnode.children +=
|
|
4630
|
+
vnode.children +=
|
|
4631
|
+
nextNode.nodeType === 1 /* ELEMENT */
|
|
4632
|
+
? nextNode.outerHTML
|
|
4633
|
+
: nextNode.data;
|
|
4629
4634
|
if (i === vnode.staticCount - 1) {
|
|
4630
4635
|
vnode.anchor = nextNode;
|
|
4631
4636
|
}
|
|
@@ -7373,10 +7378,10 @@ function getExposeProxy(instance) {
|
|
|
7373
7378
|
}
|
|
7374
7379
|
const classifyRE = /(?:^|[-_])(\w)/g;
|
|
7375
7380
|
const classify = (str) => str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '');
|
|
7376
|
-
function getComponentName(Component) {
|
|
7381
|
+
function getComponentName(Component, includeInferred = true) {
|
|
7377
7382
|
return isFunction(Component)
|
|
7378
7383
|
? Component.displayName || Component.name
|
|
7379
|
-
: Component.name;
|
|
7384
|
+
: Component.name || (includeInferred && Component.__name);
|
|
7380
7385
|
}
|
|
7381
7386
|
/* istanbul ignore next */
|
|
7382
7387
|
function formatComponentName(instance, Component, isRoot = false) {
|
|
@@ -7824,7 +7829,7 @@ function isMemoSame(cached, memo) {
|
|
|
7824
7829
|
}
|
|
7825
7830
|
|
|
7826
7831
|
// Core API ------------------------------------------------------------------
|
|
7827
|
-
const version = "3.2.
|
|
7832
|
+
const version = "3.2.37";
|
|
7828
7833
|
const _ssrUtils = {
|
|
7829
7834
|
createComponentInstance,
|
|
7830
7835
|
setupComponent,
|
|
@@ -7834,7 +7839,7 @@ const _ssrUtils = {
|
|
|
7834
7839
|
normalizeVNode
|
|
7835
7840
|
};
|
|
7836
7841
|
/**
|
|
7837
|
-
* SSR utils for \@vue/server-renderer. Only exposed in
|
|
7842
|
+
* SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
|
|
7838
7843
|
* @internal
|
|
7839
7844
|
*/
|
|
7840
7845
|
const ssrUtils = (_ssrUtils );
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/runtime-core",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.37",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@vue/shared": "3.2.
|
|
36
|
-
"@vue/reactivity": "3.2.
|
|
35
|
+
"@vue/shared": "3.2.37",
|
|
36
|
+
"@vue/reactivity": "3.2.37"
|
|
37
37
|
}
|
|
38
38
|
}
|