@bymax-one/nest-logger 1.4.18 → 1.4.19

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
@@ -2,8 +2,9 @@
2
2
 
3
3
  All notable changes to `@bymax-one/nest-logger` are documented here.
4
4
 
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
+
7
+ Versioning is **not** strict [SemVer](https://semver.org/spec/v2.0.0.html) while this API is pre-stable: breaking changes ship in minor and patch releases by explicit `@bymax-one` policy, so a version number carries no compatibility information. The **Apply to a derived backend** note, on the entries that carry one, is the compatibility contract — read it, not the number.
7
8
 
8
9
  The `release.yml` workflow extracts the section matching the pushed `vX.Y.Z` tag
9
10
  as the GitHub Release body, so each released version needs a matching `## [X.Y.Z]`
@@ -11,6 +12,16 @@ heading here.
11
12
 
12
13
  ## [Unreleased]
13
14
 
15
+ ## [1.4.19] - 2026-11-14
16
+
17
+ ### Changed
18
+
19
+ - The `REDACT_COMMON_FIELDS` JSDoc and the README's notes on `DEFAULT_REDACT_PATHS` said a removal
20
+ requires a major version, which this project's versioning does not use; they now say that a name
21
+ may be added in any release and none is removed without a recorded decision and an Apply note in
22
+ this changelog that names the field. The lists stay append-only. Documentation only: the built
23
+ JavaScript is unchanged and there is nothing for a backend to do.
24
+
14
25
  ## [1.4.18] - 2026-11-14
15
26
 
16
27
  ### Changed (Security)
@@ -2892,7 +2903,8 @@ published `dist/` is identical — no runtime behaviour changes for consumers.
2892
2903
  - Professional CI suite: `ci.yml`, `bench.yml`, `codeql.yml`, `scorecard.yml`,
2893
2904
  `release.yml`, Dependabot, and issue templates
2894
2905
 
2895
- [Unreleased]: https://github.com/bymaxone/nest-logger/compare/v1.4.18...HEAD
2906
+ [Unreleased]: https://github.com/bymaxone/nest-logger/compare/v1.4.19...HEAD
2907
+ [1.4.19]: https://github.com/bymaxone/nest-logger/compare/v1.4.18...v1.4.19
2896
2908
  [1.4.18]: https://github.com/bymaxone/nest-logger/compare/v1.4.17...v1.4.18
2897
2909
  [1.4.17]: https://github.com/bymaxone/nest-logger/compare/v1.4.16...v1.4.17
2898
2910
  [1.4.16]: https://github.com/bymaxone/nest-logger/compare/v1.4.15...v1.4.16
package/README.md CHANGED
@@ -858,7 +858,7 @@ A `LOGGER_BOOTSTRAP_WARNING` is emitted on startup so security reviews can audit
858
858
 
859
859
  ### An append-only default list
860
860
 
861
- `DEFAULT_REDACT_PATHS` is append-only by contract: a path may be added in a minor release, but removing one requires a major version. A field that silently stopped being redacted is a leak nobody would notice.
861
+ `DEFAULT_REDACT_PATHS` is append-only by contract: a path may be added in any release, and none is removed without a recorded decision and an Apply note in `CHANGELOG.md` that names the field. A field that silently stopped being redacted is a leak nobody would notice.
862
862
 
863
863
  ### Validated trace identifiers
864
864
 
@@ -928,7 +928,7 @@ Every serializer, the default `err` one and any you supply, is wrapped so a fiel
928
928
  | PCI DSS | `cardNumber`, `cardCvv`, `cvv`, `cvc`, `cardExpiry` |
929
929
  | LGPD documents | `cpf`, `cnpj`, `rg`, plus `email` as a conservative default |
930
930
  | HTTP headers | `authorization`, `cookie`, `x-api-key`, `x-auth-token`, `set-cookie` |
931
- | Redact list | `DEFAULT_REDACT_PATHS` is append-only; removal requires a major version |
931
+ | Redact list | `DEFAULT_REDACT_PATHS` is append-only; a removal needs a recorded decision and an Apply note |
932
932
  | Trace injection | `isValidTraceId` / `isValidSpanId` validate every identifier before it is written |
933
933
  | URL cardinality | UUIDs, ULIDs, nanoids and numeric IDs become `:id`; the query string is stripped |
934
934
  | Destination failure | Every `write()` is wrapped; a failure goes to `stderr` and is swallowed |
@@ -2022,9 +2022,10 @@ declare const LOG_CONTEXT_TOKEN: unique symbol;
2022
2022
  * Under the legacy `'paths'` strategy the same names are expanded to depths 1–4
2023
2023
  * by {@link depth} to build {@link DEFAULT_REDACT_PATHS}.
2024
2024
  *
2025
- * Append-only: a name may be added in a minor release; removing one requires a
2026
- * major, because a field that silently stopped being redacted is a leak no
2027
- * consumer would notice.
2025
+ * Append-only: a name may be added in any release, and none is removed without
2026
+ * a recorded decision and an Apply note in `CHANGELOG.md` that names the field,
2027
+ * because a field that silently stopped being redacted is a leak no consumer
2028
+ * would notice.
2028
2029
  */
2029
2030
  declare const REDACT_COMMON_FIELDS: readonly string[];
2030
2031
  /**
@@ -2022,9 +2022,10 @@ declare const LOG_CONTEXT_TOKEN: unique symbol;
2022
2022
  * Under the legacy `'paths'` strategy the same names are expanded to depths 1–4
2023
2023
  * by {@link depth} to build {@link DEFAULT_REDACT_PATHS}.
2024
2024
  *
2025
- * Append-only: a name may be added in a minor release; removing one requires a
2026
- * major, because a field that silently stopped being redacted is a leak no
2027
- * consumer would notice.
2025
+ * Append-only: a name may be added in any release, and none is removed without
2026
+ * a recorded decision and an Apply note in `CHANGELOG.md` that names the field,
2027
+ * because a field that silently stopped being redacted is a leak no consumer
2028
+ * would notice.
2028
2029
  */
2029
2030
  declare const REDACT_COMMON_FIELDS: readonly string[];
2030
2031
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bymax-one/nest-logger",
3
- "version": "1.4.18",
3
+ "version": "1.4.19",
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",
@@ -62,9 +62,11 @@
62
62
  "check:mutants": "node scripts/check-mutation-directives.mjs",
63
63
  "check:published": "node scripts/check-published-surface.mjs",
64
64
  "check:file-length": "node scripts/check-file-length.mjs",
65
+ "check:spec-headers": "node scripts/check-spec-headers.mjs",
66
+ "check:suppressions": "node scripts/check-suppressions-baseline.mjs",
65
67
  "clean": "rm -rf dist coverage",
66
68
  "check:socket-gate": "node scripts/check-socket-gate.mjs",
67
- "lint": "eslint src scripts test bench '*.config.ts' '*.config.mjs' '*.config.cjs' && pnpm check:socket-gate",
69
+ "lint": "eslint src scripts test bench '*.config.ts' '*.config.mjs' '*.config.cjs' && pnpm check:socket-gate && pnpm check:spec-headers && node --test scripts/check-spec-headers.test.mjs && node --test scripts/check-suppressions-baseline.test.mjs",
68
70
  "lint:fix": "eslint src scripts test bench '*.config.ts' '*.config.mjs' '*.config.cjs' --fix",
69
71
  "mutation": "stryker run",
70
72
  "mutation:full": "node -e \"require('node:fs').rmSync('reports/stryker-incremental.json',{force:true,recursive:true})\" && stryker run",