10.0.0 (2023-06-17)
⚠️ Node v12 is no longer supported (>= v16 is required).
Features
Get started with Prisma x Terminus:
- Install Prisma
- Install the latest version of Terminus
npm i @nestjs/terminus@10
- 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)