@nathapp/nestjs-health 3.3.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/package.json +13 -15
  2. package/.eslintrc.js +0 -8
  3. package/.nax/features/nestjs-health/.nax-acceptance.test.ts +0 -756
  4. package/.turbo/turbo-build.log +0 -4
  5. package/CHANGELOG.md +0 -15
  6. package/lib/constant/health.constants.ts +0 -23
  7. package/lib/constant/index.ts +0 -1
  8. package/lib/controller/health.controller.ts +0 -37
  9. package/lib/controller/index.ts +0 -1
  10. package/lib/index.ts +0 -6
  11. package/lib/indicator/cache-health.check.ts +0 -59
  12. package/lib/indicator/generic-health.check.ts +0 -43
  13. package/lib/indicator/index.ts +0 -4
  14. package/lib/indicator/prisma-health.check.ts +0 -59
  15. package/lib/indicator/queue-health.check.ts +0 -72
  16. package/lib/interface/health-indicator.interface.ts +0 -18
  17. package/lib/interface/health-module-options.interface.ts +0 -85
  18. package/lib/interface/index.ts +0 -2
  19. package/lib/module/health.module.ts +0 -62
  20. package/lib/module/index.ts +0 -1
  21. package/lib/service/health-executor.service.ts +0 -69
  22. package/lib/service/index.ts +0 -1
  23. package/test/constant/health.constants.spec.ts +0 -34
  24. package/test/controller/health.controller.spec.ts +0 -117
  25. package/test/indicator/cache-health.check.spec.ts +0 -88
  26. package/test/indicator/generic-health.check.spec.ts +0 -61
  27. package/test/indicator/prisma-health.check.spec.ts +0 -69
  28. package/test/indicator/queue-health.check.spec.ts +0 -88
  29. package/test/interface/health-module-options.spec.ts +0 -59
  30. package/test/jest-nax.json +0 -27
  31. package/test/jest-test.json +0 -28
  32. package/test/module/health.module.spec.ts +0 -311
  33. package/test/service/health-executor.service.spec.ts +0 -186
  34. package/tsconfig.json +0 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nathapp/nestjs-health",
3
- "version": "3.3.0",
3
+ "version": "4.0.1",
4
4
  "description": "First-party health-check aggregator for NestJS: unifies cache/prisma/queue health behind @nestjs/terminus and exposes liveness/readiness probes",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,18 +18,16 @@
18
18
  "author": "William Khoo",
19
19
  "license": "ISC",
20
20
  "engines": {
21
- "node": ">=16"
22
- },
23
- "dependencies": {
24
- "@nestjs/terminus": "^11.0.0"
21
+ "node": "^20.19.0 || >=22.12.0"
25
22
  },
26
23
  "peerDependencies": {
27
- "@nathapp/nestjs-common": "^3.0.0",
28
- "@nathapp/nestjs-cache": "^3.0.0",
29
- "@nathapp/nestjs-prisma": "^3.0.0",
30
- "@nathapp/nestjs-queue": "^3.0.0",
31
- "@nestjs/common": "^10.0.0 || ^11.0.0",
32
- "@nestjs/core": "^10.0.0 || ^11.0.0",
24
+ "@nathapp/nestjs-cache": "^4.0.0-rc.0",
25
+ "@nathapp/nestjs-common": "^4.0.0-rc.0",
26
+ "@nathapp/nestjs-prisma": "^4.0.0-rc.0",
27
+ "@nathapp/nestjs-queue": "^4.0.0-rc.0",
28
+ "@nestjs/common": "^10.0.0 || ^11.0.0 || ^12.0.0",
29
+ "@nestjs/core": "^10.0.0 || ^11.0.0 || ^12.0.0",
30
+ "@nestjs/terminus": "^11.0.0 || ^12.0.0",
33
31
  "rxjs": "^7.0.0"
34
32
  },
35
33
  "peerDependenciesMeta": {
@@ -45,20 +43,20 @@
45
43
  },
46
44
  "devDependencies": {
47
45
  "@nathapp/eslint-config": "1.0.1",
48
- "@nathapp/nestjs-common": "^3.3.0",
46
+ "@nathapp/nestjs-common": "^4.0.1",
49
47
  "@nathapp/typescript-config": "1.0.1",
50
48
  "@nestjs/common": "^11.0.0",
51
49
  "@nestjs/core": "^11.0.0",
52
50
  "@nestjs/platform-express": "^11.0.0",
53
51
  "@nestjs/terminus": "^11.0.0",
54
52
  "@nestjs/testing": "^11.0.0",
55
- "@types/jest": "^29.5.2",
53
+ "@types/jest": "^30.0.0",
56
54
  "eslint": "^8.57.0",
57
- "jest": "^29.5.0",
55
+ "jest": "^30.5.2",
58
56
  "reflect-metadata": "^0.1.13",
59
57
  "rxjs": "^7.8.0",
60
58
  "supertest": "^7.0.0",
61
- "ts-jest": "^29.1.0",
59
+ "ts-jest": "^29.4.14",
62
60
  "typescript": "^5"
63
61
  },
64
62
  "directories": {
package/.eslintrc.js DELETED
@@ -1,8 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- extends: ["@nathapp/eslint-config/library.js"],
4
- parser: "@typescript-eslint/parser",
5
- parserOptions: {
6
- project: true,
7
- },
8
- };