github nestjs/terminus 10.0.0
Release 10.0.0

latest releases: 10.3.0-beta.0, 10.2.3, 10.2.2...
17 months ago

Diff

⚠️ Node v12 is no longer supported (>= v16 is required).

Features

Get started with Prisma & Terminus
  1. Install Prisma
  2. Install the latest version of Terminus
npm i @nestjs/terminus@10
  1. Update your health.controller.ts:
@Controller()
export class HealthController {
  constructor(
    private readonly health: HealthCheckService,
    private readonly prisma: PrismaHealthIndicator,
    private readonly prismaService: PrismaService,
  ) {}

  @Get('/health')
  healthCheck() {
    return this.health.check([
      () => this.prisma.pingCheck('prisma', this.prismaService),
    ]);
  }
}

Checkout the Prisma sample app here

Dependencies

  • deps: update dependency @grpc/grpc-js to v1.8.14 (#2262) (86152cc)
  • deps: update dependency @grpc/grpc-js to v1.8.15 (#2280) (6ecdc1f)
  • deps: update dependency @grpc/proto-loader to v0.7.6 (#2263) (638a7cd)
  • deps: update dependency @grpc/proto-loader to v0.7.7 (#2268) (48d2d8d)
  • deps: update dependency @mikro-orm/nestjs to v5.1.8 (#2265) (4bdb17d)
  • deps: update dependency @nestjs/mongoose to v9.2.2 (#2267) (d97deb7)
  • deps: update dependency @nestjs/sequelize to v9.0.2 (#2269) (3de1168)
  • deps: update dependency ioredis to v5.3.2 (#2281) (3b58611)
  • deps: update dependency mysql2 to v3.2.4 (#2216) (38c9593)

Don't miss a new terminus release

NewReleases is sending notifications on new releases.