Upgrading
What to change in your project when you move to a new release of nestjs-codegen.
Node.js 24, and removed options
@dudousxd/nestjs-codegen 0.30, @dudousxd/nestjs-client 0.10 and the adapters released with them
(-zod, -valibot, -arktype, -tanstack) require Node.js 24 or newer. Upgrade the Node.js
version your app runs and builds on first.
Then check your config and custom transports:
- Top-level
scopesis gone (it never had an effect), and so is theScopeConfigtype. Delete it fromnestjs-codegen.config.ts. For several Inertia apps usepages.scopes. For several controller sets, use one brace glob incontracts.glob, e.g.'src/{public,admin}/**/*.controller.ts'. genuiSandboxKit()no longer checks for its pre-0.28 option names.include/entryarecomponentsandcssisstyles. An old name is now just an unknown option, which TypeScript reports.- A custom
Transportmust returnheaders.TransportResponse.headers(every response header, lower-cased keys) is required now. Withfetch, returnObject.fromEntries(res.headers).axiosTransport()already does this.