Socket
Socket
Sign inDemoInstall

@vue/runtime-core

Package Overview
Dependencies
Maintainers
1
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/runtime-core - npm Package Compare versions

Comparing version 3.0.0-alpha.9 to 3.0.0-alpha.10

242

dist/runtime-core.d.ts

@@ -46,6 +46,7 @@ import { camelize } from '@vue/shared';

export declare interface AppConfig {
readonly isNativeTag?: (tag: string) => boolean;
devtools: boolean;
performance: boolean;
readonly isNativeTag?: (tag: string) => boolean;
isCustomElement?: (tag: string) => boolean;
optionMergeStrategies: Record<string, OptionMergeFunction>;
isCustomElement: (tag: string) => boolean;
errorHandler?: (err: unknown, instance: ComponentPublicInstance | null, info: string) => void;

@@ -64,21 +65,36 @@ warnHandler?: (msg: string, instance: ComponentPublicInstance | null, trace: string) => void;

export declare type AsyncComponentLoader<T = any> = () => Promise<AsyncComponentResolveResult<T>>;
export declare interface AsyncComponentOptions<T = any> {
loader: AsyncComponentLoader<T>;
loading?: PublicAPIComponent;
error?: PublicAPIComponent;
delay?: number;
timeout?: number;
suspensible?: boolean;
}
declare type AsyncComponentResolveResult<T = PublicAPIComponent> = T | {
default: T;
};
export declare const BaseTransition: new () => {
$props: BaseTransitionProps;
$props: BaseTransitionProps<any>;
};
export declare interface BaseTransitionProps {
export declare interface BaseTransitionProps<HostElement = RendererElement> {
mode?: 'in-out' | 'out-in' | 'default';
appear?: boolean;
persisted?: boolean;
onBeforeEnter?: (el: any) => void;
onEnter?: (el: any, done: () => void) => void;
onAfterEnter?: (el: any) => void;
onEnterCancelled?: (el: any) => void;
onBeforeLeave?: (el: any) => void;
onLeave?: (el: any, done: () => void) => void;
onAfterLeave?: (el: any) => void;
onLeaveCancelled?: (el: any) => void;
onBeforeEnter?: (el: HostElement) => void;
onEnter?: (el: HostElement, done: () => void) => void;
onAfterEnter?: (el: HostElement) => void;
onEnterCancelled?: (el: HostElement) => void;
onBeforeLeave?: (el: HostElement) => void;
onLeave?: (el: HostElement, done: () => void) => void;
onAfterLeave?: (el: HostElement) => void;
onLeaveCancelled?: (el: HostElement) => void;
}
declare interface BaseWatchOptions {
export declare interface BaseWatchOptions {
flush?: 'pre' | 'post' | 'sync';

@@ -108,3 +124,3 @@ onTrack?: ReactiveEffectOptions['onTrack'];

export declare type Component = ComponentOptions | FunctionalComponent;
export declare type Component = ComponentOptions | FunctionalComponent<any>;

@@ -136,3 +152,2 @@ declare type ComponentInjectOptions = string[] | Record<string | symbol, string | symbol | {

attrs: Data;
vnodeHooks: Data;
slots: Slots;

@@ -173,3 +188,3 @@ proxy: ComponentPublicInstance | null;

export declare type ComponentOptions = ComponentOptionsWithoutProps | ComponentOptionsWithProps | ComponentOptionsWithArrayProps;
export declare type ComponentOptions = ComponentOptionsWithoutProps<any, any, any, any, any> | ComponentOptionsWithProps<any, any, any, any, any> | ComponentOptionsWithArrayProps<any, any, any, any, any>;

@@ -185,2 +200,4 @@ declare interface ComponentOptionsBase<Props, RawBindings, D, C extends ComputedOptions, M extends MethodOptions> extends LegacyOptions<Props, RawBindings, D, C, M>, SFCInternalOptions {

inheritAttrs?: boolean;
__asyncLoader?: () => Promise<Component>;
__merged?: ComponentOptions;
call?: never;

@@ -198,3 +215,3 @@ __isFragment?: never;

export declare type ComponentOptionsWithoutProps<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}> = ComponentOptionsBase<Readonly<Props>, RawBindings, D, C, M> & {
export declare type ComponentOptionsWithoutProps<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}> = ComponentOptionsBase<Props, RawBindings, D, C, M> & {
props?: undefined;

@@ -251,2 +268,6 @@ } & ThisType<ComponentPublicInstance<{}, RawBindings, D, C, M, Readonly<Props>>>;

export declare function createAsyncComponent<T extends PublicAPIComponent = {
new (): ComponentPublicInstance;
}>(source: AsyncComponentLoader<T> | AsyncComponentOptions<T>): T;
export declare function createBlock(type: VNodeTypes | ClassComponent, props?: {

@@ -279,3 +300,3 @@ [key: string]: any;

*/
export declare function createRenderer<HostNode extends object = any, HostElement extends HostNode = any>(options: RendererOptions<HostNode, HostElement>): Renderer<HostNode, HostElement>;
export declare function createRenderer<HostNode = RendererNode, HostElement = RendererElement>(options: RendererOptions<HostNode, HostElement>): Renderer<HostElement>;

@@ -288,4 +309,6 @@ export declare function createSlots(slots: Record<string, Slot>, dynamicSlots: (CompiledSlotDescriptor | CompiledSlotDescriptor[] | undefined)[]): Record<string, Slot>;

export declare function createVNode(type: VNodeTypes | ClassComponent, props?: (Data & VNodeProps) | null, children?: unknown, patchFlag?: number, dynamicProps?: string[] | null): VNode;
export declare const createVNode: typeof _createVNode;
declare function _createVNode(type: VNodeTypes | ClassComponent, props?: (Data & VNodeProps) | null, children?: unknown, patchFlag?: number, dynamicProps?: string[] | null): VNode;
declare type Data = {

@@ -329,3 +352,3 @@ [key: string]: unknown;

export declare type DirectiveHook<T = any> = (el: T, binding: DirectiveBinding, vnode: VNode<any, T>, prevVNode: VNode<any, T> | null) => void;
export declare type DirectiveHook<T = any, Prev = VNode<any, T> | null> = (el: T, binding: DirectiveBinding, vnode: VNode<any, T>, prevVNode: Prev) => void;

@@ -346,8 +369,10 @@ declare type DirectiveModifiers = Record<string, boolean>;

COMPONENT_EVENT_HANDLER = 6,
DIRECTIVE_HOOK = 7,
TRANSITION_HOOK = 8,
APP_ERROR_HANDLER = 9,
APP_WARN_HANDLER = 10,
FUNCTION_REF = 11,
SCHEDULER = 12
VNODE_HOOK = 7,
DIRECTIVE_HOOK = 8,
TRANSITION_HOOK = 9,
APP_ERROR_HANDLER = 10,
APP_WARN_HANDLER = 11,
FUNCTION_REF = 12,
ASYNC_COMPONENT_LOADER = 13,
SCHEDULER = 14
}

@@ -427,3 +452,3 @@

export declare interface HydrationRenderer extends Renderer<Node, Element> {
export declare interface HydrationRenderer extends Renderer<Element> {
hydrate: RootHydrateFunction;

@@ -470,7 +495,5 @@ }

declare type LegacyComponent = ComponentOptions;
declare interface LegacyOptions<Props, RawBindings, D, C extends ComputedOptions, M extends MethodOptions> {
el?: any;
data?: (this: ComponentPublicInstance<Props>) => D;
[key: string]: any;
data?: (this: ComponentPublicInstance<Props>, vm: ComponentPublicInstance<Props>) => D;
computed?: C;

@@ -481,4 +504,4 @@ methods?: M;

inject?: ComponentInjectOptions;
mixins?: LegacyComponent[];
extends?: LegacyComponent;
mixins?: ComponentOptions[];
extends?: ComponentOptions;
beforeCreate?(): void;

@@ -535,7 +558,7 @@ created?(): void;

declare type MountChildrenFn<HostNode, HostElement> = (children: VNodeArrayChildren<HostNode, HostElement>, container: HostElement, anchor: HostNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary<HostNode, HostElement> | null, isSVG: boolean, optimized: boolean, start?: number) => void;
declare type MountChildrenFn = (children: VNodeArrayChildren, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean, start?: number) => void;
declare type MountComponentFn<HostNode, HostElement> = (initialVNode: VNode<HostNode, HostElement>, container: HostElement, anchor: HostNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary<HostNode, HostElement> | null, isSVG: boolean) => void;
declare type MountComponentFn = (initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean) => void;
declare type MoveFn<HostNode, HostElement> = (vnode: VNode<HostNode, HostElement>, container: HostElement, anchor: HostNode | null, type: MoveType, parentSuspense?: SuspenseBoundary<HostNode, HostElement> | null) => void;
declare type MoveFn = (vnode: VNode, container: RendererElement, anchor: RendererNode | null, type: MoveType, parentSuspense?: SuspenseBoundary | null) => void;

@@ -548,3 +571,3 @@ declare const enum MoveType {

declare type NextFn<HostNode, HostElement> = (vnode: VNode<HostNode, HostElement>) => HostNode | null;
declare type NextFn = (vnode: VNode) => RendererNode | null;

@@ -558,11 +581,11 @@ export declare function nextTick(fn?: () => void): Promise<void>;

declare function normalizeVNode<T, U>(child: VNodeChild<T, U>): VNode<T, U>;
declare function normalizeVNode(child: VNodeChild): VNode;
export declare interface ObjectDirective<T = any> {
beforeMount?: DirectiveHook<T>;
mounted?: DirectiveHook<T>;
beforeUpdate?: DirectiveHook<T>;
updated?: DirectiveHook<T>;
beforeUnmount?: DirectiveHook<T>;
unmounted?: DirectiveHook<T>;
beforeMount?: DirectiveHook<T, null>;
mounted?: DirectiveHook<T, null>;
beforeUpdate?: DirectiveHook<T, VNode<any, T>>;
updated?: DirectiveHook<T, VNode<any, T>>;
beforeUnmount?: DirectiveHook<T, null>;
unmounted?: DirectiveHook<T, null>;
getSSRProps?: SSRDirectiveHook;

@@ -597,9 +620,11 @@ }

declare type PatchBlockChildrenFn<HostNode, HostElement> = (oldChildren: VNode<HostNode, HostElement>[], newChildren: VNode<HostNode, HostElement>[], fallbackContainer: HostElement, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary<HostNode, HostElement> | null, isSVG: boolean) => void;
export declare type OptionMergeFunction = (to: unknown, from: unknown, instance: any, key: string) => any;
declare type PatchChildrenFn<HostNode, HostElement> = (n1: VNode<HostNode, HostElement> | null, n2: VNode<HostNode, HostElement>, container: HostElement, anchor: HostNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary<HostNode, HostElement> | null, isSVG: boolean, optimized?: boolean) => void;
declare type PatchBlockChildrenFn = (oldChildren: VNode[], newChildren: VNode[], fallbackContainer: RendererElement, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean) => void;
declare type PatchFn<HostNode, HostElement> = (n1: VNode<HostNode, HostElement> | null, // null means this is a mount
n2: VNode<HostNode, HostElement>, container: HostElement, anchor?: HostNode | null, parentComponent?: ComponentInternalInstance | null, parentSuspense?: SuspenseBoundary<HostNode, HostElement> | null, isSVG?: boolean, optimized?: boolean) => void;
declare type PatchChildrenFn = (n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized?: boolean) => void;
declare type PatchFn = (n1: VNode | null, // null means this is a mount
n2: VNode, container: RendererElement, anchor?: RendererNode | null, parentComponent?: ComponentInternalInstance | null, parentSuspense?: SuspenseBoundary | null, isSVG?: boolean, optimized?: boolean) => void;
export declare type Plugin = PluginInstallFunction & {

@@ -624,3 +649,3 @@ install?: PluginInstallFunction;

__isPortal: boolean;
process(n1: VNode<any, any> | null, n2: VNode<any, any>, container: object, anchor: object | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary<any, any, VNode<any, any>> | null, isSVG: boolean, optimized: boolean, { mc: mountChildren, pc: patchChildren, pbc: patchBlockChildren, m: move, o: { insert, querySelector, setElementText, createComment } }: RendererInternals<any, any>): void;
process(n1: VNode<RendererNode, RendererElement> | null, n2: VNode<RendererNode, RendererElement>, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean, { mc: mountChildren, pc: patchChildren, pbc: patchBlockChildren, m: move, o: { insert, querySelector, setElementText, createComment } }: RendererInternals<RendererNode, RendererElement>): void;
};

@@ -683,21 +708,28 @@

export declare interface Renderer<HostNode = any, HostElement = any> {
render: RootRenderFunction<HostNode, HostElement>;
export declare interface Renderer<HostElement = any> {
render: RootRenderFunction<HostElement>;
createApp: CreateAppFunction<HostElement>;
}
declare interface RendererInternals<HostNode = any, HostElement = any> {
p: PatchFn<HostNode, HostElement>;
um: UnmountFn<HostNode, HostElement>;
m: MoveFn<HostNode, HostElement>;
mt: MountComponentFn<HostNode, HostElement>;
mc: MountChildrenFn<HostNode, HostElement>;
pc: PatchChildrenFn<HostNode, HostElement>;
pbc: PatchBlockChildrenFn<HostNode, HostElement>;
n: NextFn<HostNode, HostElement>;
declare interface RendererElement extends RendererNode {
}
declare interface RendererInternals<HostNode = RendererNode, HostElement = RendererElement> {
p: PatchFn;
um: UnmountFn;
m: MoveFn;
mt: MountComponentFn;
mc: MountChildrenFn;
pc: PatchChildrenFn;
pbc: PatchBlockChildrenFn;
n: NextFn;
o: RendererOptions<HostNode, HostElement>;
}
export declare interface RendererOptions<HostNode = any, HostElement = any> {
patchProp(el: HostElement, key: string, prevValue: any, nextValue: any, isSVG?: boolean, prevChildren?: VNode<HostNode, HostElement>[], parentComponent?: ComponentInternalInstance | null, parentSuspense?: SuspenseBoundary<HostNode, HostElement> | null, unmountChildren?: UnmountChildrenFn<HostNode, HostElement>): void;
declare interface RendererNode {
[key: string]: any;
}
export declare interface RendererOptions<HostNode = RendererNode, HostElement = RendererElement> {
patchProp(el: HostElement, key: string, prevValue: any, nextValue: any, isSVG?: boolean, prevChildren?: VNode<HostNode, HostElement>[], parentComponent?: ComponentInternalInstance | null, parentSuspense?: SuspenseBoundary | null, unmountChildren?: UnmountChildrenFn): void;
insert(el: HostNode, parent: HostElement, anchor?: HostNode | null): void;

@@ -719,3 +751,3 @@ remove(el: HostNode): void;

export declare type RenderFunction = {
(): VNodeChild;
(ctx: ComponentPublicInstance, cache: ComponentInternalInstance['renderCache']): VNodeChild;
_rc?: boolean;

@@ -742,9 +774,9 @@ };

export declare function resolveDynamicComponent(component: unknown): Component | undefined;
export declare function resolveDynamicComponent(component: unknown): Component | string | undefined;
export declare function resolveTransitionHooks(vnode: VNode, { appear, persisted, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled }: BaseTransitionProps, state: TransitionState, instance: ComponentInternalInstance): TransitionHooks;
export declare function resolveTransitionHooks(vnode: VNode, { appear, persisted, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled }: BaseTransitionProps<any>, state: TransitionState, instance: ComponentInternalInstance): TransitionHooks;
export declare type RootHydrateFunction = (vnode: VNode<Node, Element>, container: Element) => void;
export declare type RootRenderFunction<HostNode, HostElement> = (vnode: VNode<HostNode, HostElement> | null, container: HostElement) => void;
export declare type RootRenderFunction<HostElement = RendererElement> = (vnode: VNode | null, container: HostElement) => void;

@@ -765,3 +797,3 @@ export declare function setBlockTracking(value: number): void;

declare type SetupRenderEffectFn<HostNode, HostElement> = (instance: ComponentInternalInstance, initialVNode: VNode<HostNode, HostElement>, container: HostElement, anchor: HostNode | null, parentSuspense: SuspenseBoundary<HostNode, HostElement> | null, isSVG: boolean) => void;
declare type SetupRenderEffectFn = (instance: ComponentInternalInstance, initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean) => void;

@@ -806,13 +838,13 @@ declare interface SFCInternalOptions {

export declare interface SuspenseBoundary<HostNode = any, HostElement = any, HostVNode = VNode<HostNode, HostElement>> {
vnode: HostVNode;
parent: SuspenseBoundary<HostNode, HostElement> | null;
export declare interface SuspenseBoundary {
vnode: VNode;
parent: SuspenseBoundary | null;
parentComponent: ComponentInternalInstance | null;
isSVG: boolean;
optimized: boolean;
container: HostElement;
hiddenContainer: HostElement;
anchor: HostNode | null;
subTree: HostVNode;
fallbackTree: HostVNode;
container: RendererElement;
hiddenContainer: RendererElement;
anchor: RendererNode | null;
subTree: VNode;
fallbackTree: VNode;
deps: number;

@@ -825,6 +857,6 @@ isHydrating: boolean;

recede(): void;
move(container: HostElement, anchor: HostNode | null, type: MoveType): void;
next(): HostNode | null;
registerDep(instance: ComponentInternalInstance, setupRenderEffect: SetupRenderEffectFn<HostNode, HostElement>): void;
unmount(parentSuspense: SuspenseBoundary<HostNode, HostElement> | null, doRemove?: boolean): void;
move(container: RendererElement, anchor: RendererNode | null, type: MoveType): void;
next(): RendererNode | null;
registerDep(instance: ComponentInternalInstance, setupRenderEffect: SetupRenderEffectFn): void;
unmount(parentSuspense: SuspenseBoundary | null, doRemove?: boolean): void;
}

@@ -834,3 +866,3 @@

__isSuspense: boolean;
process(n1: VNode<any, any> | null, n2: VNode<any, any>, container: object, anchor: object | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary<any, any, VNode<any, any>> | null, isSVG: boolean, optimized: boolean, rendererInternals: RendererInternals<any, any>): void;
process(n1: VNode<RendererNode, RendererElement> | null, n2: VNode<RendererNode, RendererElement>, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean, rendererInternals: RendererInternals<RendererNode, RendererElement>): void;
hydrate: typeof hydrateSuspense;

@@ -852,9 +884,11 @@ };

export declare function transformVNodeArgs(transformer?: typeof vnodeArgsTransformer): void;
export declare interface TransitionHooks {
persisted: boolean;
beforeEnter(el: object): void;
enter(el: object): void;
leave(el: object, remove: () => void): void;
beforeEnter(el: RendererElement): void;
enter(el: RendererElement): void;
leave(el: RendererElement, remove: () => void): void;
afterLeave?(): void;
delayLeave?(el: object, earlyRemove: () => void, delayedLeave: () => void): void;
delayLeave?(el: RendererElement, earlyRemove: () => void, delayedLeave: () => void): void;
delayedLeave?(): void;

@@ -871,5 +905,5 @@ }

declare type UnmountChildrenFn<HostNode, HostElement> = (children: VNode<HostNode, HostElement>[], parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary<HostNode, HostElement> | null, doRemove?: boolean, start?: number) => void;
declare type UnmountChildrenFn = (children: VNode[], parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean, start?: number) => void;
declare type UnmountFn<HostNode, HostElement> = (vnode: VNode<HostNode, HostElement>, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary<HostNode, HostElement> | null, doRemove?: boolean) => void;
declare type UnmountFn = (vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean) => void;
export { unref }

@@ -886,3 +920,3 @@ export { UnwrapRef }

export declare interface VNode<HostNode = any, HostElement = any> {
export declare interface VNode<HostNode = RendererNode, HostElement = RendererElement> {
_isVNode: true;

@@ -894,5 +928,5 @@ type: VNodeTypes;

scopeId: string | null;
children: VNodeNormalizedChildren<HostNode, HostElement>;
children: VNodeNormalizedChildren;
component: ComponentInternalInstance | null;
suspense: SuspenseBoundary<HostNode, HostElement> | null;
suspense: SuspenseBoundary | null;
dirs: DirectiveBinding[] | null;

@@ -910,11 +944,15 @@ transition: TransitionHooks | null;

export declare interface VNodeArrayChildren<HostNode = any, HostElement = any> extends Array<VNodeArrayChildren<HostNode, HostElement> | VNodeChildAtom<HostNode, HostElement>> {
declare let vnodeArgsTransformer: ((args: Parameters<typeof _createVNode>, instance: ComponentInternalInstance | null) => Parameters<typeof _createVNode>) | undefined;
export declare interface VNodeArrayChildren<HostNode = RendererNode, HostElement = RendererElement> extends Array<VNodeArrayChildren | VNodeChildAtom> {
}
declare type VNodeChild<HostNode = any, HostElement = any> = VNodeChildAtom<HostNode, HostElement> | VNodeArrayChildren<HostNode, HostElement>;
declare type VNodeChild = VNodeChildAtom | VNodeArrayChildren;
declare type VNodeChildAtom<HostNode, HostElement> = VNode<HostNode, HostElement> | string | number | boolean | null | void;
declare type VNodeChildAtom = VNode | string | number | boolean | null | void;
export declare type VNodeNormalizedChildren<HostNode = any, HostElement = any> = string | VNodeArrayChildren<HostNode, HostElement> | RawSlots | null;
declare type VNodeMountHook = (vnode: VNode) => void;
export declare type VNodeNormalizedChildren = string | VNodeArrayChildren | RawSlots | null;
declare type VNodeNormalizedRef = [ComponentInternalInstance, VNodeRef];

@@ -926,8 +964,8 @@

ref?: VNodeRef;
onVnodeBeforeMount?: (vnode: VNode) => void;
onVnodeMounted?: (vnode: VNode) => void;
onVnodeBeforeUpdate?: (vnode: VNode, oldVNode: VNode) => void;
onVnodeUpdated?: (vnode: VNode, oldVNode: VNode) => void;
onVnodeBeforeUnmount?: (vnode: VNode) => void;
onVnodeUnmounted?: (vnode: VNode) => void;
onVnodeBeforeMount?: VNodeMountHook | VNodeMountHook[];
onVnodeMounted?: VNodeMountHook | VNodeMountHook[];
onVnodeBeforeUpdate?: VNodeUpdateHook | VNodeUpdateHook[];
onVnodeUpdated?: VNodeUpdateHook | VNodeUpdateHook[];
onVnodeBeforeUnmount?: VNodeMountHook | VNodeMountHook[];
onVnodeUnmounted?: VNodeMountHook | VNodeMountHook[];
}

@@ -939,2 +977,4 @@

declare type VNodeUpdateHook = (vnode: VNode, oldVNode: VNode) => void;
export declare function warn(msg: string, ...args: any[]): void;

@@ -948,3 +988,3 @@

declare type WatchEffect = (onInvalidate: InvalidateCbRegistrator) => void;
export declare type WatchEffect = (onInvalidate: InvalidateCbRegistrator) => void;

@@ -964,3 +1004,3 @@ export declare function watchEffect(effect: WatchEffect, options?: BaseWatchOptions): StopHandle;

export declare function withCtx(fn: Slot, ctx?: ComponentInternalInstance | null): Slot | (() => any);
export declare function withCtx(fn: Slot, ctx?: ComponentInternalInstance | null): Slot;

@@ -967,0 +1007,0 @@ export declare function withDirectives<T extends VNode>(vnode: T, directives: DirectiveArguments): T;

{
"name": "@vue/runtime-core",
"version": "3.0.0-alpha.9",
"version": "3.0.0-alpha.10",
"description": "@vue/runtime-core",

@@ -34,5 +34,5 @@ "main": "index.js",

"dependencies": {
"@vue/shared": "3.0.0-alpha.9",
"@vue/reactivity": "3.0.0-alpha.9"
"@vue/shared": "3.0.0-alpha.10",
"@vue/reactivity": "3.0.0-alpha.10"
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc