@dudousxd/nestjs-codegen 0.29.0 → 0.30.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 +24 -0
- package/dist/cli/main.cjs +711 -436
- package/dist/cli/main.cjs.map +1 -1
- package/dist/cli/main.js +862 -582
- package/dist/cli/main.js.map +1 -1
- package/dist/extension/index.d.cts +1 -1
- package/dist/extension/index.d.ts +1 -1
- package/dist/{index-Dc4s883u.d.cts → index-D4Blt-RT.d.cts} +1 -13
- package/dist/{index-Dc4s883u.d.ts → index-D4Blt-RT.d.ts} +1 -13
- package/dist/index.cjs +696 -434
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +854 -587
- package/dist/index.js.map +1 -1
- package/dist/nest/index.cjs +559 -284
- package/dist/nest/index.cjs.map +1 -1
- package/dist/nest/index.d.cts +1 -1
- package/dist/nest/index.d.ts +1 -1
- package/dist/nest/index.js +369 -89
- package/dist/nest/index.js.map +1 -1
- package/package.json +9 -9
- package/skills/codegen-setup/SKILL.md +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @dudousxd/nestjs-codegen
|
|
2
2
|
|
|
3
|
+
## 0.30.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#135](https://github.com/DavideCarvalho/nestjs-codegen/pull/135) [`62c0e52`](https://github.com/DavideCarvalho/nestjs-codegen/commit/62c0e528c28f141f7b60315b2615fd0ab629f0eb) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - **Breaking:** require Node.js 24 or newer (`engines.node` is now `>=24`, was `>=20`). CI tests on Node 24 and 26.
|
|
8
|
+
|
|
9
|
+
Also removed (see the Upgrading page in the docs):
|
|
10
|
+
|
|
11
|
+
- `@dudousxd/nestjs-codegen`: the deprecated top-level `scopes` config option, which had no effect, and its `ScopeConfig` type. Use `pages.scopes` for several Inertia apps, or one brace glob in `contracts.glob` for several controller sets.
|
|
12
|
+
- `@dudousxd/nestjs-codegen`: `genuiSandboxKit()` no longer throws a migration error for its pre-0.28 option names (`include`/`entry` → `components`, `css` → `styles`). TypeScript reports them as unknown options.
|
|
13
|
+
- `@dudousxd/nestjs-client`: `TransportResponse.headers` is required. A custom `Transport` returns every response header, with lower-cased keys (`Object.fromEntries(res.headers)` with `fetch`).
|
|
14
|
+
|
|
15
|
+
Fixed: `watch()` (and so `NestjsCodegenModule`'s dev watcher) resolves only after its file watchers finish their initial scan, so an edit made right after it starts is no longer missed.
|
|
16
|
+
|
|
17
|
+
- The CLI/module drift guard no longer fires against a manifest written by another lib version: an upgrade that drops a config key (like `scopes`) is not drift.
|
|
18
|
+
|
|
19
|
+
## 0.29.1
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [#117](https://github.com/DavideCarvalho/nestjs-codegen/pull/117) [`a58eb46`](https://github.com/DavideCarvalho/nestjs-codegen/commit/a58eb46e3faf63c5715af210fce334ddf3f9b5d2) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Watch mode no longer rebuilds its type-checked programs on every change. Schema inference's program and the program that types factory-built (mixin) controllers are kept across passes and re-read only the files that changed on disk, so a pass in a large app drops from seconds to a few hundred milliseconds; they are still built again when a watched file is created or deleted. A pass also notices edits to files outside the watched globs that discovery had loaded (a schema module a controller imports), which it used to serve stale until that file was named by a watch event. An import of a module that did not exist yet is also picked up once the module appears, even outside the watched globs.
|
|
24
|
+
|
|
25
|
+
A generate pass now reads each input file once: the skip-when-unchanged hash, the hash recorded after extensions report their dependencies, and page discovery share one read, done in parallel. Shared-props discovery reuses the parsed tsconfig while it is unchanged instead of re-parsing it, and walking the project tree, on every pass. Generated output is unchanged.
|
|
26
|
+
|
|
3
27
|
## 0.29.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|