@nathapp/nestjs-logging 3.0.0-rc.4 → 3.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-logging@3.0.0-rc.4 build
2
+ > @nathapp/nestjs-logging@3.0.0 build
3
3
  > rimraf dist && tsc -p tsconfig.json
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,66 @@
1
1
  # @nathapp/nestjs-logging
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 86a36b8: # 🚀 v3.0.0 Monorepo Enterprise Upgrade
8
+
9
+ This release brings significant security hardening, strict typing, improved observability, and comprehensive documentation across the entire Nathapp NestJS ecosystem.
10
+
11
+ ## ⚠️ Breaking Changes
12
+
13
+ ### nestjs-common
14
+
15
+ - **Trust Proxy (Fail-Closed)**: Trust proxy is now disabled by default. Production deployments behind a reverse proxy MUST configure `trustedProxies` or use a preset (`cloudflare`, `aws-alb`, `nginx-local`, etc.). See `docs/trust-proxy-security.md`.
16
+ - **SerializableInterceptor**: Now uses pure transformation — original response objects are no longer mutated. Primitives in arrays are preserved correctly.
17
+ - **AppException**: Now generic `AppException<T>` for strict argument typing.
18
+
19
+ ### nestjs-logging
20
+
21
+ - **Redaction**: Default redact paths are now constrained to 3 levels deep (`*.*.key`).
22
+ - **Structured Logs**: Standardized field names for ELK/Loki/Datadog compatibility.
23
+ - **Graceful Drain**: Logger now implements `OnModuleDestroy` to flush pending writes on shutdown.
24
+
25
+ ### nestjs-typeorm
26
+
27
+ - **Connection Validation**: `TypeOrmExModule.forRoot()` now throws `"Connection Not Supported"` when no valid connection type is provided (previously defaulted silently to MySQL).
28
+
29
+ ## 🔒 Security
30
+
31
+ - **nestjs-common**: Trust proxy fail-closed default prevents IP spoofing when misconfigured. Comprehensive security documentation with provider presets.
32
+ - **nestjs-storage**: GDrive refreshToken security best practices documented. Provider capability matrix added.
33
+ - **nestjs-throttler**: Documented that `getTracker()` executes synchronously — no async TOCTOU race condition in rate limiting.
34
+ - **nestjs-typeorm**: Stored procedure name validation with whitelist pattern (`/^[a-zA-Z_][a-zA-Z0-9_.]*$/`) prevents SQL injection.
35
+ - **nestjs-cache**: Tag registry now receives TTL for proper expiration of tag-to-key mappings.
36
+ - **nestjs-microservices**: Fixed gRPC Bearer token extraction whitespace bug. Full test coverage for all guards.
37
+ - **nestjs-auth-2fa**: Timing-safe TOTP verification prevents timing attacks.
38
+
39
+ ## ✨ Features & Improvements
40
+
41
+ - **nestjs-storage**: Added native support for **Azure Blob Storage** and **Google Cloud Storage**. Provider capability matrix documents supported methods per provider.
42
+ - **nestjs-microservices**: Full guard coverage (100%), Service Identity JWT + HMAC authentication, `ServicePermissionRegistry` for fine-grained access control.
43
+ - **nestjs-typeorm**: Automatic mapping of database errors to `AppException` via `TypeOrmExceptionFilter`.
44
+ - **nestjs-auth-2fa**: `BaseTwoFactorGuard` with flexible policy engine. DI-aware provider factory with comprehensive architectural documentation.
45
+ - **nestjs-cache**: Deep-cloning of cached objects to prevent cross-request state leakage. Touch fallback avoided for distributed strategies (race condition prevention).
46
+ - **nestjs-queue**: Race-condition fixes in BullMQ/RabbitMQ batch accumulators.
47
+ - **nestjs-prisma**: `PrismaExceptionFilter` and transaction helper. Parallel query execution validated.
48
+ - **nestjs-auth**: Comprehensive JSDoc on all public APIs. All TODO comments resolved.
49
+ - **nestjs-common**: `ConfigurableModuleBuilder` with `externallyConfigured()` support.
50
+ - **Global**: 2,500+ tests across all 13 packages. Comprehensive JSDoc for all public APIs.
51
+
52
+ ## 📚 Documentation
53
+
54
+ - `nestjs-common/docs/trust-proxy-security.md` — IP spoofing risks, preset configurations, verification steps
55
+ - `nestjs-storage/docs/gdrive-security.md` — refreshToken security best practices
56
+ - `nestjs-storage/docs/provider-capabilities.md` — method support matrix per provider
57
+ - All packages: JSDoc on public APIs, MIGRATION.md guides where applicable
58
+
59
+ ### Patch Changes
60
+
61
+ - Updated dependencies [86a36b8]
62
+ - @nathapp/nestjs-common@3.0.0
63
+
3
64
  ## 3.0.0-rc.0
4
65
 
5
66
  ### Major Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nathapp/nestjs-logging",
3
- "version": "3.0.0-rc.4",
3
+ "version": "3.0.0",
4
4
  "description": "nestjs-logging",
5
5
  "scripts": {
6
6
  "clean": "rimraf dist/ .turbo/",
@@ -28,7 +28,7 @@
28
28
  "winston-loki": "^6.1.3"
29
29
  },
30
30
  "peerDependencies": {
31
- "@nathapp/nestjs-common": "^3.0.0-rc.4",
31
+ "@nathapp/nestjs-common": "^3.0.0",
32
32
  "fast-redact": "^3.0.0",
33
33
  "pino": "^7.5.0 || ^8.0.0 || ^9.0.0",
34
34
  "rotating-file-stream": "^3.0.0",
@@ -55,7 +55,7 @@
55
55
  "lib": "lib"
56
56
  },
57
57
  "dependencies": {
58
- "@nathapp/nestjs-common": "^3.0.0-rc.4",
58
+ "@nathapp/nestjs-common": "^3.0.0",
59
59
  "fast-redact": "^3.0.0"
60
60
  }
61
61
  }