@bymax-one/nest-notification 1.0.6 → 1.1.0

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
@@ -5,7 +5,22 @@ All notable changes to `@bymax-one/nest-notification` will be documented in this
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [Unreleased]
8
+ ## [1.1.0] - 2026-08-11
9
+
10
+ ### Changed
11
+
12
+ - **BREAKING: `ioredis` peer dependency moved to `^6.0.0`** (was `^5.0.0`; the ranges are
13
+ disjoint, so an ioredis 5 consumer no longer satisfies the contract). This lets a consumer that
14
+ also installs `@bymax-one/nest-queue@1.2.0` (which peers `ioredis ^6.0.0`) resolve a single
15
+ ioredis version instead of two. `RedisOtpStorage` never imports `ioredis`: it depends on the
16
+ locally declared structural `RedisLike` surface, so no runtime path changed. ioredis 6 keeps
17
+ `replyMapping: "legacy"` by default, so the reply shapes the Lua/TTL paths rely on are
18
+ unchanged. **Apply to a derived backend:** none — this is a library peer range; a consumer on
19
+ ioredis 5 must move to ioredis 6 to satisfy the new peer.
20
+ - **Stryker mutation gate raised to 100%.** `thresholds.break`, `thresholds.high`, and
21
+ `thresholds.low` in `stryker.config.json` are now all `100`, so any surviving (non-equivalent)
22
+ mutant fails the run rather than being tolerated above 95%. The score was already 100% with no
23
+ survivors; this makes the standard the gate.
9
24
 
10
25
  ## [1.0.6] - 2026-08-10
11
26
 
@@ -194,6 +209,7 @@ rejected at startup rather than failing on the first send.
194
209
  [1.0.4]: https://github.com/bymaxone/nest-notification/compare/v1.0.3...v1.0.4
195
210
  [1.0.3]: https://github.com/bymaxone/nest-notification/compare/v1.0.2...v1.0.3
196
211
  [Unreleased]: https://github.com/bymaxone/nest-notification/compare/v1.0.6...HEAD
212
+ [1.1.0]: https://github.com/bymaxone/nest-notification/compare/v1.0.6...v1.1.0
197
213
  [1.0.6]: https://github.com/bymaxone/nest-notification/compare/v1.0.5...v1.0.6
198
214
  [1.0.5]: https://github.com/bymaxone/nest-notification/compare/v1.0.4...v1.0.5
199
215
  [1.0.2]: https://github.com/bymaxone/nest-notification/compare/v1.0.1...v1.0.2
package/README.md CHANGED
@@ -634,8 +634,8 @@ 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
- - ✅ **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
- - ✅ **384 tests** — unit and end-to-end, spanning all three subpaths
637
+ - ✅ **100% mutation score** — verified with [Stryker](https://stryker-mutator.io/): every viable seeded fault killed, with **no survivors**, against a `break` threshold of 100. 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
+ - ✅ **389 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
641
641
  - ✅ **Every equivalent mutant documented** — the ones no test can kill carry an inline `// Stryker disable` with the reason, so the score is an accounting rather than a number
@@ -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 **100%** |
647
+ | Mutation | Stryker score **100%** (`break: 100`), no survivors |
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.6",
3
+ "version": "1.1.0",
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",
@@ -98,7 +98,7 @@
98
98
  "@nestjs/core": "^11.1.18",
99
99
  "reflect-metadata": "^0.2.0",
100
100
  "rxjs": "^7.8.0",
101
- "ioredis": "^5.0.0",
101
+ "ioredis": "^6.0.0",
102
102
  "resend": "^4.0.0 || ^5.0.0 || ^6.0.0",
103
103
  "@sendgrid/mail": "^8.0.0",
104
104
  "@aws-sdk/client-ses": "^3.0.0",