@bymax-one/nest-logger 1.4.14 → 1.4.16

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,42 @@ heading here.
11
11
 
12
12
  ## [Unreleased]
13
13
 
14
+ ## [1.4.16] - 2026-11-12
15
+
16
+ ### Documentation
17
+
18
+ - The README is about a third shorter. Reference material that sat inside the Quick Start (HTTP logging, OpenTelemetry, resource identity, event names, error fields, context propagation) now has its own sections after Configuration, the Quick Start keeps install, register, async and inject, and release history and process notes are gone.
19
+ - The Performance section no longer quotes figures for bare Pino from Pino's own benchmark (its Node version did not match the specification's). It reports this repository's benchmark of the shipped configuration: about 274,000 entries/s, 0.345× of the bare wrapper.
20
+ - Removed the mention of a future `@bymax-one/nest-audit`, a package that does not exist.
21
+ - The README keeps the house section order: a compact Features list after Overview, and a Security Table and Tech Stack between Security Model and Testing & Quality.
22
+ - Two precision notes on the 1.4.15 entry below. Both concern a host on `redactStrategy: 'paths'` with `errorOwnFields: 'safe'`: there the redaction walk already converted a nested `Error` to data, so it was never written as `{}`, and it did not run the `Error`'s `toJSON`, so the output of that method, which is what the leak above describes, was not what reached the log. With the default `errorOwnFields: 'all'` the entry stands as written.
23
+ - `dist/` is unchanged.
24
+
25
+ ## [1.4.15] - 2026-11-10
26
+
27
+ ### Fixed
28
+
29
+ - **Under `redactStrategy: 'paths'`, an `Error` in the record is no longer written as `{}`.** A
30
+ nested `Error`, or one held as metadata, lost its `type`, `message`, `stack` and `cause` and kept
31
+ only its enumerable own fields, because those parts are not enumerable and the record reached
32
+ Pino as an `Error` instance. It is now written the way the default `'names'` strategy writes it:
33
+ `type`, `message`, `stack`, its own fields and its chain of `cause`s, with your `redactPaths`
34
+ applied on top. The default names are censored in its own fields and its causes at any depth,
35
+ past the four-level ceiling of `fast-redact`; data that is not an `Error` is still matched only
36
+ by your configured paths, which is what the strategy is for. Found by measuring 1.4.13: a nested
37
+ `Error` was `{}` even with no `redactPaths` at all.
38
+ **This also closes a leak.** An `Error` that writes itself through `toJSON`, as an HTTP client's
39
+ error does, was written with the output of that method, and a secret in it deeper than
40
+ `fast-redact` reaches (an `authorization` header under `config.headers`) was
41
+ written in clear under `redactStrategy: 'paths'`. Measured on 1.4.14 with
42
+ `{ top: <Error whose toJSON returns { config: { a: { b: { c: { d: { headers: { authorization } } } } } } }> }`:
43
+ the value appeared as written; it is now `[REDACTED]`.
44
+ **Apply to a derived backend:** a host on `redactStrategy: 'paths'` now sees `type`, `message`,
45
+ `stack` and `cause` where it saw `{}`, so a query or alert that matched the empty object matches
46
+ the fields instead. Hosts on the default strategy are unaffected. A host on `'paths'` that logged
47
+ an `Error` with a `toJSON` carrying credentials should treat what reached its log store as
48
+ exposed and rotate them.
49
+
14
50
  ## [1.4.14] - 2026-11-09
15
51
 
16
52
  ### Added
@@ -2688,7 +2724,9 @@ published `dist/` is identical — no runtime behaviour changes for consumers.
2688
2724
  - Professional CI suite: `ci.yml`, `bench.yml`, `codeql.yml`, `scorecard.yml`,
2689
2725
  `release.yml`, Dependabot, and issue templates
2690
2726
 
2691
- [Unreleased]: https://github.com/bymaxone/nest-logger/compare/v1.4.14...HEAD
2727
+ [Unreleased]: https://github.com/bymaxone/nest-logger/compare/v1.4.16...HEAD
2728
+ [1.4.16]: https://github.com/bymaxone/nest-logger/compare/v1.4.15...v1.4.16
2729
+ [1.4.15]: https://github.com/bymaxone/nest-logger/compare/v1.4.14...v1.4.15
2692
2730
  [1.4.14]: https://github.com/bymaxone/nest-logger/compare/v1.4.13...v1.4.14
2693
2731
  [1.4.13]: https://github.com/bymaxone/nest-logger/compare/v1.4.12...v1.4.13
2694
2732
  [1.4.12]: https://github.com/bymaxone/nest-logger/compare/v1.4.11...v1.4.12