@bymax-one/nest-notification 1.0.4 → 1.0.5

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
@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.0.5] - 2026-08-08
11
+
12
+ **Documentation only.** `dist/` is byte-identical to `1.0.4`; no source file changed.
13
+
14
+ ### Fixed
15
+
16
+ - **The README understated the mutation score.** The badge and
17
+ `docs/mutation_testing_results.md` both record **100%** with no survivors, measured in the
18
+ 2026-08-06 re-run — but the prose bullet beside them still said **98.17%**, and cited "857
19
+ of 873 viable seeded faults killed" from the pass before it. The badge and the report were
20
+ updated and the sentence between them was not, so the npm page has been claiming less than
21
+ the package delivers.
22
+ - The `[Unreleased]` compare link still pointed at `v1.0.3` after `1.0.4` shipped.
23
+
10
24
  ## [1.0.4] - 2026-08-06
11
25
 
12
26
  **Published-artifact change, not a behavioural one.** `dist/` differs from `1.0.3` — this
@@ -167,7 +181,8 @@ rejected at startup rather than failing on the first send.
167
181
 
168
182
  [1.0.4]: https://github.com/bymaxone/nest-notification/compare/v1.0.3...v1.0.4
169
183
  [1.0.3]: https://github.com/bymaxone/nest-notification/compare/v1.0.2...v1.0.3
170
- [Unreleased]: https://github.com/bymaxone/nest-notification/compare/v1.0.3...HEAD
184
+ [Unreleased]: https://github.com/bymaxone/nest-notification/compare/v1.0.5...HEAD
185
+ [1.0.5]: https://github.com/bymaxone/nest-notification/compare/v1.0.4...v1.0.5
171
186
  [1.0.2]: https://github.com/bymaxone/nest-notification/compare/v1.0.1...v1.0.2
172
187
  [1.0.1]: https://github.com/bymaxone/nest-notification/compare/v1.0.0...v1.0.1
173
188
  [1.0.0]: https://github.com/bymaxone/nest-notification/releases/tag/v1.0.0
package/README.md CHANGED
@@ -634,7 +634,7 @@ When integrating `@bymax-one/nest-notification` in production, verify each of th
634
634
  A one-time password is a credential, so the suite is held to a bar beyond "it runs" — every behavior is pinned so that a regression **fails a test**.
635
635
 
636
636
  - ✅ **100% line coverage** — statements, branches, functions, and lines, enforced per file as a release gate across unit + e2e
637
- - ✅ **98.17% mutation score** — verified with [Stryker](https://stryker-mutator.io/): 857 of 873 viable seeded faults killed, against a `break` threshold of 95 and driven toward 100
637
+ - ✅ **100% mutation score** — verified with [Stryker](https://stryker-mutator.io/): every viable seeded fault killed, with **no survivors**, against a `break` threshold of 95. The equivalents that no test can kill carry their reason on the line they apply to, so the number is an accounting rather than a target
638
638
  - ✅ **384 tests** — unit and end-to-end, spanning all three subpaths
639
639
  - ✅ **Invariants asserted, not assumed** — the never-log-codes rule is a test (`JSON.stringify(entry).includes(code) === false`), not a review convention
640
640
  - ✅ **Published shape verified** — `attw` resolves every entrypoint against the packed tarball, and a dogfood smoke test installs the package into a scratch consumer before any tag is cut
@@ -644,7 +644,7 @@ A one-time password is a credential, so the suite is held to a bar beyond "it ru
644
644
  | -------------- | ---------------------------------------------------------------------- |
645
645
  | Type safety | TypeScript `strict`, zero `any` |
646
646
  | Coverage | **100%** line/branch/function/statement per file (`pnpm test:cov:all`) |
647
- | Mutation | Stryker score **≥ 95%** (`break: 95`), currently **98.17%** |
647
+ | Mutation | Stryker score **≥ 95%** (`break: 95`), currently **100%** |
648
648
  | Lint | ESLint flat config + `eslint-plugin-security`, zero warnings |
649
649
  | Bundle budgets | server < 30 KB · shared < 4 KB · react < 8 KB brotli (`pnpm size`) |
650
650
  | Prisma-free | `pnpm check:no-prisma` — the library never imports `@prisma/client` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bymax-one/nest-notification",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Multi-channel notification library for NestJS — email, OTP, SMS, push — with pluggable providers and storage, multi-tenant by design, zero runtime dependencies.",
5
5
  "author": "Bymax One <support@bymax.one>",
6
6
  "license": "MIT",
@@ -69,16 +69,17 @@
69
69
  "scripts": {
70
70
  "build": "pnpm clean && tsup",
71
71
  "check:exports": "attw --pack .",
72
+ "check:mutants": "node scripts/check-mutation-directives.mjs",
72
73
  "check:no-prisma": "grep -rq '@prisma/client' src; s=$?; [ $s -eq 1 ] && exit 0; [ $s -eq 0 ] && { echo check:no-prisma: found @prisma/client import in src/; exit 1; }; echo check:no-prisma: grep failed with exit $s; exit $s",
73
74
  "check:published": "node scripts/check-published-surface.mjs",
74
75
  "clean": "rm -rf dist coverage",
75
76
  "lint": "eslint src scripts test",
76
77
  "lint:fix": "eslint src scripts test --fix",
77
78
  "mutation": "stryker run",
79
+ "mutation:full": "node -e \"require('node:fs').rmSync('reports/stryker-incremental.json',{force:true,recursive:true})\" && stryker run",
78
80
  "mutation:dry-run": "stryker run --dryRunOnly",
79
- "mutation:incremental": "stryker run --incremental",
80
81
  "prepare": "husky",
81
- "prepublishOnly": "pnpm clean && pnpm typecheck && pnpm test:types && pnpm lint && pnpm check:no-prisma && pnpm test:cov:all && pnpm build && pnpm check:published",
82
+ "prepublishOnly": "pnpm clean && pnpm typecheck && pnpm test:types && pnpm lint && pnpm check:mutants && pnpm check:no-prisma && pnpm test:cov:all && pnpm build && pnpm check:published",
82
83
  "release": "npm publish --provenance --access public",
83
84
  "size": "node scripts/check-size.mjs",
84
85
  "smoke": "node scripts/dogfood-smoke-test.mjs",