@vue/compat 3.6.0-beta.1 → 3.6.0-beta.3
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 +23 -16
- package/dist/vue.cjs.prod.js +23 -15
- package/dist/vue.esm-browser.js +23 -15
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +23 -15
- package/dist/vue.global.js +22 -14
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +23 -15
- package/dist/vue.runtime.esm-browser.prod.js +5 -5
- package/dist/vue.runtime.esm-bundler.js +23 -15
- package/dist/vue.runtime.global.js +22 -14
- package/dist/vue.runtime.global.prod.js +5 -5
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.6.0-beta.
|
|
2
|
+
* @vue/compat v3.6.0-beta.3
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -2451,7 +2451,6 @@ function warn$1(msg, ...args) {
|
|
|
2451
2451
|
instance,
|
|
2452
2452
|
11,
|
|
2453
2453
|
[
|
|
2454
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
2455
2454
|
msg + args.map((a) => {
|
|
2456
2455
|
var _a, _b;
|
|
2457
2456
|
return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
|
|
@@ -3076,7 +3075,6 @@ function setDevtoolsHook$1(hook, target) {
|
|
|
3076
3075
|
// (#4815)
|
|
3077
3076
|
typeof window !== "undefined" && // some envs mock window but not fully
|
|
3078
3077
|
window.HTMLElement && // also exclude jsdom
|
|
3079
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
3080
3078
|
!((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom"))
|
|
3081
3079
|
) {
|
|
3082
3080
|
const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];
|
|
@@ -5543,9 +5541,17 @@ function isMismatchAllowed(el, allowedType) {
|
|
|
5543
5541
|
}
|
|
5544
5542
|
}
|
|
5545
5543
|
|
|
5546
|
-
|
|
5547
|
-
|
|
5544
|
+
let requestIdleCallback;
|
|
5545
|
+
let cancelIdleCallback;
|
|
5546
|
+
function ensureIdleCallbacks() {
|
|
5547
|
+
if (!requestIdleCallback) {
|
|
5548
|
+
const g = getGlobalThis();
|
|
5549
|
+
requestIdleCallback = g.requestIdleCallback || ((cb) => setTimeout(cb, 1));
|
|
5550
|
+
cancelIdleCallback = g.cancelIdleCallback || ((id) => clearTimeout(id));
|
|
5551
|
+
}
|
|
5552
|
+
}
|
|
5548
5553
|
const hydrateOnIdle = (timeout = 1e4) => (hydrate) => {
|
|
5554
|
+
ensureIdleCallbacks();
|
|
5549
5555
|
const id = requestIdleCallback(hydrate, { timeout });
|
|
5550
5556
|
return () => cancelIdleCallback(id);
|
|
5551
5557
|
};
|
|
@@ -6624,9 +6630,10 @@ function createSlots(slots, dynamicSlots) {
|
|
|
6624
6630
|
|
|
6625
6631
|
function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
6626
6632
|
let slot = slots[name];
|
|
6627
|
-
|
|
6633
|
+
const vaporSlot = slot && (slot.__vs || (slot.__vapor ? slot : null));
|
|
6634
|
+
if (vaporSlot) {
|
|
6628
6635
|
const ret = (openBlock(), createBlock(VaporSlot, props));
|
|
6629
|
-
ret.vs = { slot, fallback };
|
|
6636
|
+
ret.vs = { slot: vaporSlot, fallback };
|
|
6630
6637
|
return ret;
|
|
6631
6638
|
}
|
|
6632
6639
|
if (currentRenderingInstance && (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce)) {
|
|
@@ -6689,14 +6696,14 @@ function ensureVaporSlotFallback(vnodes, fallback) {
|
|
|
6689
6696
|
}
|
|
6690
6697
|
}
|
|
6691
6698
|
|
|
6692
|
-
function toHandlers(obj, preserveCaseIfNecessary
|
|
6699
|
+
function toHandlers(obj, preserveCaseIfNecessary) {
|
|
6693
6700
|
const ret = {};
|
|
6694
6701
|
if (!isObject(obj)) {
|
|
6695
6702
|
warn$1(`v-on with no argument expects an object value.`);
|
|
6696
6703
|
return ret;
|
|
6697
6704
|
}
|
|
6698
6705
|
for (const key in obj) {
|
|
6699
|
-
ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] =
|
|
6706
|
+
ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key];
|
|
6700
6707
|
}
|
|
6701
6708
|
return ret;
|
|
6702
6709
|
}
|
|
@@ -7837,7 +7844,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7837
7844
|
return vm;
|
|
7838
7845
|
}
|
|
7839
7846
|
}
|
|
7840
|
-
Vue.version = `2.6.14-compat:${"3.6.0-beta.
|
|
7847
|
+
Vue.version = `2.6.14-compat:${"3.6.0-beta.3"}`;
|
|
7841
7848
|
Vue.config = singletonApp.config;
|
|
7842
7849
|
Vue.use = (plugin, ...options) => {
|
|
7843
7850
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -11967,7 +11974,7 @@ function hydrateSuspense(node, vnode, parentComponent, parentSuspense, namespace
|
|
|
11967
11974
|
parentSuspense,
|
|
11968
11975
|
parentComponent,
|
|
11969
11976
|
node.parentNode,
|
|
11970
|
-
//
|
|
11977
|
+
// oxlint-disable-next-line no-restricted-globals
|
|
11971
11978
|
document.createElement("div"),
|
|
11972
11979
|
null,
|
|
11973
11980
|
namespace,
|
|
@@ -12530,7 +12537,7 @@ const setCurrentInstance = (instance, scope = instance !== null ? instance.scope
|
|
|
12530
12537
|
simpleSetCurrentInstance(instance);
|
|
12531
12538
|
}
|
|
12532
12539
|
};
|
|
12533
|
-
const internalOptions = ["ce", "type"];
|
|
12540
|
+
const internalOptions = ["ce", "type", "uid"];
|
|
12534
12541
|
const useInstanceOption = (key, silent = false) => {
|
|
12535
12542
|
const instance = getCurrentGenericInstance();
|
|
12536
12543
|
if (!instance) {
|
|
@@ -12550,7 +12557,7 @@ const useInstanceOption = (key, silent = false) => {
|
|
|
12550
12557
|
return { hasInstance: true, value: instance[key] };
|
|
12551
12558
|
};
|
|
12552
12559
|
|
|
12553
|
-
const emptyAppContext = createAppContext();
|
|
12560
|
+
const emptyAppContext = /* @__PURE__ */ createAppContext();
|
|
12554
12561
|
let uid = 0;
|
|
12555
12562
|
function createComponentInstance(vnode, parent, suspense) {
|
|
12556
12563
|
const type = vnode.type;
|
|
@@ -13194,7 +13201,7 @@ function isMemoSame(cached, memo) {
|
|
|
13194
13201
|
return true;
|
|
13195
13202
|
}
|
|
13196
13203
|
|
|
13197
|
-
const version = "3.6.0-beta.
|
|
13204
|
+
const version = "3.6.0-beta.3";
|
|
13198
13205
|
const warn = warn$1 ;
|
|
13199
13206
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
13200
13207
|
const devtools = devtools$1 ;
|
|
@@ -15363,6 +15370,7 @@ var runtimeDom = /*#__PURE__*/Object.freeze({
|
|
|
15363
15370
|
Fragment: Fragment,
|
|
15364
15371
|
KeepAlive: KeepAlive,
|
|
15365
15372
|
MoveType: MoveType,
|
|
15373
|
+
NULL_DYNAMIC_COMPONENT: NULL_DYNAMIC_COMPONENT,
|
|
15366
15374
|
ReactiveEffect: ReactiveEffect,
|
|
15367
15375
|
Static: Static,
|
|
15368
15376
|
Suspense: Suspense,
|
|
@@ -21590,4 +21598,4 @@ Vue.compile = compileToFunction;
|
|
|
21590
21598
|
|
|
21591
21599
|
const configureCompat = Vue.configureCompat;
|
|
21592
21600
|
|
|
21593
|
-
export { BaseTransition, BaseTransitionPropsValidators, Comment, DeprecationTypes, EffectScope, ErrorCodes, ErrorTypeStrings, Fragment, KeepAlive, MoveType, ReactiveEffect, Static, Suspense, Teleport, Text, TrackOpTypes, Transition, TransitionGroup, TriggerOpTypes, VueElement, VueElementBase, assertNumber, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, computed, configureCompat, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, Vue as default, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSSRCustomElement, defineSlots, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getCurrentWatcher, getTransitionRawChildren, guardReactiveProps, h, handleError, hasInjectionContext, hydrate, hydrateOnIdle, hydrateOnInteraction, hydrateOnMediaQuery, hydrateOnVisible, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isShallow, isVNode, markRaw, mergeDefaults, mergeModels, mergeProps, nextTick, nodeOps, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, onWatcherCleanup, openBlock, patchProp, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toValue, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useHost, useId, useInstanceOption, useModel, useSSRContext, useShadowRoot, useSlots, useTemplateRef, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId };
|
|
21601
|
+
export { BaseTransition, BaseTransitionPropsValidators, Comment, DeprecationTypes, EffectScope, ErrorCodes, ErrorTypeStrings, Fragment, KeepAlive, MoveType, NULL_DYNAMIC_COMPONENT, ReactiveEffect, Static, Suspense, Teleport, Text, TrackOpTypes, Transition, TransitionGroup, TriggerOpTypes, VueElement, VueElementBase, assertNumber, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, computed, configureCompat, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, Vue as default, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSSRCustomElement, defineSlots, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getCurrentWatcher, getTransitionRawChildren, guardReactiveProps, h, handleError, hasInjectionContext, hydrate, hydrateOnIdle, hydrateOnInteraction, hydrateOnMediaQuery, hydrateOnVisible, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isShallow, isVNode, markRaw, mergeDefaults, mergeModels, mergeProps, nextTick, nodeOps, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, onWatcherCleanup, openBlock, patchProp, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toValue, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useHost, useId, useInstanceOption, useModel, useSSRContext, useShadowRoot, useSlots, useTemplateRef, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId };
|