fastify-decorators
Advanced tools
Comparing version 4.0.0-next.0 to 4.0.0-next.1
@@ -17,2 +17,3 @@ /** | ||
export const bootstrap = fp(async (fastify, config) => { | ||
await transformAndWait(hooksRegistry.appInit, (hook) => hook(fastify)); | ||
const controllers = new Set(); | ||
@@ -25,4 +26,4 @@ if ('directory' in config) | ||
await transformAndWait(controllers, loadController.bind(fastify, config)); | ||
await transformAndWait(hooksRegistry.appReady, (hook) => hook()); | ||
fastify.addHook('onClose', () => transformAndWait(hooksRegistry.appDestroy, (hook) => hook())); | ||
await transformAndWait(hooksRegistry.appReady, (hook) => hook(fastify)); | ||
fastify.addHook('onClose', () => transformAndWait(hooksRegistry.appDestroy, (hook) => hook(fastify))); | ||
}, { | ||
@@ -68,2 +69,2 @@ fastify: '^3.0.0', | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9vdHN0cmFwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL2Jvb3RzdHJhcC9ib290c3RyYXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBR0gsT0FBTyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDaEMsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLElBQUksQ0FBQztBQUNqQyxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQzVCLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxLQUFLLENBQUM7QUFJcEMsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBRXpELE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUM5QyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUVsRSxNQUFNLFdBQVcsR0FBRywwQkFBM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udHJvbGxlciAmJiBDUkVBVE9SIGluIGNvbnRyb2xsZXI7XG59XG4iXX0= |
@@ -13,2 +13,3 @@ # Changelog | ||
- Initialization hooks for plugin ecosystem | ||
- Option to inject Request/Reply into services | ||
- Plugin for integration with [TypeDI](https://npmjs.com/package/typedi) | ||
@@ -15,0 +16,0 @@ |
{ | ||
"name": "fastify-decorators", | ||
"version": "4.0.0-next.0", | ||
"version": "4.0.0-next.1", | ||
"description": "Framework aimed to provide useful TypeScript decorators to implement controllers, services and request handlers, built with Fastify.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -11,1 +11,2 @@ /** | ||
export * from './shared-interfaces.js'; | ||
export * from '../decorators/helpers/class-properties.js'; |
@@ -11,2 +11,3 @@ /** | ||
export * from './shared-interfaces.js'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvcGx1Z2lucy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsaUJBQWlCLENBQUM7QUFDaEMsY0FBYyx3QkFBd0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBBbmRyZXkgQ2hhbGtpbiA8TDJqTGlnYUBnbWFpbC5jb20+IChodHRwczovL2dpdGh1Yi5jb20vTDJqTGlnYSkuIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9naXRodWIuY29tL0wyakxpZ2EvZmFzdGlmeS1kZWNvcmF0b3JzL2Jsb2IvbWFzdGVyL0xJQ0VOU0VcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2NvbnRyb2xsZXJzLmpzJztcbmV4cG9ydCAqIGZyb20gJy4vbGlmZS1jeWNsZS5qcyc7XG5leHBvcnQgKiBmcm9tICcuL3NoYXJlZC1pbnRlcmZhY2VzLmpzJztcbiJdfQ== | ||
export * from '../decorators/helpers/class-properties.js'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvcGx1Z2lucy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsaUJBQWlCLENBQUM7QUFDaEMsY0FBYyx3QkFBd0IsQ0FBQztBQUV2QyxjQUFjLDJDQUEyQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEFuZHJleSBDaGFsa2luIDxMMmpMaWdhQGdtYWlsLmNvbT4gKGh0dHBzOi8vZ2l0aHViLmNvbS9MMmpMaWdhKS4gQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2dpdGh1Yi5jb20vTDJqTGlnYS9mYXN0aWZ5LWRlY29yYXRvcnMvYmxvYi9tYXN0ZXIvTElDRU5TRVxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vY29udHJvbGxlcnMuanMnO1xuZXhwb3J0ICogZnJvbSAnLi9saWZlLWN5Y2xlLmpzJztcbmV4cG9ydCAqIGZyb20gJy4vc2hhcmVkLWludGVyZmFjZXMuanMnO1xuXG5leHBvcnQgKiBmcm9tICcuLi9kZWNvcmF0b3JzL2hlbHBlcnMvY2xhc3MtcHJvcGVydGllcy5qcyc7XG4iXX0= |
@@ -0,7 +1,10 @@ | ||
import { FastifyInstance } from 'fastify'; | ||
import { Registrable } from './shared-interfaces.js'; | ||
export declare type AppInitHook = (fastifyInstance: FastifyInstance) => unknown | Promise<unknown>; | ||
export declare type BeforeControllerCreationHook = (target: Registrable) => unknown | Promise<unknown>; | ||
export declare type AfterControllerCreationHook = (instance: unknown, target: Registrable) => unknown | Promise<unknown>; | ||
export declare type AppReadyHook = () => unknown | Promise<unknown>; | ||
export declare type AppDestroyHook = () => unknown | Promise<unknown>; | ||
export declare type AppReadyHook = (fastifyInstance: FastifyInstance) => unknown | Promise<unknown>; | ||
export declare type AppDestroyHook = (fastifyInstance: FastifyInstance) => unknown | Promise<unknown>; | ||
export interface HooksRegistry { | ||
appInit: AppInitHook[]; | ||
beforeControllerCreation: BeforeControllerCreationHook[]; | ||
@@ -13,2 +16,3 @@ afterControllerCreation: AfterControllerCreationHook[]; | ||
export declare const hooksRegistry: HooksRegistry; | ||
export declare function createInitializationHook<T extends 'appInit'>(stage: T, hookFn: AppInitHook): void; | ||
export declare function createInitializationHook<T extends 'beforeControllerCreation'>(stage: T, hookFn: BeforeControllerCreationHook): void; | ||
@@ -15,0 +19,0 @@ export declare function createInitializationHook<T extends 'afterControllerCreation'>(stage: T, hookFn: AfterControllerCreationHook): void; |
export const hooksRegistry = { | ||
appInit: [], | ||
beforeControllerCreation: [], | ||
@@ -10,2 +11,2 @@ afterControllerCreation: [], | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlmZS1jeWNsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4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luaXRpYWxpemF0aW9uSG9vazxUIGV4dGVuZHMga2V5b2YgSG9va3NSZWdpc3RyeT4oXG4gIHN0YWdlOiBULFxuICBob29rRm46IFQgZXh0ZW5kcyAnYXBwSW5pdCdcbiAgICA/IEFwcEluaXRIb29rXG4gICAgOiBUIGV4dGVuZHMgJ2JlZm9yZUNvbnRyb2xsZXJDcmVhdGlvbidcbiAgICA/IEJlZm9yZUNvbnRyb2xsZXJDcmVhdGlvbkhvb2tcbiAgICA6IFQgZXh0ZW5kcyAnYWZ0ZXJDb250cm9sbGVyQ3JlYXRpb24nXG4gICAgPyBBZnRlckNvbnRyb2xsZXJDcmVhdGlvbkhvb2tcbiAgICA6IFQgZXh0ZW5kcyAnYXBwUmVhZHknXG4gICAgPyBBcHBSZWFkeUhvb2tcbiAgICA6IFQgZXh0ZW5kcyAnYXBwRGVzdHJveSdcbiAgICA/IEFwcERlc3Ryb3lIb29rXG4gICAgOiBuZXZlcixcbik6IHZvaWQge1xuICBob29rc1JlZ2lzdHJ5W3N0YWdlXS5wdXNoKGhvb2tGbiBhcyAoKSA9PiB1bmtub3duKTtcbn1cbiJdfQ== |
@@ -1,2 +0,2 @@ | ||
[![Fastify decorators](https://raw.githubusercontent.com/L2jLiga/fastify-decorators/v4.0.0-next.0/assets/logo.png)](https://github.com/L2jLiga/fastify-decorators) | ||
[![Fastify decorators](https://raw.githubusercontent.com/L2jLiga/fastify-decorators/v4.0.0-next.1/assets/logo.png)](https://github.com/L2jLiga/fastify-decorators) | ||
@@ -256,6 +256,6 @@ [![npm version](https://badge.fury.io/js/fastify-decorators.svg?colorB=brightgreen)](https://www.npmjs.com/package/fastify-decorators) | ||
[fastify resty]: https://github.com/FastifyResty/fastify-resty | ||
[bootstrapping]: https://github.com/L2jLiga/fastify-decorators/blob/v4.0.0-next.0/https://github.com/L2jLiga/fastify-decorators/blob/v4.0.0-next.0/docs/Bootstrapping.md | ||
[controllers]: https://github.com/L2jLiga/fastify-decorators/blob/v4.0.0-next.0/https://github.com/L2jLiga/fastify-decorators/blob/v4.0.0-next.0/docs/Controllers.md | ||
[request handlers]: https://github.com/L2jLiga/fastify-decorators/blob/v4.0.0-next.0/https://github.com/L2jLiga/fastify-decorators/blob/v4.0.0-next.0/docs/Request%20Handlers.md | ||
[testing]: https://github.com/L2jLiga/fastify-decorators/blob/v4.0.0-next.0/https://github.com/L2jLiga/fastify-decorators/blob/v4.0.0-next.0/docs/Testing.md | ||
[migration guide (v4)]: https://github.com/L2jLiga/fastify-decorators/blob/v4.0.0-next.0/https://github.com/L2jLiga/fastify-decorators/blob/v4.0.0-next.0/docs/Migration%20to%20v4.md | ||
[bootstrapping]: https://github.com/L2jLiga/fastify-decorators/blob/v4.0.0-next.1/https://github.com/L2jLiga/fastify-decorators/blob/v4.0.0-next.1/docs/Bootstrapping.md | ||
[controllers]: https://github.com/L2jLiga/fastify-decorators/blob/v4.0.0-next.1/https://github.com/L2jLiga/fastify-decorators/blob/v4.0.0-next.1/docs/Controllers.md | ||
[request handlers]: https://github.com/L2jLiga/fastify-decorators/blob/v4.0.0-next.1/https://github.com/L2jLiga/fastify-decorators/blob/v4.0.0-next.1/docs/Request%20Handlers.md | ||
[testing]: https://github.com/L2jLiga/fastify-decorators/blob/v4.0.0-next.1/https://github.com/L2jLiga/fastify-decorators/blob/v4.0.0-next.1/docs/Testing.md | ||
[migration guide (v4)]: https://github.com/L2jLiga/fastify-decorators/blob/v4.0.0-next.1/https://github.com/L2jLiga/fastify-decorators/blob/v4.0.0-next.1/docs/Migration%20to%20v4.md |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
184607
1132
0