Upgrading fastify 0.33 to 0.34
Unknown0.33.0 → 0.34.0
Fetching 1 release from GitHub…0 / 1
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.
Drops simple-get.
Installs 131 packages in all (was 135).
No longer installs decompress-response, mimic-response, simple-concat.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- removed:
property fastify.ServerOptions.https?: { key: Buffer, cert: Buffer } - changed:
function fastify(opts?: fastify.ServerOptions): fastify.FastifyInstance → function fastify(opts?: fastify.ServerOptionsAsHttp): fastify.FastifyInstance<http.Server, http.IncomingMessage, http.ServerResponse> - changed:
interface fastify.FastifyInstance → interface fastify.FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
interface fastify.FastifyReply → interface fastify.FastifyReply<HttpResponse> - changed:
interface fastify.FastifyRequest → interface fastify.FastifyRequest<HttpRequest> - changed:
interface fastify.RegisterOptions extends RouteShorthandOptions → interface fastify.RegisterOptions<HttpRequest, HttpResponse> extends RouteShorthandOptions<HttpRequest, HttpResponse> - changed:
interface fastify.RouteOptions extends RouteShorthandOptions → interface fastify.RouteOptions<HttpRequest, HttpResponse> extends RouteShorthandOptions<HttpRequest, HttpResponse> - changed:
interface fastify.RouteShorthandOptions → interface fastify.RouteShorthandOptions<HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.addHook(name: 'onClose', hook: (instance: FastifyInstance, done: () => void) => void): FastifyInstance → method fastify.FastifyInstance.addHook(name: 'onClose', hook: (instance: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, done: () => void) => void): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.addHook(name: 'onRequest', hook: Middleware): FastifyInstance → method fastify.FastifyInstance.addHook(name: 'onRequest', hook: Middleware<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.addHook(name: 'onResponse', hook: (res: http.OutgoingMessage, next: (err?: Error) => void) => void): FastifyInstance → method fastify.FastifyInstance.addHook(name: 'onResponse', hook: (res: http.OutgoingMessage, next: (err?: Error) => void) => void): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.addHook(name: 'preHandler', hook: FastifyMiddleware): FastifyInstance → method fastify.FastifyInstance.addHook(name: 'preHandler', hook: FastifyMiddleware<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.decorate(name: string, decoration: any, dependencies?: Array<string>): FastifyInstance → method fastify.FastifyInstance.decorate(name: string, decoration: any, dependencies?: Array<string>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.decorateReply(name: string, decoration: any, dependencies?: Array<string>): FastifyInstance → method fastify.FastifyInstance.decorateReply(name: string, decoration: any, dependencies?: Array<string>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.decorateRequest(name: string, decoration: any, dependencies?: Array<string>): FastifyInstance → method fastify.FastifyInstance.decorateRequest(name: string, decoration: any, dependencies?: Array<string>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.delete(url: string, handler: RequestHandler): FastifyInstance → method fastify.FastifyInstance.delete(url: string, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.delete(url: string, opts: RouteShorthandOptions, handler: RequestHandler): FastifyInstance → method fastify.FastifyInstance.delete(url: string, opts: RouteShorthandOptions<HttpRequest, HttpResponse>, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.extendServerError(extendFn: () => Object): FastifyInstance → method fastify.FastifyInstance.extendServerError(extendFn: (error: Error) => Object): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.get(url: string, handler: RequestHandler): FastifyInstance → method fastify.FastifyInstance.get(url: string, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.get(url: string, opts: RouteShorthandOptions, handler: RequestHandler): FastifyInstance → method fastify.FastifyInstance.get(url: string, opts: RouteShorthandOptions<HttpRequest, HttpResponse>, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.head(url: string, handler: RequestHandler): FastifyInstance → method fastify.FastifyInstance.head(url: string, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.head(url: string, opts: RouteShorthandOptions, handler: RequestHandler): FastifyInstance → method fastify.FastifyInstance.head(url: string, opts: RouteShorthandOptions<HttpRequest, HttpResponse>, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.listen(port: number, hostname: string, backlog: number, callback?: (err: Error) => void): http.Server → method fastify.FastifyInstance.listen(path: string, callback?: (err: Error) => void): http.Server - changed:
method fastify.FastifyInstance.options(url: string, handler: RequestHandler): FastifyInstance → method fastify.FastifyInstance.options(url: string, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.options(url: string, opts: RouteShorthandOptions, handler: RequestHandler): FastifyInstance → method fastify.FastifyInstance.options(url: string, opts: RouteShorthandOptions<HttpRequest, HttpResponse>, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.patch(url: string, handler: RequestHandler): FastifyInstance → method fastify.FastifyInstance.patch(url: string, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.patch(url: string, opts: RouteShorthandOptions, handler: RequestHandler): FastifyInstance → method fastify.FastifyInstance.patch(url: string, opts: RouteShorthandOptions<HttpRequest, HttpResponse>, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.post(url: string, handler: RequestHandler): FastifyInstance → method fastify.FastifyInstance.post(url: string, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.post(url: string, opts: RouteShorthandOptions, handler: RequestHandler): FastifyInstance → method fastify.FastifyInstance.post(url: string, opts: RouteShorthandOptions<HttpRequest, HttpResponse>, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.put(url: string, handler: RequestHandler): FastifyInstance → method fastify.FastifyInstance.put(url: string, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.put(url: string, opts: RouteShorthandOptions, handler: RequestHandler): FastifyInstance → method fastify.FastifyInstance.put(url: string, opts: RouteShorthandOptions<HttpRequest, HttpResponse>, handler: RequestHandler<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.register<T extends RegisterOptions>(plugin: Plugin<T>|Array<Plugin<T>>, opts?: T, callback?: (err: Error) => void): FastifyInstance → method fastify.FastifyInstance.register<T extends RegisterOptions<HttpRequest, HttpResponse>>(plugin: Plugin<HttpServer, HttpRequest, HttpResponse, T>|Array<Plugin<HttpServer, HttpRequest, HttpResponse, T>>, opts?: T, callback?: (err: Error) => void): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.route(opts: RouteOptions): FastifyInstance → method fastify.FastifyInstance.route(opts: RouteOptions<HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - changed:
method fastify.FastifyInstance.setErrorHandler(handler: (error: Error, reply: FastifyReply) => void): void → method fastify.FastifyInstance.setErrorHandler(handler: (error: Error, reply: FastifyReply<HttpResponse>) => void): void - changed:
method fastify.FastifyInstance.setNotFoundHandler(handler: (request: FastifyRequest, reply: FastifyReply) => void): void → method fastify.FastifyInstance.setNotFoundHandler(handler: (request: FastifyRequest<HttpRequest>, reply: FastifyReply<HttpResponse>) => void): void - changed:
method fastify.FastifyInstance.use(middleware: Middleware): void → method fastify.FastifyInstance.use(middleware: Middleware<HttpRequest, HttpResponse>): void - changed:
method fastify.FastifyInstance.use(path: string, middleware: Middleware): void → method fastify.FastifyInstance.use(path: string, middleware: Middleware<HttpRequest, HttpResponse>): void - changed:
property fastify.FastifyInstance.server: http.Server → property fastify.FastifyInstance.server: HttpServer - changed:
property fastify.FastifyReply.code: (statusCode: number) => FastifyReply → property fastify.FastifyReply.code: (statusCode: number) => FastifyReply<HttpResponse> - changed:
property fastify.FastifyReply.header: (name: string, value: any) => FastifyReply → property fastify.FastifyReply.header: (name: string, value: any) => FastifyReply<HttpResponse> - changed:
property fastify.FastifyReply.redirect: (statusCode: number, url: string) => FastifyReply → property fastify.FastifyReply.redirect: (statusCode: number, url: string) => FastifyReply<HttpResponse> - changed:
property fastify.FastifyReply.send: (payload?: string|Array<any>|Object|Error|Promise<any>|NodeJS.ReadableStream) => FastifyReply → property fastify.FastifyReply.send: (payload?: string|Array<any>|Object|Error|Promise<any>|NodeJS.ReadableStream) => FastifyReply<HttpResponse> - changed:
property fastify.FastifyReply.serializer: (fn: Function) => FastifyReply → property fastify.FastifyReply.serializer: (fn: Function) => FastifyReply<HttpResponse> - changed:
property fastify.FastifyReply.type: (contentType: string) => FastifyReply → property fastify.FastifyReply.type: (contentType: string) => FastifyReply<HttpResponse> - changed:
property fastify.FastifyRequest.req: http.IncomingMessage → property fastify.FastifyRequest.req: HttpRequest - changed:
property fastify.RouteOptions.handler: RequestHandler → property fastify.RouteOptions.handler: RequestHandler<HttpRequest, HttpResponse> - changed:
property fastify.RouteShorthandOptions.beforeHandler?: FastifyMiddleware → property fastify.RouteShorthandOptions.beforeHandler?: FastifyMiddleware<HttpRequest, HttpResponse> - changed:
type fastify.FastifyMiddleware = (req: FastifyRequest, reply: FastifyReply, done: (err?: Error) => void) => void → type fastify.FastifyMiddleware<HttpRequest, HttpResponse> = (req: FastifyRequest<HttpRequest>, reply: FastifyReply<HttpResponse>, done: (err?: Error) => void) => void - changed:
type fastify.Middleware = (req: http.IncomingMessage, res: http.OutgoingMessage, callback?: (err?: Error) => void) => void → type fastify.Middleware<HttpRequest, HttpResponse> = (req: HttpRequest, res: HttpResponse, callback?: (err?: Error) => void) => void - changed:
type fastify.Plugin<T> = (instance: FastifyInstance, 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 = (req: FastifyRequest, res: FastifyReply) => void → type fastify.RequestHandler<HttpRequest, HttpResponse> = (req: FastifyRequest<HttpRequest>, res: FastifyReply<HttpResponse>) => void - added:
function fastify(opts?: fastify.ServerOptionsAsHttp2): fastify.FastifyInstance<http2.Http2Server, http2.Http2ServerRequest, http2.Http2ServerResponse> - added:
function fastify(opts?: fastify.ServerOptionsAsSecureHttp): fastify.FastifyInstance<https.Server, http.IncomingMessage, http.ServerResponse> - added:
function fastify(opts?: fastify.ServerOptionsAsSecureHttp2): fastify.FastifyInstance<http2.Http2SecureServer, http2.Http2ServerRequest, http2.Http2ServerResponse> - added:
function fastify<HttpServer, HttpRequest, HttpResponse>(opts?: fastify.ServerOptions): fastify.FastifyInstance<HttpServer, HttpRequest, HttpResponse> - added:
interface fastify.ServerOptionsAsHttp extends ServerOptions - added:
interface fastify.ServerOptionsAsHttp2 extends ServerOptions - added:
interface fastify.ServerOptionsAsSecure extends ServerOptions - added:
interface fastify.ServerOptionsAsSecureHttp extends ServerOptionsAsHttp, ServerOptionsAsSecure - added:
interface fastify.ServerOptionsAsSecureHttp2 extends ServerOptionsAsHttp2, ServerOptionsAsSecure - added:
property fastify.FastifyInstance.log: pino.Logger - added:
property fastify.FastifyReply.res: HttpResponse - added:
property fastify.FastifyReply.serialize: (payload: any) => string - added:
property fastify.ServerOptionsAsHttp.http2?: false - added:
property fastify.ServerOptionsAsHttp2.http2: true - added:
property fastify.ServerOptionsAsSecure.https: { key: Buffer, cert: Buffer }