vue 3.6.0-beta.6 → 3.6.0-beta.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/README.md +1 -1
- package/dist/vue.cjs.js +1 -1
- package/dist/vue.cjs.prod.js +1 -1
- package/dist/vue.esm-browser.js +12 -6
- package/dist/vue.esm-browser.prod.js +3 -3
- package/dist/vue.esm-bundler.js +1 -1
- package/dist/vue.global.js +12 -6
- package/dist/vue.global.prod.js +3 -3
- package/dist/vue.runtime-with-vapor.esm-browser.js +125 -47
- package/dist/vue.runtime-with-vapor.esm-browser.prod.js +6 -6
- package/dist/vue.runtime.esm-browser.js +12 -6
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +1 -1
- package/dist/vue.runtime.global.js +12 -6
- package/dist/vue.runtime.global.prod.js +3 -3
- package/jsx-runtime/index.d.ts +2 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
- **`vue(.runtime).global(.prod).js`**:
|
|
8
8
|
- For direct use via `<script src="...">` in the browser. Exposes the `Vue` global.
|
|
9
|
-
- Note that global builds are not [UMD](https://github.com/umdjs/umd) builds. They are built as [IIFEs](https://developer.mozilla.org/en-US/docs/Glossary/IIFE) and
|
|
9
|
+
- Note that global builds are not [UMD](https://github.com/umdjs/umd) builds. They are built as [IIFEs](https://developer.mozilla.org/en-US/docs/Glossary/IIFE) and are only meant for direct use via `<script src="...">`.
|
|
10
10
|
- In-browser template compilation:
|
|
11
11
|
- **`vue.global.js`** is the "full" build that includes both the compiler and the runtime so it supports compiling templates on the fly.
|
|
12
12
|
- **`vue.runtime.global.js`** contains only the runtime and requires templates to be pre-compiled during a build step.
|
package/dist/vue.cjs.js
CHANGED
package/dist/vue.cjs.prod.js
CHANGED
package/dist/vue.esm-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue v3.6.0-beta.
|
|
2
|
+
* vue v3.6.0-beta.7
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -3493,6 +3493,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
|
3493
3493
|
const key = String(vnode.key);
|
|
3494
3494
|
const leavingVNodesCache = getLeavingNodesForType(state, vnode);
|
|
3495
3495
|
return baseResolveTransitionHooks({
|
|
3496
|
+
isLeaving: () => leavingVNodesCache[key] === vnode,
|
|
3496
3497
|
setLeavingNodeCache: () => {
|
|
3497
3498
|
leavingVNodesCache[key] = vnode;
|
|
3498
3499
|
},
|
|
@@ -3511,7 +3512,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
|
3511
3512
|
}, props, state, instance);
|
|
3512
3513
|
}
|
|
3513
3514
|
function baseResolveTransitionHooks(context, props, state, instance) {
|
|
3514
|
-
const { setLeavingNodeCache, unsetLeavingNodeCache, earlyRemove, cloneHooks } = context;
|
|
3515
|
+
const { isLeaving, setLeavingNodeCache, unsetLeavingNodeCache, earlyRemove, cloneHooks } = context;
|
|
3515
3516
|
const { appear, mode, persisted = false, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled, onBeforeAppear, onAppear, onAfterAppear, onAppearCancelled } = props;
|
|
3516
3517
|
const callHook = (hook, args) => {
|
|
3517
3518
|
hook && callWithAsyncErrorHandling(hook, instance, 9, args);
|
|
@@ -3535,6 +3536,7 @@ function baseResolveTransitionHooks(context, props, state, instance) {
|
|
|
3535
3536
|
callHook(hook, [el]);
|
|
3536
3537
|
},
|
|
3537
3538
|
enter(el) {
|
|
3539
|
+
if (isLeaving()) return;
|
|
3538
3540
|
let hook = onEnter;
|
|
3539
3541
|
let afterHook = onAfterEnter;
|
|
3540
3542
|
let cancelHook = onEnterCancelled;
|
|
@@ -4636,7 +4638,6 @@ function deactivate(vnode, container, { m: move }, parentComponent, parentSuspen
|
|
|
4636
4638
|
instance.isDeactivated = true;
|
|
4637
4639
|
}, void 0, parentSuspense);
|
|
4638
4640
|
devtoolsComponentAdded(instance);
|
|
4639
|
-
instance.__keepAliveStorageContainer = container;
|
|
4640
4641
|
}
|
|
4641
4642
|
|
|
4642
4643
|
//#endregion
|
|
@@ -5180,11 +5181,16 @@ function withAsyncContext(getAwaitable) {
|
|
|
5180
5181
|
if (!ctx) warn$1("withAsyncContext called without active current instance. This is likely a bug.");
|
|
5181
5182
|
let awaitable = getAwaitable();
|
|
5182
5183
|
setCurrentInstance(null, void 0);
|
|
5184
|
+
const cleanup = () => setCurrentInstance(null, void 0);
|
|
5183
5185
|
if (isPromise(awaitable)) awaitable = awaitable.catch((e) => {
|
|
5184
5186
|
setCurrentInstance(ctx);
|
|
5187
|
+
Promise.resolve().then(() => Promise.resolve().then(cleanup));
|
|
5185
5188
|
throw e;
|
|
5186
5189
|
});
|
|
5187
|
-
return [awaitable, () =>
|
|
5190
|
+
return [awaitable, () => {
|
|
5191
|
+
setCurrentInstance(ctx);
|
|
5192
|
+
Promise.resolve().then(cleanup);
|
|
5193
|
+
}];
|
|
5188
5194
|
}
|
|
5189
5195
|
|
|
5190
5196
|
//#endregion
|
|
@@ -6399,7 +6405,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6399
6405
|
processFragment(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
|
|
6400
6406
|
break;
|
|
6401
6407
|
case VaporSlot:
|
|
6402
|
-
getVaporInterface(parentComponent, n2).slot(n1, n2, container, anchor, parentComponent);
|
|
6408
|
+
getVaporInterface(parentComponent, n2).slot(n1, n2, container, anchor, parentComponent, parentSuspense);
|
|
6403
6409
|
break;
|
|
6404
6410
|
default: if (shapeFlag & 1) processElement(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
|
|
6405
6411
|
else if (shapeFlag & 6) processComponent(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized);
|
|
@@ -8405,7 +8411,7 @@ function isMemoSame(cached, memo) {
|
|
|
8405
8411
|
|
|
8406
8412
|
//#endregion
|
|
8407
8413
|
//#region packages/runtime-core/src/index.ts
|
|
8408
|
-
const version = "3.6.0-beta.
|
|
8414
|
+
const version = "3.6.0-beta.7";
|
|
8409
8415
|
const warn = warn$1;
|
|
8410
8416
|
/**
|
|
8411
8417
|
* Runtime error messages. Only exposed in dev or esm builds.
|