Socket
Socket
Sign inDemoInstall

@vue/runtime-core

Package Overview
Dependencies
Maintainers
1
Versions
236
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-beta.5 to 3.0.0-beta.6

190

dist/runtime-core.d.ts

@@ -1,2 +0,1 @@

import { camelize } from '@vue/shared';
import { ComputedGetter } from '@vue/reactivity';

@@ -20,3 +19,2 @@ import { ComputedRef } from '@vue/reactivity';

import { shallowRef } from '@vue/reactivity';
import { toDisplayString } from '@vue/shared';
import { toRaw } from '@vue/reactivity';

@@ -108,4 +106,5 @@ import { toRef } from '@vue/reactivity';

export declare function callWithErrorHandling(fn: Function, instance: ComponentInternalInstance | null, type: ErrorTypes, args?: unknown[]): any;
export { camelize }
/* Excluded from this release type: camelize */
declare interface ClassComponent {

@@ -180,2 +179,6 @@ new (...args: any[]): ComponentPublicInstance<any, any, any, any, any>;

/**
* We expose a subset of properties on the internal instance as they are
* useful for advanced external libraries and tools.
*/
export declare interface ComponentInternalInstance {

@@ -185,18 +188,27 @@ uid: number;

parent: ComponentInternalInstance | null;
root: ComponentInternalInstance;
appContext: AppContext;
root: ComponentInternalInstance;
/**
* Vnode representing this component in its parent's vdom tree
*/
vnode: VNode;
next: VNode | null;
/* Excluded from this release type: next */
/**
* Root vnode of this component's own vdom tree
*/
subTree: VNode;
/**
* The reactive effect for rendering and patching the component. Callable.
*/
update: ReactiveEffect;
render: RenderFunction | null;
effects: ReactiveEffect[] | null;
provides: Data;
accessCache: Data | null;
renderCache: (Function | VNode)[];
components: Record<string, Component>;
directives: Record<string, Directive>;
/* Excluded from this release type: render */
/* Excluded from this release type: provides */
/* Excluded from this release type: effects */
/* Excluded from this release type: accessCache */
/* Excluded from this release type: renderCache */
/* Excluded from this release type: components */
/* Excluded from this release type: directives */
proxy: ComponentPublicInstance | null;
withProxy: ComponentPublicInstance | null;
ctx: Data;
/* Excluded from this release type: withProxy */
/* Excluded from this release type: ctx */
data: Data;

@@ -208,24 +220,24 @@ props: Data;

emit: EmitFn;
setupState: Data;
setupContext: SetupContext | null;
suspense: SuspenseBoundary | null;
asyncDep: Promise<any> | null;
asyncResolved: boolean;
/* Excluded from this release type: setupState */
/* Excluded from this release type: setupContext */
/* Excluded from this release type: suspense */
/* Excluded from this release type: asyncDep */
/* Excluded from this release type: asyncResolved */
isMounted: boolean;
isUnmounted: boolean;
isDeactivated: boolean;
[LifecycleHooks.BEFORE_CREATE]: LifecycleHook;
[LifecycleHooks.CREATED]: LifecycleHook;
[LifecycleHooks.BEFORE_MOUNT]: LifecycleHook;
[LifecycleHooks.MOUNTED]: LifecycleHook;
[LifecycleHooks.BEFORE_UPDATE]: LifecycleHook;
[LifecycleHooks.UPDATED]: LifecycleHook;
[LifecycleHooks.BEFORE_UNMOUNT]: LifecycleHook;
[LifecycleHooks.UNMOUNTED]: LifecycleHook;
[LifecycleHooks.RENDER_TRACKED]: LifecycleHook;
[LifecycleHooks.RENDER_TRIGGERED]: LifecycleHook;
[LifecycleHooks.ACTIVATED]: LifecycleHook;
[LifecycleHooks.DEACTIVATED]: LifecycleHook;
[LifecycleHooks.ERROR_CAPTURED]: LifecycleHook;
renderUpdated?: boolean;
/* Excluded from this release type: bc */
/* Excluded from this release type: c */
/* Excluded from this release type: bm */
/* Excluded from this release type: m */
/* Excluded from this release type: bu */
/* Excluded from this release type: u */
/* Excluded from this release type: bum */
/* Excluded from this release type: um */
/* Excluded from this release type: rtc */
/* Excluded from this release type: rtg */
/* Excluded from this release type: a */
/* Excluded from this release type: da */
/* Excluded from this release type: ec */
/* Excluded from this release type: renderUpdated */
}

@@ -244,3 +256,2 @@

render?: Function;
ssrRender?: (ctx: any, push: (item: any) => void, parentInstance: ComponentInternalInstance) => void;
components?: Record<string, PublicAPIComponent>;

@@ -250,4 +261,5 @@ directives?: Record<string, Directive>;

emits?: E | EE[];
__asyncLoader?: () => Promise<Component>;
__merged?: ComponentOptions;
/* Excluded from this release type: ssrRender */
/* Excluded from this release type: __asyncLoader */
/* Excluded from this release type: __merged */
call?: never;

@@ -317,7 +329,5 @@ __isFragment?: never;

export declare function createBlock(type: VNodeTypes | ClassComponent, props?: {
[key: string]: any;
} | null, children?: any, patchFlag?: number, dynamicProps?: string[]): VNode;
/* Excluded from this release type: createBlock */
export declare function createCommentVNode(text?: string, asBlock?: boolean): VNode;
/* Excluded from this release type: createCommentVNode */

@@ -347,7 +357,7 @@ declare function createComponentInstance(vnode: VNode, parent: ComponentInternalInstance | null, suspense: SuspenseBoundary | null): ComponentInternalInstance;

export declare function createSlots(slots: Record<string, Slot>, dynamicSlots: (CompiledSlotDescriptor | CompiledSlotDescriptor[] | undefined)[]): Record<string, Slot>;
/* Excluded from this release type: createSlots */
export declare function createStaticVNode(content: string): VNode;
/* Excluded from this release type: createStaticVNode */
export declare function createTextVNode(text?: string, flag?: number): VNode;
/* Excluded from this release type: createTextVNode */

@@ -523,2 +533,4 @@ export declare const createVNode: typeof _createVNode;

/* Excluded from this release type: InternalRenderFunction */
declare type InternalSlots = {

@@ -669,3 +681,3 @@ [name: string]: Slot | undefined;

export declare function openBlock(disableTracking?: boolean): void;
/* Excluded from this release type: openBlock */

@@ -692,3 +704,3 @@ declare type OptionalKeys<T, MakeDefaultRequired> = Exclude<keyof T, RequiredKeys<T, MakeDefaultRequired>>;

export declare function popScopeId(): void;
/* Excluded from this release type: popScopeId */

@@ -724,3 +736,3 @@ export declare type Prop<T> = PropOptions<T> | PropType<T>;

export declare function pushScopeId(id: string): void;
/* Excluded from this release type: pushScopeId */

@@ -749,3 +761,3 @@ export declare function queuePostFlushCb(cb: Function | Function[]): void;

export declare function registerRuntimeCompiler(_compile: any): void;
/* Excluded from this release type: registerRuntimeCompiler */

@@ -801,19 +813,8 @@ declare function reload(id: string, newComp: ComponentOptions): void;

export declare type RenderFunction = {
(ctx: ComponentPublicInstance, cache: ComponentInternalInstance['renderCache']): VNodeChild;
_rc?: boolean;
};
export declare type RenderFunction = () => VNodeChild;
export declare function renderList(source: string, renderItem: (value: string, index: number) => VNodeChild): VNodeChild[];
/* Excluded from this release type: renderList */
export declare function renderList(source: number, renderItem: (value: number, index: number) => VNodeChild): VNodeChild[];
/* Excluded from this release type: renderSlot */
export declare function renderList<T>(source: T[], renderItem: (value: T, index: number) => VNodeChild): VNodeChild[];
export declare function renderList<T>(source: Iterable<T>, renderItem: (value: T, index: number) => VNodeChild): VNodeChild[];
export declare function renderList<T>(source: T, renderItem: <K extends keyof T>(value: T[K], key: K, index: number) => VNodeChild): VNodeChild[];
export declare function renderSlot(slots: Slots, name: string, props?: Data, fallback?: () => VNodeArrayChildren): VNode;
declare type RequiredKeys<T, MakeDefaultRequired> = {

@@ -827,9 +828,9 @@ [K in keyof T]: T[K] extends {

declare function rerender(id: string, newRender?: RenderFunction): void;
declare function rerender(id: string, newRender?: Function): void;
export declare function resolveComponent(name: string): Component | string | undefined;
/* Excluded from this release type: resolveComponent */
export declare function resolveDirective(name: string): Directive | undefined;
/* Excluded from this release type: resolveDirective */
export declare function resolveDynamicComponent(component: unknown): Component | string | typeof NULL_DYNAMIC_COMPONENT;
/* Excluded from this release type: resolveDynamicComponent */

@@ -842,3 +843,3 @@ 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 function setBlockTracking(value: number): void;
/* Excluded from this release type: setBlockTracking */

@@ -860,6 +861,9 @@ declare function setCurrentRenderingInstance(instance: ComponentInternalInstance | null): void;

declare interface SFCInternalOptions {
__scopeId?: string;
__cssModules?: Data;
__hmrId?: string;
__hmrUpdated?: boolean;
/* Excluded from this release type: __scopeId */
/* Excluded from this release type: __cssModules */
/* Excluded from this release type: __hmrId */
/* Excluded from this release type: __hmrUpdated */
/**
* This one should be exposed so that devtools can make use of it
*/
__file?: string;

@@ -879,13 +883,5 @@ }

export declare const ssrUtils: {
createComponentInstance: typeof createComponentInstance;
setupComponent: typeof setupComponent;
renderComponentRoot: typeof renderComponentRoot;
setCurrentRenderingInstance: typeof setCurrentRenderingInstance;
isVNode: typeof isVNode;
normalizeVNode: typeof normalizeVNode;
normalizeSuspenseChildren: typeof normalizeSuspenseChildren;
};
/* Excluded from this release type: ssrUtils */
declare const Static: unique symbol;
export declare const Static: unique symbol;

@@ -962,5 +958,6 @@ export declare const Suspense: {

export { Text_2 as Text }
export { toDisplayString }
export declare function toHandlers(obj: Record<string, any>): Record<string, any>;
/* Excluded from this release type: toDisplayString */
/* Excluded from this release type: toHandlers */
export { toRaw }

@@ -972,3 +969,3 @@ export { toRef }

export declare function transformVNodeArgs(transformer?: typeof vnodeArgsTransformer): void;
/* Excluded from this release type: transformVNodeArgs */

@@ -1035,8 +1032,8 @@ export declare interface TransitionHooks {

export declare interface VNodeArrayChildren<HostNode = RendererNode, HostElement = RendererElement> extends Array<VNodeArrayChildren | VNodeChildAtom> {
export declare interface VNodeArrayChildren extends Array<VNodeArrayChildren | VNodeChildAtom> {
}
declare type VNodeChild = VNodeChildAtom | VNodeArrayChildren;
export declare type VNodeChild = VNodeChildAtom | VNodeArrayChildren;
declare type VNodeChildAtom = VNode | string | number | boolean | null | void;
declare type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void;

@@ -1098,9 +1095,24 @@ declare type VNodeMountHook = (vnode: VNode) => void;

export declare function withCtx(fn: Slot, ctx?: ComponentInternalInstance | null): Slot;
/* Excluded from this release type: withCtx */
export declare function withDirectives<T extends VNode>(vnode: T, directives: DirectiveArguments): T;
/* Excluded from this release type: withDirectives */
export declare function withScopeId(id: string): <T extends Function>(fn: T) => T;
/* Excluded from this release type: withScopeId */
export { WritableComputedOptions }
export { }
// Note: this file is auto concatenated to the end of the bundled d.ts during
// build.
declare module '@vue/reactivity' {
export interface RefUnwrapBailTypes {
runtimeCoreBailTypes:
| VNode
| {
// directly bailing on ComponentPublicInstance results in recursion
// so we use this as a bail hint
$: ComponentInternalInstance
}
}
}
{
"name": "@vue/runtime-core",
"version": "3.0.0-beta.5",
"version": "3.0.0-beta.6",
"description": "@vue/runtime-core",

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

"dependencies": {
"@vue/shared": "3.0.0-beta.5",
"@vue/reactivity": "3.0.0-beta.5"
"@vue/shared": "3.0.0-beta.6",
"@vue/reactivity": "3.0.0-beta.6"
}
}

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