Comparing version 2.8.8 to 2.9.0
@@ -17,2 +17,4 @@ import { Awaitable, Promisify } from 'cosmokit'; | ||
schema?: (config?: S) => T; | ||
inject?: readonly string[]; | ||
/** @deprecated use `inject` instead */ | ||
using?: readonly string[]; | ||
@@ -23,3 +25,5 @@ } | ||
export interface Context { | ||
using(using: readonly string[], callback: Plugin.Function<void, Context.Configured<this>>): ForkScope<Context.Configured<this>>; | ||
inject(deps: readonly string[], callback: Plugin.Function<void, Context.Configured<this>>): ForkScope<Context.Configured<this>>; | ||
/** @deprecated use `ctx.inject()` instead */ | ||
using(deps: readonly string[], callback: Plugin.Function<void, Context.Configured<this>>): ForkScope<Context.Configured<this>>; | ||
plugin<S extends Plugin<Context.Configured<this>>, T extends Plugin.Config<S>>(plugin: S, config?: boolean | T): ForkScope<Context.Configured<this, T>>; | ||
@@ -44,3 +48,4 @@ /** @deprecated use `ctx.registry.delete()` instead */ | ||
delete(plugin: Plugin<C>): boolean; | ||
using(using: readonly string[], callback: Plugin.Function<void, C>): ForkScope<C> | undefined; | ||
inject(inject: readonly string[], callback: Plugin.Function<void, C>): ForkScope<C> | undefined; | ||
using(inject: readonly string[], callback: Plugin.Function<void, C>): ForkScope<C> | undefined; | ||
plugin(plugin: Plugin<C>, config?: any): ForkScope<C> | undefined; | ||
@@ -112,3 +117,3 @@ dispose(plugin: Plugin<C>): boolean; | ||
schema: any; | ||
using: readonly string[]; | ||
deps: readonly string[]; | ||
forkables: Function[]; | ||
@@ -115,0 +120,0 @@ children: ForkScope<C>[]; |
{ | ||
"name": "cordis", | ||
"description": "AOP Framework for Modern JavaScript Applications", | ||
"version": "2.8.8", | ||
"version": "2.9.0", | ||
"sideEffects": false, | ||
@@ -48,4 +48,4 @@ "main": "lib/index.cjs", | ||
"dependencies": { | ||
"cosmokit": "^1.4.5" | ||
"cosmokit": "^1.5.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
184764
1742
Updatedcosmokit@^1.5.1