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.0 to 3.0.0-alpha.1

63

dist/runtime-core.d.ts

@@ -26,3 +26,3 @@ import { ComputedGetter } from '@vue/reactivity';

config: AppConfig;
use(plugin: Plugin, options?: any): this;
use(plugin: Plugin, ...options: any[]): this;
mixin(mixin: ComponentOptions): this;

@@ -33,3 +33,5 @@ component(name: string): Component | undefined;

directive(name: string, directive: Directive): this;
mount(rootComponent: Component, rootContainer: HostElement | string, rootProps?: Data): ComponentPublicInstance;
mount(rootComponent: Component | {
new (): ComponentPublicInstance<any, any, any, any, any>;
}, rootContainer: HostElement | string, rootProps?: Data): ComponentPublicInstance;
provide<T>(key: InjectionKey<T> | string, value: T): this;

@@ -53,2 +55,3 @@ }

provides: Record<string | symbol, any>;
reload?: () => void;
}

@@ -230,18 +233,2 @@

export declare function createComponent<Props, RawBindings = object>(setup: (props: Readonly<Props>, ctx: SetupContext) => RawBindings | RenderFunction): {
new (): ComponentPublicInstance<Props, RawBindings, {}, {}, {}, VNodeProps & Props>;
};
export declare function createComponent<Props, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}>(options: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M>): {
new (): ComponentPublicInstance<Props, RawBindings, D, C, M, VNodeProps & Props>;
};
export declare function createComponent<PropNames extends string, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}>(options: ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M>): {
new (): ComponentPublicInstance<VNodeProps, RawBindings, D, C, M>;
};
export declare function createComponent<PropsOptions extends Readonly<ComponentPropsOptions>, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}>(options: ComponentOptionsWithProps<PropsOptions, RawBindings, D, C, M>): {
new (): ComponentPublicInstance<ExtractPropTypes<PropsOptions>, RawBindings, D, C, M, VNodeProps & ExtractPropTypes<PropsOptions, false>>;
};
export declare const createHook: <T extends Function = () => any>(lifecycle: LifecycleHooks) => (hook: T, target?: ComponentInternalInstance | null) => void;

@@ -286,2 +273,18 @@

export declare function defineComponent<Props, RawBindings = object>(setup: (props: Readonly<Props>, ctx: SetupContext) => RawBindings | RenderFunction): {
new (): ComponentPublicInstance<Props, RawBindings, {}, {}, {}, VNodeProps & Props>;
};
export declare function defineComponent<Props, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}>(options: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M>): {
new (): ComponentPublicInstance<Props, RawBindings, D, C, M, VNodeProps & Props>;
};
export declare function defineComponent<PropNames extends string, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}>(options: ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M>): {
new (): ComponentPublicInstance<VNodeProps, RawBindings, D, C, M>;
};
export declare function defineComponent<PropsOptions extends Readonly<ComponentPropsOptions>, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}>(options: ComponentOptionsWithProps<PropsOptions, RawBindings, D, C, M>): {
new (): ComponentPublicInstance<ExtractPropTypes<PropsOptions>, RawBindings, D, C, M, VNodeProps & ExtractPropTypes<PropsOptions, false>>;
};
export declare type Directive<T = any> = ObjectDirective<T> | FunctionDirective<T>;

@@ -481,3 +484,3 @@

declare type MapSources<T> = {
[K in keyof T]: T[K] extends WatcherSource<infer V> ? V : never;
[K in keyof T]: T[K] extends WatchSource<infer V> ? V : never;
};

@@ -558,3 +561,3 @@ export { markNonReactive }

declare type PluginInstallFunction = (app: App) => any;
declare type PluginInstallFunction = (app: App, ...options: any[]) => any;

@@ -714,4 +717,2 @@ export declare function popScopeId(): void;

declare type SimpleEffect = (onCleanup: CleanupRegistrator) => void;
export declare type Slot = (...args: any[]) => VNode[];

@@ -721,3 +722,3 @@

declare type StopHandle = () => void;
export declare type StopHandle = () => void;

@@ -843,14 +844,14 @@ export declare const Suspense: {

export declare function watch(effect: SimpleEffect, options?: WatchOptions): StopHandle;
export declare function watch(effect: WatchEffect, options?: WatchOptions): StopHandle;
export declare function watch<T>(source: WatcherSource<T>, cb: WatchHandler<T>, options?: WatchOptions): StopHandle;
export declare function watch<T>(source: WatchSource<T>, cb: WatchCallback<T>, options?: WatchOptions): StopHandle;
export declare function watch<T extends Readonly<WatcherSource<unknown>[]>>(sources: T, cb: WatchHandler<MapSources<T>>, options?: WatchOptions): StopHandle;
export declare function watch<T extends Readonly<WatchSource<unknown>[]>>(sources: T, cb: WatchCallback<MapSources<T>>, options?: WatchOptions): StopHandle;
declare type WatcherSource<T = any> = Ref<T> | ComputedRef<T> | (() => T);
export declare type WatchCallback<T = any> = (value: T, oldValue: T, onCleanup: CleanupRegistrator) => any;
export declare type WatchHandler<T = any> = (value: T, oldValue: T, onCleanup: CleanupRegistrator) => any;
export declare type WatchEffect = (onCleanup: CleanupRegistrator) => void;
declare type WatchOptionItem = string | WatchHandler | {
handler: WatchHandler;
declare type WatchOptionItem = string | WatchCallback | {
handler: WatchCallback;
} & WatchOptions;

@@ -866,2 +867,4 @@

export declare type WatchSource<T = any> = Ref<T> | ComputedRef<T> | (() => T);
export declare function withDirectives<T extends VNode>(vnode: T, directives: DirectiveArguments): T;

@@ -868,0 +871,0 @@

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

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

"dependencies": {
"@vue/reactivity": "3.0.0-alpha.0"
"@vue/reactivity": "3.0.0-alpha.1"
}
}

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