Change8

22.0.0-beta.3

Breaking Changes
📦 nxView on GitHub →
4 breaking2 features🐛 11 fixes🔧 8 symbols

Summary

This beta release introduces an option for excluding external files in esbuild and makes several breaking changes in the release system by removing legacy versioning and updating default behaviors. Numerous bug fixes address issues across Angular, Next.js, Vite, and core functionality, including an axios security upgrade.

⚠️ Breaking Changes

  • The CreateNodes v1 types have been removed from core for Nx 22. Users relying on these legacy types must migrate to the v2 API.
  • The default value for `preserveMatchingDependencyRanges` in release configuration is now set to `true`. If you relied on the previous default, update your configuration.
  • Defaults for the fixed release group tag pattern have changed, and the behavior for preserving matching dependency ranges and `strictPreid` has been updated.
  • Deprecated legacy versioning in the release system has been removed.

Migration Steps

  1. If you were using CreateNodes v1 types, migrate your implementation to use the current CreateNodes v2 types.
  2. Review your release configuration settings, specifically `preserveMatchingDependencyRanges`, as the default has changed to `true`.
  3. Review release configuration defaults related to fixed release group tag patterns, dependency range preservation, and `strictPreid`.

✨ New Features

  • Added `excludeFromExternal` option to the esbuild executor for bundling.
  • Release system now matches Nx affected behavior to determine relevant conventional commits.

🐛 Bug Fixes

  • Angular RSPack executor no longer parses JSON with babel.
  • PostCSS CLI resources now correctly handle relative deploy URLs.
  • Upgraded axios to 1.12.0 to address CVE-2025-58754.
  • Repaired repository root resolution when setting up AI Agents during `nx init`.
  • Removed the requirement to be inside a package manager workspace for core operations.
  • Removed whitespace from newly generated Next.js server components.
  • Next.js buildable libraries using Vite now correctly include server entry points in build output.
  • Updated broken documentation links related to AI features in nx-cloud.
  • Fixed an export typo in @nx/remix/package.json.
  • Fixed PR releases to no longer depend on a broken range.
  • Ensured that the tsconfig file is resolved from the workspace root in Vite configurations.

🔧 Affected Symbols

CreateNodes v1 typesaxiossetupAiAgents@nx/remix/package.jsonesbuild executorangular-rspacknextjs server componentvite tsconfig resolution