
"The most significant change in NestJS 12 is the transition of every official package from CommonJS to ESM. Framework creator Kamil Myśliwiec noted that the availability of Node.js require(esm) support was 'the missing piece that made the move to ESM practical' and that without it, 'the migration wouldn't have made much sense.'"
"Alongside the ESM shift, NestJS 12 introduces Standard Schema support in all route decorators such as @Body, @Query, and @Param. These decorators will accept a new schema option compatible with the Standard Schema specification, enabling developers to use modern validation libraries like Zod, Valibot, and ArkType as direct alternatives to class-validator."
"The testing and linting defaults have also been overhauled. All NestJS repositories and sample projects have migrated from Jest to Vitest, with OXC providing TypeScript decorator support. New ESM projects will use Vitest by default, while CJS projects will continue to use Jest."
NestJS is set to release version 12.0.0 in early Q3 2026, focusing on migrating all official packages from CommonJS to ESM. This transition is facilitated by Node.js support for require(esm), minimizing friction for existing projects. The update will also include Standard Schema support in route decorators, allowing the use of modern validation libraries. Additionally, the default testing and linting tools will change, with Vitest replacing Jest and oxlint replacing ESLint, reflecting a shift towards Rust-powered JavaScript tooling.
Read at InfoQ
Unable to calculate read time
Collection
[
|
...
]