@lenne.tech/nest-server 12.6.16 → 12.6.17

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/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-25 (v12.6.16)
3
+ > Auto-generated from source code as of 2026-12-02 (v12.6.17)
4
4
  > File: `FRAMEWORK-API.md` — compact, machine-readable API surface for Claude Code
5
5
 
6
6
  ## CoreModule.forRoot()
@@ -0,0 +1,63 @@
1
+ # Migration Guide: 12.6.16 → 12.6.17
2
+
3
+ ## Overview
4
+
5
+ | Category | Details |
6
+ |---|---|
7
+ | **Breaking Changes** | None. The `mongoose` peer range starts at 9.12.2 instead of 9.12.0 (§1) |
8
+ | **New Features** | None |
9
+ | **Bugfixes** | None |
10
+ | **Security** | mongoose 9.12.2 and later clear GHSA-xfcm-rmv3-crmq (high) and GHSA-25v4-hrwm-qj9f (moderate) (§1) |
11
+ | **Migration Effort** | A project on MongoDB raises its own `mongoose` to 9.12.3 |
12
+
13
+ ## Quick Migration
14
+
15
+ ```bash
16
+ pnpm add @lenne.tech/nest-server@12.6.17
17
+ pnpm run update # nest-server-starter based projects: raises the project's mongoose to 9.12.3
18
+ pnpm audit
19
+ pnpm run build
20
+ pnpm test
21
+ ```
22
+
23
+ **Vendor mode**: run `/lt-dev:backend:update-nest-server-core` as usual, then raise the project's own `mongoose`
24
+ dependency to 9.12.3.
25
+
26
+ ## 1. Security: mongoose at least 9.12.2
27
+
28
+ **Action needed** in every project that keeps data in MongoDB. Since 12.1.0 `mongoose` is an optional peer: the
29
+ project installs it, so the project's own pin decides which version runs.
30
+
31
+ - **GHSA-xfcm-rmv3-crmq** (high, mongoose >= 9.0.0 < 9.12.2): `sanitizeProjection` can be bypassed, so a query
32
+ returns fields the schema deselects with `select: false`.
33
+ - **GHSA-25v4-hrwm-qj9f** (moderate, mongoose >= 9.0.0 < 9.12.2): `sanitizeFilter` lets MongoDB's internal top-level
34
+ query operators (such as `$_internalSchemaXor`) through.
35
+
36
+ nest-server itself sets neither `sanitizeFilter` nor `sanitizeProjection`, so its own queries are not affected. A
37
+ project is directly exposed when it switched one of the two options on (globally with
38
+ `mongoose.set()`, per schema or per query) and passes request data into a query or projection.
39
+
40
+ 12.6.17 is tested against mongoose 9.12.3 (the newest 9.12.x, with the same dependencies as 9.12.0, mongodb `~7.8`)
41
+ and declares the peer range `>=9.12.2 <10`. `pnpm run update` in a nest-server-starter based project raises the
42
+ project's pin to 9.12.3; without the starter script:
43
+
44
+ ```bash
45
+ pnpm add mongoose@9.12.3
46
+ pnpm why mongoose # 9.12.3 only
47
+ ```
48
+
49
+ A project still on 9.12.0 or 9.12.1 keeps working; pnpm reports the unmet peer range as a warning, and `pnpm audit`
50
+ reports both advisories. A project on PostgreSQL, MySQL or MariaDB alone has no mongoose installed and needs nothing.
51
+
52
+ ## Troubleshooting
53
+
54
+ | Symptom | Cause | Fix |
55
+ |---|---|---|
56
+ | `pnpm audit` reports GHSA-xfcm-rmv3-crmq or GHSA-25v4-hrwm-qj9f | the project pins mongoose 9.12.0 or 9.12.1 | `pnpm run update`, or `pnpm add mongoose@9.12.3` |
57
+ | `unmet peer mongoose@">=9.12.2 <10"` warning | same | same |
58
+
59
+ ## Module Documentation
60
+
61
+ - [GHSA-xfcm-rmv3-crmq](https://github.com/advisories/GHSA-xfcm-rmv3-crmq)
62
+ - [GHSA-25v4-hrwm-qj9f](https://github.com/advisories/GHSA-25v4-hrwm-qj9f)
63
+ - `.claude/rules/persistence.md` — MongoDB's libraries are optional peers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenne.tech/nest-server",
3
- "version": "12.6.16",
3
+ "version": "12.6.17",
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": [
@@ -169,7 +169,7 @@
169
169
  "ioredis": ">=5.0.0 <7",
170
170
  "kysely": ">=0.29.0 <0.30.0",
171
171
  "mongodb": ">=7.8.0 <8",
172
- "mongoose": ">=9.12.0 <10",
172
+ "mongoose": ">=9.12.2 <10",
173
173
  "mysql2": ">=3.24.6 <4",
174
174
  "pg": ">=8.23.0 <9",
175
175
  "typeorm": ">=1.1.0 <2"
@@ -264,7 +264,7 @@
264
264
  "ioredis": "6.0.0",
265
265
  "kysely": "0.29.8",
266
266
  "mongodb": "7.8.0",
267
- "mongoose": "9.12.0",
267
+ "mongoose": "9.12.3",
268
268
  "mysql2": "3.24.6",
269
269
  "nodemon": "3.1.14",
270
270
  "otpauth": "9.6.0",