@bymax-one/nest-logger 1.0.5 → 1.0.6
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 +19 -0
- package/README.md +5 -1
- package/package.json +26 -23
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,24 @@ heading here.
|
|
|
11
11
|
|
|
12
12
|
## [Unreleased]
|
|
13
13
|
|
|
14
|
+
## [1.0.6] - 2026-08-06
|
|
15
|
+
|
|
16
|
+
**Tests and documentation only.** `dist/` is byte-identical to `1.0.5`.
|
|
17
|
+
|
|
18
|
+
An earlier revision of this branch added inline `// Stryker disable` comments and reported a
|
|
19
|
+
99.73% score off the back of them. That is against this package's own plan, which forbids them
|
|
20
|
+
because they ship in the unminified bundle and eat the server subpath's brotli budget. They are
|
|
21
|
+
gone; the score is the measured 97.42% with the equivalents documented instead.
|
|
22
|
+
|
|
23
|
+
### Tests
|
|
24
|
+
|
|
25
|
+
- `detectOtelTraceApi` resolves `@opentelemetry/api`, and the specifier was pinned by nothing —
|
|
26
|
+
the spec mocks `createRequire`, so the resolver ignored what it was handed. Renaming the module
|
|
27
|
+
would have kept the suite green while every deployment silently lost trace correlation, because
|
|
28
|
+
a failed resolve is swallowed by design.
|
|
29
|
+
- `useNestLogger` gained a feature-module case, the shape where the provider sits outside the host
|
|
30
|
+
module's own injector.
|
|
31
|
+
|
|
14
32
|
## [1.0.5] - 2026-07-30
|
|
15
33
|
|
|
16
34
|
### Security
|
|
@@ -253,6 +271,7 @@ published `dist/` is identical — no runtime behaviour changes for consumers.
|
|
|
253
271
|
`release.yml`, Dependabot, and issue templates
|
|
254
272
|
|
|
255
273
|
[Unreleased]: https://github.com/bymaxone/nest-logger/compare/v1.0.5...HEAD
|
|
274
|
+
[1.0.6]: https://github.com/bymaxone/nest-logger/compare/v1.0.5...v1.0.6
|
|
256
275
|
[1.0.5]: https://github.com/bymaxone/nest-logger/compare/v1.0.4...v1.0.5
|
|
257
276
|
[1.0.4]: https://github.com/bymaxone/nest-logger/compare/v1.0.3...v1.0.4
|
|
258
277
|
[1.0.3]: https://github.com/bymaxone/nest-logger/compare/v1.0.2...v1.0.3
|
package/README.md
CHANGED
|
@@ -745,7 +745,11 @@ When integrating `@bymax-one/nest-logger` in production, verify each of the foll
|
|
|
745
745
|
A logger runs on every request of every service that installs it, so the suite is held to a bar beyond "it runs" — every behavior is pinned so that a regression **fails a test**.
|
|
746
746
|
|
|
747
747
|
- ✅ **100% line coverage** — statements, branches, functions, and lines, enforced as a release gate across unit + e2e
|
|
748
|
-
- ✅ **97.42% mutation score** — verified with [Stryker](https://stryker-mutator.io/) against a
|
|
748
|
+
- ✅ **97.42% mutation score** — verified with [Stryker](https://stryker-mutator.io/) against a
|
|
749
|
+
`break` threshold of 95. The ten survivors are documented equivalents rather than coverage gaps,
|
|
750
|
+
and they stay uncounted-against rather than silenced: this package's plan forbids inline
|
|
751
|
+
`// Stryker disable` comments because they ship in the unminified bundle (see the
|
|
752
|
+
[report](./docs/mutation_testing_results.md))
|
|
749
753
|
- ✅ **Every survivor documented** — the 10 remaining mutants are equivalents, each recorded in [docs/mutation_testing_results.md](./docs/mutation_testing_results.md) rather than silenced with an inline comment, so the score is an accounting rather than a number
|
|
750
754
|
- ✅ **No real I/O in unit tests** — the Pino instance and every destination are mocked; e2e tests exercise the wired module through `@nestjs/testing` and supertest
|
|
751
755
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bymax-one/nest-logger",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
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",
|
|
@@ -53,6 +53,29 @@
|
|
|
53
53
|
]
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
|
+
"scripts": {
|
|
57
|
+
"bench": "node --expose-gc --import tsx bench/throughput.bench.ts",
|
|
58
|
+
"build": "pnpm clean && tsup",
|
|
59
|
+
"check:exports": "attw --pack .",
|
|
60
|
+
"check:published": "node scripts/check-published-surface.mjs",
|
|
61
|
+
"clean": "rm -rf dist coverage",
|
|
62
|
+
"lint": "eslint src",
|
|
63
|
+
"lint:fix": "eslint src --fix",
|
|
64
|
+
"mutation": "stryker run",
|
|
65
|
+
"mutation:dry-run": "stryker run --dryRunOnly",
|
|
66
|
+
"mutation:incremental": "stryker run --incremental",
|
|
67
|
+
"prepare": "husky",
|
|
68
|
+
"prepublishOnly": "pnpm clean && pnpm typecheck && pnpm lint && pnpm test:cov:all && pnpm build && pnpm check:published",
|
|
69
|
+
"release": "npm publish --provenance --access public",
|
|
70
|
+
"size": "node scripts/check-size.mjs",
|
|
71
|
+
"test": "jest",
|
|
72
|
+
"test:all": "pnpm test && pnpm test:e2e",
|
|
73
|
+
"test:cov": "jest --coverage",
|
|
74
|
+
"test:cov:all": "jest --config jest.coverage.config.ts --coverage",
|
|
75
|
+
"test:e2e": "jest --config jest.e2e.config.ts",
|
|
76
|
+
"test:watch": "jest --watch",
|
|
77
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.server.json"
|
|
78
|
+
},
|
|
56
79
|
"lint-staged": {
|
|
57
80
|
"*.{ts,tsx,js,mjs,cjs}": [
|
|
58
81
|
"eslint --fix",
|
|
@@ -134,32 +157,12 @@
|
|
|
134
157
|
"request-id",
|
|
135
158
|
"pii-redaction"
|
|
136
159
|
],
|
|
160
|
+
"packageManager": "pnpm@11.20.0",
|
|
137
161
|
"engines": {
|
|
138
162
|
"node": ">=24.0.0"
|
|
139
163
|
},
|
|
140
164
|
"publishConfig": {
|
|
141
165
|
"access": "public",
|
|
142
166
|
"registry": "https://registry.npmjs.org/"
|
|
143
|
-
},
|
|
144
|
-
"scripts": {
|
|
145
|
-
"bench": "node --expose-gc --import tsx bench/throughput.bench.ts",
|
|
146
|
-
"build": "pnpm clean && tsup",
|
|
147
|
-
"check:exports": "attw --pack .",
|
|
148
|
-
"check:published": "node scripts/check-published-surface.mjs",
|
|
149
|
-
"clean": "rm -rf dist coverage",
|
|
150
|
-
"lint": "eslint src",
|
|
151
|
-
"lint:fix": "eslint src --fix",
|
|
152
|
-
"mutation": "stryker run",
|
|
153
|
-
"mutation:dry-run": "stryker run --dryRunOnly",
|
|
154
|
-
"mutation:incremental": "stryker run --incremental",
|
|
155
|
-
"release": "pnpm publish --provenance",
|
|
156
|
-
"size": "node scripts/check-size.mjs",
|
|
157
|
-
"test": "jest",
|
|
158
|
-
"test:all": "pnpm test && pnpm test:e2e",
|
|
159
|
-
"test:cov": "jest --coverage",
|
|
160
|
-
"test:cov:all": "jest --config jest.coverage.config.ts --coverage",
|
|
161
|
-
"test:e2e": "jest --config jest.e2e.config.ts",
|
|
162
|
-
"test:watch": "jest --watch",
|
|
163
|
-
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.server.json"
|
|
164
167
|
}
|
|
165
|
-
}
|
|
168
|
+
}
|