@bymax-one/nest-auth 1.3.2 → 1.4.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 +25 -1
- package/README.md +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,30 @@ All notable changes to `@bymax-one/nest-auth` will be documented in this file.
|
|
|
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
|
-
## [
|
|
8
|
+
## [1.4.0] - 2026-08-11
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **BREAKING: `ioredis` peer range raised to `^6.0.0`** ([`package.json`](package.json); the `^5`
|
|
13
|
+
and `^6` ranges are disjoint, so an existing ioredis 5 consumer no longer satisfies the peer
|
|
14
|
+
contract). A host that also
|
|
15
|
+
runs `@bymax-one/nest-queue` (which peers `ioredis ^6.0.0`) can now resolve a single copy of
|
|
16
|
+
`ioredis` across the workspace, which is what lets a queue `Redis` and the client injected here
|
|
17
|
+
as `BYMAX_AUTH_REDIS_CLIENT` be the same instance and typecheck as such. The bump is a peer
|
|
18
|
+
contract only: this package imports `ioredis` for its `Redis` type alone — it never constructs a
|
|
19
|
+
client — so no runtime path changed. ioredis 6 defaults to the RESP3 protocol but keeps its
|
|
20
|
+
legacy reply mapping, so every reply shape this library reads is byte-for-byte what it read under
|
|
21
|
+
ioredis 5; the wire contract with `rust-auth` is untouched. **Apply to a derived backend:** raise the
|
|
22
|
+
`ioredis` version your app installs to `^6.0.0` so it satisfies the new peer range.
|
|
23
|
+
|
|
24
|
+
- **Mutation gate raised to a perfect score** ([`stryker.config.json`](stryker.config.json)). The
|
|
25
|
+
`break`, `high` and `low` thresholds are now 100, and the suite meets it: every mutant in
|
|
26
|
+
`src/` is killed or a documented equivalent, with no survivors. Six equivalent mutants in
|
|
27
|
+
`otp.service.ts` — the empty-code guard and the EXPIRED/MAX arms of `verify`, each of which
|
|
28
|
+
answers the same `OTP_INVALID` after the same padding as the constant-time comparison that
|
|
29
|
+
follows — are marked inline with their reason rather than being removed, keeping the verifier's
|
|
30
|
+
defense in depth and anti-enumeration structure intact. **Apply to a derived backend:** if your
|
|
31
|
+
backend runs the shared mutation gate, expect it to require 100 rather than 95.
|
|
9
32
|
|
|
10
33
|
## [1.3.2] - 2026-08-10
|
|
11
34
|
|
|
@@ -1320,6 +1343,7 @@ ever installable.
|
|
|
1320
1343
|
- Phase 5 tests cover: platform login with MFA path and brute-force lockout, `JwtPlatformGuard` cross-context rejection, `PlatformRolesGuard` hierarchy enforcement, OAuth CSRF state lifecycle, `onOAuthLogin` hook resolution strategies, and invitation role-authorization + acceptance single-use enforcement
|
|
1321
1344
|
|
|
1322
1345
|
[Unreleased]: https://github.com/bymaxone/nest-auth/compare/v1.3.2...HEAD
|
|
1346
|
+
[1.4.0]: https://github.com/bymaxone/nest-auth/compare/v1.3.2...v1.4.0
|
|
1323
1347
|
[1.3.2]: https://github.com/bymaxone/nest-auth/compare/v1.3.1...v1.3.2
|
|
1324
1348
|
[1.3.1]: https://github.com/bymaxone/nest-auth/compare/v1.3.0...v1.3.1
|
|
1325
1349
|
[1.3.0]: https://github.com/bymaxone/nest-auth/compare/v1.2.0...v1.3.0
|
package/README.md
CHANGED
|
@@ -958,7 +958,7 @@ When integrating `@bymax-one/nest-auth` in production, verify each of the follow
|
|
|
958
958
|
Authentication is critical infrastructure, so the suite is held to a bar beyond "it runs" — every behavior is pinned so that a regression **fails a test**.
|
|
959
959
|
|
|
960
960
|
- ✅ **100% line coverage** — statements, branches, functions, and lines, enforced as a release gate across unit + e2e
|
|
961
|
-
- ✅ **100% mutation score** — verified with [Stryker](https://stryker-mutator.io/): 4,870 seeded faults detected (4,849 killed, 21 timed out), **no survivors and nothing left uncovered**, against a `break` threshold of
|
|
961
|
+
- ✅ **100% mutation score** — verified with [Stryker](https://stryker-mutator.io/): 4,870 seeded faults detected (4,849 killed, 21 timed out), **no survivors and nothing left uncovered**, against a `break` threshold of 100 ([measured cold on 2026-08-08](./docs/mutation_testing_results.md#re-measured-cold--2026-08-08))
|
|
962
962
|
- ✅ **3,547 tests** — 3,420 unit and 127 end-to-end, spanning all five subpaths
|
|
963
963
|
- ✅ **Every equivalent mutant documented** — the 350 mutants that no test can kill (a redundant guard, a dependency array of stable references) each carry an inline `// Stryker disable` with the reason, so the score is an accounting rather than a number
|
|
964
964
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bymax-one/nest-auth",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Full-stack authentication and authorization package for NestJS, React and Next.js — JWT, MFA, OAuth, sessions, multi-tenant SaaS ready",
|
|
5
5
|
"author": "Bymax One <support@bymax.one>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"class-transformer": "^0.5.0",
|
|
118
118
|
"class-validator": "^0.14.0 || ^0.15.0",
|
|
119
119
|
"express": "^5.0.0",
|
|
120
|
-
"ioredis": "^
|
|
120
|
+
"ioredis": "^6.0.0",
|
|
121
121
|
"next": "^16.2.11",
|
|
122
122
|
"react": "^19.0.0",
|
|
123
123
|
"reflect-metadata": "^0.2.0",
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
"eslint-plugin-security": "^4.0.0",
|
|
203
203
|
"globals": "^17.6.0",
|
|
204
204
|
"husky": "^9.1.7",
|
|
205
|
-
"ioredis": "^
|
|
205
|
+
"ioredis": "^6.0.0",
|
|
206
206
|
"ioredis-mock": "^8.13.1",
|
|
207
207
|
"jest": "^30.4.2",
|
|
208
208
|
"jest-environment-jsdom": "^30.4.1",
|