@bymax-one/nest-storage 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 CHANGED
@@ -8,6 +8,39 @@ The format follows [Keep a Changelog 1.1.0](https://keepachangelog.com/en/1.1.0/
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [1.0.6] - 2026-08-06
12
+
13
+ **Documentation and tooling, not behaviour.** `dist/` differs from `1.0.5` only in the text
14
+ of five comments; no runtime code changed.
15
+
16
+ ### Fixed
17
+
18
+ - **Five of the six suppression reasons never reached the mutation report.** Stryker captures
19
+ a directive's reason only after the colon and only to the end of that comment line. Five
20
+ directives wrapped their reason onto following `//` lines, so the report kept a truncated
21
+ half-sentence — and for the one on `storage.service.ts` it kept nothing, falling back to
22
+ `Ignored using a comment`. `docs/mutation_testing_results.md` had specified the right shape
23
+ (`<Mutator>: <reason>`) all along; the source did not follow it. Each reason is now on its
24
+ directive line.
25
+ - The README counted **five** `// Stryker disable` comments where the source carries six.
26
+
27
+ ### Security
28
+
29
+ - **`js-yaml` is patched to the fixed release** (GHSA-5p4m-2wfm-xmqj, CVSS 7.5). It reaches
30
+ this repo only through `jest` -> `babel-plugin-istanbul` -> `@istanbuljs/load-nyc-config`,
31
+ and `dependencies` is empty, so nothing here ships it and no consumer was exposed. Fixed
32
+ with a `pnpm-workspace.yaml` override to `3.15.1` / `4.3.1` — a patch bump within each
33
+ major — rather than by telling the scanner to ignore dev dependencies, which would leave it
34
+ blind after this advisory is gone. `dist/` is unaffected.
35
+
36
+ ### Added
37
+
38
+ - `check:mutants` gate (`scripts/check-mutation-directives.mjs`) — validates every
39
+ `// Stryker` comment against the parser's own regular expression, rejecting a reason
40
+ wrapped onto a second line, a reason written after `--` instead of a colon, and a mutator
41
+ name Stryker does not know, which would silence nothing. Wired into CI and
42
+ `prepublishOnly`.
43
+
11
44
  ## [1.0.5] - 2026-08-06
12
45
 
13
46
  **Published-artifact change, not a behavioural one.** `dist/` differs from `1.0.4` — this
@@ -221,6 +254,7 @@ have regressed from. They are kept because the reasoning is worth having.
221
254
  [1.0.1]: https://github.com/bymaxone/nest-storage/compare/v1.0.0...v1.0.1
222
255
  [1.0.2]: https://github.com/bymaxone/nest-storage/compare/v1.0.1...v1.0.2
223
256
  [1.0.3]: https://github.com/bymaxone/nest-storage/compare/v1.0.2...v1.0.3
224
- [1.0.5]: https://github.com/bymaxone/nest-storage/compare/v1.0.4...v1.0.5
225
257
  [1.0.4]: https://github.com/bymaxone/nest-storage/compare/v1.0.3...v1.0.4
226
- [Unreleased]: https://github.com/bymaxone/nest-storage/compare/v1.0.4...HEAD
258
+ [1.0.5]: https://github.com/bymaxone/nest-storage/compare/v1.0.4...v1.0.5
259
+ [1.0.6]: https://github.com/bymaxone/nest-storage/compare/v1.0.5...v1.0.6
260
+ [Unreleased]: https://github.com/bymaxone/nest-storage/compare/v1.0.6...HEAD
package/README.md CHANGED
@@ -838,9 +838,11 @@ place stays there — so the suite is held to a bar beyond "the tests pass".
838
838
  - ✅ **Published-artifact gates** — `check:exports` resolves the types the way each module
839
839
  system does, `check:runtime` loads every subpath from the packed tarball in ESM and
840
840
  CommonJS, and `check:published` compiles this README's snippets against `dist/`
841
- - ✅ **Every suppression is justified** — no coverage directives anywhere; the five
841
+ - ✅ **Every suppression is justified** — no coverage directives anywhere; the six
842
842
  `// Stryker disable` comments in the production source each name why the mutant they
843
- silence is provably equivalent, and the mutation report lists them
843
+ silence is provably equivalent, and `check:mutants` proves each reason is written in the
844
+ grammar Stryker parses, so the mutation report carries it in full rather than the
845
+ `Ignored using a comment` fallback
844
846
 
845
847
  ```bash
846
848
  pnpm test # unit tests (Jest)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bymax-one/nest-storage",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Provider-agnostic S3-compatible object storage for NestJS. Works with AWS S3, DigitalOcean Spaces, Cloudflare R2, Backblaze B2, MinIO, Wasabi.",
5
5
  "author": "Bymax One <support@bymax.one>",
6
6
  "license": "MIT",
@@ -46,6 +46,7 @@
46
46
  "scripts": {
47
47
  "build": "pnpm clean && tsup",
48
48
  "check:exports": "attw --pack . --profile strict",
49
+ "check:mutants": "node scripts/check-mutation-directives.mjs",
49
50
  "check:published": "node scripts/check-published-surface.mjs",
50
51
  "check:runtime": "node scripts/check-consumer-runtime.mjs",
51
52
  "clean": "rm -rf dist coverage",
@@ -54,7 +55,7 @@
54
55
  "mutation": "stryker run",
55
56
  "mutation:dry-run": "stryker run --dryRunOnly",
56
57
  "mutation:incremental": "stryker run --incremental",
57
- "prepublishOnly": "pnpm clean && pnpm typecheck && pnpm lint && pnpm test:cov:all && pnpm build && pnpm size && pnpm check:published",
58
+ "prepublishOnly": "pnpm clean && pnpm typecheck && pnpm lint && pnpm check:mutants && pnpm test:cov:all && pnpm build && pnpm size && pnpm check:published",
58
59
  "release": "npm publish --provenance --access public",
59
60
  "size": "node scripts/check-size.mjs",
60
61
  "test": "jest",