unstale

npm / @nestjs/terminus

@nestjs/terminus

What changed in @nestjs/terminus 9 to 12, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

23 breaking5 deprecations19 new APIs and options5 behavior and defaults8 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

@nestjs/terminus 1248 changes

Breaking changes 17

  • A disk check on a path that does not exist is now down (503), rather than an error (500).

    12.2.0release notes

  • Each @HealthCheck() option now defaults independently.

    12.2.0release notes

  • ConnectionNotFoundError is no longer exported.

    12.0.0release notes

  • The deprecated getStatus() method has been removed; use HealthIndicatorService.check(key).up(data) or .down(data).

    12.0.0release notes

  • Throwing inside a health indicator now causes an unexpected failure (500); only a returned down result marks the check unhealthy (503).

    12.0.0release notesupgrade guide

  • HealthCheckError is no longer exported.

    12.0.0release notes

  • The deprecated HealthIndicator base class has been removed; custom indicators should migrate to HealthIndicatorService.

    12.0.0release notesupgrade guide

  • Custom health indicators migrate to HealthIndicatorService, whose checks return up or down results or use attempt to mark failures as down.

    12.0.0upgrade guide

  • MongoConnectionError is no longer exported.

    12.0.0release notes

  • The Mongoose health check pings the database instead of checking readyState.

    12.0.0release notes

  • The package is now ESM-only, so projects must use it as an ESM package.

    12.0.0release notes

  • The package requires Node ^20.19.0 || ^22.12.0 || >=24.0.0.

    12.0.0release notes

  • @nestjs/terminus no longer has runtime dependencies.

    12.0.0release notes

  • StorageExceededError is no longer exported.

    12.0.0release notes

  • TimeoutError is no longer exported.

    12.0.0release notes

  • UnhealthyResponseCodeError is no longer exported.

    12.0.0release notes

  • Chain withTimeout on the returned attempt to set a timeout for built-in database, microservice, and gRPC health checks.

    12.0.0upgrade guide

Deprecations 4

  • The value returned by attempt() is still added to the result, but the next major version ignores it; use withSuccessData() to choose the data.

    12.2.0release notes

  • Deprecates HttpHealthIndicator; use FetchHealthIndicator, which needs no additional package.

    12.2.0release notes

  • The timeout option of built-in database, microservice, and gRPC indicators is deprecated; chain withTimeout on the returned attempt instead.

    12.0.0upgrade guide

  • The timeout option of built-in database, microservice, and gRPC indicators is deprecated; chain .withTimeout(1500) on the returned attempt instead.

    12.0.0upgrade guide

New APIs and options 15

  • Adds degradedAfter() to health-check attempts.

    12.2.0release notes

  • Adds degradedOnFailure() to health-check attempts.

    12.2.0release notes

  • Adds an HTTP health indicator that needs no additional package.

    12.2.0release notes

  • Registers a named Swagger schema for health check results.

    12.2.0release notes

  • Exports the HealthCheckStatus object.

    12.2.0release notes

  • Exports the HealthIndicatorStatus object.

    12.2.0release notes

  • Memory and disk check results now include responseTime.

    12.2.0release notes

  • The Swagger document uses the schemas TerminusHealthCheckResult and TerminusHealthIndicatorResult, giving generated API clients new model names.

    12.2.0release notes

  • Adds withData() to attempts.

    12.2.0release notes

  • Adds withFailureData() to attempts.

    12.2.0release notes

  • Adds withSuccessData() to attempts for choosing success data.

    12.2.0release notes

  • Accepts a URL object in HttpHealthIndicator.pingCheck.

    12.1.0release notes

  • A new attempt() function is available.

    12.0.0release notes

  • Health indicators can now report a degraded status.

    12.0.0release notes

  • HealthCheckResult now includes responseTime.

    12.0.0release notes

Behavior and default changes 4

  • Accepts duration and size strings such as '2s' and '150mb'.

    12.2.0release notes

  • A missing optional package is reported at application startup, only for indicators you inject.

    12.2.0release notes

  • A dedicated HttpService is created instead of resolving HttpService from DI.

    12.0.0release notes

  • RMQ pingCheck no longer asserts a queue per probe.

    12.0.0release notes

Fixes and other changes 8

  • Ignores reserved keys returned from attempt().

    12.2.0release notes

  • @HealthCheck({ noCache: true }) no longer turns off Swagger documentation.

    12.2.0release notes

  • @HealthCheck({ swaggerDocumentation: false }) no longer turns off the Cache-Control header.

    12.2.0release notes

  • Safely resolves the MikroORM context connection.

    12.2.0release notes

  • Loads optional peers in a way bundlers can follow.

    12.2.0release notes

  • Fixes a memory leak in attempt().withTimeout() caused by AbortSignal.any().

    12.1.0release notes

  • shutting_down is set before awaiting the graceful shutdown timeout.

    12.0.0release notes

  • The microservice client is closed when the ping fails.

    12.0.0release notes

@nestjs/terminus 117 changes

Breaking changes 2

  • Disallows using the reserved keyword status for health indicators.

    11.1.0release notes

  • Support for Node 16 and Node 18 has been dropped.

    11.0.0release notes

Deprecations 1

  • The class is deprecated and scheduled for removal in version 12.0.0.

    11.0.0release notes

New APIs and options 3

  • Custom loggers are provided through dependency injection.

    11.1.1release notes

  • Supports dynamic configuration with Terminus.forRootAsync.

    11.1.0release notes

  • An enhanced API streamlines indicating whether a health indicator is up or down; the existing custom health indicator API continues to function.

    11.0.0release notes

Behavior and default changes 1

  • Health check results are inferred, reducing the need to specify their types explicitly.

    11.1.0release notes

@nestjs/terminus 102 changes

Breaking changes 1

  • Node v12 is no longer supported; Node v16 or later is required.

    10.0.0release notes

New APIs and options 1

  • Adds a health indicator for Prisma ORM, with pingCheck to check a Prisma service.

    10.0.0release notes

@nestjs/terminus 93 changes

Breaking changes 3

  • The redis package is replaced with ioredis.

    9.0.0release notes

  • Terminus upgrades to NestJS v9, so applications must use a compatible NestJS version.

    9.0.0release notes

  • Node v10 is no longer supported.

    9.0.0release notes