@bymax-one/nest-logger 1.0.2 → 1.0.3

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.
package/CHANGELOG.md CHANGED
@@ -11,6 +11,24 @@ heading here.
11
11
 
12
12
  ## [Unreleased]
13
13
 
14
+ ## [1.0.3] - 2026-07-29
15
+
16
+ ### Fixed
17
+
18
+ - **Declared `@types/express` as an optional peer dependency.** The published
19
+ declarations reference `Request` / `Response` / `NextFunction` from `express`
20
+ (the HTTP interceptor, the exception filter and the request-id middleware all
21
+ type their signatures with them), but the requirement was undeclared. A
22
+ consumer compiling with `skipLibCheck: false` and no express types installed
23
+ hit `error TS2307: Cannot find module 'express'` from inside
24
+ `dist/server/index.d.ts` with nothing in `package.json` pointing at the cause.
25
+ Present since 1.0.0 — the imports are `import type` only, so runtime was never
26
+ affected and no express code is bundled.
27
+
28
+ It is marked optional because nothing in the library needs express at runtime:
29
+ a consumer on a non-express adapter (Fastify) can ignore it, as can anyone
30
+ keeping `skipLibCheck: true` — the default the Nest CLI scaffolds.
31
+
14
32
  ## [1.0.2] - 2026-07-29
15
33
 
16
34
  ### Fixed
@@ -130,7 +148,9 @@ published `dist/` is identical — no runtime behaviour changes for consumers.
130
148
  - Professional CI suite: `ci.yml`, `bench.yml`, `codeql.yml`, `scorecard.yml`,
131
149
  `release.yml`, Dependabot, and issue templates
132
150
 
133
- [Unreleased]: https://github.com/bymaxone/nest-logger/compare/v1.0.1...HEAD
151
+ [Unreleased]: https://github.com/bymaxone/nest-logger/compare/v1.0.3...HEAD
152
+ [1.0.3]: https://github.com/bymaxone/nest-logger/compare/v1.0.2...v1.0.3
153
+ [1.0.2]: https://github.com/bymaxone/nest-logger/compare/v1.0.1...v1.0.2
134
154
  [1.0.1]: https://github.com/bymaxone/nest-logger/compare/v1.0.0...v1.0.1
135
155
  [1.0.0]: https://github.com/bymaxone/nest-logger/compare/v0.1.0...v1.0.0
136
156
  [0.1.0]: https://github.com/bymaxone/nest-logger/releases/tag/v0.1.0
package/README.md CHANGED
@@ -143,11 +143,17 @@ pnpm add -D pino-pretty
143
143
 
144
144
  # Optional — OpenTelemetry trace correlation
145
145
  pnpm add @opentelemetry/api @opentelemetry/sdk-node
146
+
147
+ # Optional — express types, only if you compile with `skipLibCheck: false`
148
+ pnpm add -D @types/express
146
149
  ```
147
150
 
148
151
  > [!NOTE]
149
152
  > `@opentelemetry/api` is resolved lazily when the Pino instance is built. When it is absent the trace mixin silently steps aside — the logger never fails to start, and never warns, over an optional peer.
150
153
 
154
+ > [!NOTE]
155
+ > `@types/express` is an **optional type-only peer**. The HTTP interceptor, the exception filter and the request-id middleware type their signatures with express's `Request` / `Response` / `NextFunction`, so the published declarations import them. Nothing needs express at runtime — no express code is bundled. You only need the types installed if you compile with `skipLibCheck: false`; with the Nest CLI default (`skipLibCheck: true`), or on a non-express adapter, you can ignore it.
156
+
151
157
  ### 2. Register the module
152
158
 
153
159
  ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bymax-one/nest-logger",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Structured JSON logging for NestJS based on Pino 10, with optional OpenTelemetry correlation.",
5
5
  "author": "Bymax One <support@bymax.one>",
6
6
  "license": "MIT",
@@ -67,16 +67,20 @@
67
67
  "@nestjs/common": "^11.0.0",
68
68
  "@nestjs/core": "^11.0.0",
69
69
  "@opentelemetry/api": "^1.9.0",
70
+ "@types/express": "^4.17.21 || ^5.0.0",
70
71
  "pino": "^10.0.0",
71
72
  "pino-pretty": "^13.0.0",
72
73
  "reflect-metadata": "^0.2.0",
73
74
  "rxjs": "^7.8.0"
74
75
  },
75
76
  "peerDependenciesMeta": {
76
- "pino-pretty": {
77
+ "@opentelemetry/api": {
77
78
  "optional": true
78
79
  },
79
- "@opentelemetry/api": {
80
+ "@types/express": {
81
+ "optional": true
82
+ },
83
+ "pino-pretty": {
80
84
  "optional": true
81
85
  }
82
86
  },