@lenne.tech/nest-server 12.8.3 → 12.8.4
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
|
|
457
|
-
`< 11.0.1
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
module's scanner, matching globs the developer writes) — its
|
|
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
|
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
|
+
> Auto-generated from source code as of 2026-11-09 (v12.8.4)
|
|
4
4
|
> File: `FRAMEWORK-API.md` — compact, machine-readable API surface for Claude Code
|
|
5
5
|
|
|
6
6
|
## CoreModule.forRoot()
|
|
@@ -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
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lenne.tech/nest-server",
|
|
3
|
-
"version": "12.8.
|
|
3
|
+
"version": "12.8.4",
|
|
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.
|
|
109
|
-
"@nestjs/common": "12.
|
|
110
|
-
"@nestjs/core": "12.
|
|
111
|
-
"@nestjs/graphql": "14.
|
|
112
|
-
"@nestjs/jwt": "12.0.
|
|
113
|
-
"@nestjs/passport": "12.0.
|
|
114
|
-
"@nestjs/platform-express": "12.
|
|
115
|
-
"@nestjs/schedule": "12.0.
|
|
116
|
-
"@nestjs/swagger": "12.1.
|
|
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.
|
|
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.
|
|
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.
|
|
147
|
+
"supertest": "7.3.2",
|
|
148
148
|
"ts-morph": "28.0.0",
|
|
149
149
|
"undici": "7.30.1",
|
|
150
|
-
"ws": "8.22.
|
|
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.
|
|
168
|
-
"mongoose": ">=9.
|
|
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.
|
|
231
|
-
"@aws-sdk/lib-storage": "3.
|
|
232
|
-
"@aws-sdk/s3-request-presigner": "3.
|
|
233
|
-
"@better-auth/core": "1.7.
|
|
234
|
-
"@better-auth/passkey": "1.7.
|
|
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.
|
|
237
|
-
"@nestjs/mongoose": "12.0.
|
|
238
|
-
"@nestjs/schematics": "12.0.
|
|
239
|
-
"@nestjs/testing": "12.
|
|
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.
|
|
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.
|
|
254
|
-
"bullmq": "6.
|
|
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.
|
|
260
|
-
"mongoose": "9.
|
|
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.
|
|
265
|
-
"oxlint": "1.
|
|
266
|
-
"oxlint-tsgolint": "7.0.
|
|
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.
|
|
269
|
-
"rimraf": "6.1.
|
|
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.
|
|
276
|
+
"vite": "8.3.6",
|
|
277
277
|
"vitest": "5.1.0"
|
|
278
278
|
},
|
|
279
279
|
"main": "dist/index.js",
|
|
@@ -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.**
|