unstale

npm / @nestjs/schematics

@nestjs/schematics

What changed in @nestjs/schematics 9 to 12, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-26.

22 breaking1 deprecations8 new APIs and options8 behavior and defaults28 tooling19 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@nestjs/schematics 1279 changes

Breaking changes 22

  • Prefers the module file whose name matches the element name.

    12.0.7release notes

  • The Node.js engine requirement is aligned with @angular-devkit/schematics, affecting which Node.js versions developers can use.

    12.0.1release notes

  • The angular schematic has been removed.

    12.0.0upgrade guide

  • @nestjs/schematics requires Node.js v22.22.3+, v24.15+, or v26+ to run generators and upgrades.

    12.0.0upgrade guide

  • Jest can require Nest 12 ESM-only packages only on Node.js 24.9+; older versions fail with this error.

    12.0.0release notes

  • The upgrade renames the removed GraphQL playground option to graphiql.

    12.0.0release notes

  • The upgrade switches subscriptions from subscriptions-transport-ws to graphql-ws and updates package.json.

    12.0.0release notes

  • The upgrade raises Jest to version 30.

    12.0.0release notes

  • The upgrade raises Joi to ^18 for its Standard Schema support.

    12.0.0release notes

  • The upgrade warns that the JSONCodec helper has been dropped.

    12.0.0release notes

  • The upgrade warns that lifecycle hook ordering now changes by component hierarchy level.

    12.0.0release notes

  • The generated lint script runs oxlint on src/ and test/ instead of using the ESLint config and plugin chain.

    12.0.0release notes

  • The upgrade rewrites nats imports to the v3 @nats-io packages.

    12.0.0release notes

  • Custom deserializers now receive the full NATS message; read it with msg.json().

    12.0.0release notes

  • The package is now published as pure ESM, with NodeNext compilation and explicit .js extensions on internal imports.

    12.0.0release notes

  • The package now requires Node.js >= 22.12.0.

    12.0.0release notes

  • In v12.0.x, a subclass that declares its own constructor no longer inherits optional markers from its parent's constructor; declare the markers again to avoid an UnknownDependenciesException.

    12.0.0upgrade guide

  • The upgrade warns that the StringCodec helper has been dropped.

    12.0.0release notes

  • The package declares TypeScript >= 6.0.0 as a peer dependency.

    12.0.0release notesupgrade guide

  • The upgrade moves library-specific @nestjs/config validation options, such as Joi allowUnknown and abortEarly, under validationOptions.libraryOptions.

    12.0.0release notes

  • The upgrade migrates nest-cli.json builders from webpack to Rspack and updates affected package.json scripts.

    12.0.0release notes

  • The upgrade drops the deprecated webpack: false option.

    12.0.0release notes

Deprecations 1

  • The upgrade diagnoses projects affected by the refined transform signature.

    12.0.0release notes

New APIs and options 6

  • Adds a minimal option for generating a one-file application.

    12.0.13release notes

  • Libraries can now be generated without a prefix.

    12.0.6release notes

  • The observe integration adds the dependency and wires createObserveModule() into the root module for tracing, correlated logs, metrics, and alarms.

    12.0.0release notes

  • nest new and nest upgrade can use this opt-in flag to preconfigure @nestjs/observe.

    12.0.0release notes

  • ConsoleLogger's new structured-params behavior can be opted out of with structuredParams: false.

    12.0.0release notes

  • The application schematic adds a type option to choose esm or cjs; it defaults to esm.

    12.0.0release notes

Behavior and default changes 8

