Upgrading fastify 0.43 to 1
Unknown0.43.0 → 1.14.6
Fetching 34 releases from GitHub…0 / 34
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
Node.js requirement changed in 1.0.0-rc.3: >=4.5 → >=6.
Adds bourne ^1.1.2, proxy-addr ^2.0.3, rfdc ^1.1.2, tiny-lru ^2.0.0.
Installs 66 packages in all (was 57).
Also installs cookie, forwarded, ipaddr.js, set-cookie-parser.
Moves light-my-request 2.0.3 → 3.8.0, readable-stream 2.3.8 → 2.3.8, 3.6.2, string_decoder 1.1.1 → 1.1.1, 1.3.0. Your build may pick other versions.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- removed:
interface fastify.JSONSchema - removed:
property fastify.FastifyReply.code: (statusCode: number) => FastifyReply<HttpResponse> - removed:
property fastify.FastifyReply.header: (name: string, value: any) => FastifyReply<HttpResponse> - removed:
property fastify.FastifyReply.redirect: (statusCode: number, url: string) => FastifyReply<HttpResponse> - removed:
property fastify.FastifyReply.send: (payload?: string|Array<any>|Object|Error|Promise<any>|NodeJS.ReadableStream) => FastifyReply<HttpResponse> - removed:
property fastify.FastifyReply.serialize: (payload: any) => string - removed:
property fastify.FastifyReply.serializer: (fn: Function) => FastifyReply<HttpResponse> - removed:
property fastify.FastifyReply.type: (contentType: string) => FastifyReply<HttpResponse> - removed:
property fastify.JSONSchema.body?: Object - removed:
property fastify.JSONSchema.params?: Object - removed:
property fastify.JSONSchema.querystring?: Object - removed:
property fastify.JSONSchema.response?: { [code: number]: Object, [code: string]: Object } - changed:
function fastify<HttpServer, HttpRequest, HttpResponse>(opts?: fastify.ServerOptions): fastify.FastifyInstance<HttpServer, HttpRequest, HttpResponse> → function fastify<HttpServer extends (http.Server | http2.Http2Server) = http.Server, HttpRequest extends (http.IncomingMessage | http2.Http2ServerRequest) = http.IncomingMessage, HttpResponse extends (http.ServerResponse | http2.Http2ServerResponse) = http.ServerResponse>(opts?: fastify.ServerOptions): fastify.FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
interface fastify.FastifyInstance<HttpServer, HttpRequest, HttpResponse> → interface fastify.FastifyInstance<HttpServer = http.Server, HttpRequest = http.IncomingMessage, HttpResponse = http.ServerResponse> - changed:
interface fastify.FastifyRequest<HttpRequest> → interface fastify.FastifyRequest<HttpRequest, Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody> - changed:
interface fastify.RouteOptions<HttpServer, HttpRequest, HttpResponse> extends RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse> → interface fastify.RouteOptions<HttpServer, HttpRequest, HttpResponse, Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody> extends RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body> - changed:
interface fastify.RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse> → interface fastify.RouteShorthandOptions<HttpServer = http.Server, HttpRequest = http.IncomingMessage, HttpResponse = http.ServerResponse, Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody> - changed:
method fastify.FastifyInstance.delete(url: string, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> → method fastify.FastifyInstance.delete<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.delete(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse>, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> → method fastify.FastifyInstance.delete<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.get(url: string, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> → method fastify.FastifyInstance.get<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.get(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse>, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> → method fastify.FastifyInstance.get<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.head(url: string, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> → method fastify.FastifyInstance.head<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.head(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse>, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> → method fastify.FastifyInstance.head<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.inject(opts: HTTPInjectOptions): Promise<HTTPInjectResponse> → method fastify.FastifyInstance.inject(opts: HTTPInjectOptions | string): Promise<HTTPInjectResponse> - changed:
method fastify.FastifyInstance.inject(opts: HTTPInjectOptions, clb: (err: Error, res: HTTPInjectResponse) => void): void → method fastify.FastifyInstance.inject(opts: HTTPInjectOptions | string, cb: (err: Error, res: HTTPInjectResponse) => void): void - changed:
method fastify.FastifyInstance.listen(path: string, callback?: (err: Error) => void): http.Server → method fastify.FastifyInstance.listen(callback: (err: Error, address: string) => void): void - changed:
method fastify.FastifyInstance.listen(port: number, callback?: (err: Error) => void): http.Server → method fastify.FastifyInstance.listen(port: number, address: string, backlog: number, callback: (err: Error, address: string) => void): void - changed:
method fastify.FastifyInstance.listen(port: number, hostname: string, callback?: (err: Error) => void): http.Server → method fastify.FastifyInstance.listen(port: number, address: string, callback: (err: Error, address: string) => void): void - changed:
method fastify.FastifyInstance.options(url: string, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> → method fastify.FastifyInstance.options<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.options(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse>, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> → method fastify.FastifyInstance.options<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.patch(url: string, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> → method fastify.FastifyInstance.patch<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.patch(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse>, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> → method fastify.FastifyInstance.patch<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.post(url: string, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> → method fastify.FastifyInstance.post<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.post(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse>, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> → method fastify.FastifyInstance.post<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.put(url: string, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> → method fastify.FastifyInstance.put<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.put(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse>, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> → method fastify.FastifyInstance.put<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.ready(readyListener?: () => void): void → method fastify.FastifyInstance.ready(): Promise<FastifyInstance<HttpServer, HttpRequest, HttpResponse>> - changed:
method fastify.FastifyInstance.route(opts: RouteOptions<HttpServer, HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> → method fastify.FastifyInstance.route<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(opts: RouteOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
property fastify.FastifyRequest.body: any → property fastify.FastifyRequest.body: Body - changed:
property fastify.FastifyRequest.params: { [key: string]: any } → property fastify.FastifyRequest.params: Params - changed:
property fastify.FastifyRequest.query: { [key: string]: any } → property fastify.FastifyRequest.query: Query - changed:
property fastify.RouteOptions.handler: RequestHandler<HttpRequest, HttpResponse> → property fastify.RouteOptions.handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body> - changed:
property fastify.RouteOptions.method: HTTPMethod|HTTPMethod[] → property fastify.RouteOptions.method: HTTPMethod | HTTPMethod[] - changed:
property fastify.RouteShorthandOptions.beforeHandler?: FastifyMiddleware<HttpServer, HttpRequest, HttpResponse> → property fastify.RouteShorthandOptions.beforeHandler?: | FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body> | Array<FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>> - changed:
property fastify.RouteShorthandOptions.schema?: JSONSchema → property fastify.RouteShorthandOptions.schema?: RouteSchema - changed:
property fastify.ServerOptions.logger?: pino.LoggerOptions | true → property fastify.ServerOptions.logger?: pino.LoggerOptions | boolean - changed:
property fastify.ServerOptionsAsSecure.https: { key: Buffer, cert: Buffer } → property fastify.ServerOptionsAsSecure.https: http2.SecureServerOptions - changed:
type fastify.FastifyMiddleware<HttpServer, HttpRequest, HttpResponse> = (this: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, req: FastifyRequest<HttpRequest>, reply: FastifyReply<HttpResponse>, done: (err?: Error) => void… → type fastify.FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody> = (this: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, req: FastifyRequest<HttpRequest, Query, Params, Headers, Body>, reply: FastifyReply<HttpResponse… - changed:
type fastify.Middleware<HttpServer, HttpRequest, HttpResponse> = (this: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, req: HttpRequest, res: HttpResponse, callback?: (err?: Error) => void) => void → type fastify.Middleware<HttpServer, HttpRequest, HttpResponse> = (this: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, req: HttpRequest, res: HttpResponse, callback: (err?: Error) => void) => void - changed:
type fastify.Plugin<HttpServer, HttpRequest, HttpResponse, T> = (instance: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, opts: T, callback?: (err?: Error) => void) => void → type fastify.Plugin<HttpServer, HttpRequest, HttpResponse, T> = (instance: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, opts: T, callback: (err?: Error) => void) => void - changed:
type fastify.RequestHandler<HttpRequest, HttpResponse> = (req: FastifyRequest<HttpRequest>, res: FastifyReply<HttpResponse>) => void → type fastify.RequestHandler<HttpRequest, HttpResponse, Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody> = (this: FastifyInstance<http.Server, HttpRequest, HttpResponse>, request: FastifyRequest<HttpRequest, Query, Params, Headers, Body>, reply: FastifyReply<HttpRes… - added:
interface fastify.FastifyContext - added:
interface fastify.RouteSchema - added:
method fastify.FastifyInstance.addContentTypeParser(contentType: string | string[], opts: { bodyLimit?: number }, parser: ContentTypeParser<HttpRequest>): void - added:
method fastify.FastifyInstance.addContentTypeParser(contentType: string | string[], opts: { parseAs: 'buffer'; bodyLimit?: number }, parser: BodyParser<HttpRequest, Buffer>): void - added:
method fastify.FastifyInstance.addContentTypeParser(contentType: string | string[], opts: { parseAs: 'string'; bodyLimit?: number }, parser: BodyParser<HttpRequest, string>): void - added:
method fastify.FastifyInstance.addContentTypeParser(contentType: string | string[], parser: ContentTypeParser<HttpRequest>): void - added:
method fastify.FastifyInstance.addHook(name: 'onRoute', hook: (opts: RouteOptions<HttpServer, HttpRequest, HttpResponse> & { path: string, prefix: string }) => void): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - added:
method fastify.FastifyInstance.after(afterListener: (err: Error) => void): void - added:
method fastify.FastifyInstance.after(afterListener: (err: Error, context: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, done: Function) => void): void - added:
method fastify.FastifyInstance.after(afterListener: (err: Error, done: Function) => void): void - added:
method fastify.FastifyInstance.all<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - added:
method fastify.FastifyInstance.all<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - added:
method fastify.FastifyInstance.getSchemas(): { [shemaId: string]: Object } - added:
method fastify.FastifyInstance.hasContentTypeParser(contentType: string): boolean - added:
method fastify.FastifyInstance.hasReplyDecorator(name: string): boolean - added:
method fastify.FastifyInstance.hasRequestDecorator(name: string): boolean - added:
method fastify.FastifyInstance.listen(port: number, address?: string, backlog?: number): Promise<string> - added:
method fastify.FastifyInstance.listen(port: number, callback: (err: Error, address: string) => void): void - added:
method fastify.FastifyInstance.listen(sockFile: string): Promise<string> - added:
method fastify.FastifyInstance.listen(sockFile: string, callback: (err: Error, address: string) => void): void - added:
method fastify.FastifyInstance.printRoutes(): string - added:
method fastify.FastifyInstance.ready(readyListener: (err: Error) => void): void - added:
method fastify.FastifyInstance.ready(readyListener: (err: Error, context: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, done: Function) => void): void - added:
method fastify.FastifyInstance.ready(readyListener: (err: Error, done: Function) => void): void - added:
method fastify.FastifyInstance.setSchemaCompiler(schemaCompiler: SchemaCompiler): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - added:
method fastify.FastifyReply.callNotFound(): void - added:
method fastify.FastifyReply.code(statusCode: number): FastifyReply<HttpResponse> - added:
method fastify.FastifyReply.getHeader(name: string): string | undefined - added:
method fastify.FastifyReply.hasHeader(name: string): boolean - added:
method fastify.FastifyReply.header(name: string, value: any): FastifyReply<HttpResponse> - added:
method fastify.FastifyReply.headers(headers: { [key: string]: any }): FastifyReply<HttpResponse> - added:
method fastify.FastifyReply.redirect(statusCode: number, url: string): FastifyReply<HttpResponse> - added:
method fastify.FastifyReply.redirect(url: string): FastifyReply<HttpResponse> - added:
method fastify.FastifyReply.send(payload?: any): FastifyReply<HttpResponse> - added:
method fastify.FastifyReply.serialize(payload: any): string - added:
method fastify.FastifyReply.serializer(fn: Function): FastifyReply<HttpResponse> - added:
method fastify.FastifyReply.status(statusCode: number): FastifyReply<HttpResponse> - added:
method fastify.FastifyReply.type(contentType: string): FastifyReply<HttpResponse> - added:
property fastify.FastifyContext.config: any - added:
property fastify.FastifyReply.context: FastifyContext - added:
property fastify.FastifyRequest.headers: Headers - added:
property fastify.FastifyRequest.hostname: string - added:
property fastify.FastifyRequest.ip: string - added:
property fastify.FastifyRequest.raw: HttpRequest - added:
property fastify.RouteSchema.body?: JSONSchema - added:
property fastify.RouteSchema.headers?: JSONSchema - added:
property fastify.RouteSchema.params?: JSONSchema - added:
property fastify.RouteSchema.querystring?: JSONSchema - added:
property fastify.RouteSchema.response?: { [code: number]: JSONSchema, [code: string]: JSONSchema } - added:
property fastify.RouteShorthandOptions.attachValidation?: boolean - added:
property fastify.RouteShorthandOptions.bodyLimit?: number - added:
property fastify.RouteShorthandOptions.config?: any - added:
property fastify.RouteShorthandOptions.logLevel?: string - added:
property fastify.RouteShorthandOptions.schemaCompiler?: SchemaCompiler - added:
property fastify.ServerOptions.bodyLimit?: number - added:
property fastify.ServerOptions.ignoreTrailingSlash?: boolean - added:
property fastify.ServerOptions.maxParamLength?: number - added:
property fastify.ServerOptions.onProtoPoisoning?: 'error' | 'remove' | 'ignore' - added:
property fastify.ServerOptions.pluginTimeout?: number - added:
property fastify.ServerOptions.trustProxy?: string | number | boolean | Array<string> | TrustProxyFunction - added:
property fastify.ServerOptions.versioning? : { storage() : { get(version: String) : Function | null, set(version: String, store: Function) : void, del(version: String) : void, empty() : void }, deriveVersion<Context>(req: Object, ctx?: Context) : String } - added:
type fastify.BodyParser<HttpRequest, RawBody extends string | Buffer> = ((req: HttpRequest, rawBody: RawBody, done: (err: Error | null, body?: any) => void) => void) | ((req: HttpRequest, rawBody: RawBody) => Promise<any>) - added:
type fastify.ContentTypeParser<HttpRequest> = ((req: HttpRequest, done: (err: Error | null, body?: any) => void) => void) | ((req: HttpRequest) => Promise<any>) - added:
type fastify.DefaultBody = any - added:
type fastify.DefaultHeaders = { [k: string]: any } - added:
type fastify.DefaultParams = { [k: string]: any } - added:
type fastify.DefaultQuery = { [k: string]: any } - added:
type fastify.JSONSchema = Object - added:
type fastify.SchemaCompiler = (schema: Object) => Function - added:
type fastify.TrustProxyFunction = (addr: string, index: number) => boolean