@vue/compat 3.6.0-alpha.6 → 3.6.0-alpha.7
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 +37 -15
- package/dist/vue.cjs.prod.js +29 -14
- package/dist/vue.esm-browser.js +37 -15
- package/dist/vue.esm-browser.prod.js +8 -8
- package/dist/vue.esm-bundler.js +37 -15
- package/dist/vue.global.js +37 -15
- package/dist/vue.global.prod.js +8 -8
- package/dist/vue.runtime.esm-browser.js +37 -15
- package/dist/vue.runtime.esm-browser.prod.js +8 -8
- package/dist/vue.runtime.esm-bundler.js +37 -15
- package/dist/vue.runtime.global.js +37 -15
- package/dist/vue.runtime.global.prod.js +8 -8
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.6.0-alpha.
|
|
2
|
+
* @vue/compat v3.6.0-alpha.7
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -2070,6 +2070,16 @@ class EffectScope {
|
|
|
2070
2070
|
return;
|
|
2071
2071
|
}
|
|
2072
2072
|
this.flags = 1024;
|
|
2073
|
+
this.reset();
|
|
2074
|
+
const sub = this.subs;
|
|
2075
|
+
if (sub !== void 0) {
|
|
2076
|
+
unlink(sub);
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
/**
|
|
2080
|
+
* @internal
|
|
2081
|
+
*/
|
|
2082
|
+
reset() {
|
|
2073
2083
|
let dep = this.deps;
|
|
2074
2084
|
while (dep !== void 0) {
|
|
2075
2085
|
const node = dep.dep;
|
|
@@ -2080,10 +2090,6 @@ class EffectScope {
|
|
|
2080
2090
|
dep = unlink(dep, this);
|
|
2081
2091
|
}
|
|
2082
2092
|
}
|
|
2083
|
-
const sub = this.subs;
|
|
2084
|
-
if (sub !== void 0) {
|
|
2085
|
-
unlink(sub);
|
|
2086
|
-
}
|
|
2087
2093
|
cleanup(this);
|
|
2088
2094
|
}
|
|
2089
2095
|
}
|
|
@@ -2895,6 +2901,7 @@ function checkRecursiveUpdates(seen, fn) {
|
|
|
2895
2901
|
|
|
2896
2902
|
let isHmrUpdating = false;
|
|
2897
2903
|
const hmrDirtyComponents = /* @__PURE__ */ new Map();
|
|
2904
|
+
const hmrDirtyComponentsMode = /* @__PURE__ */ new Map();
|
|
2898
2905
|
{
|
|
2899
2906
|
getGlobalThis().__VUE_HMR_RUNTIME__ = {
|
|
2900
2907
|
createRecord: tryWrap(createRecord),
|
|
@@ -2958,9 +2965,10 @@ function reload(id, newComp) {
|
|
|
2958
2965
|
const record = map.get(id);
|
|
2959
2966
|
if (!record) return;
|
|
2960
2967
|
newComp = normalizeClassComponent(newComp);
|
|
2968
|
+
const isVapor = record.initialDef.__vapor;
|
|
2961
2969
|
updateComponentDef(record.initialDef, newComp);
|
|
2962
2970
|
const instances = [...record.instances];
|
|
2963
|
-
if (newComp.__vapor && !instances.some((i) => i.ceReload)) {
|
|
2971
|
+
if (isVapor && newComp.__vapor && !instances.some((i) => i.ceReload)) {
|
|
2964
2972
|
for (const instance of instances) {
|
|
2965
2973
|
if (instance.root && instance.root.ce && instance !== instance.root) {
|
|
2966
2974
|
instance.root.ce._removeChildStyle(instance.type);
|
|
@@ -2980,6 +2988,7 @@ function reload(id, newComp) {
|
|
|
2980
2988
|
hmrDirtyComponents.set(oldComp, dirtyInstances = /* @__PURE__ */ new Set());
|
|
2981
2989
|
}
|
|
2982
2990
|
dirtyInstances.add(instance);
|
|
2991
|
+
hmrDirtyComponentsMode.set(oldComp, !!isVapor);
|
|
2983
2992
|
instance.appContext.propsCache.delete(instance.type);
|
|
2984
2993
|
instance.appContext.emitsCache.delete(instance.type);
|
|
2985
2994
|
instance.appContext.optionsCache.delete(instance.type);
|
|
@@ -3020,6 +3029,7 @@ function reload(id, newComp) {
|
|
|
3020
3029
|
}
|
|
3021
3030
|
queuePostFlushCb(() => {
|
|
3022
3031
|
hmrDirtyComponents.clear();
|
|
3032
|
+
hmrDirtyComponentsMode.clear();
|
|
3023
3033
|
});
|
|
3024
3034
|
}
|
|
3025
3035
|
function updateComponentDef(oldComp, newComp) {
|
|
@@ -4178,7 +4188,7 @@ const BaseTransitionPropsValidators = {
|
|
|
4178
4188
|
onAppearCancelled: TransitionHookValidator
|
|
4179
4189
|
};
|
|
4180
4190
|
const recursiveGetSubtree = (instance) => {
|
|
4181
|
-
const subTree = instance.type
|
|
4191
|
+
const subTree = isVaporComponent(instance.type) ? instance.block : instance.subTree;
|
|
4182
4192
|
return subTree.component ? recursiveGetSubtree(subTree.component) : subTree;
|
|
4183
4193
|
};
|
|
4184
4194
|
const BaseTransitionImpl = {
|
|
@@ -4488,7 +4498,7 @@ function getInnerChild$1(vnode) {
|
|
|
4488
4498
|
}
|
|
4489
4499
|
function setTransitionHooks(vnode, hooks) {
|
|
4490
4500
|
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
4491
|
-
if (vnode.type
|
|
4501
|
+
if (isVaporComponent(vnode.type)) {
|
|
4492
4502
|
getVaporInterface(vnode.component, vnode).setTransitionHooks(
|
|
4493
4503
|
vnode.component,
|
|
4494
4504
|
hooks
|
|
@@ -7688,7 +7698,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7688
7698
|
return vm;
|
|
7689
7699
|
}
|
|
7690
7700
|
}
|
|
7691
|
-
Vue.version = `2.6.14-compat:${"3.6.0-alpha.
|
|
7701
|
+
Vue.version = `2.6.14-compat:${"3.6.0-alpha.7"}`;
|
|
7692
7702
|
Vue.config = singletonApp.config;
|
|
7693
7703
|
Vue.use = (plugin, ...options) => {
|
|
7694
7704
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -9706,7 +9716,13 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9706
9716
|
);
|
|
9707
9717
|
break;
|
|
9708
9718
|
case VaporSlot:
|
|
9709
|
-
getVaporInterface(parentComponent, n2).slot(
|
|
9719
|
+
getVaporInterface(parentComponent, n2).slot(
|
|
9720
|
+
n1,
|
|
9721
|
+
n2,
|
|
9722
|
+
container,
|
|
9723
|
+
anchor,
|
|
9724
|
+
parentComponent
|
|
9725
|
+
);
|
|
9710
9726
|
break;
|
|
9711
9727
|
default:
|
|
9712
9728
|
if (shapeFlag & 1) {
|
|
@@ -10915,7 +10931,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
10915
10931
|
const move = (vnode, container, anchor, moveType, parentComponent, parentSuspense = null) => {
|
|
10916
10932
|
const { el, type, transition, children, shapeFlag } = vnode;
|
|
10917
10933
|
if (shapeFlag & 6) {
|
|
10918
|
-
if (type
|
|
10934
|
+
if (isVaporComponent(type)) {
|
|
10919
10935
|
getVaporInterface(parentComponent, vnode).move(vnode, container, anchor);
|
|
10920
10936
|
} else {
|
|
10921
10937
|
move(
|
|
@@ -11025,7 +11041,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
11025
11041
|
parentComponent.renderCache[cacheIndex] = void 0;
|
|
11026
11042
|
}
|
|
11027
11043
|
if (shapeFlag & 256) {
|
|
11028
|
-
if (vnode.type
|
|
11044
|
+
if (isVaporComponent(vnode.type)) {
|
|
11029
11045
|
getVaporInterface(parentComponent, vnode).deactivate(
|
|
11030
11046
|
vnode,
|
|
11031
11047
|
parentComponent.ctx.getStorageContainer()
|
|
@@ -11042,7 +11058,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
11042
11058
|
invokeVNodeHook(vnodeHook, parentComponent, vnode);
|
|
11043
11059
|
}
|
|
11044
11060
|
if (shapeFlag & 6) {
|
|
11045
|
-
if (type
|
|
11061
|
+
if (isVaporComponent(type)) {
|
|
11046
11062
|
getVaporInterface(parentComponent, vnode).unmount(vnode, doRemove);
|
|
11047
11063
|
return;
|
|
11048
11064
|
} else {
|
|
@@ -11184,7 +11200,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
11184
11200
|
};
|
|
11185
11201
|
const getNextHostNode = (vnode) => {
|
|
11186
11202
|
if (vnode.shapeFlag & 6) {
|
|
11187
|
-
if (vnode.type
|
|
11203
|
+
if (isVaporComponent(vnode.type)) {
|
|
11188
11204
|
return hostNextSibling(vnode.anchor);
|
|
11189
11205
|
}
|
|
11190
11206
|
return getNextHostNode(vnode.component.subTree);
|
|
@@ -11376,6 +11392,12 @@ app.use(vaporInteropPlugin)
|
|
|
11376
11392
|
}
|
|
11377
11393
|
return res;
|
|
11378
11394
|
}
|
|
11395
|
+
function isVaporComponent(type) {
|
|
11396
|
+
if (isHmrUpdating && hmrDirtyComponentsMode.has(type)) {
|
|
11397
|
+
return hmrDirtyComponentsMode.get(type);
|
|
11398
|
+
}
|
|
11399
|
+
return type.__vapor;
|
|
11400
|
+
}
|
|
11379
11401
|
function getInheritedScopeIds(vnode, parentComponent) {
|
|
11380
11402
|
const inheritedScopeIds = [];
|
|
11381
11403
|
let currentParent = parentComponent;
|
|
@@ -13123,7 +13145,7 @@ function isMemoSame(cached, memo) {
|
|
|
13123
13145
|
return true;
|
|
13124
13146
|
}
|
|
13125
13147
|
|
|
13126
|
-
const version = "3.6.0-alpha.
|
|
13148
|
+
const version = "3.6.0-alpha.7";
|
|
13127
13149
|
const warn = warn$1 ;
|
|
13128
13150
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
13129
13151
|
const devtools = devtools$1 ;
|