Tooling 27

  • Generated applications now tell coding agents about Nest's documentation and packages.

    12.0.13release notes

  • The observe prompt around the upgrade was reworded.

    12.0.12release notes

  • Coding agents are told where the production data is.

    12.0.11release notes

  • The upgrade guidance points to npx @nestjs/observe to connect Observe.

    12.0.10release notes

  • CLI config file names now align with the CLI.

    12.0.7release notes

  • ESM Vitest configs use native tsconfig paths.

    12.0.7release notes

  • Pins LF line endings via .gitattributes.

    12.0.7release notes

  • Formatting now honors the project Prettier config.

    12.0.7release notes

  • E2e tests now run for every CommonJS app.

    12.0.6release notes

  • Generated ESM e2e tests now resolve supertest types.

    12.0.6release notes

  • The schematics now read the oxlint config and run the rule it declares.

    12.0.2release notes

  • Generated application tsconfig files now set an explicit rootDir.

    12.0.2release notes

  • Vite is now declared explicitly for generated tests.

    12.0.2release notes

  • The upgrade diagnoses projects affected by generic ArgumentMetadata.

    12.0.0release notes

  • The CLI supports bun as a package manager.

    12.0.0upgrade guide

  • Custom webpack configuration files are not migrated automatically; the upgrade asks developers to port them by hand.

    12.0.0release notes

  • Generators detect ESM projects and append .js to generated relative imports, including imports injected into existing modules; CJS projects are unaffected.

    12.0.0release notes

  • CJS-generated projects keep Jest, with its configuration moved from package.json into this dedicated file.

    12.0.0release notes

  • Prompts users to choose a CommonJS or ESM project layout.

    12.0.0upgrade guiderelease notes

  • This alias runs the new v11-to-v12 upgrade schematic.

    12.0.0release notes

  • A new schematic migrates Nest v11 projects to v12, refuses other versions, and reports changes, follow-up actions, and warnings.

    12.0.0release notes

  • The upgrade schematic raises known Nest packages to v12 and reports packages without a known v12-compatible release.

    12.0.0release notes

  • The observe integration reminds developers to set this environment variable.

    12.0.0release notes

  • The decorator schematic now generates decorators in the Reflector.createDecorator() form.

    12.0.0upgrade guide

  • Generated TypeScript configuration enables resolvePackageJsonExports.

    12.0.0release notes

  • ESM-generated projects include this Vitest end-to-end configuration file.

    12.0.0release notes

  • ESM-generated projects include Vitest configuration in this file.

    12.0.0release notes

Fixes and other changes 15

  • The resource schematic installs @nestjs/mapped-types using the project's package manager.

    12.0.12release notes

  • The upgrade schematic now bumps companion packages to their v12 majors.

    12.0.11release notes

  • The JavaScript application template is updated for Babel 8.

    12.0.11release notes

  • The upgrade schematic now runs Jest with --experimental-vm-modules, matching new projects.

    12.0.11release notes

  • Switching to Rspack now adds the builder packages.

    12.0.11release notes

  • The upgrade schematic now reports tsconfig.json changes needed for TypeScript 6.

    12.0.11release notes

  • Reads the key pair from the environment before using placeholders.

    12.0.9release notes

  • Monorepo updates now target the CLI config file that is in use.

    12.0.7release notes

  • Avoids duplicating a shorthand metadata property.

    12.0.7release notes

  • Comments are preserved when JSON files are updated.

    12.0.7release notes

  • Scaffolded projects now use @nestjs/observe 0.3.

    12.0.4release notes

  • Monorepo schematics now resolve ESM path aliases and the project rootDir.

    12.0.2release notes

  • Generated test configuration now follows the inherited root dir.

    12.0.2release notes

  • CommonJS consumers can continue using require('@nestjs/schematics') on supported Node versions through Node's require(esm) support.

    12.0.0release notes

  • In v12.0.x, a subclass without its own constructor also loses its parent's optional markers; starting with v12.1, those markers are kept.

    12.0.0upgrade guide

@nestjs/schematics 113 changes

New APIs and options 1

  • Adds an option to run Prettier before writing generated files.

    11.1.0release notes

Tooling 1

  • Library and sub-app names are sorted to reduce git merge conflicts.

    11.0.0release notes

Fixes and other changes 1

  • The e2e template adds an after hook for app.close().

    11.0.10release notes

@nestjs/schematics 102 changes

Fixes and other changes 2

@nestjs/schematics 92 changes

New APIs and options 1

  • Generators support a custom suffix for spec files, letting developers choose the naming convention for generated tests.

    9.0.0release notes

Fixes and other changes 1

  • Fixes generated import formatting when the imports list has no indentation.

    9.0.0release notes