@vue/runtime-core 3.5.4 → 3.5.6
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.6
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -524,7 +524,9 @@ function reload(id, newComp) {
|
|
|
524
524
|
dirtyInstances.delete(instance);
|
|
525
525
|
} else if (instance.parent) {
|
|
526
526
|
queueJob(() => {
|
|
527
|
+
isHmrUpdating = true;
|
|
527
528
|
instance.parent.update();
|
|
529
|
+
isHmrUpdating = false;
|
|
528
530
|
dirtyInstances.delete(instance);
|
|
529
531
|
});
|
|
530
532
|
} else if (instance.appContext.reload) {
|
|
@@ -815,6 +817,9 @@ const TeleportImpl = {
|
|
|
815
817
|
insert(mainAnchor, container, anchor);
|
|
816
818
|
const mount = (container2, anchor2) => {
|
|
817
819
|
if (shapeFlag & 16) {
|
|
820
|
+
if (parentComponent && parentComponent.isCE) {
|
|
821
|
+
parentComponent.ce._teleportTarget = container2;
|
|
822
|
+
}
|
|
818
823
|
mountChildren(
|
|
819
824
|
children,
|
|
820
825
|
container2,
|
|
@@ -1845,7 +1850,11 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
1845
1850
|
remove(cur);
|
|
1846
1851
|
}
|
|
1847
1852
|
} else if (shapeFlag & 8) {
|
|
1848
|
-
|
|
1853
|
+
let clientText = vnode.children;
|
|
1854
|
+
if (clientText[0] === "\n" && (el.tagName === "PRE" || el.tagName === "TEXTAREA")) {
|
|
1855
|
+
clientText = clientText.slice(1);
|
|
1856
|
+
}
|
|
1857
|
+
if (el.textContent !== clientText) {
|
|
1849
1858
|
if (!isMismatchAllowed(el, 0 /* TEXT */)) {
|
|
1850
1859
|
warn$1(
|
|
1851
1860
|
`Hydration text content mismatch on`,
|
|
@@ -2044,7 +2053,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
2044
2053
|
}
|
|
2045
2054
|
};
|
|
2046
2055
|
const isTemplateNode = (node) => {
|
|
2047
|
-
return node.nodeType === 1 && node.tagName
|
|
2056
|
+
return node.nodeType === 1 && node.tagName === "TEMPLATE";
|
|
2048
2057
|
};
|
|
2049
2058
|
return [hydrate, hydrateNode];
|
|
2050
2059
|
}
|
|
@@ -2396,7 +2405,7 @@ function defineAsyncComponent(source) {
|
|
|
2396
2405
|
load().then(() => {
|
|
2397
2406
|
loaded.value = true;
|
|
2398
2407
|
if (instance.parent && isKeepAlive(instance.parent.vnode)) {
|
|
2399
|
-
|
|
2408
|
+
instance.parent.update();
|
|
2400
2409
|
}
|
|
2401
2410
|
}).catch((err) => {
|
|
2402
2411
|
onError(err);
|
|
@@ -5078,6 +5087,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5078
5087
|
}
|
|
5079
5088
|
}
|
|
5080
5089
|
if (instance.asyncDep) {
|
|
5090
|
+
if (isHmrUpdating) initialVNode.el = null;
|
|
5081
5091
|
parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized);
|
|
5082
5092
|
if (!initialVNode.el) {
|
|
5083
5093
|
const placeholder = instance.subTree = createVNode(Comment);
|
|
@@ -6040,11 +6050,12 @@ function doWatch(source, cb, options = shared.EMPTY_OBJ) {
|
|
|
6040
6050
|
} else if (!cb || immediate) {
|
|
6041
6051
|
baseWatchOptions.once = true;
|
|
6042
6052
|
} else {
|
|
6043
|
-
|
|
6044
|
-
stop: shared.NOOP,
|
|
6045
|
-
resume: shared.NOOP,
|
|
6046
|
-
pause: shared.NOOP
|
|
6053
|
+
const watchStopHandle = () => {
|
|
6047
6054
|
};
|
|
6055
|
+
watchStopHandle.stop = shared.NOOP;
|
|
6056
|
+
watchStopHandle.resume = shared.NOOP;
|
|
6057
|
+
watchStopHandle.pause = shared.NOOP;
|
|
6058
|
+
return watchStopHandle;
|
|
6048
6059
|
}
|
|
6049
6060
|
}
|
|
6050
6061
|
const instance = currentInstance;
|
|
@@ -8229,7 +8240,7 @@ function isMemoSame(cached, memo) {
|
|
|
8229
8240
|
return true;
|
|
8230
8241
|
}
|
|
8231
8242
|
|
|
8232
|
-
const version = "3.5.
|
|
8243
|
+
const version = "3.5.6";
|
|
8233
8244
|
const warn = warn$1 ;
|
|
8234
8245
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8235
8246
|
const devtools = devtools$1 ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.6
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -416,6 +416,9 @@ const TeleportImpl = {
|
|
|
416
416
|
insert(mainAnchor, container, anchor);
|
|
417
417
|
const mount = (container2, anchor2) => {
|
|
418
418
|
if (shapeFlag & 16) {
|
|
419
|
+
if (parentComponent && parentComponent.isCE) {
|
|
420
|
+
parentComponent.ce._teleportTarget = container2;
|
|
421
|
+
}
|
|
419
422
|
mountChildren(
|
|
420
423
|
children,
|
|
421
424
|
container2,
|
|
@@ -1365,7 +1368,11 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
1365
1368
|
remove(cur);
|
|
1366
1369
|
}
|
|
1367
1370
|
} else if (shapeFlag & 8) {
|
|
1368
|
-
|
|
1371
|
+
let clientText = vnode.children;
|
|
1372
|
+
if (clientText[0] === "\n" && (el.tagName === "PRE" || el.tagName === "TEXTAREA")) {
|
|
1373
|
+
clientText = clientText.slice(1);
|
|
1374
|
+
}
|
|
1375
|
+
if (el.textContent !== clientText) {
|
|
1369
1376
|
if (!isMismatchAllowed(el, 0 /* TEXT */)) {
|
|
1370
1377
|
logMismatchError();
|
|
1371
1378
|
}
|
|
@@ -1544,7 +1551,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
1544
1551
|
}
|
|
1545
1552
|
};
|
|
1546
1553
|
const isTemplateNode = (node) => {
|
|
1547
|
-
return node.nodeType === 1 && node.tagName
|
|
1554
|
+
return node.nodeType === 1 && node.tagName === "TEMPLATE";
|
|
1548
1555
|
};
|
|
1549
1556
|
return [hydrate, hydrateNode];
|
|
1550
1557
|
}
|
|
@@ -1768,7 +1775,7 @@ function defineAsyncComponent(source) {
|
|
|
1768
1775
|
load().then(() => {
|
|
1769
1776
|
loaded.value = true;
|
|
1770
1777
|
if (instance.parent && isKeepAlive(instance.parent.vnode)) {
|
|
1771
|
-
|
|
1778
|
+
instance.parent.update();
|
|
1772
1779
|
}
|
|
1773
1780
|
}).catch((err) => {
|
|
1774
1781
|
onError(err);
|
|
@@ -4725,11 +4732,12 @@ function doWatch(source, cb, options = shared.EMPTY_OBJ) {
|
|
|
4725
4732
|
} else if (!cb || immediate) {
|
|
4726
4733
|
baseWatchOptions.once = true;
|
|
4727
4734
|
} else {
|
|
4728
|
-
|
|
4729
|
-
stop: shared.NOOP,
|
|
4730
|
-
resume: shared.NOOP,
|
|
4731
|
-
pause: shared.NOOP
|
|
4735
|
+
const watchStopHandle = () => {
|
|
4732
4736
|
};
|
|
4737
|
+
watchStopHandle.stop = shared.NOOP;
|
|
4738
|
+
watchStopHandle.resume = shared.NOOP;
|
|
4739
|
+
watchStopHandle.pause = shared.NOOP;
|
|
4740
|
+
return watchStopHandle;
|
|
4733
4741
|
}
|
|
4734
4742
|
}
|
|
4735
4743
|
const instance = currentInstance;
|
|
@@ -6401,7 +6409,7 @@ function isMemoSame(cached, memo) {
|
|
|
6401
6409
|
return true;
|
|
6402
6410
|
}
|
|
6403
6411
|
|
|
6404
|
-
const version = "3.5.
|
|
6412
|
+
const version = "3.5.6";
|
|
6405
6413
|
const warn$1 = shared.NOOP;
|
|
6406
6414
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
6407
6415
|
const devtools = void 0;
|
package/dist/runtime-core.d.ts
CHANGED
|
@@ -1021,8 +1021,8 @@ export interface App<HostElement = any> {
|
|
|
1021
1021
|
mixin(mixin: ComponentOptions): this;
|
|
1022
1022
|
component(name: string): Component | undefined;
|
|
1023
1023
|
component<T extends Component | DefineComponent>(name: string, component: T): this;
|
|
1024
|
-
directive<
|
|
1025
|
-
directive<
|
|
1024
|
+
directive<HostElement = any, Value = any, Modifiers extends string = string, Arg extends string = string>(name: string): Directive<HostElement, Value, Modifiers, Arg> | undefined;
|
|
1025
|
+
directive<HostElement = any, Value = any, Modifiers extends string = string, Arg extends string = string>(name: string, directive: Directive<HostElement, Value, Modifiers, Arg>): this;
|
|
1026
1026
|
mount(rootContainer: HostElement | string,
|
|
1027
1027
|
/**
|
|
1028
1028
|
* @internal
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.5.
|
|
2
|
+
* @vue/runtime-core v3.5.6
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -527,7 +527,9 @@ function reload(id, newComp) {
|
|
|
527
527
|
dirtyInstances.delete(instance);
|
|
528
528
|
} else if (instance.parent) {
|
|
529
529
|
queueJob(() => {
|
|
530
|
+
isHmrUpdating = true;
|
|
530
531
|
instance.parent.update();
|
|
532
|
+
isHmrUpdating = false;
|
|
531
533
|
dirtyInstances.delete(instance);
|
|
532
534
|
});
|
|
533
535
|
} else if (instance.appContext.reload) {
|
|
@@ -818,6 +820,9 @@ const TeleportImpl = {
|
|
|
818
820
|
insert(mainAnchor, container, anchor);
|
|
819
821
|
const mount = (container2, anchor2) => {
|
|
820
822
|
if (shapeFlag & 16) {
|
|
823
|
+
if (parentComponent && parentComponent.isCE) {
|
|
824
|
+
parentComponent.ce._teleportTarget = container2;
|
|
825
|
+
}
|
|
821
826
|
mountChildren(
|
|
822
827
|
children,
|
|
823
828
|
container2,
|
|
@@ -1849,7 +1854,11 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
1849
1854
|
remove(cur);
|
|
1850
1855
|
}
|
|
1851
1856
|
} else if (shapeFlag & 8) {
|
|
1852
|
-
|
|
1857
|
+
let clientText = vnode.children;
|
|
1858
|
+
if (clientText[0] === "\n" && (el.tagName === "PRE" || el.tagName === "TEXTAREA")) {
|
|
1859
|
+
clientText = clientText.slice(1);
|
|
1860
|
+
}
|
|
1861
|
+
if (el.textContent !== clientText) {
|
|
1853
1862
|
if (!isMismatchAllowed(el, 0 /* TEXT */)) {
|
|
1854
1863
|
(!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(
|
|
1855
1864
|
`Hydration text content mismatch on`,
|
|
@@ -2059,7 +2068,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
2059
2068
|
}
|
|
2060
2069
|
};
|
|
2061
2070
|
const isTemplateNode = (node) => {
|
|
2062
|
-
return node.nodeType === 1 && node.tagName
|
|
2071
|
+
return node.nodeType === 1 && node.tagName === "TEMPLATE";
|
|
2063
2072
|
};
|
|
2064
2073
|
return [hydrate, hydrateNode];
|
|
2065
2074
|
}
|
|
@@ -2411,7 +2420,7 @@ function defineAsyncComponent(source) {
|
|
|
2411
2420
|
load().then(() => {
|
|
2412
2421
|
loaded.value = true;
|
|
2413
2422
|
if (instance.parent && isKeepAlive(instance.parent.vnode)) {
|
|
2414
|
-
|
|
2423
|
+
instance.parent.update();
|
|
2415
2424
|
}
|
|
2416
2425
|
}).catch((err) => {
|
|
2417
2426
|
onError(err);
|
|
@@ -5135,6 +5144,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
5135
5144
|
}
|
|
5136
5145
|
}
|
|
5137
5146
|
if (instance.asyncDep) {
|
|
5147
|
+
if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) initialVNode.el = null;
|
|
5138
5148
|
parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized);
|
|
5139
5149
|
if (!initialVNode.el) {
|
|
5140
5150
|
const placeholder = instance.subTree = createVNode(Comment);
|
|
@@ -6097,11 +6107,12 @@ function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
|
6097
6107
|
} else if (!cb || immediate) {
|
|
6098
6108
|
baseWatchOptions.once = true;
|
|
6099
6109
|
} else {
|
|
6100
|
-
|
|
6101
|
-
stop: NOOP,
|
|
6102
|
-
resume: NOOP,
|
|
6103
|
-
pause: NOOP
|
|
6110
|
+
const watchStopHandle = () => {
|
|
6104
6111
|
};
|
|
6112
|
+
watchStopHandle.stop = NOOP;
|
|
6113
|
+
watchStopHandle.resume = NOOP;
|
|
6114
|
+
watchStopHandle.pause = NOOP;
|
|
6115
|
+
return watchStopHandle;
|
|
6105
6116
|
}
|
|
6106
6117
|
}
|
|
6107
6118
|
const instance = currentInstance;
|
|
@@ -8300,7 +8311,7 @@ function isMemoSame(cached, memo) {
|
|
|
8300
8311
|
return true;
|
|
8301
8312
|
}
|
|
8302
8313
|
|
|
8303
|
-
const version = "3.5.
|
|
8314
|
+
const version = "3.5.6";
|
|
8304
8315
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
8305
8316
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
8306
8317
|
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.6",
|
|
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.6",
|
|
50
|
+
"@vue/reactivity": "3.5.6"
|
|
51
51
|
}
|
|
52
52
|
}
|