@lenne.tech/nest-server 11.22.0 → 11.22.1
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/.claude/rules/framework-compatibility.md +79 -0
- package/CLAUDE.md +2 -0
- package/FRAMEWORK-API.md +231 -0
- package/dist/server/modules/file/file-info.model.d.ts +1 -5
- package/dist/server/modules/user/user.model.d.ts +1 -5
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/migration-guides/11.22.0-to-11.22.1.md +105 -0
- package/package.json +18 -16
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Migration Guide: 11.22.0 → 11.22.1
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
| Category | Details |
|
|
6
|
+
|----------|---------|
|
|
7
|
+
| **Breaking Changes** | None |
|
|
8
|
+
| **New Features** | `FRAMEWORK-API.md` — auto-generated compact API reference shipped with npm package |
|
|
9
|
+
| **Bugfixes** | Security override updates (minimatch, undici, srvx, path-to-regexp) |
|
|
10
|
+
| **Dependency Updates** | NestJS 11.1.18, mongoose 9.4.1 |
|
|
11
|
+
| **Migration Effort** | ~2 minutes (optional, backward compatible) |
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Quick Migration (No Breaking Changes)
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# Update package
|
|
19
|
+
pnpm add @lenne.tech/nest-server@11.22.1
|
|
20
|
+
|
|
21
|
+
# Verify build
|
|
22
|
+
pnpm run build
|
|
23
|
+
|
|
24
|
+
# Run tests
|
|
25
|
+
pnpm test
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
No code changes required. All existing patterns continue to work.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## What's New in 11.22.1
|
|
33
|
+
|
|
34
|
+
### 1. FRAMEWORK-API.md — Auto-Generated API Reference
|
|
35
|
+
|
|
36
|
+
The npm package now ships a compact, machine-readable API reference (`FRAMEWORK-API.md`) that is
|
|
37
|
+
auto-generated from source code during `pnpm run build`. It contains:
|
|
38
|
+
|
|
39
|
+
- `CoreModule.forRoot()` overload signatures
|
|
40
|
+
- All configuration interfaces (`IServerOptions`, `IBetterAuth`, `IMultiTenancy`, etc.) with types and defaults
|
|
41
|
+
- `ServiceOptions` interface
|
|
42
|
+
- `CrudService` public method signatures
|
|
43
|
+
- Core module listing with documentation status
|
|
44
|
+
|
|
45
|
+
**For AI-assisted development:** Update your project's `CLAUDE.md` to reference this file:
|
|
46
|
+
|
|
47
|
+
```markdown
|
|
48
|
+
## Framework: @lenne.tech/nest-server
|
|
49
|
+
When working with framework features, read source and docs from:
|
|
50
|
+
node_modules/@lenne.tech/nest-server/CLAUDE.md
|
|
51
|
+
node_modules/@lenne.tech/nest-server/FRAMEWORK-API.md
|
|
52
|
+
node_modules/@lenne.tech/nest-server/src/core/modules/*/INTEGRATION-CHECKLIST.md
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
This enables AI tools to quickly understand the framework's complete API surface without
|
|
56
|
+
reading every source file individually.
|
|
57
|
+
|
|
58
|
+
### 2. Dependency Updates
|
|
59
|
+
|
|
60
|
+
| Package | From | To | Type |
|
|
61
|
+
|---------|------|----|------|
|
|
62
|
+
| `@nestjs/common` | 11.1.17 | 11.1.18 | patch |
|
|
63
|
+
| `@nestjs/core` | 11.1.17 | 11.1.18 | patch |
|
|
64
|
+
| `@nestjs/platform-express` | 11.1.17 | 11.1.18 | patch |
|
|
65
|
+
| `@nestjs/websockets` | 11.1.17 | 11.1.18 | patch |
|
|
66
|
+
| `@nestjs/testing` (dev) | 11.1.17 | 11.1.18 | patch |
|
|
67
|
+
| `mongoose` | 9.3.3 | 9.4.1 | minor |
|
|
68
|
+
|
|
69
|
+
### 3. Security Override Updates
|
|
70
|
+
|
|
71
|
+
Updated security overrides to latest patched versions:
|
|
72
|
+
|
|
73
|
+
| Override | From | To |
|
|
74
|
+
|----------|------|----|
|
|
75
|
+
| `minimatch` | 3.1.4 / 9.0.7 / 10.2.4 | 3.1.5 / 9.0.9 / 10.2.5 |
|
|
76
|
+
| `undici` | 7.24.3 | 7.24.7 |
|
|
77
|
+
| `srvx` | 0.11.13 | 0.11.15 |
|
|
78
|
+
| `path-to-regexp` | 8.4.1 | 8.4.2 |
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Compatibility Notes
|
|
83
|
+
|
|
84
|
+
| Pattern | Status |
|
|
85
|
+
|---------|--------|
|
|
86
|
+
| All existing `CoreModule.forRoot()` patterns | Works unchanged |
|
|
87
|
+
| `ICoreModuleOverrides` from 11.22.0 | Works unchanged |
|
|
88
|
+
| mongoose queries and schemas | Compatible (9.4.1 is backward compatible) |
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Troubleshooting
|
|
93
|
+
|
|
94
|
+
| Issue | Solution |
|
|
95
|
+
|-------|----------|
|
|
96
|
+
| `FRAMEWORK-API.md` not found in `node_modules` | Ensure `@lenne.tech/nest-server@11.22.1` is installed |
|
|
97
|
+
| Override conflicts after update | Run `pnpm install` to apply updated lockfile |
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## References
|
|
102
|
+
|
|
103
|
+
- [FRAMEWORK-API.md](../FRAMEWORK-API.md) — The new API reference
|
|
104
|
+
- [Framework Compatibility Rules](../.claude/rules/framework-compatibility.md) — Maintenance obligations
|
|
105
|
+
- [nest-server-starter](https://github.com/lenneTech/nest-server-starter) (reference implementation)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lenne.tech/nest-server",
|
|
3
|
-
"version": "11.22.
|
|
3
|
+
"version": "11.22.1",
|
|
4
4
|
"description": "Modern, fast, powerful Node.js web framework in TypeScript based on Nest with a GraphQL API and a connection to MongoDB (or other databases).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node",
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"homepage": "https://github.com/lenneTech/nest-server",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"scripts": {
|
|
17
|
-
"build": "rimraf dist && nest build && pnpm run build:copy-types && pnpm run build:copy-templates && pnpm run build:add-type-references",
|
|
17
|
+
"build": "rimraf dist && nest build && pnpm run build:copy-types && pnpm run build:copy-templates && pnpm run build:add-type-references && pnpm run build:framework-api",
|
|
18
|
+
"build:framework-api": "npx tsx scripts/generate-framework-api.ts",
|
|
18
19
|
"build:copy-types": "mkdir -p dist/types && cp src/types/*.d.ts dist/types/",
|
|
19
20
|
"build:copy-templates": "mkdir -p dist/core/modules/migrate/templates && cp src/core/modules/migrate/templates/migration-project.template.ts dist/core/modules/migrate/templates/",
|
|
20
21
|
"build:add-type-references": "node scripts/add-type-references.js",
|
|
@@ -78,17 +79,17 @@
|
|
|
78
79
|
"@better-auth/passkey": "1.5.5",
|
|
79
80
|
"@getbrevo/brevo": "3.0.1",
|
|
80
81
|
"@nestjs/apollo": "13.2.4",
|
|
81
|
-
"@nestjs/common": "11.1.
|
|
82
|
-
"@nestjs/core": "11.1.
|
|
82
|
+
"@nestjs/common": "11.1.18",
|
|
83
|
+
"@nestjs/core": "11.1.18",
|
|
83
84
|
"@nestjs/graphql": "13.2.4",
|
|
84
85
|
"@nestjs/jwt": "11.0.2",
|
|
85
86
|
"@nestjs/mongoose": "11.0.4",
|
|
86
87
|
"@nestjs/passport": "11.0.5",
|
|
87
|
-
"@nestjs/platform-express": "11.1.
|
|
88
|
+
"@nestjs/platform-express": "11.1.18",
|
|
88
89
|
"@nestjs/schedule": "6.1.1",
|
|
89
90
|
"@nestjs/swagger": "11.2.6",
|
|
90
91
|
"@nestjs/terminus": "11.1.1",
|
|
91
|
-
"@nestjs/websockets": "11.1.
|
|
92
|
+
"@nestjs/websockets": "11.1.18",
|
|
92
93
|
"@tus/file-store": "2.0.0",
|
|
93
94
|
"@tus/server": "2.3.0",
|
|
94
95
|
"bcrypt": "6.0.0",
|
|
@@ -108,7 +109,7 @@
|
|
|
108
109
|
"json-to-graphql-query": "2.3.0",
|
|
109
110
|
"lodash": "4.18.1",
|
|
110
111
|
"mongodb": "7.1.1",
|
|
111
|
-
"mongoose": "9.
|
|
112
|
+
"mongoose": "9.4.1",
|
|
112
113
|
"multer": "2.1.1",
|
|
113
114
|
"node-mailjet": "6.0.11",
|
|
114
115
|
"nodemailer": "8.0.4",
|
|
@@ -124,16 +125,16 @@
|
|
|
124
125
|
"@compodoc/compodoc": "1.2.1",
|
|
125
126
|
"@nestjs/cli": "11.0.17",
|
|
126
127
|
"@nestjs/schematics": "11.0.10",
|
|
127
|
-
"@nestjs/testing": "11.1.
|
|
128
|
+
"@nestjs/testing": "11.1.18",
|
|
128
129
|
"@swc/cli": "0.8.1",
|
|
129
|
-
"@swc/core": "1.15.
|
|
130
|
+
"@swc/core": "1.15.24",
|
|
130
131
|
"@types/compression": "1.8.1",
|
|
131
132
|
"@types/cookie-parser": "1.4.10",
|
|
132
133
|
"@types/ejs": "3.1.5",
|
|
133
134
|
"@types/express": "5.0.6",
|
|
134
135
|
"@types/lodash": "4.17.24",
|
|
135
136
|
"@types/multer": "2.1.0",
|
|
136
|
-
"@types/node": "25.5.
|
|
137
|
+
"@types/node": "25.5.2",
|
|
137
138
|
"@types/nodemailer": "7.0.11",
|
|
138
139
|
"@types/passport": "1.0.17",
|
|
139
140
|
"@types/supertest": "7.2.0",
|
|
@@ -170,6 +171,7 @@
|
|
|
170
171
|
"src/**/*",
|
|
171
172
|
"bin/**/*",
|
|
172
173
|
"CLAUDE.md",
|
|
174
|
+
"FRAMEWORK-API.md",
|
|
173
175
|
".claude/rules/**/*",
|
|
174
176
|
"docs/**/*",
|
|
175
177
|
"migration-guides/**/*"
|
|
@@ -180,20 +182,20 @@
|
|
|
180
182
|
"packageManager": "pnpm@10.29.2",
|
|
181
183
|
"pnpm": {
|
|
182
184
|
"overrides": {
|
|
183
|
-
"minimatch@<3.1.
|
|
184
|
-
"minimatch@>=9.0.0 <9.0.
|
|
185
|
-
"minimatch@>=10.0.0 <10.2.
|
|
185
|
+
"minimatch@<3.1.5": "3.1.5",
|
|
186
|
+
"minimatch@>=9.0.0 <9.0.9": "9.0.9",
|
|
187
|
+
"minimatch@>=10.0.0 <10.2.5": "10.2.5",
|
|
186
188
|
"rollup@>=4.0.0 <4.60.1": "4.60.1",
|
|
187
189
|
"ajv@<6.14.0": "6.14.0",
|
|
188
190
|
"ajv@>=7.0.0-alpha.0 <8.18.0": "8.18.0",
|
|
189
|
-
"undici@>=7.0.0 <7.24.
|
|
190
|
-
"srvx@<0.11.
|
|
191
|
+
"undici@>=7.0.0 <7.24.7": "7.24.7",
|
|
192
|
+
"srvx@<0.11.15": "0.11.15",
|
|
191
193
|
"handlebars@>=4.0.0 <4.7.9": "4.7.9",
|
|
192
194
|
"brace-expansion@<1.1.13": "1.1.13",
|
|
193
195
|
"brace-expansion@>=4.0.0 <5.0.5": "5.0.5",
|
|
194
196
|
"picomatch@<2.3.2": "2.3.2",
|
|
195
197
|
"picomatch@>=4.0.0 <4.0.4": "4.0.4",
|
|
196
|
-
"path-to-regexp@>=8.0.0 <8.4.
|
|
198
|
+
"path-to-regexp@>=8.0.0 <8.4.2": "8.4.2",
|
|
197
199
|
"kysely@>=0.26.0 <0.28.15": "0.28.15",
|
|
198
200
|
"lodash@>=4.0.0 <4.18.0": "4.18.1",
|
|
199
201
|
"defu@<=6.1.4": "6.1.6"
|