release: v12.0.0 major release (approx. Q3 2026)#16391
release: v12.0.0 major release (approx. Q3 2026)#16391kamilmysliwiec wants to merge 187 commits into
Conversation
feat: standard schema validation pipe, and standard serializer, introduce internal export subpath
refactor: minor codebase tweaks
sample: migrate all samples to esm and vitest
refactor: migrate from mocha, chai, sinon to vitest
|
what minimal Node.js version is planned to be supported in NestJS v12? |
…lter fix(websockets): send WsException errors to native WebSocket clients
|
need bun and biome selection option from cli when creating new nestjs project. |
|
What would be the support for TS 6+7 given the release? https://devblogs.microsoft.com/typescript/announcing-typescript-7-0-beta/ |
|
@pradelgorithm AFAIK both v6 and v7 already work with the current version of Nest |
Maybe, but It would be great if this could be widened in v11. |
|
@SchroederSteffen @nestjs/cli always loads the local typescript package (for building), if exists. Just install v6 in your project and the CLI should pick it up automatically |
Correct, but then we end up with two |
No version requirement violations, it's just a local ts copy in case someone doesn't install one in their projects. The core package (and others) doesn't really list TS as a requirement, nor specify any version that should be used. |
|
I think we should support other build tools besides SWC, such as Bun's built-in build or tsdown (based on Rolldown), for compatibility with Bun. |
|
Any plans for new alphas? The current ones create a project with v11 |
|
@imorius AFAIK bun is already supported. you can also use OXC compiler (from vite) with no issues |
Preserve RegExp Kafka patterns when registering handlers so KafkaJS can subscribe to regex topics. Resolve incoming Kafka topics against registered RegExp patterns after exact route lookup. Fixes #3083
feat(microservices): add grpc exception filter
fix(microservices): support regex Kafka patterns
|
For those who want to give v12 a shot, all packages have just been released under the
if you want to start from scratch, you can also just use |
feat(websockets): request-scoped gateways
|
First of all, thanks for the changes introduced in the upcoming NestJS 12 release. I’ve been testing the new standard schema validation setup and overall the direction looks really promising. While testing with ArkType in the default setup, I noticed what seems to be a serialization issue when validation fails. The validation itself works correctly, but invalid payloads end up throwing a 500 instead of returning a proper 400 response. It looks like the ArkType validation error object is propagated directly to the HTTP response layer, where JSON serialization fails ( I haven’t added any custom ArkType integration code on my side, this happens with the default setup. Not sure if this is already known given the pre-release state, but I figured it was worth reporting. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Description
Approximate release window: early Q3 2026
Overview
ESM migration
require(esm)support.require(esm)was the missing piece that made the move to ESM practical - without it, the migration wouldn't have made much sense. https://joyeecheung.github.io/blog/2024/03/18/require-esm-in-node-js/ https://nodejs.org/api/esm.html#requireCLI (ESM/CJS)
Testing stack changes
Linter
Website redesign
Minor breaking changes
Schema support in route decorators
@Body,@Query, etc.) will support a newschemaoption that accepts a Standard Schema–compatible object. https://standardschema.dev/)class-validator.PRs:
transformsignatures for improved type safety #16147isHttpErrorcheck stricter #14753Packages will soon (possibly in Q2) be released under the
nexttag to let everyone play with them before they make it to the officiallatesttag.Does this PR introduce a breaking change?
Other information