Skip to content
This repository was archived by the owner on Nov 24, 2026. It is now read-only.

build(deps): update nestjs to v12 - #1257

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/major-nestjs
Open

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/major-nestjs

Conversation

@renovate

@renovate renovate Bot commented Mar 24, 2022 •

Copy link
Copy Markdown
Contributor

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
@nestjs/cli 8.2.8 → 12.0.15 age confidence
@nestjs/config 1.2.1 → 12.1.1 age confidence
@nestjs/platform-express (source) 8.4.7 → 12.6.0 age confidence
@nestjs/schematics 8.0.11 → 12.0.16 age confidence
@nestjs/swagger 5.2.1 → 12.1.2 age confidence
@nestjs/terminus 7.2.0 → 12.2.0 age confidence
@nestjs/testing (source) 8.4.7 → 12.6.0 age confidence
@nestjs/typeorm 8.1.4 → 12.0.3 age confidence

Release Notes

nestjs/nest-cli (@​nestjs/cli)

v12.0.15

Compare Source

v12.0.14

Compare Source

What's Changed

New Contributors

Full Changelog: nestjs/nest-cli@12.0.13...12.0.14

v12.0.13

Compare Source

What's Changed

Full Changelog: nestjs/nest-cli@12.0.12...12.0.13

v12.0.12

Compare Source

What's Changed

New Contributors

Full Changelog: nestjs/nest-cli@12.0.11...12.0.12

v12.0.11

Compare Source

What's Changed

New Contributors

Full Changelog: nestjs/nest-cli@12.0.10...12.0.11

v12.0.10

