@nathapp/nestjs-csrf 3.3.0 → 4.0.0

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @nathapp/nestjs-csrf@3.3.0 build
2
+ > @nathapp/nestjs-csrf@4.0.0 build
3
3
  > rimraf dist && tsc -p tsconfig.json
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @nathapp/nestjs-csrf
2
2
 
3
+ ## 4.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 2319e9d: BREAKING: drop NestJS 8/9 peer ranges and require Node ^20.19.0 || >=22.12.0. Support NestJS 12. Peer ranges now cover NestJS 10, 11 and 12 (Node ^20.19.0 || >=22.12.0 is required because NestJS 12 is ESM-only). The configurable module builder no longer deep-imports a directory that is unresolvable on NestJS 12, and TwoFactorGuard / TwoFactorForceGuard redeclare their constructor DI metadata because NestJS 12 no longer inherits @Optional() from base classes.
8
+
9
+ Other consumer-facing changes:
10
+
11
+ - `@nathapp/nestjs-health`: `@nestjs/terminus` moved from `dependencies` to `peerDependencies` (`^11.0.0 || ^12.0.0`) so NestJS 12 apps can use terminus 12. Install `@nestjs/terminus` in your app.
12
+ - Optional-package loading (`loadPackage`) now throws a descriptive `Error` (original error on `cause`) instead of logging and calling `process.exit(1)` when an optional package is missing.
13
+
14
+ ## 4.0.0-rc.0
15
+
16
+ ### Major Changes
17
+
18
+ - c3aeb46: BREAKING: drop NestJS 8/9 peer ranges and require Node ^20.19.0 || >=22.12.0. Support NestJS 12. Peer ranges now cover NestJS 10, 11 and 12 (Node ^20.19.0 || >=22.12.0 is required because NestJS 12 is ESM-only). The configurable module builder no longer deep-imports a directory that is unresolvable on NestJS 12, and TwoFactorGuard / TwoFactorForceGuard redeclare their constructor DI metadata because NestJS 12 no longer inherits @Optional() from base classes.
19
+
20
+ Other consumer-facing changes:
21
+
22
+ - `@nathapp/nestjs-health`: `@nestjs/terminus` moved from `dependencies` to `peerDependencies` (`^11.0.0 || ^12.0.0`) so NestJS 12 apps can use terminus 12. Install `@nestjs/terminus` in your app.
23
+ - Optional-package loading (`loadPackage`) now throws a descriptive `Error` (original error on `cause`) instead of logging and calling `process.exit(1)` when an optional package is missing.
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [c3aeb46]
28
+ - @nathapp/nestjs-common@4.0.0-rc.0
29
+
3
30
  ## 3.3.0
4
31
 
5
32
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nathapp/nestjs-csrf",
3
- "version": "3.3.0",
3
+ "version": "4.0.0",
4
4
  "description": "Stateless double-submit-cookie CSRF protection for NestJS (Express + Fastify), zero runtime dependencies",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,18 +18,18 @@
18
18
  "author": "William Khoo",
19
19
  "license": "ISC",
20
20
  "engines": {
21
- "node": ">=16"
21
+ "node": "^20.19.0 || >=22.12.0"
22
22
  },
23
23
  "peerDependencies": {
24
- "@nathapp/nestjs-common": "^3.0.0",
25
- "@nestjs/common": "^10.0.0 || ^11.0.0",
26
- "@nestjs/core": "^10.0.0 || ^11.0.0",
24
+ "@nathapp/nestjs-common": "^4.0.0-rc.0",
25
+ "@nestjs/common": "^10.0.0 || ^11.0.0 || ^12.0.0",
26
+ "@nestjs/core": "^10.0.0 || ^11.0.0 || ^12.0.0",
27
27
  "reflect-metadata": "^0.1.13 || ^0.2.0",
28
28
  "rxjs": "^7.0.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@nathapp/eslint-config": "1.0.1",
32
- "@nathapp/nestjs-common": "^3.3.0",
32
+ "@nathapp/nestjs-common": "^4.0.0",
33
33
  "@nathapp/typescript-config": "1.0.1",
34
34
  "@nestjs/common": "^11.0.0",
35
35
  "@nestjs/core": "^11.0.0",