@vue/runtime-core
Advanced tools
Comparing version 3.0.0-alpha.8 to 3.0.0-alpha.9
@@ -32,4 +32,4 @@ import { camelize } from '@vue/shared'; | ||
mixin(mixin: ComponentOptions): this; | ||
component(name: string): Component | undefined; | ||
component(name: string, component: Component): this; | ||
component(name: string): PublicAPIComponent | undefined; | ||
component(name: string, component: PublicAPIComponent): this; | ||
directive(name: string): Directive | undefined; | ||
@@ -51,3 +51,3 @@ directive(name: string, directive: Directive): this; | ||
isCustomElement?: (tag: string) => boolean; | ||
errorHandler?: (err: Error, instance: ComponentPublicInstance | null, info: string) => void; | ||
errorHandler?: (err: unknown, instance: ComponentPublicInstance | null, info: string) => void; | ||
warnHandler?: (msg: string, instance: ComponentPublicInstance | null, trace: string) => void; | ||
@@ -59,3 +59,3 @@ } | ||
mixins: ComponentOptions[]; | ||
components: Record<string, Component>; | ||
components: Record<string, PublicAPIComponent>; | ||
directives: Record<string, Directive>; | ||
@@ -95,2 +95,7 @@ provides: Record<string | symbol, any>; | ||
declare interface ClassComponent { | ||
new (...args: any[]): ComponentPublicInstance<any, any, any, any, any>; | ||
__vccOpts: ComponentOptions; | ||
} | ||
export declare function cloneVNode<T, U>(vnode: VNode<T, U>, extraProps?: Data & VNodeProps): VNode<T, U>; | ||
@@ -113,3 +118,3 @@ | ||
export declare interface ComponentInternalInstance { | ||
type: FunctionalComponent | ComponentOptions; | ||
type: Component; | ||
parent: ComponentInternalInstance | null; | ||
@@ -142,3 +147,2 @@ appContext: AppContext; | ||
asyncDep: Promise<any> | null; | ||
asyncResult: unknown; | ||
asyncResolved: boolean; | ||
@@ -246,3 +250,3 @@ sink: { | ||
export declare function createBlock(type: VNodeTypes, props?: { | ||
export declare function createBlock(type: VNodeTypes | ClassComponent, props?: { | ||
[key: string]: any; | ||
@@ -282,3 +286,3 @@ } | null, children?: any, patchFlag?: number, dynamicProps?: string[]): VNode; | ||
export declare function createVNode(type: VNodeTypes, props?: (Data & VNodeProps) | null, children?: unknown, patchFlag?: number, dynamicProps?: string[] | null): VNode; | ||
export declare function createVNode(type: VNodeTypes | ClassComponent, props?: (Data & VNodeProps) | null, children?: unknown, patchFlag?: number, dynamicProps?: string[] | null): VNode; | ||
@@ -315,2 +319,3 @@ declare type Data = { | ||
export declare interface DirectiveBinding { | ||
instance: ComponentPublicInstance | null; | ||
value: any; | ||
@@ -329,5 +334,5 @@ oldValue: any; | ||
declare type ErrorCapturedHook = (err: Error, instance: ComponentPublicInstance | null, info: string) => boolean | void; | ||
declare type ErrorCapturedHook = (err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void; | ||
declare const enum ErrorCodes { | ||
export declare const enum ErrorCodes { | ||
SETUP_FUNCTION = 0, | ||
@@ -410,3 +415,3 @@ RENDER_FUNCTION = 1, | ||
export declare function handleError(err: Error, instance: ComponentInternalInstance | null, type: ErrorTypes): void; | ||
export declare function handleError(err: unknown, instance: ComponentInternalInstance | null, type: ErrorTypes): void; | ||
@@ -419,2 +424,4 @@ export declare interface HMRRuntime { | ||
declare function hydrateSuspense(node: Node, vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean, rendererInternals: RendererInternals, hydrateNode: (node: Node, vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, optimized: boolean) => Node | null): Node | null; | ||
export declare interface HydrationRenderer extends Renderer<Node, Element> { | ||
@@ -466,3 +473,3 @@ hydrate: RootHydrateFunction; | ||
el?: any; | ||
data?: D | ((this: ComponentPublicInstance<Props>) => D); | ||
data?: (this: ComponentPublicInstance<Props>) => D; | ||
computed?: C; | ||
@@ -528,4 +535,3 @@ methods?: M; | ||
declare type MountComponentFn<HostNode, HostElement> = (initialVNode: VNode<HostNode, HostElement>, container: HostElement | null, // only null during hydration | ||
anchor: HostNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary<HostNode, HostElement> | null, isSVG: boolean) => 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; | ||
@@ -544,2 +550,7 @@ declare type MoveFn<HostNode, HostElement> = (vnode: VNode<HostNode, HostElement>, container: HostElement, anchor: HostNode | null, type: MoveType, parentSuspense?: SuspenseBoundary<HostNode, HostElement> | null) => void; | ||
declare function normalizeSuspenseChildren(vnode: VNode): { | ||
content: VNode; | ||
fallback: VNode; | ||
}; | ||
declare function normalizeVNode<T, U>(child: VNodeChild<T, U>): VNode<T, U>; | ||
@@ -554,2 +565,3 @@ | ||
unmounted?: DirectiveHook<T>; | ||
getSSRProps?: SSRDirectiveHook; | ||
} | ||
@@ -636,3 +648,3 @@ | ||
declare type PublicAPIComponent = Component | { | ||
new (): ComponentPublicInstance<any, any, any, any, any>; | ||
new (...args: any[]): ComponentPublicInstance<any, any, any, any, any>; | ||
}; | ||
@@ -652,2 +664,3 @@ | ||
$stable?: boolean; | ||
_ctx?: ComponentInternalInstance | null; | ||
_?: 1; | ||
@@ -686,3 +699,3 @@ }; | ||
export declare interface RendererOptions<HostNode = any, HostElement = any> { | ||
patchProp(el: HostElement, key: string, value: any, oldValue: any, isSVG?: boolean, prevChildren?: VNode<HostNode, HostElement>[], parentComponent?: ComponentInternalInstance | null, parentSuspense?: SuspenseBoundary<HostNode, HostElement> | null, unmountChildren?: UnmountChildrenFn<HostNode, HostElement>): void; | ||
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; | ||
insert(el: HostNode, parent: HostElement, anchor?: HostNode | null): void; | ||
@@ -705,3 +718,3 @@ remove(el: HostNode): void; | ||
(): VNodeChild; | ||
isRuntimeCompiled?: boolean; | ||
_rc?: boolean; | ||
}; | ||
@@ -727,3 +740,3 @@ | ||
export declare function resolveDynamicComponent(component: unknown, instance: ComponentInternalInstance): Component | undefined; | ||
export declare function resolveDynamicComponent(component: unknown): Component | undefined; | ||
@@ -750,4 +763,3 @@ export declare function resolveTransitionHooks(vnode: VNode, { appear, persisted, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled }: BaseTransitionProps, state: TransitionState, instance: ComponentInternalInstance): TransitionHooks; | ||
declare type SetupRenderEffectFn<HostNode, HostElement> = (instance: ComponentInternalInstance, initialVNode: VNode<HostNode, HostElement>, container: HostElement | null, // only null during hydration | ||
anchor: HostNode | null, parentSuspense: SuspenseBoundary<HostNode, HostElement> | null, isSVG: boolean) => 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; | ||
@@ -769,2 +781,4 @@ declare interface SFCInternalOptions { | ||
declare type SSRDirectiveHook = (binding: DirectiveBinding, vnode: VNode) => Data | undefined; | ||
export declare const ssrUtils: { | ||
@@ -777,2 +791,3 @@ createComponentInstance: typeof createComponentInstance; | ||
normalizeVNode: typeof normalizeVNode; | ||
normalizeSuspenseChildren: typeof normalizeSuspenseChildren; | ||
}; | ||
@@ -803,2 +818,3 @@ | ||
deps: number; | ||
isHydrating: boolean; | ||
isResolved: boolean; | ||
@@ -818,2 +834,3 @@ isUnmounted: 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; | ||
hydrate: typeof hydrateSuspense; | ||
}; | ||
@@ -871,3 +888,3 @@ | ||
key: string | number | null; | ||
ref: string | Ref | ((ref: object | null) => void) | null; | ||
ref: VNodeNormalizedRef | null; | ||
scopeId: string | null; | ||
@@ -898,6 +915,8 @@ children: VNodeNormalizedChildren<HostNode, HostElement>; | ||
declare type VNodeNormalizedRef = [ComponentInternalInstance, VNodeRef]; | ||
export declare interface VNodeProps { | ||
[key: string]: any; | ||
key?: string | number; | ||
ref?: string | Ref | ((ref: object | null) => void); | ||
ref?: VNodeRef; | ||
onVnodeBeforeMount?: (vnode: VNode) => void; | ||
@@ -911,2 +930,4 @@ onVnodeMounted?: (vnode: VNode) => void; | ||
declare type VNodeRef = string | Ref | ((ref: object | null, refs: Record<string, any>) => void); | ||
export declare type VNodeTypes = string | Component | typeof Text | typeof Static | typeof Comment | typeof Fragment | typeof PortalImpl | typeof SuspenseImpl; | ||
@@ -937,2 +958,4 @@ | ||
export declare function withCtx(fn: Slot, ctx?: ComponentInternalInstance | null): Slot | (() => any); | ||
export declare function withDirectives<T extends VNode>(vnode: T, directives: DirectiveArguments): T; | ||
@@ -939,0 +962,0 @@ |
{ | ||
"name": "@vue/runtime-core", | ||
"version": "3.0.0-alpha.8", | ||
"version": "3.0.0-alpha.9", | ||
"description": "@vue/runtime-core", | ||
@@ -34,5 +34,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"@vue/shared": "3.0.0-alpha.8", | ||
"@vue/reactivity": "3.0.0-alpha.8" | ||
"@vue/shared": "3.0.0-alpha.9", | ||
"@vue/reactivity": "3.0.0-alpha.9" | ||
} | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
578389
14284
113
+ Added@vue/reactivity@3.0.0-alpha.9(transitive)
+ Added@vue/shared@3.0.0-alpha.9(transitive)
- Removed@vue/reactivity@3.0.0-alpha.8(transitive)
- Removed@vue/shared@3.0.0-alpha.8(transitive)
Updated@vue/shared@3.0.0-alpha.9