Originally created by: dependabot[bot]
Bumps @nestjs/platform-express from 10.4.22 to 12.0.1.
Sourced from @βnestjs/platform-express's releases.
v12.0.0
NestJS v12.0.0
NestJS 12 is centered around ESM-ready packages, first-class Standard Schema support for validation and serialization, a rebuilt CLI, and native observability through the new
@nestjs/observeSDK.Existing CommonJS applications keep working β migrating your own code to ESM is entirely optional.
π Full migration guide
Upgrading
Upgrade the CLI first, since the upgrade command ships with it:
npm i -g @nestjs/cli@latestThen, from the root of your project:
nest upgrade
nest upgrademoves every@nestjs/*package to its v12-compatible major at once and applies the mechanical parts of the migration for you βnest-cli.jsonwebpack options, the GraphQLplaygroundβgraphiqlrename and subscriptions transport swap, the NATS package replacement,@nestjs/configvalidation options, Jest and Joi bumps β then prints a report of everything it changed and everything you still need to review by hand. Run it with--dry-runfirst to see that report without touching your files.It deliberately does not migrate your project to ESM, Vitest, or oxlint. Those are the defaults for newly generated projects; existing projects adopt them on their own schedule.
Node.js: v12 requires Node.js v20.19+ or v22.12+. Both
require(esm)and the ESM packages depend on it; the upgrade command refuses to run on older releases (including the 21.x line). The latest active LTS is recommended.
Highlights
ESM packages
All core Nest packages now ship as ESM. Thanks to
require(esm)in modern Node.js, most existing CommonJS applications continue to work without a rewrite. Review custom bootstrapping scripts, build tooling, and test runners if they assume CommonJS-only packages.
nest newnow asks whether to scaffold a CommonJS or an ESM project.Standard Schema validation
Route parameter decorators β
@Body(),@Query(),@Param(),@RawBody()β accept a newschemaoption, designed for Standard Schema compatible libraries such as Zod, Valibot, and ArkType:@Post() create(@Body({ schema: createUserSchema }) body: CreateUserDto) { return this.usersService.create(body); } </tr></table>
... (truncated)
4c751c5 chore(release): publish v12.0.1 release3c25112 chore: update peer deps6494a6c chore(release): publish v12.0.0 releasee03cf5c fix(express,fastify): apply falsy status codes in reply()edb0034 Merge branch 'master' into v12.0.04535f43 chore(release): publish v11.2.1 releasee255755 chore: resolve conflicts, minor fixes5d1b19b Merge branch 'master' into v12.0.0f2a7e4b chore(release): publish v11.2.0 release03587a1 chore(release): publish v11.1.29 release