Compare Source

  • feat(upgrade): offer to link the project to nestjs observe (#​3637) (c3afbba)

v12.0.9

Compare Source

What's Changed

New Contributors

Full Changelog: nestjs/nest-cli@12.0.8...12.0.9

v12.0.8

Compare Source

What's Changed

  • fix(compiler): preserve CommonJS entry exports in rspack and webpack builds by @​KAPUIST in #​3599
  • fix(compiler): preserve parent links for aliased re-exports by @​KAPUIST in #​3601

Full Changelog: nestjs/nest-cli@12.0.7...12.0.8

v12.0.7

Compare Source

What's Changed

New Contributors

Full Changelog: nestjs/nest-cli@12.0.6...12.0.7

v12.0.6

Compare Source

What's Changed

New Contributors

Full Changelog: nestjs/nest-cli@12.0.5...12.0.6

v12.0.5

Compare Source

What's Changed

New Contributors

Full Changelog: nestjs/nest-cli@12.0.4...12.0.5

v12.0.4

Compare Source

v12.0.3

Compare Source

  • chore: flip the default (f194021)

v12.0.2

Compare Source

  • chore: observe prompt changes (3a2773d)

v12.0.1

Compare Source

What's Changed

New Contributors

Full Changelog: nestjs/nest-cli@12.0.0...12.0.1

v12.0.0

Compare Source

What's Changed

@nestjs/cli is 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 upgrade and nest deploy.

ESM migration

The package is published as pure ESM ("type": "module", compiled with NodeNext). All internal imports carry explicit .js extensions and the build output is ESM-only.

For the common case this is invisible — nest is 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, and webpack-node-externals moved from dependencies to optional peer dependencies, joining @swc/cli and @swc/core.

If you build with tsc (the default) or with SWC, nothing changes. If you use --builder webpack (or "webpack": true in nest-cli.json), install the bundler yourself:

npm i -D webpack webpack-node-externals fork-ts-checker-webpack-plugin tsconfig-paths-webpack-plugin

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/core is supported as an optional peer dependency (^1.7.7 || ^2.1.10) and is the builder that nest new scaffolds into nest-cli.json for new projects.

  • --builder rspack on nest build and nest start
  • --rspackPath [path] to point at a custom Rspack config, mirroring --webpackPath
  • Source maps are enabled in the Rspack defaults

New: nest upgrade

A new command (aliased nest update) that runs the upgrade schematic to migrate a Nest v11 project to v12 — dependency bumps, tsconfig and nest-cli.json migrations, and codemods for @nestjs/config, GraphQL, and NATS. See the @nestjs/schematics release notes for what the migration itself does.

nest upgrade

Options: -d, --dry-run, -s, --skip-install, -t, --tag [tag] (use a dist-tag such as next instead of the default version ranges), -c, --collection [name], and --observe / --no-observe to answer the @nestjs/observe prompt up front.

New: nest deploy

Deploy 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.

nest deploy

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 dist that 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

  • Parallel builds — nest build --all --parallel [concurrency] builds monorepo projects concurrently, with an optional concurrency limit.
  • Library assets — compilerOptions.includeLibraryAssets pulls assets from libraries into an application build.
  • Watch-mode restarts — asset changes restart the application in watch mode, debounced so a burst of writes triggers one restart. The build now awaits watcher close, so it no longer races shutdown.
  • Asset path stripping is aligned with the effective TypeScript rootDir.

Compiler internals

  • glob is gone. It is replaced by an internal fs-based helper built on minimatch, which is now a direct dependency. Symlink traversal depth matches the previous behaviour.
  • A recursive fs watcher replaces chokidar in the SWC watch path.
  • SWC respects tsconfig excludes — excluded files are skipped both on build and in watch mode, and newly added files no longer inherit watch mode when transpiled.
  • --emit-declarations emits .d.ts files under the SWC builder; --no-type-check overrides the config-level setting.
  • --silent suppresses informational compiler logs.

Other improvements

  • Bun is supported as a package manager and runner, detected from bun.lock / bun.lockb.
  • nest new --skip-tests scaffolds a project without testing files, and --observe / --no-observe answers the @nestjs/observe prompt.
  • nest generate --format formats generated files with Prettier; the resource schematic accepts --type <rest|graphql|microservice> and --crud [value].
  • Clearer failures: a non-zero exit on an invalid --builder, a readable error for malformed nest-cli.json, a --parallel value that is validated instead of looping forever, and an explicit message from nest info when no @nestjs/* dependencies are declared.
  • nest info and terminal-width detection prefer process.stdout.columns over shelling out to tput.
  • Plugin metadata emits .js extensions on dynamic imports under nodenext resolution.
  • .tsbuildinfo is removed when deleteOutDir is set.

Toolchain

TypeScript 6 (~6.0.2), @angular-devkit/* 22, commander 15, @inquirer/prompts 8, ora 9, node-emoji 2, and chokidar 5. Internally the CLI moved from Jest to Vitest and from ESLint to oxlint. engines.node stays at >= 20.11.


See the migration guide for the full picture.

v11.0.24

Compare Source

  • fix(compiler): fail fast when typescript lacks the programmatic api (3c6b4ac)
  • refactor: move available languages closer to first usage (1697b7f)
  • refactor: delete unused gulp tool utility helper file (75b57c4)
  • fix(runners): remove duplicated binary in failed command message (54b08ae)

v11.0.23

Compare Source

  • Revert "fix(compiler): validate delete out dir paths before rm" (0dd0e3e)
  • Revert "fix(compiler): validate asset output paths" (728f80c)

v11.0.22

Compare Source

  • fix(cli): resolve Windows path separator bug in plugin loader (9e502bd)
  • fix(compiler): validate asset output paths (c4342b2)
  • fix: Update CRUD option to accept a value for generating entry points (4c0e2ca)
  • feat: Add type and CRUD options in generate command (b19856a)

v11.0.21

Compare Source

v11.0.20

Compare Source

v11.0.19

Compare Source

What's Changed

Full Changelog: nestjs/nest-cli@11.0.18...11.0.19

v11.0.18

Compare Source

What's Changed

New Contributors

Full Changelog: nestjs/nest-cli@11.0.17...11.0.18

v11.0.17

Compare Source

What's Changed

Full Changelog: nestjs/nest-cli@11.0.16...11.0.17

v11.0.16

Compare Source

v11.0.15

Compare Source

What's Changed

New Contributors

Full Changelog: nestjs/nest-cli@11.0.14...11.0.15

v11.0.14

Compare Source

What's Changed

New Contributors

Full Changelog: nestjs/nest-cli@11.0.13...11.0.14

v11.0.13

Compare Source

  • chore(deps): update dependency @​swc/core to v1.15.3 (#​3196) (361d050)
  • fix(deps): update dependency glob to v13 (e7e254c)
  • fix: Node v24 DEP0190 warning by removing args for shell: true (367c29b)
  • fix(deps): update dependency webpack to v5.103.0 (dcca650)

v11.0.12

Compare Source

What's Changed

Full Changelog: nestjs/nest-cli@11.0.11...11.0.12

v11.0.11

Compare Source

What's Changed

Full Changelog: nestjs/nest-cli@11.0.10...11.0.11

v11.0.10

Compare Source

What's Changed

Full Changelog: nestjs/nest-cli@11.0.9...11.0.10

v11.0.9

Compare Source

v11.0.8

Compare Source

What's Changed

Full Changelog: nestjs/nest-cli@11.0.7...11.0.8

v11.0.7

Compare Source

What's Changed

Full Changelog: nestjs/nest-cli@11.0.6...11.0.7

v11.0.6

Compare Source

What's Changed

New Contributors

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Mar 24, 2022
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch from 37ffe7f to cfc8fe0 Compare March 26, 2022 05:44
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch from cfc8fe0 to 3ecfd99 Compare April 9, 2022 04:30
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch 3 times, most recently from 9aaa6a9 to ff5752e Compare May 21, 2022 03:15
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch 3 times, most recently from a96c801 to 3570d7d Compare June 6, 2022 20:47
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch 3 times, most recently from cbdc902 to 6d6b75c Compare June 19, 2022 17:32
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch from 6d6b75c to e40ff17 Compare June 27, 2022 20:32
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch 7 times, most recently from 760a34e to 9b0373a Compare July 12, 2022 11:46
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch 3 times, most recently from 36e6f4c to d887da0 Compare July 20, 2022 10:14
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch 4 times, most recently from 6018e71 to 2fbf6fd Compare August 3, 2022 12:35
@renovate renovate Bot changed the title build(deps): update nestjs (major) build(deps): update nestjs to v9 (major) Aug 9, 2022
@renovate renovate Bot changed the title build(deps): update nestjs to v9 (major) build(deps): update nestjs (major) Aug 10, 2022
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch from 2fbf6fd to eb4f2d0 Compare August 11, 2022 01:26
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch 3 times, most recently from 6daf633 to db123fb Compare September 28, 2022 13:18
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch 2 times, most recently from cf6c1de to 2dd7b92 Compare October 5, 2022 16:18
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch 5 times, most recently from 8e3ebb6 to 847cfe8 Compare October 27, 2022 09:24
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch from 847cfe8 to 387a1f8 Compare November 7, 2022 12:15
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch 2 times, most recently from 5a98a2c to 32d81cf Compare November 17, 2022 14:49
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch 2 times, most recently from ff11b95 to 1652189 Compare November 29, 2022 09:12
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch 3 times, most recently from e4228d8 to 1574550 Compare December 8, 2022 05:30
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch 2 times, most recently from 1258798 to 7f602ae Compare December 16, 2022 05:24
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch 3 times, most recently from 3a94891 to b65601d Compare December 29, 2022 15:42
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch from b65601d to e3f7ff7 Compare January 12, 2023 11:57
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch 2 times, most recently from 105539a to ac88095 Compare January 31, 2023 06:28
@renovate
renovate Bot force-pushed the renovate/major-nestjs branch 3 times, most recently from c0a8212 to d9612b0 Compare February 3, 2023 17:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants