@vue/compat 3.3.7 → 3.3.8
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.cjs.js +74 -75
- package/dist/vue.cjs.prod.js +64 -65
- package/dist/vue.esm-browser.js +72 -73
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +72 -73
- package/dist/vue.global.js +72 -73
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +72 -73
- package/dist/vue.runtime.esm-browser.prod.js +5 -5
- package/dist/vue.runtime.esm-bundler.js +72 -73
- package/dist/vue.runtime.global.js +72 -73
- package/dist/vue.runtime.global.prod.js +5 -5
- package/package.json +2 -2
|
@@ -2917,6 +2917,65 @@ function updateHOCHostEl({ vnode, parent }, el) {
|
|
|
2917
2917
|
}
|
|
2918
2918
|
}
|
|
2919
2919
|
|
|
2920
|
+
const COMPONENTS = "components";
|
|
2921
|
+
const DIRECTIVES = "directives";
|
|
2922
|
+
const FILTERS = "filters";
|
|
2923
|
+
function resolveComponent(name, maybeSelfReference) {
|
|
2924
|
+
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
2925
|
+
}
|
|
2926
|
+
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
2927
|
+
function resolveDynamicComponent(component) {
|
|
2928
|
+
if (isString(component)) {
|
|
2929
|
+
return resolveAsset(COMPONENTS, component, false) || component;
|
|
2930
|
+
} else {
|
|
2931
|
+
return component || NULL_DYNAMIC_COMPONENT;
|
|
2932
|
+
}
|
|
2933
|
+
}
|
|
2934
|
+
function resolveDirective(name) {
|
|
2935
|
+
return resolveAsset(DIRECTIVES, name);
|
|
2936
|
+
}
|
|
2937
|
+
function resolveFilter$1(name) {
|
|
2938
|
+
return resolveAsset(FILTERS, name);
|
|
2939
|
+
}
|
|
2940
|
+
function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
|
|
2941
|
+
const instance = currentRenderingInstance || currentInstance;
|
|
2942
|
+
if (instance) {
|
|
2943
|
+
const Component = instance.type;
|
|
2944
|
+
if (type === COMPONENTS) {
|
|
2945
|
+
const selfName = getComponentName(
|
|
2946
|
+
Component,
|
|
2947
|
+
false
|
|
2948
|
+
/* do not include inferred name to avoid breaking existing code */
|
|
2949
|
+
);
|
|
2950
|
+
if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) {
|
|
2951
|
+
return Component;
|
|
2952
|
+
}
|
|
2953
|
+
}
|
|
2954
|
+
const res = (
|
|
2955
|
+
// local registration
|
|
2956
|
+
// check instance[type] first which is resolved for options API
|
|
2957
|
+
resolve(instance[type] || Component[type], name) || // global registration
|
|
2958
|
+
resolve(instance.appContext[type], name)
|
|
2959
|
+
);
|
|
2960
|
+
if (!res && maybeSelfReference) {
|
|
2961
|
+
return Component;
|
|
2962
|
+
}
|
|
2963
|
+
if (warnMissing && !res) {
|
|
2964
|
+
const extra = type === COMPONENTS ? `
|
|
2965
|
+
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``;
|
|
2966
|
+
warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
2967
|
+
}
|
|
2968
|
+
return res;
|
|
2969
|
+
} else {
|
|
2970
|
+
warn(
|
|
2971
|
+
`resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`
|
|
2972
|
+
);
|
|
2973
|
+
}
|
|
2974
|
+
}
|
|
2975
|
+
function resolve(registry, name) {
|
|
2976
|
+
return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);
|
|
2977
|
+
}
|
|
2978
|
+
|
|
2920
2979
|
const isSuspense = (type) => type.__isSuspense;
|
|
2921
2980
|
const SuspenseImpl = {
|
|
2922
2981
|
name: "Suspense",
|
|
@@ -3451,7 +3510,7 @@ function normalizeSuspenseSlot(s) {
|
|
|
3451
3510
|
}
|
|
3452
3511
|
if (isArray(s)) {
|
|
3453
3512
|
const singleChild = filterSingleRoot(s);
|
|
3454
|
-
if (!singleChild) {
|
|
3513
|
+
if (!singleChild && s.filter((child) => child !== NULL_DYNAMIC_COMPONENT).length > 0) {
|
|
3455
3514
|
warn(`<Suspense> slots expect a single root node.`);
|
|
3456
3515
|
}
|
|
3457
3516
|
s = singleChild;
|
|
@@ -4628,65 +4687,6 @@ function getCompatListeners(instance) {
|
|
|
4628
4687
|
return listeners;
|
|
4629
4688
|
}
|
|
4630
4689
|
|
|
4631
|
-
const COMPONENTS = "components";
|
|
4632
|
-
const DIRECTIVES = "directives";
|
|
4633
|
-
const FILTERS = "filters";
|
|
4634
|
-
function resolveComponent(name, maybeSelfReference) {
|
|
4635
|
-
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
4636
|
-
}
|
|
4637
|
-
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
4638
|
-
function resolveDynamicComponent(component) {
|
|
4639
|
-
if (isString(component)) {
|
|
4640
|
-
return resolveAsset(COMPONENTS, component, false) || component;
|
|
4641
|
-
} else {
|
|
4642
|
-
return component || NULL_DYNAMIC_COMPONENT;
|
|
4643
|
-
}
|
|
4644
|
-
}
|
|
4645
|
-
function resolveDirective(name) {
|
|
4646
|
-
return resolveAsset(DIRECTIVES, name);
|
|
4647
|
-
}
|
|
4648
|
-
function resolveFilter$1(name) {
|
|
4649
|
-
return resolveAsset(FILTERS, name);
|
|
4650
|
-
}
|
|
4651
|
-
function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
|
|
4652
|
-
const instance = currentRenderingInstance || currentInstance;
|
|
4653
|
-
if (instance) {
|
|
4654
|
-
const Component = instance.type;
|
|
4655
|
-
if (type === COMPONENTS) {
|
|
4656
|
-
const selfName = getComponentName(
|
|
4657
|
-
Component,
|
|
4658
|
-
false
|
|
4659
|
-
/* do not include inferred name to avoid breaking existing code */
|
|
4660
|
-
);
|
|
4661
|
-
if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) {
|
|
4662
|
-
return Component;
|
|
4663
|
-
}
|
|
4664
|
-
}
|
|
4665
|
-
const res = (
|
|
4666
|
-
// local registration
|
|
4667
|
-
// check instance[type] first which is resolved for options API
|
|
4668
|
-
resolve(instance[type] || Component[type], name) || // global registration
|
|
4669
|
-
resolve(instance.appContext[type], name)
|
|
4670
|
-
);
|
|
4671
|
-
if (!res && maybeSelfReference) {
|
|
4672
|
-
return Component;
|
|
4673
|
-
}
|
|
4674
|
-
if (warnMissing && !res) {
|
|
4675
|
-
const extra = type === COMPONENTS ? `
|
|
4676
|
-
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``;
|
|
4677
|
-
warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
4678
|
-
}
|
|
4679
|
-
return res;
|
|
4680
|
-
} else {
|
|
4681
|
-
warn(
|
|
4682
|
-
`resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`
|
|
4683
|
-
);
|
|
4684
|
-
}
|
|
4685
|
-
}
|
|
4686
|
-
function resolve(registry, name) {
|
|
4687
|
-
return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);
|
|
4688
|
-
}
|
|
4689
|
-
|
|
4690
4690
|
function convertLegacyRenderFn(instance) {
|
|
4691
4691
|
const Component2 = instance.type;
|
|
4692
4692
|
const render = Component2.render;
|
|
@@ -6189,7 +6189,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6189
6189
|
return vm;
|
|
6190
6190
|
}
|
|
6191
6191
|
}
|
|
6192
|
-
Vue.version = `2.6.14-compat:${"3.3.
|
|
6192
|
+
Vue.version = `2.6.14-compat:${"3.3.8"}`;
|
|
6193
6193
|
Vue.config = singletonApp.config;
|
|
6194
6194
|
Vue.use = (p, ...options) => {
|
|
6195
6195
|
if (p && isFunction(p.install)) {
|
|
@@ -7518,15 +7518,15 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7518
7518
|
}
|
|
7519
7519
|
break;
|
|
7520
7520
|
case Comment:
|
|
7521
|
-
if (
|
|
7522
|
-
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
|
|
7529
|
-
|
|
7521
|
+
if (isTemplateNode(node)) {
|
|
7522
|
+
nextNode = nextSibling(node);
|
|
7523
|
+
replaceNode(
|
|
7524
|
+
vnode.el = node.content.firstChild,
|
|
7525
|
+
node,
|
|
7526
|
+
parentComponent
|
|
7527
|
+
);
|
|
7528
|
+
} else if (domType !== 8 /* COMMENT */ || isFragmentStart) {
|
|
7529
|
+
nextNode = onMismatch();
|
|
7530
7530
|
} else {
|
|
7531
7531
|
nextNode = nextSibling(node);
|
|
7532
7532
|
}
|
|
@@ -7870,8 +7870,7 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
7870
7870
|
let parent = parentComponent;
|
|
7871
7871
|
while (parent) {
|
|
7872
7872
|
if (parent.vnode.el === oldNode) {
|
|
7873
|
-
parent.vnode.el = newNode;
|
|
7874
|
-
parent.subTree.el = newNode;
|
|
7873
|
+
parent.vnode.el = parent.subTree.el = newNode;
|
|
7875
7874
|
}
|
|
7876
7875
|
parent = parent.parent;
|
|
7877
7876
|
}
|
|
@@ -10764,7 +10763,7 @@ function isMemoSame(cached, memo) {
|
|
|
10764
10763
|
return true;
|
|
10765
10764
|
}
|
|
10766
10765
|
|
|
10767
|
-
const version = "3.3.
|
|
10766
|
+
const version = "3.3.8";
|
|
10768
10767
|
const ssrUtils = null;
|
|
10769
10768
|
const resolveFilter = resolveFilter$1 ;
|
|
10770
10769
|
const _compatUtils = {
|