22.0.0-beta.0
Breaking Changes📦 nxView on GitHub →
⚠ 7 breaking✨ 3 features🐛 2 fixes🔧 5 symbols
Summary
This beta release introduces several breaking changes focused on removing deprecated options and features across webpack, rspack, and core functionality, while also improving the initialization experience with AI agent prompts.
⚠️ Breaking Changes
- The default value for `useLegacyTypescriptPlugin` in bundling is now `false`. If you relied on the legacy behavior, you may need to explicitly set it to `true` temporarily.
- The environment variable `NX_DISABLE_DB` has been removed. Configuration should now be handled through other means.
- The experimental inlining feature in the `@nx/js:tsc` executor has been removed. Review your build configurations if you were using this feature.
- The deprecated `deleteOutputPath` and `sassImplementation` options have been removed from the `@nx/rspack` executor. Update your executor options accordingly.
- The deprecated `deleteOutputPath` and `sassImplementation` options have been removed from the `@nx/webpack` executor. Update your executor options accordingly.
- The application generator in `@nx/rspack` has been removed in favour of framework-specific options. Use the appropriate framework generator instead.
- The `simpleName` option is no longer supported in library generators in `@nx/core`. Ensure library generation configurations do not rely on this option.
Migration Steps
- If you were using the `NX_DISABLE_DB` environment variable, update your configuration method.
- If you were using the experimental inlining feature in `@nx/js:tsc`, remove related configurations.
- Remove usage of `deleteOutputPath` and `sassImplementation` options from your `@nx/rspack` configurations.
- Remove usage of `deleteOutputPath` and `sassImplementation` options from your `@nx/webpack` configurations.
- If you were using the `@nx/rspack` application generator, switch to using framework-specific generators.
- Remove the `simpleName` option from any library generation commands or configurations.
✨ New Features
- The default setting for `useLegacyTypescriptPlugin` in bundling is changed to `false` for v22.
- Nx will now prompt for AI agent files during `nx init`.
- Compatibility for devkit has been bumped to support Nx versions 21 through 23.
🐛 Bug Fixes
- Ensured that tsconfig options are respected when using `rollup-typescript-plugin` in bundling.
- Removed the deprecated `simpleName` option from library generators in `@nx/core`.
🔧 Affected Symbols
@nx/js:tsc@nx/rspack@nx/webpacklibrary generatorsNX_DISABLE_DB