Repository navigation
fix(deps): update nest monorepo to v12 - #815
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/major-nest-monorepo
branch
3 times, most recently
from
September 19, 2026 00:39
9f04733 to
d4a8eb9
Compare
renovate
Bot
force-pushed
the
renovate/major-nest-monorepo
branch
4 times, most recently
from
September 25, 2026 20:46
241bfe2 to
cab5ae1
Compare
renovate
Bot
force-pushed
the
renovate/major-nest-monorepo
branch
11 times, most recently
from
October 5, 2026 09:58
d629091 to
f1361fa
Compare
renovate
Bot
force-pushed
the
renovate/major-nest-monorepo
branch
10 times, most recently
from
October 13, 2026 15:10
8a4c509 to
a531470
Compare
renovate
Bot
force-pushed
the
renovate/major-nest-monorepo
branch
2 times, most recently
from
October 14, 2026 18:30
f63dbff to
c1c3ed4
Compare
renovate
Bot
force-pushed
the
renovate/major-nest-monorepo
branch
from
October 16, 2026 03:18
c1c3ed4 to
273b0c0
Compare
renovate
Bot
force-pushed
the
renovate/major-nest-monorepo
branch
from
October 20, 2026 16:56
273b0c0 to
0aef37b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
11.0.24→12.0.811.2.7→12.1.24.0.4→12.0.111.2.7→12.1.211.1.0→12.0.6^11.0.0→^12.0.0Release Notes
nestjs/nest-cli (@nestjs/cli)
v12.0.8Compare Source
What's Changed
Full Changelog: nestjs/nest-cli@12.0.7...12.0.8
v12.0.7Compare Source
What's Changed
New Contributors
Full Changelog: nestjs/nest-cli@12.0.6...12.0.7
v12.0.6Compare Source
What's Changed
New Contributors
Full Changelog: nestjs/nest-cli@12.0.5...12.0.6
v12.0.5Compare Source
What's Changed
New Contributors
Full Changelog: nestjs/nest-cli@12.0.4...12.0.5
v12.0.4Compare Source
v12.0.3Compare Source
f194021)v12.0.2Compare Source
3a2773d)v12.0.1Compare Source
What's Changed
New Contributors
Full Changelog: nestjs/nest-cli@12.0.0...12.0.1
v12.0.0Compare Source
What's Changed
@nestjs/cliis now a native ES module, and the major version is aligned with the Nest 12 release line. Alongside the ESM move, the CLI no longer bundles webpack: every bundler-related package is an optional peer dependency now, so a default install is substantially smaller and you pull in only the builder you actually use. There are also two new commands —nest upgradeandnest deploy.ESM migration
The package is published as pure ESM (
"type": "module", compiled with NodeNext). All internal imports carry explicit.jsextensions and the build output is ESM-only.For the common case this is invisible —
nestis a binary, and it keeps running your CJS and ESM projects alike. It matters if you import the CLI's internals programmatically (custom builders, plugin harnesses, scripts that drive@nestjs/cli/lib/...): those imports now resolve to ESM.webpack is no longer a dependency
webpack,fork-ts-checker-webpack-plugin,tsconfig-paths-webpack-plugin, andwebpack-node-externalsmoved from dependencies to optional peer dependencies, joining@swc/cliand@swc/core.If you build with
tsc(the default) or with SWC, nothing changes. If you use--builder webpack(or"webpack": trueinnest-cli.json), install the bundler yourself:When a builder's peer dependency is missing, the CLI now reports the actual missing package name instead of surfacing the raw resolution error.
Rspack support
@rspack/coreis supported as an optional peer dependency (^1.7.7 || ^2.1.10) and is the builder thatnest newscaffolds intonest-cli.jsonfor new projects.--builder rspackonnest buildandnest start--rspackPath [path]to point at a custom Rspack config, mirroring--webpackPathNew:
nest upgradeA new command (aliased
nest update) that runs theupgradeschematic to migrate a Nest v11 project to v12 — dependency bumps,tsconfigandnest-cli.jsonmigrations, and codemods for@nestjs/config, GraphQL, and NATS. See the@nestjs/schematicsrelease notes for what the migration itself does.Options:
-d, --dry-run,-s, --skip-install,-t, --tag [tag](use a dist-tag such asnextinstead of the default version ranges),-c, --collection [name], and--observe/--no-observeto answer the@nestjs/observeprompt up front.New:
nest deployDeploy an application to the cloud, powered by Mau. Every option is forwarded verbatim to
mau deploy, so the command claims no flags of its own.Path confinement for build output
Build output and clean-up paths are now confined to the project directory by default. Symlinks are resolved before writing, so a
distthat is itself a symlink pointing outside the project no longer lets a write escape.Monorepo layouts that legitimately emit outside the project root can opt back out:
{ "compilerOptions": { "allowOutsidePaths": true } }Monorepo and asset handling
nest build --all --parallel [concurrency]builds monorepo projects concurrently, with an optional concurrency limit.compilerOptions.includeLibraryAssetspulls assets from libraries into an application build.rootDir.Compiler internals
globis gone. It is replaced by an internalfs-based helper built onminimatch, which is now a direct dependency. Symlink traversal depth matches the previous behaviour.fswatcher replaces chokidar in the SWC watch path.tsconfigexcludes — excluded files are skipped both on build and in watch mode, and newly added files no longer inherit watch mode when transpiled.--emit-declarationsemits.d.tsfiles under the SWC builder;--no-type-checkoverrides the config-level setting.--silentsuppresses informational compiler logs.Other improvements
bun.lock/bun.lockb.nest new --skip-testsscaffolds a project without testing files, and--observe/--no-observeanswers the@nestjs/observeprompt.nest generate --formatformats generated files with Prettier; theresourceschematic accepts--type <rest|graphql|microservice>and--crud [value].--builder, a readable error for malformednest-cli.json, a--parallelvalue that is validated instead of looping forever, and an explicit message fromnest infowhen no@nestjs/*dependencies are declared.nest infoand terminal-width detection preferprocess.stdout.columnsover shelling out totput..jsextensions on dynamic imports undernodenextresolution..tsbuildinfois removed whendeleteOutDiris set.Toolchain
TypeScript 6 (
~6.0.2),@angular-devkit/*22,commander15,@inquirer/prompts8,ora9,node-emoji2, andchokidar5. Internally the CLI moved from Jest to Vitest and from ESLint to oxlint.engines.nodestays at>= 20.11.See the migration guide for the full picture.
nestjs/nest (@nestjs/common)
v12.1.2Compare Source
v12.1.1Compare Source
v12.1.1 (2026-09-28)
Bug fixes
common,core,microservices,testingmicroservicescommoncoreplatform-fastifycore,testingEnhancements
commonmicroservicesCommitters: 13
v12.1.0Compare Source
v12.1.0 (2026-09-23)
Bug fixes
coremicroservicesEnhancements
corecommon,coreplatform-fastifycommonplatform-fastify,testingcommon,core,platform-fastifyCommitters: 9
v12.0.4Compare Source
v12.0.4 (2026-09-21)
Bug fixes
microservicescoreEnhancements
platform-expresslimitskey-by-key instead of overriding it wholesale (@mdrezuanislamridoy)commonDependencies
commonplatform-fastifyCommitters: 10
v12.0.3Compare Source
v12.0.3 (2026-09-15)
Bug fixes
microservicescommonDependencies
platform-expresscommonCommitters: 4
v12.0.2Compare Source
v12.0.2 (2026-09-14)
Bug fixes
platform-socket.io,platform-wsmicroservicescommonnormalizePath(@Asadshah7950)corestatusCodeas http errors (@Asadshah7950)platform-fastifyEnhancements
microservicesDependencies
platform-fastifyCommitters: 16
v12.0.1Compare Source
v12.0.0Compare Source
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:
Then, from the root of your project:
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:The decorator only attaches metadata; register the new
StandardSchemaValidationPipeto validate against it:The same schemas feed OpenAPI generation. The decorator-based
class-validatorworkflow remains fully supported, with no plan to remove it.Standard Schema serialization
StandardSchemaSerializerInterceptorvalidates and transforms outgoing responses with the same ecosystem:Pick per use case:
ValidationPipe/ClassSerializerInterceptorfor class-based DTOs, the Standard Schema variants when your schemas already exist.Native observability —
@nestjs/observeThe official NestJS Observe SDK plugs into Nest's own request lifecycle through the
instrumentapplication option, rather than patching the HTTP server like a generic APM agent. Requests, jobs, errors, and traces are reported in terms of your controllers, providers, resolvers, and queue consumers:Auto-instrumentation covers HTTP, GraphQL, gRPC, and microservice transports, plus queue consumers and cron runs — no manual span wiring and no collector to run. Opt-in and new; nothing to migrate.
nest newandnest upgradecan wire it up for you (--observe). See the Observability chapter.Config module on Standard Schema
@nestjs/configmoves from Joi-specific validation to Standard Schema.validationSchemanow accepts any compatible schema:Existing Joi schemas still work with two caveats: upgrade to Joi v18+ (the first release implementing Standard Schema), and move library-specific settings under
validationOptions.libraryOptions.Route conflict diagnostics
Routes are registered in declaration order, so on order-sensitive adapters
@Get(':id')can silently shadow a@Get('me')declared after it. Two opt-in options surface this:Both default to the previous behavior, so nothing changes unless you set them.
Machine-readable error codes
HttpExceptionOptionsaccepts anerrorCodethat is serialized into the response body, so clients branch on a stable identifier instead of parsing message strings:Structured logging params
ConsoleLoggernow treats plain objects passed after the message as structured params of the same log entry instead of separate records:In JSON mode they nest under
params, or spread into the root withflattenParams. On by default; setstructuredParams: falseto restore the old behavior.CLI (
@nestjs/cliv12)The CLI was rebuilt in nestjs/nest-cli#3280: the entire source migrated to ESM, tests moved from Jest to Vitest, e2e tests were added for every command, and command classes were refactored to take typed context objects instead of untyped inputs and option arrays.
New commands
nest upgrade(aliasupdate) — upgrades a v11 project to v12 and applies the migration steps described above.nest deploy— deploys your application to the cloud via Mau, installing@nestjs/mauon first use and forwarding every argument straight through.Defaults and tooling
--webpack/--webpackPathflags (and theirwebpack/webpackConfigPathcounterparts innest-cli.json) are deprecated in favor of--builder rspack.decoratorschematic generates decorators using the preferredReflector.createDecorator()form. Theangularschematic has been removed.New options
nest build/nest start:--rspackPath [path],--emit-declarations(SWC),--no-type-check,--silentnest build:--parallel [concurrency], for building monorepo projects in parallel with--allnest-cli.json:includeLibraryAssets, for copying library assets into an application buildBreaking changes
require(esm)keeps CommonJS apps working. Review custom bootstrapping, bundler, and test-runner config.natspackage is replaced by@nats-io/transport-nodenpm uninstall nats && npm install @nats-io/transport-node; update direct imports. Packets are now serialized as JSON strings and custom deserializers receive the full NATS message — read payloads withmsg.json().subscriptions-transport-wssupport removedgraphql-ws; the protocols are wire-incompatible, so clients must be updated. ReviewonConnectcallbacks.playgroundwithgraphiql; pass an options object to customize.@nestjs/configvalidates through Standard SchemavalidationOptions.libraryOptions.ArgumentMetadatais now genericConsoleLoggerstructured params on by defaultstructuredParams: falseto restore the previous output.--builder rspack.angularschematic removedMost of these are handled automatically by
nest upgrade.Also in this release
ValidationPipeerror format — a new option controls the shape of validation error responses.GrpcExceptionFilterand status-specific exceptions map errors to proper gRPC status codes instead ofUNKNOWN.@MessagePattern()and@EventPattern()accept aRegExpon the Kafka transport.REQUESTtoken.handleDisconnectcan receive the reason for the disconnection.Thanks
Thank you to everyone who contributed code, issues, reproductions, and reviews to this release. 💛
If NestJS helps you build your products, consider supporting the project.
nestjs/config (@nestjs/config)
v12.0.1Compare Source
What's Changed
New Contributors
Full Changelog: nestjs/config@12.0.0...12.0.1
v12.0.0Compare Source
What's Changed
@nestjs/configis now a native ES module, environment validation is built on Standard Schema instead of Joi-specific code, and the major version is aligned with the Nest 12 release line (there is no5.x—4.0.4goes straight to12.0.0).ESM migration
The package is published as pure ESM (
"type": "module", compiled withNodeNext) behind a properexportsmap. The legacy rootindex.js/index.d.tsshims are gone, and deep imports into build internals are no longer resolvable — import from the package root.require(esm)— CommonJS still worksYou do not need to convert your app to ESM. Thanks to Node's
require(esm)support (Node 20.19+ / 22.12+), a CommonJS app can keep usingrequire('@nestjs/config')unchanged.Validation is now Standard Schema based
validationSchemaaccepts any schema implementing the Standard Schema spec — Zod (v3, v4, v4-mini), Valibot, ArkType, Joi 18+, and anything else that adopts it. There is no longer any Joi-specific code path in the module, and Joi is no longer implied as the validation library.Joi keeps working — it implements Standard Schema as of v18 — and the historical
abortEarly: false/allowUnknown: truedefaults are still applied automatically for Joi schemas, so existing Joi setups behave as before.Breaking:
validationOptionsshapeOptions are now the Standard Schema
Optionsobject, and library-specific settings move underlibraryOptions:The generic parameter changed accordingly:
ConfigModuleOptions<ValidationOptions extends StandardSchemaV1.Options>, andvalidationSchemais typed asStandardSchemaV1rather thanany— a schema that does not implement the spec is now a compile-time error instead of a runtime one.Breaking: validation error format
Issues are formatted by this package rather than by the schema library. Each issue is rendered as
path: messageand issues are newline-separated:Anything asserting on the old single-line Joi message string needs updating.
Object schemas no longer strip your environment
Schemas like Zod's
z.object()drop undeclared keys. Those variables are now merged back into the validated result, so unrelated variables stay reachable through bothprocess.envandConfigServiceinstead of disappearing after validation.Breaking: peer dependencies
@nestjs/commonis now^11.0.0 || ^12.0.0. Nest 10 is no longer supported — stay on@nestjs/config@4if you are still on Nest 10.Breaking:
lodashreplaced withes-toolkitThe
lodashruntime dependency is gone, replaced byes-toolkit. This is transparent unless you relied on the transitivelodashinstall.Breaking: stricter
ConfigService.get()inferenceThe explicit-type parameter on
get()/getOrThrow()is now constrained to the value at the given path (R extends PathValue<T, P>), fixing the long-standing bug where an unrelated type could be asserted for a key. Call sites that passed a type inconsistent with the config shape will now fail to compile — that mismatch was always a latent bug.New:
overrideValues from
.envfiles can now take precedence over pre-existingprocess.envvariables:Default remains
false— the existing "process.env wins" behavior.New: custom
parser.envfiles no longer have to be dotenv-formatted. Supply any function that turns aBufferinto an object — YAML, TOML, JSON, whatever:The parser is used both at bootstrap and for variable re-interpolation inside
ConfigService.Other changes
dotenv17.4.2,dotenv-expand13.ConditionalModuletimeout error message ("Bause" → "Because").nestjs/nest (@nestjs/core)
v12.1.2Compare Source
v12.1.1Compare Source
v12.1.1 (2026-09-28)
Bug fixes
common,core,microservices,testingmicroservicescommoncoreplatform-fastifyConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.