@vue/runtime-core
Advanced tools
Comparing version 3.0.7 to 3.0.8
@@ -36,2 +36,3 @@ import { camelize } from '@vue/shared'; | ||
import { unref } from '@vue/reactivity'; | ||
import { UnwrapNestedRefs } from '@vue/reactivity'; | ||
import { UnwrapRef } from '@vue/reactivity'; | ||
@@ -58,3 +59,3 @@ import { WritableComputedOptions } from '@vue/reactivity'; | ||
directive(name: string, directive: Directive): this; | ||
mount(rootContainer: HostElement | string, isHydrate?: boolean): ComponentPublicInstance; | ||
mount(rootContainer: HostElement | string, isHydrate?: boolean, isSVG?: boolean): ComponentPublicInstance; | ||
unmount(): void; | ||
@@ -269,2 +270,3 @@ provide<T>(key: InjectionKey<T> | string, value: T): this; | ||
/* Excluded from this release type: emitted */ | ||
/* Excluded from this release type: propsDefaults */ | ||
/* Excluded from this release type: setupState */ | ||
@@ -371,3 +373,3 @@ /* Excluded from this release type: devtoolsRawSetupState */ | ||
$watch(source: string | Function, cb: Function, options?: WatchOptions): WatchStopHandle; | ||
} & P & ShallowUnwrapRef<B> & D & ExtractComputedReturns<C> & M & ComponentCustomProperties; | ||
} & P & ShallowUnwrapRef<B> & UnwrapNestedRefs<D> & ExtractComputedReturns<C> & M & ComponentCustomProperties; | ||
@@ -461,3 +463,3 @@ declare type ComponentPublicInstanceConstructor<T extends ComponentPublicInstance<Props, RawBindings, D, C, M> = ComponentPublicInstance<any>, Props = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = { | ||
declare function createSuspenseBoundary(vnode: VNode, parent: SuspenseBoundary | null, parentComponent: ComponentInternalInstance | null, container: RendererElement, hiddenContainer: RendererElement, anchor: RendererNode | null, isSVG: boolean, optimized: boolean, rendererInternals: RendererInternals, isHydrating?: boolean): SuspenseBoundary; | ||
declare function createSuspenseBoundary(vnode: VNode, parent: SuspenseBoundary | null, parentComponent: ComponentInternalInstance | null, container: RendererElement, hiddenContainer: RendererElement, anchor: RendererNode | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals, isHydrating?: boolean): SuspenseBoundary; | ||
@@ -666,5 +668,5 @@ /** | ||
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; | ||
declare function hydrateSuspense(node: Node, vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals, hydrateNode: (node: Node, vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null; | ||
declare function hydrateTeleport(node: Node, vnode: TeleportVNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, optimized: boolean, { o: { nextSibling, parentNode, querySelector } }: RendererInternals<Node, Element>, hydrateChildren: (node: Node | null, vnode: VNode, container: Element, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, optimized: boolean) => Node | null): Node | null; | ||
declare function hydrateTeleport(node: Node, vnode: TeleportVNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean, { o: { nextSibling, parentNode, querySelector } }: RendererInternals<Node, Element>, hydrateChildren: (node: Node | null, vnode: VNode, container: Element, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null; | ||
@@ -675,11 +677,11 @@ export declare interface HydrationRenderer extends Renderer<Element> { | ||
declare type InferPropType<T> = T extends null ? any : T extends { | ||
declare type InferPropType<T> = [T] extends [null] ? any : [T] extends [{ | ||
type: null | true; | ||
} ? any : T extends ObjectConstructor | { | ||
}] ? any : [T] extends [ObjectConstructor | { | ||
type: ObjectConstructor; | ||
} ? Record<string, any> : T extends BooleanConstructor | { | ||
}] ? Record<string, any> : [T] extends [BooleanConstructor | { | ||
type: BooleanConstructor; | ||
} ? boolean : T extends DateConstructor | { | ||
}] ? boolean : [T] extends [DateConstructor | { | ||
type: DateConstructor; | ||
} ? Date : T extends Prop<infer V, infer D> ? (unknown extends V ? D : V) : T; | ||
}] ? Date : [T] extends [Prop<infer V, infer D>] ? (unknown extends V ? D : V) : T; | ||
@@ -785,3 +787,3 @@ export declare function initCustomFormatter(): void; | ||
export declare function mergeProps(...args: (Data & VNodeProps)[]): Record<string, unknown> & VNodeProps; | ||
export declare function mergeProps(...args: (Data & VNodeProps)[]): Data & VNodeProps; | ||
@@ -794,3 +796,3 @@ export declare interface MethodOptions { | ||
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 MountChildrenFn = (children: VNodeArrayChildren, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, start?: number) => void; | ||
@@ -896,8 +898,8 @@ declare type MountComponentFn = (initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | 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 PatchBlockChildrenFn = (oldChildren: VNode[], newChildren: VNode[], fallbackContainer: RendererElement, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null) => 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 PatchChildrenFn = (n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, 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; | ||
n2: VNode, container: RendererElement, anchor?: RendererNode | null, parentComponent?: ComponentInternalInstance | null, parentSuspense?: SuspenseBoundary | null, isSVG?: boolean, slotScopeIds?: string[] | null, optimized?: boolean) => void; | ||
@@ -913,7 +915,2 @@ declare type Plugin_2 = PluginInstallFunction & { | ||
/** | ||
* @private | ||
*/ | ||
export declare function popScopeId(): void; | ||
export declare type Prop<T, D = T> = PropOptions<T, D> | PropType<T>; | ||
@@ -927,3 +924,3 @@ | ||
declare type PropMethod<T, TConstructor = any> = T extends (...args: any) => any ? { | ||
declare type PropMethod<T, TConstructor = any> = [T] extends [(...args: any) => any] ? { | ||
new (): TConstructor; | ||
@@ -948,7 +945,2 @@ (): T; | ||
/** | ||
* @private | ||
*/ | ||
export declare function pushScopeId(id: string): void; | ||
export declare function queuePostFlushCb(cb: SchedulerCbs): void; | ||
@@ -1018,3 +1010,5 @@ | ||
remove(el: HostNode): void; | ||
createElement(type: string, isSVG?: boolean, isCustomizedBuiltIn?: string): HostElement; | ||
createElement(type: string, isSVG?: boolean, isCustomizedBuiltIn?: string, vnodeProps?: (VNodeProps & { | ||
[key: string]: any; | ||
}) | null): HostElement; | ||
createText(text: string): HostNode; | ||
@@ -1064,3 +1058,3 @@ createComment(text: string): HostNode; | ||
*/ | ||
export declare function renderSlot(slots: Slots, name: string, props?: Data, fallback?: () => VNodeArrayChildren): VNode; | ||
export declare function renderSlot(slots: Slots, name: string, props?: Data, fallback?: () => VNodeArrayChildren, hasSlotted?: boolean): VNode; | ||
@@ -1082,3 +1076,3 @@ declare type RequiredKeys<T> = { | ||
*/ | ||
export declare function resolveComponent(name: string): ConcreteComponent | string; | ||
export declare function resolveComponent(name: string, maybeSelfReference?: boolean): ConcreteComponent | string; | ||
@@ -1099,3 +1093,3 @@ /** | ||
export declare type RootRenderFunction<HostElement = RendererElement> = (vnode: VNode | null, container: HostElement) => void; | ||
export declare type RootRenderFunction<HostElement = RendererElement> = (vnode: VNode | null, container: HostElement, isSVG?: boolean) => void; | ||
@@ -1126,6 +1120,22 @@ declare type SchedulerCb = Function & { | ||
declare function setCurrentRenderingInstance(instance: ComponentInternalInstance | null): void; | ||
/** | ||
* Note: rendering calls maybe nested. The function returns the parent rendering | ||
* instance if present, which should be restored after the render is done: | ||
* | ||
* ```js | ||
* const prev = setCurrentRenderingInstance(i) | ||
* // ...render | ||
* setCurrentRenderingInstance(prev) | ||
* ``` | ||
*/ | ||
declare function setCurrentRenderingInstance(instance: ComponentInternalInstance | null): ComponentInternalInstance | null; | ||
export declare function setDevtoolsHook(hook: DevtoolsHook): void; | ||
/** | ||
* Set scope id when creating hoisted vnodes. | ||
* @private compiler helper | ||
*/ | ||
export declare function setScopeId(id: string | null): void; | ||
export declare function setTransitionHooks(vnode: VNode, hooks: TransitionHooks): void; | ||
@@ -1193,4 +1203,5 @@ | ||
declare const SuspenseImpl: { | ||
name: string; | ||
__isSuspense: boolean; | ||
process(n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean, rendererInternals: RendererInternals): void; | ||
process(n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals): void; | ||
hydrate: typeof hydrateSuspense; | ||
@@ -1216,4 +1227,4 @@ create: typeof createSuspenseBoundary; | ||
__isTeleport: boolean; | ||
process(n1: TeleportVNode | null, n2: TeleportVNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean, internals: RendererInternals): void; | ||
remove(vnode: VNode, { r: remove, o: { remove: hostRemove } }: RendererInternals): void; | ||
process(n1: TeleportVNode | null, n2: TeleportVNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, internals: RendererInternals): void; | ||
remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, optimized: boolean, { um: unmount, o: { remove: hostRemove } }: RendererInternals, doRemove: Boolean): void; | ||
move: typeof moveTeleport; | ||
@@ -1308,3 +1319,14 @@ hydrate: typeof hydrateTeleport; | ||
ref: VNodeNormalizedRef | null; | ||
/** | ||
* SFC only. This is assigned on vnode creation using currentScopeId | ||
* which is set alongside currentRenderingInstance. | ||
*/ | ||
scopeId: string | null; | ||
/** | ||
* SFC only. This is assigned to: | ||
* - Slot fragment vnodes with :slotted SFC styles. | ||
* - Component vnodes (during patch/hydration) so that its root node can | ||
* inherit the component's slotScopeIds | ||
*/ | ||
slotScopeIds: string[] | null; | ||
children: VNodeNormalizedChildren; | ||
@@ -1402,5 +1424,5 @@ component: ComponentInternalInstance | null; | ||
* Wrap a slot function to memoize current rendering instance | ||
* @private | ||
* @private compiler helper | ||
*/ | ||
export declare function withCtx(fn: Slot, ctx?: ComponentInternalInstance | null): Slot; | ||
export declare function withCtx(fn: Function, ctx?: ComponentInternalInstance | null): Function; | ||
@@ -1411,7 +1433,2 @@ /** | ||
export declare function withDirectives<T extends VNode>(vnode: T, directives: DirectiveArguments): T; | ||
/** | ||
* @private | ||
*/ | ||
export declare function withScopeId(id: string): <T extends Function>(fn: T) => T; | ||
export { WritableComputedOptions } | ||
@@ -1418,0 +1435,0 @@ export { WritableComputedRef } |
{ | ||
"name": "@vue/runtime-core", | ||
"version": "3.0.7", | ||
"version": "3.0.8", | ||
"description": "@vue/runtime-core", | ||
@@ -35,5 +35,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"@vue/shared": "3.0.7", | ||
"@vue/reactivity": "3.0.7" | ||
"@vue/shared": "3.0.8", | ||
"@vue/reactivity": "3.0.8" | ||
} | ||
} |
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
854877
21004
187
+ Added@vue/reactivity@3.0.8(transitive)
+ Added@vue/shared@3.0.8(transitive)
- Removed@vue/reactivity@3.0.7(transitive)
- Removed@vue/shared@3.0.7(transitive)
Updated@vue/reactivity@3.0.8
Updated@vue/shared@3.0.8