Skip to content
Buy me a coffee

1.2 → 1.3

No code changes are needed.

  • Requests with a body (POST/PUT/PATCH) no longer abort the signal as soon as the body is read. The signal now aborts only when the client really disconnects or the timeout fires.
  • Options passed to forRoot() / forRoutes() no longer leak between calls.
  • Fastify adapter support.
  • AbortError.reason ('timeout' | 'client-disconnected'), and the signal’s own reason is that AbortError.
  • Optional AbortExceptionFilter.
  • ABORT_SIGNAL / ABORT_CONTROLLER symbol keys for reading the signal outside controllers.
Old Use instead
req.abortSignal @NestAbortSignal() or req[ABORT_SIGNAL]
req.abortController req[ABORT_CONTROLLER]
AbortControllerMiddleware.setOptions() forRoot() / forRoutes(), or new AbortControllerMiddleware(options)