Upgrading fastify 1 to 2
Unknown1.14.6 → 2.15.3
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
- 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.
DepDelta is still reading the release notes in this range. This updates as they come in.
Adds readable-stream ^3.6.0, secure-json-parse ^2.1.0.
Drops @types/pino, bourne, end-of-stream.
Installs 45 packages in all (was 66).
Also installs archy, atomic-sleep, fast-redact, safe-regex2, sonic-boom.
No longer installs @types/events, @types/node, ansi-styles, chalk, color-convert, color-name, core-util-is, escape-string-regexp, fast-json-parse, has-flag, isarray, once, process-nextick-args, pump, safe-regex and 6 more.
Moves abstract-logging 1.0.0 → 2.0.1, avvio 5.9.0 → 6.5.0, debug 3.2.7 → 4.4.3, fast-safe-stringify 1.2.3 → 2.1.1, find-my-way 1.18.1 → 2.2.5, middie 3.2.1 → 4.1.0, path-to-regexp 2.4.0 → 4.0.5, pino 4.17.6 → 5.17.0, quick-format-unescaped 1.1.2 → 3.0.3, readable-stream 2.3.8, 3.6.2 → 3.6.2, ret 0.1.15 → 0.2.2, safe-buffer 5.1.2, 5.2.1 → 5.2.1, string_decoder 1.1.1, 1.3.0 → 1.3.0, tiny-lru 2.0.0 → 7.0.6. Your build may pick other versions.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- removed:
method fastify.FastifyInstance.extendServerError(extendFn: (error: Error) => Object): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
property fastify.HTTPInjectOptions.authority?: string - removed:
property fastify.HTTPInjectOptions.headers?: object - removed:
property fastify.HTTPInjectOptions.method?: HTTPMethod - removed:
property fastify.HTTPInjectOptions.payload?: string | object | Buffer | NodeJS.ReadableStream - removed:
property fastify.HTTPInjectOptions.remoteAddress?: string - removed:
property fastify.HTTPInjectOptions.simulate?: { end?: boolean, split?: boolean, error?: boolean, close?: boolean } - removed:
property fastify.HTTPInjectOptions.url: string - removed:
property fastify.HTTPInjectOptions.validate?: boolean - removed:
property fastify.HTTPInjectResponse.headers: object - removed:
property fastify.HTTPInjectResponse.payload: string - removed:
property fastify.HTTPInjectResponse.raw: { req: NodeJS.ReadableStream, res: http.ServerResponse } - removed:
property fastify.HTTPInjectResponse.rawPayload: Buffer - removed:
property fastify.HTTPInjectResponse.statusCode: number - removed:
property fastify.HTTPInjectResponse.statusMessage: string - removed:
property fastify.HTTPInjectResponse.trailers: object - removed:
property fastify.RouteShorthandOptions.beforeHandler?: | FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body> | Array<FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>> - changed:
interface fastify.FastifyRequest<HttpRequest, Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody> → interface fastify.FastifyRequest<HttpRequest = http.IncomingMessage, Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody> - changed:
interface fastify.HTTPInjectOptions → interface fastify.HTTPInjectOptions extends LightMyRequest.InjectOptions - changed:
interface fastify.HTTPInjectResponse → interface fastify.HTTPInjectResponse extends LightMyRequest.Response - changed:
interface fastify.RegisterOptions<HttpServer, HttpRequest, HttpResponse> extends RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse> → interface fastify.RegisterOptions<HttpServer, HttpRequest, HttpResponse> - changed:
interface fastify.RouteOptions<HttpServer, HttpRequest, HttpResponse, Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody> extends RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body> → interface fastify.RouteOptions<HttpServer = http.Server, HttpRequest = http.IncomingMessage, HttpResponse = http.ServerResponse, Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody> extends RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body> - changed:
method fastify.FastifyInstance.addHook(name: 'onRequest', hook: Middleware<HttpServer, HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> → method fastify.FastifyInstance.addHook(name: 'onError', hook: (this: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, req: FastifyRequest<HttpRequest>, reply: FastifyReply<HttpResponse>, error: FastifyError, done: () => void) => void): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.addHook(name: 'onResponse', hook: (this: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, res: http.ServerResponse, next: (err?: Error) => void) => void): FastifyInstance<HttpServer, HttpRequest, HttpResponse> → method fastify.FastifyInstance.addHook(name: 'onRegister', hook: (instance: FastifyInstance) => void): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
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> → 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> - changed:
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> → 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<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> → 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<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> → 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.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> → 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<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> → 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<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> → 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<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> → 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.register<T extends RegisterOptions<HttpServer, HttpRequest, HttpResponse>>(plugin: Plugin<HttpServer, HttpRequest, HttpResponse, T>, opts?: T): FastifyInstance<HttpServer, HttpRequest, HttpResponse> → method fastify.FastifyInstance.register<Options extends RegisterOptions<HttpServer, HttpRequest, HttpResponse>, PluginInstance extends Function>(plugin: Plugin<HttpServer, HttpRequest, HttpResponse, Options, PluginInstance>, options?: Options): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.setErrorHandler(handler: (error: Error, request: FastifyRequest<HttpRequest>, reply: FastifyReply<HttpResponse>) => void): void → method fastify.FastifyInstance.setErrorHandler<E = FastifyError>(handler: (this: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, error: E, request: FastifyRequest<HttpRequest>, reply: FastifyReply<HttpResponse>) => void): void - changed:
method fastify.FastifyInstance.setNotFoundHandler(handler: (request: FastifyRequest<HttpRequest>, reply: FastifyReply<HttpResponse>) => void): void → method fastify.FastifyInstance.setNotFoundHandler(handler: (this: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, request: FastifyRequest<HttpRequest>, reply: FastifyReply<HttpResponse>) => void): void - changed:
method fastify.FastifyReply.send(payload?: any): FastifyReply<HttpResponse> → method fastify.FastifyReply.send<T>(payload?: T): FastifyReply<HttpResponse> - changed:
property fastify.FastifyInstance.log: pino.Logger → property fastify.FastifyInstance.log: Logger - changed:
property fastify.FastifyRequest.log: pino.Logger → property fastify.FastifyRequest.log: Logger - changed:
property fastify.ServerOptions.logger?: pino.LoggerOptions | boolean → property fastify.ServerOptions.logger?: any - changed:
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… → type fastify.FastifyMiddleware<HttpServer = http.Server, HttpRequest = http.IncomingMessage, HttpResponse = http.ServerResponse, 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?: FastifyError) => 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, Options, PluginInstance extends Function = Function> = PluginInstance extends () => Promise<void> ? ((instance: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, options: Options) => Promise<void>) : (instanc… - changed:
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… → type fastify.RequestHandler<HttpRequest = http.IncomingMessage, HttpResponse = http.ServerResponse, 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.FastifyError extends Error - added:
interface fastify.ListenOptions - added:
interface fastify.Logger - added:
interface fastify.ValidationResult - added:
method fastify.FastifyInstance.addHook(name: 'onRequest', hook: FastifyMiddleware<HttpServer, HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - added:
method fastify.FastifyInstance.addHook(name: 'onResponse', hook: FastifyMiddleware<HttpServer, HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - added:
method fastify.FastifyInstance.addHook(name: 'preParsing', hook: FastifyMiddleware<HttpServer, HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - added:
method fastify.FastifyInstance.addHook(name: 'preSerialization', hook: FastifyMiddlewareWithPayload<HttpServer, HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - added:
method fastify.FastifyInstance.addHook(name: 'preValidation', hook: FastifyMiddleware<HttpServer, HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - added:
method fastify.FastifyInstance.close<T = any>(): Promise<T> - added:
method fastify.FastifyInstance.inject(): LightMyRequest.Chain - added:
method fastify.FastifyInstance.listen(options: ListenOptions): Promise<string> - added:
method fastify.FastifyInstance.listen(options: ListenOptions, callback: (err: Error, address: string) => void): void - added:
method fastify.FastifyInstance.setReplySerializer(handler: (payload: string | object | Buffer | NodeJS.ReadableStream, statusCode: number) => string): void - added:
method fastify.FastifyInstance.setSchemaResolver(schemaResolver: SchemaResolver): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - added:
method fastify.FastifyInstance.use(path: string[], middleware: Middleware<HttpServer, HttpRequest, HttpResponse>): void - added:
method fastify.FastifyReply.getResponseTime(): number - added:
method fastify.FastifyReply.removeHeader(name: string): FastifyReply<HttpResponse> - added:
method fastify.Logger.debug(msg: string, ...args: any[]): void - added:
method fastify.Logger.debug(obj: {}, msg?: string, ...args: any[]): void - added:
method fastify.Logger.error(msg: string, ...args: any[]): void - added:
method fastify.Logger.error(obj: {}, msg?: string, ...args: any[]): void - added:
method fastify.Logger.fatal(msg: string, ...args: any[]): void - added:
method fastify.Logger.fatal(obj: {}, msg?: string, ...args: any[]): void - added:
method fastify.Logger.info(msg: string, ...args: any[]): void - added:
method fastify.Logger.info(obj: {}, msg?: string, ...args: any[]): void - added:
method fastify.Logger.trace(msg: string, ...args: any[]): void - added:
method fastify.Logger.trace(obj: {}, msg?: string, ...args: any[]): void - added:
method fastify.Logger.warn(msg: string, ...args: any[]): void - added:
method fastify.Logger.warn(obj: {}, msg?: string, ...args: any[]): void - added:
property fastify.FastifyError.statusCode?: number - added:
property fastify.FastifyError.validation?: Array<ValidationResult> - added:
property fastify.FastifyInstance.schemaCompiler: SchemaCompiler - added:
property fastify.FastifyReply.request: FastifyRequest - added:
property fastify.FastifyRequest.ips: string[] - added:
property fastify.ListenOptions.backlog?: number - added:
property fastify.ListenOptions.exclusive?: boolean - added:
property fastify.ListenOptions.host?: string - added:
property fastify.ListenOptions.ipv6Only?: boolean - added:
property fastify.ListenOptions.path?: string - added:
property fastify.ListenOptions.port?: number - added:
property fastify.ListenOptions.readableAll?: boolean - added:
property fastify.ListenOptions.writableAll?: boolean - added:
property fastify.RegisterOptions.logSerializers?: Object - added:
property fastify.RouteShorthandOptions.handler?: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body> - added:
property fastify.RouteShorthandOptions.logSerializers?: Object - added:
property fastify.RouteShorthandOptions.onRequest?: | FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body> | Array<FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>> - added:
property fastify.RouteShorthandOptions.onResponse?: | FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body> | Array<FastifyMiddleware<HttpServer, HttpRequest, HttpResponse>> - added:
property fastify.RouteShorthandOptions.onSend?: | FastifyMiddlewareWithPayload<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body> | Array<FastifyMiddlewareWithPayload<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>> - added:
property fastify.RouteShorthandOptions.preHandler?: | FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body> | Array<FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>> - added:
property fastify.RouteShorthandOptions.preParsing?: | FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body> | Array<FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>> - added:
property fastify.RouteShorthandOptions.preSerialization?: FastifyMiddlewareWithPayload<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body> | Array<FastifyMiddlewareWithPayload<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>> - added:
property fastify.RouteShorthandOptions.preValidation?: | FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body> | Array<FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>> - added:
property fastify.RouteShorthandOptions.prefixTrailingSlash?: 'slash' | 'no-slash' | 'both' - added:
property fastify.RouteShorthandOptions.version?: string - added:
property fastify.ServerOptions.ajv?: { customOptions?: ajv.Options, plugins?: Array<Array<any>|String> } - added:
property fastify.ServerOptions.caseSensitive?: boolean - added:
property fastify.ServerOptions.disableRequestLogging?: boolean - added:
property fastify.ServerOptions.genReqId?: (req: FastifyRequest) => number | string - added:
property fastify.ServerOptions.modifyCoreObjects?: boolean - added:
property fastify.ServerOptions.onConstructorPoisoning?: 'error' | 'remove' | 'ignore' - added:
property fastify.ServerOptions.querystringParser?: (str: string) => { [key: string]: string | string[] } - added:
property fastify.ServerOptions.requestIdHeader?: string - added:
property fastify.ServerOptions.requestIdLogLabel?: string - added:
property fastify.ServerOptions.return503OnClosing?: boolean - added:
property fastify.ServerOptions.serverFactory?: ServerFactoryFunction - added:
property fastify.ValidationResult.dataPath: string - added:
property fastify.ValidationResult.keyword: string - added:
property fastify.ValidationResult.message: string - added:
property fastify.ValidationResult.params: { [type: string]: string } - added:
property fastify.ValidationResult.schemaPath: string - added:
type fastify.FastifyMiddlewareWithPayload<HttpServer = http.Server, HttpRequest = http.IncomingMessage, HttpResponse = http.ServerResponse, Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody> = (this: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, req: FastifyRequest<HttpRequest, Query, Params, Headers, Body>, reply: FastifyReply<HttpResponse… - added:
type fastify.SchemaResolver = (ref: string) => Object - added:
type fastify.ServerFactoryFunction = (handler: ServerFactoryHandlerFunction, options: ServerOptions) => http.Server | http2.Http2Server - added:
type fastify.ServerFactoryHandlerFunction = (request: http.IncomingMessage | http2.Http2ServerRequest, response: http.ServerResponse | http2.Http2ServerResponse) => void