@lenne.tech/nest-server 12.8.3 → 12.8.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.
@@ -453,13 +453,15 @@ plus one for the opposite failure, a guard that rejects a declaration which is s
453
453
  matters just as much: a check that cries wolf on correct entries is a check that gets switched off,
454
454
  which is how the hole this feature closes came about in the first place.
455
455
 
456
- **Current entries (since 2026-10-31, owner decision, DEV-3899).** `GHSA-g3hv-75wg-m249` (minimatch
457
- `< 11.0.1`) and `GHSA-3g3m-2fjr-6pw4` (glob `<= 14.0.1`), both moderate, both fixed only in a new major
458
- released 2026-10-27 that none of their consumers can take yet — five for minimatch (`@nestjs/cli` pins
459
- 10.2.6 exactly), rimraf for glob. The justification is in the comment above `ignoreGhsas`, the
460
- declarations in `unusableFixConsumers`. `tests/unit/audit-suppression-scope.spec.ts` keeps glob out of
461
- the production tree and allows minimatch there only under `@ts-morph/common` (ts-morph, the Permissions
462
- module's scanner, matching globs the developer writes) — its `prodVia` form.
456
+ **Current entry (since 2026-10-31, owner decision, DEV-3899).** `GHSA-g3hv-75wg-m249` (minimatch
457
+ `< 11.0.1`, moderate), fixed only in a new major released 2026-10-27 that its remaining consumers cannot
458
+ take yet — `@swc/cli` 0.8.2, `@ts-morph/common` 0.29.0 and nodemon 3.1.14, each on its newest release
459
+ (re-verified 2026-11-09; `@nestjs/cli` 12.0.12 and glob 14 moved to minimatch 11). The justification is in
460
+ the comment above `ignoreGhsas`, the declaration in `unusableFixConsumers`.
461
+ `tests/unit/audit-suppression-scope.spec.ts` allows minimatch in the production tree only under
462
+ `@ts-morph/common` (ts-morph, the Permissions module's scanner, matching globs the developer writes) — its
463
+ `prodVia` form. `GHSA-3g3m-2fjr-6pw4` (glob `<= 14.0.1`) was a second entry until 2026-11-09 (nest-server
464
+ 12.8.4), when rimraf 6.1.4 moved to glob 14.0.4 and no affected glob remained.
463
465
 
464
466
  **Before that, no entry from 2026-10-24.** `GHSA-vfj7-8cjw-p6xm` (braces, via nodemon / npm-watch) was
465
467
  listed from 2026-10-11 to 2026-10-24: a dev-tooling-only path of an advisory with no patched release
@@ -412,7 +412,7 @@ pnpm run check:mutations -- --id=<id> # one mutation
412
412
  pnpm run check:mutations -- --list # the registry, without running anything
413
413
  pnpm run check:mutations -- --allow-dirty # when the fix and its evidence share a working tree
414
414
  pnpm run check:mutations -- --jobs=4 # N mutations at a time (default: 2, or 4 on >=12 cores)
415
- pnpm run check:mutations -- --no-infra # only the 405 that need no MongoDB
415
+ pnpm run check:mutations -- --no-infra # only the 406 that need no MongoDB
416
416
  pnpm run check:mutations -- --since=<ref> # only mutations touching files changed since <ref>
417
417
  pnpm run check:mutations -- --shard=2/4 # this job's quarter of the selection (CI splits the full run)
418
418
  ```
@@ -432,7 +432,7 @@ when the registry, a vitest config or a setup file changed, since those can move
432
432
  commit, and in CI alongside the publish without blocking it. The price of caching is a cache that
433
433
  has to model each spec's full dependency closure correctly, and getting that wrong produces a stale
434
434
  PASS for a test that has since gone vacuous — exactly what the gate is there to prevent. Bad trade
435
- at 640 mutations.
435
+ at 641 mutations.
436
436
 
437
437
  **Decided 2026-10-03 (repo owner): keep the full run.** Measured at 128 mutations, the CI job for
438
438
  11.41.6 took **14 minutes**. The trigger to revisit is that wall time, not the mutation count —
@@ -505,7 +505,7 @@ exactly the environment where the answer matters.
505
505
 
506
506
  Worth knowing before optimising the wrong thing: the specs behind all 235 e2e mutations add up to
507
507
  **~40 seconds**. The step takes ~740s. The remaining ~700s is paying vitest's startup — process
508
- spawn, transform, module graph, mongod connect, DB create and drop — once per mutation, 640 times.
508
+ spawn, transform, module graph, mongod connect, DB create and drop — once per mutation, 641 times.
509
509
  That work is largely single-threaded I/O and barely scales with cores: the full registry measures
510
510
  **744s on a 12-core laptop and 777s on a 4-vCPU CI runner**.
511
511
 
package/FRAMEWORK-API.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lenne.tech/nest-server — Framework API Reference
2
2
 
3
- > Auto-generated from source code as of 2026-11-09 (v12.8.3)
3
+ > Auto-generated from source code as of 2026-11-09 (v12.8.5)
4
4
  > File: `FRAMEWORK-API.md` — compact, machine-readable API surface for Claude Code
5
5
 
6
6
  ## CoreModule.forRoot()
@@ -21,9 +21,10 @@ let HttpExceptionLogFilter = class HttpExceptionLogFilter {
21
21
  const ctx = host.switchToHttp();
22
22
  const res = ctx.getResponse();
23
23
  const status = exception.getStatus();
24
- res
25
- .status(status)
26
- .json(exception instanceof ServiceUnavailableException ? { ...exception }.response : { ...exception });
24
+ const body = { ...exception };
25
+ delete body.options;
26
+ delete body.cause;
27
+ res.status(status).json(exception instanceof ServiceUnavailableException ? body.response : body);
27
28
  }
28
29
  };
29
30
  HttpExceptionLogFilter = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"http-exception-log.filter.js","sourceRoot":"","sources":["../../../../src/core/common/filters/http-exception-log.filter.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAEL,KAAK,EAEL,aAAa,EACb,UAAU,EACV,MAAM,EACN,2BAA2B,GAC5B,MAAM,gBAAgB,CAAC;AASxB,MAAM,eAAe,GAAG,IAAI,MAAM,CAAC,wBAAwB,CAAC,CAAC;AAGtD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAIjC,KAAK,CAAC,SAAwB,EAAE,IAAmB;QAGjD,IAAI,SAAS,CAAC,SAAS,EAAE,KAAK,UAAU,CAAC,SAAS,EAAE,CAAC;YACnD,eAAe,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC;QACpD,CAAC;aAAM,CAAC;YACN,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACzC,CAAC;QAGD,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAkB,CAAC;QAC5C,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,OAAO,SAAS,CAAC;QACnB,CAAC;QAGD,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAChC,MAAM,GAAG,GAAG,GAAG,CAAC,WAAW,EAAY,CAAC;QACxC,MAAM,MAAM,GAAG,SAAS,CAAC,SAAS,EAAE,CAAC;QACrC,GAAG;aACA,MAAM,CAAC,MAAM,CAAC;aACd,IAAI,CAAC,SAAS,YAAY,2BAA2B,CAAC,CAAC,CAAE,EAAE,GAAG,SAAS,EAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,SAAS,EAAE,CAAC,CAAC;IACpH,CAAC;CACF,CAAA;AA3BY,sBAAsB;IADlC,KAAK,CAAC,aAAa,CAAC;GACR,sBAAsB,CA2BlC"}
1
+ {"version":3,"file":"http-exception-log.filter.js","sourceRoot":"","sources":["../../../../src/core/common/filters/http-exception-log.filter.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAEL,KAAK,EAEL,aAAa,EACb,UAAU,EACV,MAAM,EACN,2BAA2B,GAC5B,MAAM,gBAAgB,CAAC;AASxB,MAAM,eAAe,GAAG,IAAI,MAAM,CAAC,wBAAwB,CAAC,CAAC;AAGtD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAIjC,KAAK,CAAC,SAAwB,EAAE,IAAmB;QAGjD,IAAI,SAAS,CAAC,SAAS,EAAE,KAAK,UAAU,CAAC,SAAS,EAAE,CAAC;YACnD,eAAe,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC;QACpD,CAAC;aAAM,CAAC;YACN,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACzC,CAAC;QAGD,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAkB,CAAC;QAC5C,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,OAAO,SAAS,CAAC;QACnB,CAAC;QAGD,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAChC,MAAM,GAAG,GAAG,GAAG,CAAC,WAAW,EAAY,CAAC;QACxC,MAAM,MAAM,GAAG,SAAS,CAAC,SAAS,EAAE,CAAC;QAIrC,MAAM,IAAI,GAA4B,EAAE,GAAG,SAAS,EAAE,CAAC;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC;QACpB,OAAO,IAAI,CAAC,KAAK,CAAC;QAClB,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,SAAS,YAAY,2BAA2B,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACnG,CAAC;CACF,CAAA;AA/BY,sBAAsB;IADlC,KAAK,CAAC,aAAa,CAAC;GACR,sBAAsB,CA+BlC"}
@@ -93,11 +93,12 @@ overrides:
93
93
 
94
94
  [GHSA-g3hv-75wg-m249](https://github.com/advisories/GHSA-g3hv-75wg-m249) (minimatch `< 11.0.1`, moderate, DoS
95
95
  through globparts amplification) and [GHSA-3g3m-2fjr-6pw4](https://github.com/advisories/GHSA-3g3m-2fjr-6pw4)
96
- (glob `<= 14.0.1`, moderate) are fixed only in new majors that no consumer can take yet: `@nestjs/cli` 12.0.11
97
- pins minimatch 10.2.6 exactly, ts-morph 28 (`@ts-morph/common` 0.29), nodemon, `@swc/cli` and glob 13 need the 9.x /
98
- 10.x lines, rimraf 6.1.3 needs glob 13 — all on their newest release. An override across the major is no way out
99
- (minimatch 11 removed `makeRe()` and `Minimatch#regexp`). nest-server suppresses both in its own repository with
100
- `auditConfig.unusableFixConsumers`, which `check:overrides` re-tests on every run. What it found for its own tree:
96
+ (glob `<= 14.0.1`, moderate) are fixed only in new majors. Since 2026-11-09 the glob fix is reachable: rimraf 6.1.4
97
+ pulls glob 14 — raise it and the glob advisory leaves your tree. `@nestjs/cli` 12.0.12 moved to minimatch 11.
98
+ minimatch stays: ts-morph 28 (`@ts-morph/common` 0.29), nodemon and `@swc/cli` need the 9.x / 10.x lines, all on
99
+ their newest release. An override across the major is no way out
100
+ (minimatch 11 removed `makeRe()` and `Minimatch#regexp`). nest-server suppresses minimatch in its own repository with
101
+ `auditConfig.unusableFixConsumers`, which `check:overrides` re-tests on every run (glob until 12.8.4). What it found for its own tree:
101
102
  the only production path is `@lenne.tech/nest-server > ts-morph > @ts-morph/common > minimatch`, used by the
102
103
  Permissions module's scanner with globs the developer writes; every other path is dev tooling. Your project's tree
103
104
  may have other paths, so check `pnpm why minimatch --prod` and `pnpm why glob --prod` before you suppress the same
@@ -0,0 +1,109 @@
1
+ # Migration Guide: 12.8.3 → 12.8.4
2
+
3
+ ## Overview
4
+
5
+ | Category | Details |
6
+ |---|---|
7
+ | **Breaking Changes** | None for the application. The minimum versions of the optional peers rise: mongodb `>= 7.8.0`, mongoose `>= 9.12.0` (§1) |
8
+ | **New Features** | None |
9
+ | **Bugfixes** | Security: mongodb 7.8.0 closes GHSA-77w5-j825-v4qm (`timeoutMS`) and a flaw in the host-name check of SRV lookups (`mongodb+srv://`) (§1) |
10
+ | **Migration Effort** | `pnpm run update`. A project that pins mongoose / mongodb itself — vendored cores included — raises them (§1). A test setup that registers the Better-Auth resolver twice gets an error from @nestjs/graphql 14.2 (§2) |
11
+
12
+ 12.8.4 is a maintenance release: dependencies only, the framework's code is unchanged.
13
+
14
+ ## Quick Migration
15
+
16
+ ```bash
17
+ pnpm add @lenne.tech/nest-server@12.8.4
18
+ pnpm run update # nest-server-starter based projects: raises mongoose / mongodb and the NestJS pins with the framework
19
+ pnpm run build
20
+ pnpm test
21
+ ```
22
+
23
+ **Vendor mode**: run `/lt-dev:backend:update-nest-server-core` as usual, and raise mongoose / mongodb in the project's own
24
+ `package.json` (§1).
25
+
26
+ ## 1. mongoose 9.12.0 and mongodb 7.8.0 (security)
27
+
28
+ mongoose 9.12.0 moves to the mongodb driver 7.8.0. That driver closes two flaws present in every earlier 7.x:
29
+
30
+ - **GHSA-77w5-j825-v4qm / CVE-2026-119179** (high): with `timeoutMS`, a connection-pool desynchronization after an
31
+ operation timeout could hand one user's data to another. Only projects that set `timeoutMS` themselves are affected —
32
+ the framework never sets it. Since 7.8.0 `timeoutMS` is a no-op; use `serverSelectionTimeoutMS`, `socketTimeoutMS`,
33
+ `waitQueueTimeoutMS` and `maxTimeMS` instead.
34
+ - **SRV host-name verification** (mongodb `>= 3.3.3 < 7.8.0`, no GHSA): a host returned by the SRV lookup of a
35
+ `mongodb+srv://` URL was not verified properly, so whoever controlled the DNS answer could redirect the driver to a
36
+ host outside your domain. Projects with `mongodb://host1,host2` URLs are not affected.
37
+
38
+ Neither appears in `pnpm audit` — GHSA-77w5 is a repository advisory of the driver, the SRV flaw has no GHSA at all — so
39
+ the update is the only signal.
40
+
41
+ **What changed:** the optional peers now require mongodb `>= 7.8.0` and mongoose `>= 9.12.0` (before: `>= 7.7.0` /
42
+ `>= 9.11.4`). mongoose 9.11 pins the driver to `~7.7`, so raising mongodb alone leaves mongoose's own copy vulnerable —
43
+ raise both.
44
+
45
+ **What to do:** nest-server-starter based projects get both through `pnpm run update`. A project that pins mongoose and
46
+ mongodb itself — every vendor-mode project on MongoDB does — sets them to `9.12.0` / `7.8.0`:
47
+
48
+ ```bash
49
+ pnpm add mongoose@9.12.0 mongodb@7.8.0
50
+ ```
51
+
52
+ ## 2. @nestjs/graphql 14.2: a field resolved by two unrelated resolvers fails the start
53
+
54
+ 12.8.4 raises NestJS to 12.4 and `@nestjs/graphql` to 14.2. `@nestjs/graphql` 14.2 now refuses a GraphQL field that two
55
+ resolver classes resolve when neither extends the other. The symptom, at application start:
56
+
57
+ ```
58
+ "Query.betterAuthSession" is resolved by both "DefaultBetterAuthResolver.betterAuthSession" and
59
+ "BetterAuthResolver.betterAuthSession", which do not override one another, so the order in which the modules are
60
+ scanned would decide which one runs.
61
+ ```
62
+
63
+ **Where it appears:** in a test setup that imports `CoreModule.forRoot(envConfig)` (IAM-only signature, which registers
64
+ the default Better-Auth module) **and** the project's own `BetterAuthModule.forRoot(…)` with its resolver. Outside tests
65
+ the framework's duplicate-registration safety net keeps the second registration out; under vitest (`VITEST` set) that
66
+ net is off on purpose, so both resolvers reached the schema — before 14.2 one of them won silently.
67
+
68
+ **Fix — use one of the documented registration patterns:**
69
+
70
+ ```typescript
71
+ // Pattern 3: the project registers Better-Auth itself
72
+ const config = { ...envConfig, betterAuth: { ...envConfig.betterAuth, autoRegister: false } };
73
+ CoreModule.forRoot(config);
74
+ BetterAuthModule.forRoot({ config: config.betterAuth, … });
75
+
76
+ // or Pattern 2: let CoreModule register the project's classes
77
+ CoreModule.forRoot(envConfig, { betterAuth: { controller: BetterAuthController, resolver: BetterAuthResolver } });
78
+ ```
79
+
80
+ ## 3. Further updates
81
+
82
+ better-auth, `@better-auth/core` and `@better-auth/passkey` 1.7.18 (bug fixes, no advisory against 1.7.16; the peer
83
+ range `>= 1.7.16 < 1.8.0` is unchanged), `@nestjs/swagger` 12.1.1, `@nestjs/jwt` 12.0.4, `@nestjs/schedule` 12.0.3,
84
+ `@nestjs/passport` 12.0.1, `@nestjs/mongoose` 12.0.1, nodemailer 10.4.0, graphql-ws 6.4.1, ws 8.22.1 and development
85
+ tooling. Majors are left for later (graphql 17, graphql-upload 18, TypeScript 7, undici 8).
86
+
87
+ ## Compatibility Notes
88
+
89
+ | Pattern | Status |
90
+ |---|---|
91
+ | nest-server-starter based project, `pnpm run update` | Unchanged — pins follow the framework |
92
+ | Project pinning mongoose 9.11 / mongodb 7.7 itself | Peer warning; raise to 9.12.0 / 7.8.0 (§1) |
93
+ | `timeoutMS` in a connection option | Now a no-op (mongodb 7.8.0) — use the per-stage timeouts (§1) |
94
+ | Test setup with `CoreModule.forRoot(envConfig)` + `BetterAuthModule.forRoot()` | Fails at start under vitest — §2 |
95
+ | Production app with the same registration | Unchanged (the safety net registers Better-Auth once) |
96
+
97
+ ## Troubleshooting
98
+
99
+ | Symptom | Cause | Fix |
100
+ |---|---|---|
101
+ | `"Query.betterAuthSession" is resolved by both "DefaultBetterAuthResolver…" and "BetterAuthResolver…"` | Better-Auth registered twice in a test setup (§2) | `autoRegister: false`, or the `overrides` parameter of `CoreModule.forRoot()` |
102
+ | Peer warning for mongoose / mongodb | The project pins 9.11 / 7.7 | `pnpm add mongoose@9.12.0 mongodb@7.8.0` |
103
+ | Operations no longer time out after `timeoutMS` | `timeoutMS` is a no-op since mongodb 7.8.0 | `serverSelectionTimeoutMS`, `socketTimeoutMS`, `maxTimeMS` |
104
+
105
+ ## References
106
+
107
+ - `package.json` — `peerDependencies` (mongodb, mongoose)
108
+ - `src/core/modules/better-auth/CUSTOMIZATION.md` — registration patterns
109
+ - `tests/stories/better-auth-autoregister-false.e2e-spec.ts` — Pattern 3 in a test setup
@@ -0,0 +1,39 @@
1
+ # Migration Guide: 12.8.4 → 12.8.5
2
+
3
+ ## Overview
4
+
5
+ | Category | Details |
6
+ |---|---|
7
+ | **Breaking Changes** | None |
8
+ | **New Features** | None |
9
+ | **Bugfixes** | Security: error responses of `HttpExceptionLogFilter` no longer contain `options` / `cause` (§1) |
10
+ | **Migration Effort** | None |
11
+
12
+ 12.8.5 is a security patch for 12.8.4. The same fix ships in 12.6.8 (`latest-12.6`) and 11.46.1 (`latest-11`).
13
+
14
+ ## Quick Migration
15
+
16
+ ```bash
17
+ pnpm add @lenne.tech/nest-server@12.8.5
18
+ pnpm run update # nest-server-starter based projects
19
+ pnpm run build
20
+ pnpm test
21
+ ```
22
+
23
+ **Vendor mode**: run `/lt-dev:backend:update-nest-server-core` as usual.
24
+
25
+ ## 1. Error responses no longer contain `options` / `cause`
26
+
27
+ `HttpExceptionLogFilter` (registered by nest-server-starter's `main.ts` while `logExceptions` is on, its default)
28
+ answered a REST request with every field of the exception — including `options` and the `cause` the throwing code
29
+ passed (`new BadRequestException('…', { cause: dbError })`). An internal error message, a query or a connection
30
+ string could reach the client that way.
31
+
32
+ **What changed:** error responses now leave `options` and `cause` out. `response`, `status`, `message` and `name` stay
33
+ as before, so frontends that read them need no change. The cause is still logged. A test that asserted `options` or
34
+ `cause` in an error body has to drop that assertion.
35
+
36
+ ## References
37
+
38
+ - `src/core/common/filters/http-exception-log.filter.ts`
39
+ - `tests/unit/http-exception-log-filter.spec.ts`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenne.tech/nest-server",
3
- "version": "12.8.3",
3
+ "version": "12.8.5",
4
4
  "type": "module",
5
5
  "description": "Server framework in TypeScript on top of NestJS: GraphQL and REST APIs on MongoDB, PostgreSQL, MySQL or MariaDB, with authentication, field-level permissions, multi-tenancy, offline sync and an AI assistant.",
6
6
  "keywords": [
@@ -105,15 +105,15 @@
105
105
  "@as-integrations/express5": "1.1.2",
106
106
  "@getbrevo/brevo": "6.2.0",
107
107
  "@modelcontextprotocol/sdk": "1.32.2",
108
- "@nestjs/apollo": "14.1.2",
109
- "@nestjs/common": "12.3.2",
110
- "@nestjs/core": "12.3.2",
111
- "@nestjs/graphql": "14.1.2",
112
- "@nestjs/jwt": "12.0.3",
113
- "@nestjs/passport": "12.0.0",
114
- "@nestjs/platform-express": "12.3.2",
115
- "@nestjs/schedule": "12.0.2",
116
- "@nestjs/swagger": "12.1.0",
108
+ "@nestjs/apollo": "14.2.0",
109
+ "@nestjs/common": "12.4.0",
110
+ "@nestjs/core": "12.4.0",
111
+ "@nestjs/graphql": "14.2.0",
112
+ "@nestjs/jwt": "12.0.4",
113
+ "@nestjs/passport": "12.0.1",
114
+ "@nestjs/platform-express": "12.4.0",
115
+ "@nestjs/schedule": "12.0.3",
116
+ "@nestjs/swagger": "12.1.1",
117
117
  "@nestjs/terminus": "12.1.0",
118
118
  "@tus/file-store": "2.1.2",
119
119
  "@tus/server": "2.4.7",
@@ -131,23 +131,23 @@
131
131
  "graphql-query-complexity": "2.0.0",
132
132
  "graphql-subscriptions": "3.0.0",
133
133
  "graphql-upload": "17.1.0",
134
- "graphql-ws": "6.3.0",
134
+ "graphql-ws": "6.4.1",
135
135
  "jose": "6.2.15",
136
136
  "js-sha256": "1.0.0",
137
137
  "json-to-graphql-query": "2.3.0",
138
138
  "lodash": "4.18.1",
139
139
  "multer": "2.5.0",
140
140
  "node-mailjet": "6.0.11",
141
- "nodemailer": "10.3.1",
141
+ "nodemailer": "10.4.0",
142
142
  "passport": "0.7.0",
143
143
  "passport-jwt": "4.0.1",
144
144
  "reflect-metadata": "0.2.2",
145
145
  "rfdc": "1.4.1",
146
146
  "rxjs": "7.8.2",
147
- "supertest": "7.3.1",
147
+ "supertest": "7.3.2",
148
148
  "ts-morph": "28.0.0",
149
149
  "undici": "7.30.1",
150
- "ws": "8.22.0",
150
+ "ws": "8.22.1",
151
151
  "yuml-diagram": "1.2.0"
152
152
  },
153
153
  "peerDependencies": {
@@ -164,8 +164,8 @@
164
164
  "drizzle-orm": "1.0.0-rc.5",
165
165
  "ioredis": ">=5.0.0 <7",
166
166
  "kysely": ">=0.29.0 <0.30.0",
167
- "mongodb": ">=7.7.0 <8",
168
- "mongoose": ">=9.11.4 <10",
167
+ "mongodb": ">=7.8.0 <8",
168
+ "mongoose": ">=9.12.0 <10",
169
169
  "mysql2": ">=3.24.6 <4",
170
170
  "pg": ">=8.23.0 <9",
171
171
  "typeorm": ">=1.1.0 <2"
@@ -227,18 +227,18 @@
227
227
  }
228
228
  },
229
229
  "devDependencies": {
230
- "@aws-sdk/client-s3": "3.1161.0",
231
- "@aws-sdk/lib-storage": "3.1161.0",
232
- "@aws-sdk/s3-request-presigner": "3.1161.0",
233
- "@better-auth/core": "1.7.16",
234
- "@better-auth/passkey": "1.7.16",
230
+ "@aws-sdk/client-s3": "3.1164.0",
231
+ "@aws-sdk/lib-storage": "3.1164.0",
232
+ "@aws-sdk/s3-request-presigner": "3.1164.0",
233
+ "@better-auth/core": "1.7.18",
234
+ "@better-auth/passkey": "1.7.18",
235
235
  "@compodoc/compodoc": "2.0.0",
236
- "@nestjs/cli": "12.0.11",
237
- "@nestjs/mongoose": "12.0.0",
238
- "@nestjs/schematics": "12.0.12",
239
- "@nestjs/testing": "12.3.2",
236
+ "@nestjs/cli": "12.0.12",
237
+ "@nestjs/mongoose": "12.0.1",
238
+ "@nestjs/schematics": "12.0.13",
239
+ "@nestjs/testing": "12.4.0",
240
240
  "@swc/cli": "0.8.2",
241
- "@swc/core": "1.16.21",
241
+ "@swc/core": "1.16.22",
242
242
  "@tus/s3-store": "2.1.0",
243
243
  "@types/compression": "1.8.1",
244
244
  "@types/cookie-parser": "1.4.10",
@@ -250,30 +250,30 @@
250
250
  "@types/passport": "1.0.17",
251
251
  "@types/pg": "8.23.1",
252
252
  "@vitest/coverage-v8": "5.1.0",
253
- "better-auth": "1.7.16",
254
- "bullmq": "6.5.4",
253
+ "better-auth": "1.7.18",
254
+ "bullmq": "6.7.2",
255
255
  "cross-env": "10.1.0",
256
256
  "drizzle-orm": "1.0.0-rc.5",
257
257
  "ioredis": "6.0.0",
258
258
  "kysely": "0.29.8",
259
- "mongodb": "7.7.0",
260
- "mongoose": "9.11.4",
259
+ "mongodb": "7.8.0",
260
+ "mongoose": "9.12.0",
261
261
  "mysql2": "3.24.6",
262
262
  "nodemon": "3.1.14",
263
263
  "otpauth": "9.6.0",
264
- "oxfmt": "0.75.0",
265
- "oxlint": "1.90.0",
266
- "oxlint-tsgolint": "7.0.2005",
264
+ "oxfmt": "0.77.0",
265
+ "oxlint": "1.92.0",
266
+ "oxlint-tsgolint": "7.0.2006",
267
267
  "pg": "8.23.1",
268
- "playwright-core": "1.64.1",
269
- "rimraf": "6.1.3",
268
+ "playwright-core": "1.65.0",
269
+ "rimraf": "6.1.4",
270
270
  "smtp-server": "3.21.3",
271
271
  "tsx": "4.23.15",
272
272
  "tus-js-client": "4.3.1",
273
273
  "typeorm": "1.1.2",
274
274
  "typescript": "6.0.3",
275
275
  "unplugin-swc": "2.0.0",
276
- "vite": "8.3.5",
276
+ "vite": "8.3.6",
277
277
  "vitest": "5.1.0"
278
278
  },
279
279
  "main": "dist/index.js",
@@ -41,8 +41,12 @@ export class HttpExceptionLogFilter implements ExceptionFilter {
41
41
  const ctx = host.switchToHttp();
42
42
  const res = ctx.getResponse<Response>();
43
43
  const status = exception.getStatus();
44
- res
45
- .status(status)
46
- .json(exception instanceof ServiceUnavailableException ? ({ ...exception } as any).response : { ...exception });
44
+ // The exception's own fields, minus what it carries for the log: `options` and the `cause` passed to it (an
45
+ // internal error, a query, a connection string) must never reach the client. The shape the frontends read
46
+ // (response, status, message, name) is unchanged.
47
+ const body: Record<string, unknown> = { ...exception };
48
+ delete body.options;
49
+ delete body.cause;
50
+ res.status(status).json(exception instanceof ServiceUnavailableException ? body.response : body);
47
51
  }
48
52
  }
@@ -1991,7 +1991,7 @@ src/assets/templates/password-reset-de.ejs # or -en, or plain password-reset.e
1991
1991
  | --------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1992
1992
  | `name` | yes | `user.name`, falling back to the local part of the address |
1993
1993
  | `link` | yes | the ready-made reset URL |
1994
- | `appName` | yes | `emailVerification.appName`, else derived from `package.json` `name` |
1994
+ | `appName` | yes | `emailVerification.appName`, else derived from `package.json` `name` |
1995
1995
  | `logoSrc` | **no** | optional. The shipped templates render an `<img>` when it is present and the app name as text otherwise. Nothing in the framework supplies it — pass it from a subclass that overrides `sendPasswordResetEmail()`, or reference it from your own template. |
1996
1996
 
1997
1997
  > **Keep the un-suffixed `password-reset.ejs` renderable from `{ link, name }` alone.**