@vue/compat 3.6.0-rc.3 → 3.6.0-rc.5
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-compat.d.ts +23 -8
- package/dist/vue.cjs.js +22 -9
- package/dist/vue.cjs.prod.js +22 -9
- package/dist/vue.esm-browser.js +22 -9
- package/dist/vue.esm-browser.prod.js +3 -3
- package/dist/vue.esm-bundler.js +25 -10
- package/dist/vue.global.js +22 -9
- package/dist/vue.global.prod.js +3 -3
- package/dist/vue.runtime.esm-browser.js +22 -9
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +25 -10
- package/dist/vue.runtime.global.js +22 -9
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.6.0-rc.
|
|
2
|
+
* @vue/compat v3.6.0-rc.5
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -4204,7 +4204,18 @@ const logMismatchError = () => {
|
|
|
4204
4204
|
hasLoggedMismatchError = true;
|
|
4205
4205
|
};
|
|
4206
4206
|
const isSVGContainer = (container) => container.namespaceURI.includes("svg") && container.tagName !== "foreignObject";
|
|
4207
|
-
const isMathMLContainer = (container) =>
|
|
4207
|
+
const isMathMLContainer = (container) => {
|
|
4208
|
+
if (!container.namespaceURI.includes("MathML")) return false;
|
|
4209
|
+
if (container.tagName !== "annotation-xml") return true;
|
|
4210
|
+
const encoding = container.getAttribute("encoding");
|
|
4211
|
+
return !encoding || !encoding.includes("html");
|
|
4212
|
+
};
|
|
4213
|
+
/**
|
|
4214
|
+
* Resolve the element namespace a container's children should be created in.
|
|
4215
|
+
* The live DOM is the source of truth, so this also covers containers that are
|
|
4216
|
+
* only known at runtime (interop boundaries, teleport targets).
|
|
4217
|
+
* @internal
|
|
4218
|
+
*/
|
|
4208
4219
|
const getContainerType = (container) => {
|
|
4209
4220
|
if (container.nodeType !== 1) return void 0;
|
|
4210
4221
|
if (isSVGContainer(container)) return "svg";
|
|
@@ -4283,7 +4294,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4283
4294
|
else nextNode = hydrateFragment(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
|
|
4284
4295
|
break;
|
|
4285
4296
|
case VaporSlot:
|
|
4286
|
-
nextNode = getVaporInterface(parentComponent, vnode).hydrateSlot(vnode, node, parentComponent, parentSuspense);
|
|
4297
|
+
nextNode = getVaporInterface(parentComponent, vnode).hydrateSlot(vnode, node, parentComponent, parentSuspense, slotScopeIds);
|
|
4287
4298
|
break;
|
|
4288
4299
|
default: if (shapeFlag & 1) if ((domType !== 1 || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) && !isTemplateNode$1(node)) nextNode = onMismatch();
|
|
4289
4300
|
else nextNode = hydrateElement(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
|
|
@@ -4450,7 +4461,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4450
4461
|
const container = parentNode(node);
|
|
4451
4462
|
remove(node);
|
|
4452
4463
|
patch(null, vnode, container, next, parentComponent, parentSuspense, getContainerType(container), slotScopeIds);
|
|
4453
|
-
if (parentComponent) {
|
|
4464
|
+
if (parentComponent && parentComponent.vnode) {
|
|
4454
4465
|
parentComponent.vnode.el = vnode.el;
|
|
4455
4466
|
updateHOCHostEl(parentComponent, vnode.el);
|
|
4456
4467
|
}
|
|
@@ -4473,7 +4484,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4473
4484
|
if (parentNode) parentNode.replaceChild(newNode, oldNode);
|
|
4474
4485
|
let parent = parentComponent;
|
|
4475
4486
|
while (parent) {
|
|
4476
|
-
if (parent.vnode.el === oldNode) parent.vnode.el = parent.subTree.el = newNode;
|
|
4487
|
+
if (parent.vnode && parent.vnode.el === oldNode) parent.vnode.el = parent.subTree.el = newNode;
|
|
4477
4488
|
parent = parent.parent;
|
|
4478
4489
|
}
|
|
4479
4490
|
};
|
|
@@ -6403,7 +6414,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6403
6414
|
if (options.el) return vm.$mount(options.el);
|
|
6404
6415
|
else return vm;
|
|
6405
6416
|
}
|
|
6406
|
-
Vue.version = `2.6.14-compat:3.6.0-rc.
|
|
6417
|
+
Vue.version = `2.6.14-compat:3.6.0-rc.5`;
|
|
6407
6418
|
Vue.config = singletonApp.config;
|
|
6408
6419
|
Vue.use = (plugin, ...options) => {
|
|
6409
6420
|
if (plugin && isFunction(plugin.install)) plugin.install(Vue, ...options);
|
|
@@ -7748,7 +7759,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7748
7759
|
processFragment(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
|
|
7749
7760
|
break;
|
|
7750
7761
|
case VaporSlot:
|
|
7751
|
-
getVaporInterface(parentComponent, n2).slot(n1, n2, container, anchor, parentComponent, parentSuspense);
|
|
7762
|
+
getVaporInterface(parentComponent, n2).slot(n1, n2, container, anchor, parentComponent, parentSuspense, slotScopeIds);
|
|
7752
7763
|
break;
|
|
7753
7764
|
default: if (shapeFlag & 1) processElement(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
|
|
7754
7765
|
else if (shapeFlag & 6) processComponent(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
|
|
@@ -8609,7 +8620,7 @@ function isVaporComponent(type) {
|
|
|
8609
8620
|
/**
|
|
8610
8621
|
* shared between vdom and vapor
|
|
8611
8622
|
*/
|
|
8612
|
-
function getInheritedScopeIds(vnode, parentComponent) {
|
|
8623
|
+
function getInheritedScopeIds(vnode, parentComponent, includeVaporRootIds = true) {
|
|
8613
8624
|
const inheritedScopeIds = [];
|
|
8614
8625
|
let currentParent = parentComponent;
|
|
8615
8626
|
let currentVNode = vnode;
|
|
@@ -8625,6 +8636,8 @@ function getInheritedScopeIds(vnode, parentComponent) {
|
|
|
8625
8636
|
currentParent = currentParent.parent;
|
|
8626
8637
|
} else break;
|
|
8627
8638
|
}
|
|
8639
|
+
const vaporScopeIds = includeVaporRootIds && currentVNode.vaporScopeIds;
|
|
8640
|
+
if (vaporScopeIds) inheritedScopeIds.push(...vaporScopeIds);
|
|
8628
8641
|
return inheritedScopeIds;
|
|
8629
8642
|
}
|
|
8630
8643
|
function resolveAsyncComponentPlaceholder(anchorVnode) {
|
|
@@ -9907,7 +9920,7 @@ function isMemoSame(cached, memo) {
|
|
|
9907
9920
|
}
|
|
9908
9921
|
//#endregion
|
|
9909
9922
|
//#region packages/runtime-core/src/index.ts
|
|
9910
|
-
const version = "3.6.0-rc.
|
|
9923
|
+
const version = "3.6.0-rc.5";
|
|
9911
9924
|
const warn = warn$1;
|
|
9912
9925
|
/**
|
|
9913
9926
|
* Runtime error messages. Only exposed in dev or esm builds.
|