npm / @angular/cli
@angular/cli
What changed in @angular/cli 6 to 22, from its official release notes, upgrade guides and advisories. Also covers @angular-devkit/architect, @angular-devkit/core, @angular-devkit/schematics, @angular/build, @angular/pwa, @angular/ssr, @schematics/angular. Sources checked 2026-11-30.
305 breaking17 security31 deprecations130 new APIs and options23 performance145 behavior and defaults262 tooling256 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@angular/cli 22252 changes
Breaking changes 25
The entry-point schematic rejects ng-packagr builders.
Asset followSymlinks now defaults to false.
A library builder is available, and the Angular schematics use it and provide an entry-point schematic.
TypeErrors thrown by content templates are no longer ignored.
When install options are provided, ignoreScripts now defaults to true.
Proxy glob patterns are now matched against the URL pathname only.
Only the first value of the X-Forwarded-Prefix header is now used.
A prerendering failure now fails the build and excludes the affected routes.
The CLI no longer searches the current directory for bare executable names on Windows.
Updating catalog packages now aborts and guides developers through manual mitigation when needed.
The CLI no longer allows a registry environment variable to override Yarn's registry during updates.
All route parameters are replaced when resolving relative redirects.
Removes the unused outDir setting from the generated app tsconfig.
The default workspace VS Code mcp.json configuration is removed.
Options now take precedence over environment variables.
Application builder output paths are restricted to the output directory.
SSR no longer falls back to CSR for requests that fail host validation; unrecognized Host headers return 400, so valid hosts must be configured.
The package is no longer available; the architect CLI tool has moved to @angular-devkit/architect.
The experimental Jest builder has been removed.
The experimental Web Test Runner builder has been removed.
istanbul-lib-instrument is now an optional peer dependency; Karma projects using code coverage must ensure it is installed.
Node.js v20 is no longer supported; the minimum supported versions are v22.22.0 and v24.13.1.
The application builder option experimentalPlatform is renamed to platform.
The dev server gives PORT highest priority, overriding angular.json port settings and the --port flag, including the default port 4200.
Proxy headers require explicit opt-in; when trustProxyHeaders is true, all X-Forwarded-* headers are supported.
Security 6
Adds the CSP nonce to stylesheet and modulepreload link elements.
Angular SSR: Path Traversal to Sibling Directories in CommonEngine on Windows
The loader preserves integrity and crossorigin attributes.
The best-practices tool enforces MCP roots and throws when a workspace is outside them; it also handles errors from isAllowedWorkspacePath.
The builder prevents OS command injection.
Dynamically loaded modules receive subresource integrity validation.
Deprecations 8
The ng-packagr builder and its programmatic APIs are deprecated; use the @angular/build:library builder instead.
The testRunner option in the application, library, and ng-new schematics is deprecated; future new projects will only be configured with Vitest.
The splitting option is deprecated because disabling code splitting is no longer needed with Vitest 5.
This API is deprecated; use the standard Web API TextDecoder instead.
This API is deprecated; use the standard Web API TextEncoder instead.
CommonEngine APIs are deprecated in favor of AngularNodeAppEngine or AngularAppEngine.
The @ngtools/webpack loader and plugin are deprecated; use @angular/build instead.
Webpack builders in build-angular and build-webpack are deprecated; use @angular/build builders instead.
New APIs and options 9
The unit-test builder accepts a polyfills option.
Array-form proxy configurations support a string context.
The Vitest browser provider ng-add now adds the browsers option to angular.json.
Adds the --root command-line option to mcp.
The unit-test builder gains an option to enable code splitting.
Vitest isolation can now be disabled from the builder.
The headers option can configure Access-Control-Allow-Origin.
The unit-test builder adds an isolate option.
The unit-test builder adds a quiet option to suppress build noise in unit tests.
Performance 14
Server bundles avoid bundling Domino more than once.
Library parallel compilation avoids web worker channel overhead.
Resolves asset patterns concurrently with bounded concurrency.
Aggregate worker allocation is bounded across dominant files.
Concurrent worker allocation is bounded for dominant files.
The worker no longer loads compiler-cli and TypeScript.
Chokidar no longer scans unimported node_modules in watch mode.
Reduces watcher debounce latency for faster incremental rebuilds.
Updating the sourcemap ignore list avoids full JSON parsing.
Prerender routes are batched and in-memory server bundles are shared.
Releases build resources earlier when not running in watch mode.
Avoids buffering the request body when sanitizing headers.
Semaphore backpressure throttling is implemented in JavaScriptTransformer.
Registry query counts are optimized by fetching package metadata lazily.
Behavior and default changes 31
The official Node.js support check is decoupled from the execution gate.
Library outputPath is allowed within the project root.
A separate server chunk is now generated for each prerendered page.
Optimized chunk hashes now include source map hashes.
The partition rule now supports delegating trees.
Autocompletion is now loaded only in interactive shells.
Integrity metadata is now added for all initial chunks beyond the module preload limit.
Web worker bundles now use distinct chunk naming.
Always uses AOT when extracting i18n messages.
Uses the chokidar watcher when followSymlinks is enabled.
Defaults preloadInitial to false when serviceWorker is enabled.
Recursively ignores output and cache paths while watching.
Temporary package installations are isolated from a parent Yarn workspace.
Supports case-insensitive and alternative license file names.
Always installs the package to inspect its manifest on disk for schematics.
Chunk optimization now uses Rolldown by default.
Angular SSR now supports the standard Forwarded header.
The persistent build cache is shared across Git worktrees.
Chunk optimization is now enabled for server builds.
The Istanbul coverage provider is favored when browser testing is enabled.
The semantic affected-file walk is skipped when type checking is disabled.
The Karma runner now falls back to the build target’s preserveSymlinks option.
The unit-test builder now inherits preserveSymlinks from the build target.
Non-SSG page lookups are no longer cached.
Semaphore backpressure throttling is implemented in PackageManager.
JSON imports are excluded from Vite dependency optimization.
Migrations of the same version are no longer sorted alphabetically.
On the first run, schematic detection falls back to the local package.json.
Chunk optimization is enabled by default with heuristics.
Generated components now default to OnPush change detection.
Generated workspaces rely on the strict template default.
Tooling 49
Builder options for build and test are included in json-help output.
Library watch mode supports incremental asset updates and output cleanup.
Oxfmt is supported for automatic file formatting.
A migration is available to move projects from ng-packagr to the library builder.
Reports the worktree-local cache in the command output.
The build requires only the launchers loaded by the Karma configuration.
The build enables the oxc WASI fallback in WebContainer environments.
The Angular schematics generate pnpm-workspace.yaml with allowBuilds for pnpm projects.
The Tailwind schematic updates the PostCSS configuration used by the build.
The use-application-builder migration now migrates serviceWorker: true to a configuration path.
The generated app-shell component now has an explicit type.
The CLI now supports resolving subproject dependencies in bun workspaces.
The filter rule now supports delegating trees.
The CLI now explains how to choose a project when a schematic cannot determine one.
The migration now handles CallInfo returnValue and object.
The runner now warns about unsupported options.
Disables Vitest fsModuleCache in the unit-test builder.
Sorts discovered unit-test files for deterministic builds.
Emitted HTML assets are now served in the dev-server.
The migration tool now skips components that have a change detection strategy.
Supports splitting browser and server stats JSON files for easier consumption.
Pre-compiles critical CSS plans at build time.
Compiles only included test files.
Code splitting is enabled for Vitest browser tests.
The dev-server Vite cache is kept local to each worktree.
Side-effect annotations are ignored in unit test builds.
The refactor-jasmine-vitest schematic transforms fail() calls to expect.fail().
The i18n inliner traverses the AST with an iterative post-order walker.
Code splitting is disabled for unit test builds.
The Angular schematic generates CLAUDE.md for Claude Code instead of AGENTS.md.
A target is set for Rolldown dependency prebundling in the Vite dev server.
Packages with built-in schematics are added to devDependencies only.
The CLI supports npm 12 metadata arrays and error formats, improving compatibility when using npm 12.
The generated AI configuration now includes Angular MCP server configuration.
A built-in SQLite cache store is available as a fallback.
Builds emit debug IDs to support stable subresource integrity hashes.
Declare devserver_start as not read-only, allowing tools to treat it as a state-changing operation.
Declare devserver_stop as not read-only, allowing tools to treat it as a state-changing operation.
Dependency resolution now supports subproject dependencies in pnpm workspaces.
Library unit tests now automatically inject localize/init.
Library unit tests now load zone.js dynamically.
Registry metadata fetching is supported when using the bun package manager.
The migration now uses null objects and callbacks.
The Karma-to-Vitest migration converts fakeAsync fake timers and migrates flush behavior when used in beforeEach.
The Vitest runner supports Istanbul coverage.
An update migration is added to migrate Karma to Vitest.
ng generate uses the service decorator.
Angular CLI adds support for Node.js 26.0.0.
The Vitest unit test runner supports runtime Zone.js detection.
Fixes and other changes 110
Array options defined in oneOf schemas are supported.
The library builder respects tsconfig declarationMap and compilationMode settings.
A library rebuilds in watch mode when transitive stylesheet dependencies change.
The Jasmine-to-Vitest refactor preserves stub-by-default semantics for createSpy when it has an original function.
Font stylesheet caching is restored.
The schematic now handles pending() in focused and skipped tests during Jasmine-to-Vitest refactoring.
The schematic now handles done callbacks in focused and skipped tests during Jasmine-to-Vitest refactoring.
Errors thrown by content templates now include the template path.
Adds the manifest link when the index option is an object.
Fixes sanitization of pnpm-workspace.yaml when using pnpm patches.
Forwards the poll option to the Karma build setup.
Passes an explicit port value of 0 through to the dev server.
Forwards the progress option to the Karma build setup.
Adds the missing vi import for toHaveBeenCalledBefore in the refactor-jasmine-vitest schematic.
The build copies assets replaced by a rename and removes every output of a deleted asset while watching.
The CLI validates dist-tags and manifest caching under modern Yarn.
Angular CLI commands now allow command arguments named help.
The modern Yarn error parser strips terminal escape sequences.
The CLI handles modern Yarn registry error output and 404 detection.
SSR destroys the platform when a request is aborted during rendering.
SSR validates prerender parameter values.
The Jasmine-to-Vitest refactor now preserves callThrough() on existing spies and the meaning of negated toHaveBeenCalledOnceWith; it adds a TODO for spy strategies configured with withArgs.
The CLI uses unquoted specifiers for registry manifest cache keys.
The CLI ignores registry manifests that do not match the requested version.
The dev server quotes weak ETags for served assets.
Generating another web worker now keeps the existing worker tsconfig.
The CLI now also cleans the worktree-local cache when running in a Git worktree.
karma-coverage is required only when coverage is enabled.
The generated component now has an explicit type.
Prerender redirect URLs are now escaped.
Trailing slashes are preserved in the query and fragment of redirect URLs.
The migration preserves the default getter access type of spyOnProperty.
The migration now handles spy.calls.first().args.
The dev server resolves sslKey relative to the workspace root.
Adding Tailwind ignores stylesheet entries that are not part of the workspace.
The migration now includes the SSR entry file.
The coverage error now suggests the istanbul provider.
The schematic no longer adds the web worker snippet to server configuration files.
Query parameter placeholders and route parameters are now resolved in redirect targets.
Schematic positional arguments are now kept in index order.
Paths in styles and polyfills now support quotes.
Generated application components now apply the configured viewEncapsulation value.
The Vite module cache is now invalidated for dev server output files that are removed.
Unit-test builder test targets now skip webWorkerTsConfig.
Avoids invalidating the diagnostic cache when a stylesheet changes.
Coalesces external watcher directories to avoid the macOS FSEvents limit.
Accepts array indices with multiple digits.
Continues to work when the package manager is not installed.
Resolves package names in npm workspace members.
Preserves preload metadata for nested empty-path routes.
Resolves relative redirects against the parent route.
Preserves query parameters on relative route redirects.
Ensures Sass importers return global Promise instances.
Avoids stack overflow when chaining many rules.
The migration now keeps the workspace build version.
Keeps the Vite server file watcher disabled in Vitest watch mode.
The SSR dev server preserves the Host header when proxying.
Glob entries in proxy configuration retain their order.
The compiler is now loaded for Vitest TestBed initialization.
The loader now encodes script type.
Spurious polling change events are now deduplicated.
Component updates are reset on each dev-server SSR page request.
The cache now preserves nested workspace paths.
Intermediate files are no longer sharded under worker surplus.
Batch locales are processed sequentially in the worker.
CLI options now correctly parse inline boolean values.
Standalone expression statements are no longer incorrectly marked as pure.
Includes inline component stylesheets among referenced watch files.
Runs setup file hooks for each spec file when coverage is enabled.
Auto-CSP supports standard JavaScript MIME types and case insensitivity.
Unknown options are now named in schema validation errors, making configuration problems easier to identify.
strictPort is disabled when port 0 is used in the dev-server.
The pathname is decoded when constructing the server asset path.
Binary values are preserved in the SQLite cache store.
The web request signal is aborted when the corresponding Node.js request is aborted.
The error message for top-level await is corrected to avoid misleading developers.
The build prevents syntax corruption for Crockford-style enum IIFEs.
The build counts statically imported chunks in the initial total.
The build returns direct file contents for non-Angular TypeScript files.
The build prevents syntax corruption in the oxc transform.
The platform is destroyed when the response stream is cancelled.
Paths in setupFiles are normalized to POSIX for the Vitest runner.
The build returns only the lowest version per target engine.
The guard generator imports UrlSegment instead of using subPath.
Prevents the build process from hanging after an unhandled error.
Retains watched files when an error occurs in the load result cache.
Correctly reports available package updates when running ng update without arguments.
Discovers migrations from installed packages when registry metadata omits them.
Settles when the client disconnects.
Prevents IIFE wrappers from interleaving for adjacent classes in minified files.
Paths from sandboxed execroots are rewritten when running under Bazel.
Update resolution now respects client-side release age settings.
Updates now resolve the correct registry name when package dependencies use npm alias syntax.
The CLI now reverts package.json changes if installation tasks fail during an update.
Safeguard the Karma builder stream controller when it is closed.
Import map integrity keys are now validated as URL-like specifiers.
MCP devserver tool names now conform to the spec regex.
Metafile paths are remapped when the workspace root is a symlink or junction.
Custom config options are preserved in runnerConfig for Vitest.
Drive letter casing is canonicalized for the workspace root on Windows.
Temporary installs now copy the packageManager field and Yarn configuration.
Builder-injected i18n locale data is no longer externalized.
All Vite ID prefixes are stripped from minified code when external dependencies are present.
Update bootstrapping now respects the release age policy.
The command handler now handles package manager errors gracefully.
Response headers are preserved during redirects.
The refactor-jasmine-vitest schematic now maps the browserMode option correctly.
The registry option is now validated as a URL.
Temporary package installation is isolated from the parent pnpm workspace.
The schematic now safely comments out multiline statements during refactoring.
@angular/cli 21169 changes
Breaking changes 11
Removes forceAuth and unscoped credential parsing from registry credential handling.
Asset input paths are asserted to be within the workspace root.
The webpack dev-server no longer applies an unconditional CORS wildcard.
Values of x-forwarded-prefix that start with a backslash are disallowed.
Invalid package manager versions are now rejected with an error.
Using Vitest runtime mocking now fails explicitly.
The library tsconfig template no longer includes inlineSources.
ng commands no longer automatically detect and use cnpm; use .npmrc to configure npm to use the cnpm registry.
The Less javascriptEnabled option is no longer supported; stylesheets using inline JavaScript must be refactored.
TypeScript versions older than 5.9 are no longer supported.
Vitest test isolation is disabled by default, and explicit test isolation configuration is removed.
Security 7
MCP workspace access is restricted to allowed client roots during resolution.
Angular SSR has Open Redirect and Request Steering via Encoded X-Forwarded-Prefix
Adds an option to safely validate and sanitize proxy headers.
Protocol-Relative URL Injection via Single Backslash Bypass in Angular SSR
Angular SSR has an Open Redirect via X-Forwarded-Prefix
Angular SSR is vulnerable to SSRF and Header Injection via request handling pipeline
Validates host headers to prevent header-based SSRF.
Deprecations 1
The matcher now warns about loose matching.
New APIs and options 15
Adds support for configuring trusted proxy headers via an environment variable.
The MCP devserver start tool supports a custom port.
Introduces a DI token to signal the route discovery process.
The unit-test builder now supports a headless option.
The jasmine-vitest schematic adds a browserMode option.
The SSR SSL plugin supports the NODE_EXTRA_CA_CERTS environment variable.
The Vitest coverage reportsDirectory option can now be overridden.
The library schematic now supports the testRunner option.
Adds the addTypeToClassName option to relevant schematics.
Adds a define option to the dev-server.
ng new supports different file name style guides.
Adds an include option to the jasmine-to-vitest schematic.
Adds JSON output to ng version, which also reports more details.
Unit tests can use a custom runner configuration file, including an absolute path.
Adds a Tailwind CSS option to the application schematic and ng new.
Performance 2
Avoids redundant package version resolution.
Package manager discovery now uses stat-based probing.
Behavior and default changes 17
External packages are used for polyfills only when no local files are present.
Custom headers are now supported in redirect responses.
Process environment variables are passed to prerender workers.
Extensionless assets are now served without transformation.
Argument parsing now infers boolean types for the string values 'true' and 'false'.
Argument parsing now infers boolean types for the string values 'true' and 'false'.
Vitest dependency checks are loosened when runnerConfig is used.
Allows application assets to be located in the workspace root.
Uses a project-local temporary directory.
SSR processing is skipped for well-known non-Angular URLs such as favicon.ico.
Management of the Vitest UI option is now conditional.
The migration now silently skips build targets that already use one of the new builders.
The MCP documentation search tool now accounts for the Angular version.
Promotes the MCP find_examples tool to stable and adds version-aware search with structured output.
The MCP tool now accounts for the Angular version.
New applications are zoneless by default.
Promotes the zoneless migration MCP tool to stable.
Tooling 46
Imports used only in type re-exports or type declarations are elided.
Non-value aliases and remaining type-only AST constructs are elided.
The update schematic expands package groups for newly added peer dependencies.
Initial package manager workspace awareness is introduced.
The MCP test tool uses the headless option.
MCP tools dynamically resolve the project’s Angular CLI executable.
Vitest validates V8 coverage support for browsers.
Compatibility checks are simplified, with special handling for local builds of new major versions.
MCP tools now use standardized workspace and project options.
Prettier's formatting list now includes Markdown files.
Generated workspaces now include a .prettierrc file and Prettier as a dev dependency.
Files modified by schematics are now formatted automatically.
File formatting is now integrated into update migrations.
The Angular schematic now supports adding Vitest browser providers.
The schematic now provides actionable feedback.
Vitest browser runs with Playwright using the operating system theme.
Warns when the production configuration is missing for a service worker.
Coverage thresholds can now be merged with Vitest runnerConfig.
Improves file system traversal and symlink handling in the MCP tool.
New workspaces include an MCP configuration file.
Adds MCP tools for testing, end-to-end testing, building, and running dev servers, and adds an experimental all tool group.
The unit-test builder directly supports ng-packagr.
Simplifies SSL handling when serving with SSR.
The migration generates a detailed report of its changes.
Adds signal forms lessons.
TestBed teardown is disabled during debugging in Vitest.
Injects source-map-support for browser tests.
Module-based application schematics now use provideZoneChangeDetection in the root module.
Custom middleware presents an Angular-tailored message.
Testing polyfills are injected in the Karma unit-test executor.
The built-in test main file conditionally provides Zone.js change detection.
Filename truncation was added to test discovery.
The Jasmine-to-Vitest migration now includes mock names in its createSpyObj transformation.
The ai-config schematic supports AGENTS.md.
Adds an ai-tutor MCP tool.
Introduces a schematic to refactor unit tests from Jasmine to Vitest, including transformations for spy APIs, matchers, and other constructs.
Adds builder information, style-language and unit-test-framework detection, and improved workspace discovery in monorepos.
Adds advanced filtering, snippet support, and multi-database search to the MCP example search tool.
Adds a migration to update moduleResolution to bundler.
Adds fallback support for packages without direct ng add functionality and provides detailed peer dependency conflict errors.
Dry runs show planned actions; dependency lookups are cached and peer dependency checks are parallelized.
Overhauls command output with more details, including Vitest.
New projects set packageManager in package.json.
New projects are configured for Vitest and can choose a test runner.
The unit-test builder supports .test.ts files by default and adds options for listing and filtering tests, coverage, reporters, and browser viewport.
zone.js is optional in server and app-shell builders.
Fixes and other changes 70
Asset paths in the server manifest are serialized.
Prevents the esbuild service from leaking child processes.
Virtual esbuild paths with (disabled) are ignored.
npm manifests represented as arrays are now parsed robustly.
The refactor adds missing imports for the focus and skip APIs.
Route segments are decoded when building and matching the route tree.
The router normalizes URLs for comparison.
The app-shell route format is fixed.
HMR component update path resolution uses rootDir.
MCP project scans ignore EBADF file system errors.
The prerender builder ensures routes have a leading slash.
Handles a missing package manager during analytics initialization.
Scopes the Chrome executable path to individual Playwright instances.
Preserves error stack traces during prerendering.
Ensures errors from transitive SCSS partials are tracked in watch mode.
Fixes sourceRoot resolution for the MCP projects tool.
Ensures Vitest mock patching runs only once.
Console methods are restored after the logger completes.
Migrate-only updates use the parsed package name.
Redirect responses now ensure unique values in the Vary header.
The vitest Playwright provider now allows any CHROME_BIN value.
Line endings are normalized when generating CSP hashes.
Assets are resolved correctly during i18n prerendering.
Package names are quoted conditionally based on host requirements when adding dependencies.
Preserves the exact requested version when adding a package.
The unit-test builder treats an empty browsers array as undefined.
Polyfills are bundled to preserve their execution order in the development server.
Improves header validation logic in SSR.
When the minimal option is enabled, schematics no longer add test dependencies.
Corrects dev dependency detection when running ng add.
Fixes a memory leak when serving applications with i18n.
Ensures group members are updated to the targeted version.
Formatting schematic changes now ignores unknown files.
The unit-test builder resolves style include paths relative to ng-package.json.
Non-relative imports are conditionally allowed with vi.mock.
The dev-server now normalizes allowedHosts.
Complex range specifiers are now quoted when passed to the package manager.
Prettier execution now enables the shell option on Windows.
Renamed files are now identified by their new path.
Scoped packages in Yarn Classic list output are now parsed correctly.
Absolute setup file paths are now resolved correctly in Vitest.
Addresses the Node.js deprecation DEP0190.
Prevents incorrect catch binding removal when downleveling for-await code.
Removes special characters from the jasmine-vitest report filename.
Removes a nonexistent link from the MCP response.
Corrects the VS Code MCP configuration generated for new projects.
Correctly spawns package managers on Windows.
Normalizes roots to POSIX to improve Windows compatibility.
Resolves test files correctly on Windows when using non-C drives.
Handles platform destruction during rendering.
Project targeting is corrected during Vitest debugging.
Non-prefixed requests are allowed when using SSR with a base href.
The status code is propagated to redirects.
Tests run when a compilation error is resolved.
The resolver now includes the browser condition for Vitest.
Well-known non-Angular URLs receive a leading slash.
The locale base href retains its leading slash.
The Jasmine-to-Vitest refactor now handles createSpyObj calls without a base name.
The Jasmine-to-Vitest migration improves the safety of transforming done callbacks.
Redirects no longer enter a loop with encoded query parameters.
Paths passed with --include are now normalized to POSIX format.
The migration now adds missing imports for lifecycle hooks, so migrated tests can reference those hooks.
The Jasmine-to-Vitest migration now handles jasmine.clock().mockDate() correctly.
The migration no longer sets esModuleInterop or moduleResolution when module is preserve.
The CLI now resolves dependencies correctly for the node modules directory check.
The Vitest runner now configures headless mode correctly per browser.
URL joining for prerender routes is now handled correctly.
The dev server now uses HTTP/1.1 when SSR is used with SSL.
Coverage paths now resolve correctly for JSDOM on Windows.
Redirects now handle X-Forwarded-Prefix and APP_BASE_HREF.
@angular/cli 2050 changes
Breaking changes 13
forceAuth is removed.
Unscoped credential parsing is removed.
Generated directives do not use a .directive extension or type.
Generated guards use a dash type separator.
Generated modules use a dash type separator.
Node.js v18 and versions 22.0 to 22.10 are no longer supported; the minimum supported versions are 20.19, 22.11, and 24.0.
The API is exposed, replacing provideServerRouting.
The migration updates provideServerRoutesConfig to provideServerRendering.
The API is removed as provideServerRendering is exposed.
Generated resolvers use a dash type separator.
The option is removed from several schematics; server routing is used with the application builder.
Generated services do not use a .service extension or type.
TypeScript versions less than 5.8 are no longer supported.
Security 2
Angular SSR has a Server-Side Request Forgery (SSRF) flaw
Prevents a malicious URL from overriding the host.
New APIs and options 6
A default application browser option is supported.
Applications can use a default outputPath option.
Application builds can control source map sources content.
The reporters option is enabled for the unit-test builder.
Vitest-based unit testing can use the watch option.
New apps can be generated as zoneless through a prompt.
Behavior and default changes 4
When resolving version ranges, deprecated versions are now used as a fallback if no non-deprecated version is found.
The API is stabilized.
The browser support policy expands to widely available Baseline.
New projects use the TypeScript module preserve option.
Tooling 15
Version 30 is now allowed for jest.
Version 30 is now allowed for jest-environment-jsdom.
New projects directly use @angular/build.
Generated components do not use a .component extension or type.
Generated component templates use a .ng.html file extension.
Applications can use custom resolution conditions.
Newly generated applications include global error listeners.
Generated interceptors use a dash type separator.
Generated pipes use a dash type separator.
The @angular/ssr dependency is added only when the provideServerRendering import has been updated.
Sass package importers are supported.
Migrations are added for server rendering updates.
An update migration preserves previous style guide generation behavior.
Generated applications and libraries use TypeScript project references.
Experimental Vitest unit testing and browser support are added to unit testing.
Fixes and other changes 10
Common engine rendering options now allow all hosts to prevent validation errors.
Prevents removing @angular/localize when external packages are present.
Corrects the include configuration for spec files.
Locale handling in app-engine is improved.
Route matching for wildcard routes is improved.
Redirects from guards are now handled during prerendering.
The Angular locale data namespace is resolved correctly in esbuild.
Schematics now respect --force when a schematic contains host.create.
SSR now correctly handles routes with matrix parameters.
Server-side navigation now triggers a redirect.
@angular/cli 1944 changes
Breaking changes 5
The polyfill is no longer added automatically; applications relying on Angular localization must include it manually in angular.json's polyfills section.
CommonEngine must now be imported from @angular/ssr/node instead of @angular/ssr.
The DevServer and ExtractI18n builders no longer accept browserTarget; use buildTarget instead.
Protractor is no longer supported; projects relying on it should consider migrating to another E2E testing framework.
Validation prevents using provideServerRoutesConfig in a browser context.
New APIs and options 22
An opt-in for a new @angular/ssr feature is enabled.
AngularAppEngine adds getHeaders for handling static page headers.
AngularNodeAppEngine adds getHeaders for handling static page headers.
A new API provides Node.js integration.
A Node.js request handler utility is added to @angular/ssr.
A request handler utility is added to @angular/ssr.
Component generation can opt to export the component as the default export.
Dynamic route resolution using the Angular router is added.
A new hybrid rendering API is introduced.
The isMainModule function is added.
Disabling server features via the command line is simplified with --no-server.
The application builder adds the outputMode option.
The blank schematic accepts a package manager option.
PrerenderFallback is exported.
The REQUEST token is exported.
The REQUEST_CONTEXT token is exported.
The RESPONSE_INIT token is exported.
The application builder supports sass in stylePreprocessorOptions.
The angular.json schema supports Auto-CSP configuration.
A server routing configuration API is added.
The application builder adds the experimentalPlatform option under ssr.
New workspaces or applications can be set up in zoneless mode.
Performance 1
The CLI enables Node.js compile code cache when available.
Behavior and default changes 8
AngularAppEngine is exported as a public API.
Object options supplied from the CLI are merged.
Component stylesheet hot replacement is enabled by default.
New SSR apps include withEventReplay() in provideClientHydration.
Prerendering uses ssr.entry, enabling access to local API routes.
The generated default tsconfig no longer includes declaration.
The generated default tsconfig no longer includes sourceMap.
The utility is exposed in the public API.
Tooling 5
The builder sets the development or production condition.
Karma coverage is supported with the application builder.
Karma is supported with esbuild, including watch mode.
The app-shell and SSR schematics adopt the new Server Rendering API.
The Vite dev-server uses ssr.entry when available.
Fixes and other changes 3
String key/value pairs are handled, including values passed with --define.
The schematic no longer shows the server routing prompt when using the browser builder.
Generated components explicitly set standalone to false.
@angular/cli 1819 changes
Breaking changes 4
With the application builder and SSR, index.html is no longer emitted in the browser directory by default; index.csr.html is emitted instead.
The legacy Sass build pipeline support is removed for webpack-based builders.
The ng doc command is removed without a replacement; searches can be performed at angular.dev.
Adds support for Node.js v22 and removes support for versions below 18.19.1 and 20.11.1.
Deprecations 1
NodePackageLinkTask is deprecated; create a custom task instead.
New APIs and options 5
Use the index option's output field to retain the old index.html output behavior with SSR.
Adds ng dev as an alias for ng serve.
Adds the --version option to the default command.
The library builder adds support for the poll option.
Adds a maximum rendering timeout for SSG.
Performance 1
Adds persistent caching of JavaScript transformations.
Behavior and default changes 5
New projects use TypeScript bundler module resolution.
Standalone bootstrap uses the eventCoalescing option by default.
Supports native async/await when an app is zoneless.
Module bootstrap uses the ngZoneEventCoalescing option by default.
Injects event-dispatch in the SSR HTML page.
Tooling 3
Introduces a new official build system package.
New projects replace the assets directory with a public directory.
Enhances Sass rebasing for resource URLs defined in variables and handling of external paths.
@angular/cli 1744 changes
Breaking changes 10
The deprecated appId option is removed.
The unused appId option has been removed from the app-shell and Universal schematics.
Generated tsconfig.json no longer includes baseUrl.
The dev-server and extract-i18n builders gain a buildTarget option.
Node.js 16 is no longer supported.
Node.js v16 is no longer supported.
prerender and ssr are enabled for all build configurations.
This option has been removed from the public pwa and app-shell schematics.
The deprecated method has been removed in favor of runExternalSchematic.
The deprecated method has been removed in favor of runSchematic.
Deprecations 2
The browserTarget option in the dev-server and extract-i18n builders is deprecated in favor of buildTarget.
This API is deprecated in favor of provideClientHydration.
New APIs and options 4
A performance profiler has been added to CommonEngine.
The browser-esbuild builder supports the deploy URL option.
The application builder supports the namedChunks option.
The ng new command gains an --ssr option for creating an application with server-side rendering.
Performance 1
Automated preconnects have been added for image domains.
Behavior and default changes 8
TypeScript esModuleInterop is enabled by default for ESM compliance.
Hydration is enabled when adding SSR, SSG, or AppShell.
Generated interceptors are functional by default.
The command now generates a functional interceptor by default; use --no-functional to generate a class-based interceptor.
Routing is enabled by default for new applications.
The ssr-dev-server builder is exposed in the public API.
A maximum rendering timeout is added for SSR and SSG during development.
Standalone is enabled by default in new applications.
Tooling 18
The application builder's output structure is standardized.
The ssr option definition is updated.
Esbuild builders gain initial support for bundle budgets.
Esbuild builders support component style budgets.
Esbuild builders support i18n with service worker and app-shell.
The application builder gains initial i18n extraction support.
The esbuild-based builder supports i18n inlining.
SSR with the application builder gains localize support.
New applications use a builder based on the esbuild application builder.
The ng update package group now includes @angular/ssr.
A migration is available to migrate from @nguniversal to @angular/ssr.
A migration is available to replace usages of @nguniversal/builders.
Node.js 20 is now a supported version.
A file containing a list of prerendered routes is generated.
Standalone application routes can be discovered during prerendering.
The Vite-based dev server provides the server baseUrl result property.
The application builder gains initial Web Worker discovery support with esbuild.
Esbuild builders support basic Web Worker bundling.
Fixes and other changes 1
Global CSS updates are applied without a live reload when using Vite.
@angular/cli 1633 changes
Breaking changes 12
The CLI no longer generates CanLoad guards; use CanMatch instead.
This deprecated symbol has been removed along with the UpdateBuffer changes.
This @angular-devkit/core API has been removed in favor of the API from @angular-devkit/schematics.
The deprecated workspace option has been removed; use schematicCollections instead.
The deprecated workspace option has been removed; the project is determined from the current working directory.
The deprecated flatten API has been removed without replacement.
NGCC integration has been removed, so Angular View Engine libraries no longer work.
Node.js v14 is no longer supported; Angular v16 continues to officially support Node.js versions v16 and v18.
The compile method now returns a Promise.
TypeScript 4.8 is no longer supported.
The exception was removed; create a custom error exception instead.
The deprecated UpdateBuffer was removed and UpdateBuffer2 was renamed to UpdateBuffer.
Security 1
The build system adds CSP support for inline styles.
Deprecations 1
The server builder displays a warning when preserveWhitespaces is set in its tsconfig.
New APIs and options 6
The esbuild builder adds a progress option.
The esbuild builder supports the scripts option.
The esbuild development server supports SSL options.
An option is provided to run build-optimizer on server bundles.
A standalone flag is available for new applications.
A standalone option is available when generating a library.
Behavior and default changes 2
Guard generation now creates a functional guard by default; use --no-functional to generate a deprecated class-based guard.
Resolver generation now creates a functional resolver by default; use --no-functional to generate a deprecated class-based resolver.
Tooling 11
The app-shell schematic now supports standalone applications.
The generated server module file is now named app.module.server.ts instead of app.server.module.ts.
The schematic no longer generates BrowserModule.withServerTransition.
An initial development server is available for the esbuild-based builder.
CSS in the esbuild builder gains initial Autoprefixer support.
The esbuild builder adds initial Tailwind CSS support.
The esbuild builder supports module resolution with Less stylesheets.
The esbuild builder supports standalone app-shell generation.
The update process now shows optional migrations.
Generated server-rendering setup uses provideServerRendering instead of provideServerSupport.
The universal schematic now supports standalone applications.
@angular/cli 1547 changes
Breaking changes 23
Analytics APIs were removed from @angular-devkit/core and @angular-devkit/architect without replacement.
The unused appDir option was removed from Universal and App-Shell schematics and can be deleted from existing configurations.
Browserslist configuration files are no longer generated in projects.
The server builder's bundleDependencies option was removed; use externalDependencies to exclude specific node_module packages from the final bundle.
The global analyticsSharing option was removed without replacement; remove it from global Angular configuration if present.
New applications no longer include environment files.
Producing ES5 output is no longer possible because Internet Explorer is no longer supported.
Use externalDependencies to exclude specific node_module packages from the final bundle.
Newly generated projects no longer include karma.conf.js.
Set NG_BUILD_LEGACY_SASS=1 to opt into the legacy Sass API.
Node.js versions older than 14.20 are no longer supported; supported versions are 14.20.x, 16.13.x, and 18.10.x.
The path option in schematics schema no longer has a special meaning; use the workingDirectory smart default provider instead.
New project templates no longer include a polyfills.ts file.
require.context is no longer parsed; webpack-specific features are not supported or guaranteed to work in the future.
Workspace projects with a missing root property now cause an error.
The CLI now uses the Sass modern API by default; the legacy API remains available by setting NG_BUILD_LEGACY_SASS=1.
Deprecated support for Stylus was removed; migrate to another CSS preprocessor supported by the CLI.
New projects no longer include test.ts.
Deprecated support for tilde imports was removed; remove the tilde from Sass imports.
The CLI sets TypeScript target to ES2022 and useDefineForClassFields to false unless the configured target is ES2022 or later; use Browserslist to control ECMA version and features.
TypeScript versions older than 4.8.2 are no longer supported.
Tests now report errors for unknown properties and elements.
Use the workingDirectory smart default provider instead of relying on the special meaning previously given to the path option.
New APIs and options 2
The app-shell builder adds ng-server-context.
The library schematics now provide a --project-root option.
Behavior and default changes 6
Analytics are not collected when the CLI runs in non-TTY mode.
Providing a Karma configuration is now optional.
The Karma builder's main option is now optional.
The polyfills option in all builders now supports an array of module specifiers.
Both script and module sourceTypes can now be localized.
New projects are generated using TypeScript 4.8.2.
Tooling 13
The builder automatically includes @angular/localize/init when it is found in types.
The builder automatically includes @angular/platform-server/init during server builds when the package is installed.
Browserslist is used to determine ECMA output.
The builder warns when component styles sourcemaps are not generated while styles optimization is enabled.
The esbuild builder warns when the TypeScript target is older than ES2022.
The esbuild-based builder adds initial incremental code rebuilding and watch support.
The esbuild-based builder now has initial support for fileReplacements.
The esbuild builder adds initial incremental rebuilds for global styles.
Generated component templates no longer include ngOnInit.
The build tooling switches to the Sass modern API.
The esbuild builder uses a Sass worker pool for Sass support.
Using bundleDependencies is unlikely to produce working server bundles; externalDependencies can instead exclude selected packages.
Vendor chunking was added to the server builder.
Fixes and other changes 3
Server bundles now export @angular/platform-server symbols.
ng add can now find prerelease package versions when the CLI itself is a prerelease.
Conditional exports are now handled in the scripts and styles options.
@angular/cli 1445 changes
Breaking changes 26
Deprecated camel-cased arguments are no longer supported; use kebab-case arguments such as --source-map.
The API was removed; use other Node.js or other APIs.
Importing a CSS file as an ECMA module now causes a build-time error because this non-standard Webpack-specific feature is not supported by the Angular CLI.
The @angular-devkit/core fs namespace was removed; use other Node.js or other APIs.
JSON-formatted help output was removed.
The public namespace was removed; AngularWebpackPlugin and AngularPluginOptions are now used directly instead.
The API was removed; use other Node.js or other APIs.
The option no longer accepts a migration name string; use --migrate-only --name <migration-name>.
The command syntax changed: project settings use ng analytics <setting>, and global settings use ng analytics <setting> --global.
The environment variable was removed; use cli.cache in workspace configuration instead.
The deprecated ng x18n and ng i18n-extract commands were removed in favor of this command.
The command was removed; use the --help option instead.
The --configuration option cannot be used with ng run; provide the configuration as part of the target.
The --all option was removed without replacement; use package-manager update or upgrade commands for packages without ng update capabilities.
The ng --version form was removed; use ng version or ng v.
Node.js v12 support was removed; use Node.js v14.15 or later.
Package scripts are now ignored by default during installation; set allowScripts to true for a task that needs install or postinstall scripts to execute.
The API was removed; use a third-party JSON parser such as jsonc-parser.
The deprecated option was removed from all builders; use --configuration production or -c production when the builder's default is not production.
The polyfill is no longer automatically provided in JIT mode; applications that use its JavaScript APIs must add core-js and import the reflect-metadata proposal in polyfills.ts.
Workspace configuration can now specify multiple schematic collections using this option, replacing defaultCollection.
The browser and karma builders now validate script input file extensions; valid extensions include .js, .cjs, .mjs, .jsx, .cjsx, and .mjsx.
The deprecated browser and server builder option was removed; use a lint rule or external tool to detect circular dependencies in project code.
The browser and karma builders now validate style input file extensions; valid extensions include .css, .less, .sass, .scss, and .styl.
The deprecated analytics property was removed from the interface.
TypeScript 4.4 and 4.5 support was removed; update to TypeScript 4.6.
Deprecations 2
The workspace option is deprecated in favor of schematicCollections.
The workspace option is deprecated; the project to use will be determined from the current working directory.
New APIs and options 10
A new rule was added to the schematics utilities.
Use this option with ng analytics to apply a setting globally.
A parameter was added to allow returning hidden schematics.
Disable and enable aliases are available for the off and on analytics commands.
A new command provides analytics information.
A new command is available for managing the CLI cache.
The new --standalone option is available when generating Angular code.
A utility subpath export is available for Angular rules and utilities.
Schematics utilities can read JSON content directly from a Tree.
Schematics utilities can read text content directly from a Tree.
Behavior and default changes 2
New and existing projects now use ES2020 as their compilation target.
The CLI uses PNPM as the package manager when pnpm-lock.yaml exists.
Tooling 4
Generated dependency version ranges now use ^ as the version prefix.
The CLI supports autocompletion and can prompt users to set it up.
An initial experimental esbuild-based application browser builder is available.
The command can set up CLI autocompletion by modifying .bashrc files.
Fixes and other changes 1
The options parameter type now supports null.
@angular/cli 1340 changes
Breaking changes 33
The deprecated TSLint builder was removed; the notes recommend angular-eslint instead.
Removed as a deprecated dev-server builder option; configure it in the browser builder instead.
The build no longer automatically includes ES2015 polyfills for ES5 browsers; manually added polyfills are unaffected.
Removed as a deprecated dev-server builder option; configure it in the browser builder instead.
Removed from application polyfills and uninstalled; add it back to the polyfills file and install the package if needed.
Configure the build cache in the workspace configuration; this replaces
NG_PERSISTENT_BUILD_CACHE.Removed from the
web-workerschematic because it was unused.Listed among removed deprecated dev-server options; a separate change also deprecates
deployUrl.Removed from the public API; use
jsonc-parserinstead.Support for producing and conditionally loading ES5 and ES2015+ application variants was removed.
Applications using
webpack-clidirectly must set this environment variable to1to avoid builds failing with dynamic imports.Removed from the browser builder; CSS is now always extracted.
Inlining of Google fonts in WOFF format was removed; supported browsers use WOFF2.
Use
$idinstead of the deprecated schemaidtransformation behavior.Use this option in place of the removed
inlineStyleMimeTypeoption.Removed from
AngularWebpackPluginOptions; useinlineStyleFileExtensioninstead.Removed without replacement because it was unused.
Support was dropped in favor of the official Karma coverage plugin
karma-coverage.Removed from the
applicationschematics because IE 11 is no longer supported.Removed from all schematics; use
ng lint --fixinstead.Use this command to fix lint issues instead of the removed
lintFixschematic option.This environment variable no longer has effect; configure
cli.cachein the workspace configuration instead.Support was removed;
sassis used by default to compile SASS and SCSS files.Node.js versions prior to 12.20 are no longer supported.
Used by default to compile SASS and SCSS files after support for
node-sasswas removed.Removed from the dev-server builder because it had no effect.
Removed as a deprecated dev-server builder option; configure it in the browser builder instead.
Removed from the
service-workerschematic because it was unused.Removed as a deprecated schematics API.
Removed as a deprecated schematics API.
Versions prior to 4.4 are no longer supported.
Version 3 is no longer supported by
@angular-devkit/build-webpack.The dev-server uses WebSockets for HMR and live-reload communication; proxy users need to enable WebSocket proxying.
Deprecations 2
Deprecated because its functionality is included in
@angular-devkit/build-angular; the package is no longer needed by the CLI.The environment variable will be removed in the next major version; configure
cli.cachein the workspace configuration instead.
Behavior and default changes 3
Enabled by default, with configurable options.
New projects are created with RxJS 7.
Added to all script tags in generated output.
Tooling 2
The dev server supports proxy configuration files using ESM.
Added to the workspace TypeScript configuration for newly generated workspaces.
@angular/cli 1267 changes
Breaking changes 40
This option, previously used to support string-based lazy loading, is removed without replacement.
This option, previously used to support string-based lazy loading, is removed without replacement.
The deprecated View Engine Webpack plugin is removed; custom standalone Webpack configurations should use AngularWebpackPlugin instead.
The browser builder default for AOT changes from false to true.
App-shell generation now supports Ivy only.
The browser builder default for buildOptimizer changes from false to true.
This option, previously used to support string-based lazy loading, is removed without replacement.
This option, previously used to support string-based lazy loading, is removed without replacement.
The component schematic no longer supports the entryComponent option because it was intended for View Engine.
The leftover experimentalRollupPass option has been removed.
The browser builder default for extractLicenses changes from false to true.
The deprecated browser and server builder option is removed; use the locales object in project metadata instead.
The deprecated browser and server builder option is removed because the format is determined automatically.
The extract-i18n option is removed; use the format option instead.
The deprecated i18nLocale and i18nFormat options have been removed from i18n-extract.
The deprecated browser and server builder option is removed; use the localize option instead.
The extract-i18n option is removed; use i18n.sourceLocale in project configuration instead.
Webpack-specific importing or requiring of non-module files is removed; use an HTML img element for image assets instead.
Critical CSS inlining is enabled by default; set inlineCritical to false to turn it off.
Schema validation no longer supports draft-04 and draft-06. Schema authors using id should replace it with $id; top-level id is auto-renamed temporarily.
Support for Karma 5.2 has been dropped.
Support for karma version 5.2 is dropped; the minimum supported version is 6.0.0.
The server and browser builder option is removed without replacement.
The browser builder default for namedChunks changes from true to false.
The command always uses the Ivy compiler; the --ivy option is removed. Applications opted out of Ivy receive a warning and an attempted Ivy extraction.
Support for ng-packagr 11 has been dropped.
Support for ng-packagr version 11 is dropped; the minimum supported version is 12.0.0-next.
Angular CLI 12 requires Node.js 12.13+ or 14.15+.
The browser and server builder default for optimization changes from false to true.
Production builds are enabled by default.
The browser and server builder default for sourceMap changes from true to false.
Support for string-based lazy loading has been dropped.
Stylus is no longer a supported style value in the application, component, and ng-new schematics.
The browser builder default for vendorChunk changes from true to false.
Application builds no longer use the View Engine compiler; Ivy is always used, with a warning and attempted Ivy build for applications opted out of Ivy.
Deprecated View Engine support for i18n extraction has been removed.
The build system has been upgraded to Webpack 5.
Webpack 5 changes lazy-loaded JavaScript filenames in development when namedChunks is enabled; post-build processes that assume filenames may need adjustment.
Web worker URLs must use new URL with import.meta.url in the Worker constructor.
Support for zone.js 0.10 is dropped; the minimum supported version is 0.11.4.
Deprecations 2
The application and ng-new legacyBrowsers option is deprecated.
The --prod command-line argument is deprecated.
New APIs and options 4
Architect target definitions now support defaultConfiguration, which the architect handles when selecting a target configuration.
The legacy-migrate message format is exposed.
Skips the ng add confirmation prompt and directly installs and executes the package, for example in CI or automated scripts.
A stylesheet language can now be specified for inline component styles.
Performance 1
Webpack's garbage-collection memory caching is used in watch mode.
Behavior and default changes 7
inlineCritical is enabled by default.
The CLI confirms the ng add action before installing packages.
The command asks for confirmation of the package and version before installing and executing an uninstalled package.
Webpack caching is disabled when NG_BUILD_CACHE is used.
Programmatic builder execution functions are marked as experimental.
showCircularDependencies is disabled by default.
Strict mode is enabled by default in generated projects.
Tooling 12
A migration removes deprecated options from angular.json.
Builder results now provide the output path.
The build displays a warning when a project requires IE 11 support.
Inline component CSS styles can now be processed, including in AOT and JIT builds.
The webpack integration supports generating data URIs for inline component styles in JIT.
Inline component styles are processed in AOT builds.
The JIT mode linker is integrated into the build tooling.
ng version output now includes the package manager name and version.
Stage 3 CSS features are now provided through postcss-preset-env.
TypeScript 4.2 is supported.
Webpack 5 is supported by the build-webpack tooling.
The CLI now supports the XDG Base Directory Specification.
Fixes and other changes 1
Schematic defaults are inferred correctly when using --project.
@angular/cli 1168 changes
Breaking changes 24
The deprecated builder package was removed; use the ng-packagr builder from @angular-devkit/build-angular instead.
New projects no longer include IE9 or IE10 in browserslist.
Generated E2E tests use native promise support.
A migration removes the deprecated environment option.
The deprecated Karma builder option was removed.
The experimental @angular-devkit/core workspace API was removed and replaced by the stable workspace API.
External schematics are resolved from the collection that requests them.
The browser builder option's default changed from false to true, reflecting the behavior expected when this deprecated option is removed.
Values for fileReplacement receive validation.
The deprecated isObservable function is removed.
The deprecated function was removed from @angular-devkit/core; use isObservable from the rxjs package instead.
Coverage reporting switches to karma-coverage.
The default value for lint fix is removed.
The deprecated API was removed; use MODULE_NOT_FOUND instead.
The supported ng-packagr version is updated to 11.
A migration removes rebaseRootRelativeCssUrls from workspace configuration.
The deprecated browser builder option was removed without replacement; it previously rebased root-relative stylesheet URLs to include the base HREF and deploy URL.
The deprecated API was removed; use require.resolve instead.
Using --strict no longer generates a special package.json or no-any.
The deprecated option was renamed to styles[].inject; direct build-angular users are affected, while users will be migrated automatically.
The deprecated terminal API was removed; use third-party packages such as chalk, colors, or ansi-colors instead.
The deprecated API was removed; use the logging API from @angular-devkit/core instead.
TypeScript 3.9 is no longer supported by the build tooling; upgrade to TypeScript 4.0.
Package package.json files are resolved from the workspace directory.
Deprecations 2
The build warns when using unsupported IE9 or IE10 browsers.
A deprecation warning is added for node-sass.
New APIs and options 3
The dev-server supports configuring custom headers.
Resolver generation is now available.
NodeWorkflow can now use a root path.
Performance 1
Font inlining optimizations are enabled to improve builds.
Behavior and default changes 11
Using --defaults no longer displays deprecation messages for default values.
The install task shows the active package manager.
Ivy extraction is enabled by default for Ivy applications.
ng add skips searching deprecated packages.
The CLI uses the newer update command when the globally installed version is newer.
When the requested port is in use, the CLI asks to use a new port.
A default value is added to the progress option.
The scripts option supports package references.
The styles option supports package references.
The strict mode option now includes user-analytics.
The version command no longer assumes Node module installation.
Tooling 16
The build supports emitting AVIF image files.
Build stats output is improved, including bundle size presentation.
A migration adds declaration maps to libraries.
A migration replaces deprecated options.
The dev-server headers option is now included in the IDE schema.
Hot module replacement is available out of the box.
I18n messages can be extracted from libraries.
inlineTemplate and inlineStyle can be used with a minimal application.
JIT mode supports guarded class metadata removal.
Karma is available as an optional peer dependency.
Logs from ng update are improved.
protractor is available as an optional peer dependency.
The deprecated option was renamed to scripts[].inject; direct build-angular users are affected, while users will be migrated automatically.
A prompt is added for strict mode.
tslint is available as an optional peer dependency.
A warning is shown when using ES2017 or newer with an incompatible zone.js configuration.
Fixes and other changes 11
The generated canLoad guard signature is corrected.
Replaced resources emit require when CommonJS is used as the module format.
JSON help now includes deprecated options.
ng update --all is a no-op when there is nothing to update.
Missing defaults are included for the optimization property.
Project names are validated using the correct validation logic.
Prompt answers are coerced to the requested property types.
Prompts are no longer displayed twice.
Resolution of @schematics/angular favors dirname.
Type-only imports are elided when emitDecoratorMetadata is enabled.
Updates no longer fail when Yarn 2 protocols are used.
@angular/cli 1045 changes
Breaking changes 24
The server builder no longer accepts the commonChunk option; direct build-angular users are affected.
The Protractor builder elementExplorer option is removed; the notes point to an alternative debugging method.
A migration removes the deprecated es5BrowserSupport option.
A migration removes the deprecated evalSourceMap option.
The app-shell schematic no longer accepts the index option.
AngularCompilerPlugin no longer exposes the deprecated isSupported method.
The app-shell schematic no longer accepts the name option.
Use the NG_BUILD_PROFILING environment variable in place of the removed profile option.
The deprecated ng get command is removed; use ng config instead.
The deprecated ng set command is removed; use ng config instead.
The app-shell schematic no longer accepts the outDir option.
A migration removes the deprecated profile option.
The CLI throws an error when a specified project does not exist.
The app-shell schematic no longer accepts the root option.
Out-of-the-box support for the rxjs-compat path mapping is no longer provided.
A migration removes deprecated server options from project configuration.
A migration removes the deprecated skipAppShell option.
Use sourceMap.vendor in place of the removed vendorSourceMap option.
The universal schematic no longer accepts the test option.
The universal schematic no longer accepts the testTsconfigFileName option.
The deprecated typescriptMismatch warning option is removed; disableTypeScriptVersionCheck is the alternative for disabling version checks.
The app-shell schematic no longer accepts the universalProject option.
The server builder no longer accepts the vendorChunk option; direct build-angular users are affected.
A migration removes the deprecated vendorSourceMap option.
New APIs and options 3
Use the Angular compiler option disableTypeScriptVersionCheck to disable TypeScript version checks.
Strict mode enables stricter type checking and effective optimization coding rules.
The strict setting is added to angular.json.
Behavior and default changes 7
Generated compiler target and module settings are updated.
CSS calc optimizations are disabled.
New applications are evergreen.
Lazy loading on the server is enabled for new projects.
The --strict option configures stricter bundle budgets.
The default TSLint formatter changes to stylish.
New projects are generated using TypeScript 3.9.
Tooling 6
Generated projects use .browserslistrc instead of a file named browserslist.
The build displays warnings when projects depend on CommonJS.
Server bundles use ES2016 as their syntax target.
Generated projects use a solutions-style TypeScript configuration structure.
Strict mode adds the TSLint no-any and typedef rules.
Webpack can resolve packages using Yarn Plug’n’Play.
Fixes and other changes 5
Duplicate modules are deduplicated during builds.
The missing experimentalRollupPass option is added to the CLI schema.
CSS declaration order is retained when extractCss is used with an @import rule.
Relative stylesheet assets are rebased when preprocessors are used.
Webpack tilde resolution behavior is ensured for stylesheet resources.
@angular/cli 9104 changes
Breaking changes 19
The package is removed from the application when localizing.
Pattern validation is added for browserTarget and serverTarget.
The server builder now defaults bundleDependencies to all, bundling all of node_modules in the final server bundle.
The alias for the deploy command was removed.
The deprecated constructor that accepted a directory path has been removed; provide a virtualFs.Host instead.
The enableIvy option is removed.
FileSystemSink has been removed; use the virtualFs.Host classes from @angular-devkit/core.
I18n migrations are disabled.
Async files are excluded from the initial bundle budget.
EngineHost.listSchematics has been removed; use listSchematicNames instead.
The universal schematic is hidden and can no longer be used with ng generate; use ng add @nguniversal/express-engine or ng add @nguniversal/hapi-engine for a working universal application.
When installing packages, the CLI no longer uses the global command and instead installs in a separate folder.
The ngcc postinstall hook is removed.
The optimize function has been removed because trees are optimized automatically.
The deprecated spec option has been removed; use skipTests instead.
The deprecated styleext option has been removed; use style instead.
i18n translation file paths are relative to the workspace.
Translation files use the project root as their base.
The build supports TSLint 6.0 and later.
Deprecations 5
The additionalLazyModuleResources option is deprecated.
The additionalLazyModules option is deprecated.
The discoverLazyRoutes option is deprecated.
Deprecated i18n options are supported alongside the new configuration.
The lazyModules option is deprecated.
New APIs and options 15
The webpack-dev-server allowedHosts option is exposed.
The CLI supports custom npmrc file paths.
Adds the experimentalRollupPass option.
The server builders support externalDependencies.
Ivy libraries are introduced for development.
With minimal set to true,
ng generatedoes not create test files.Multiselect lists can specify defaults.
Packages added with ng-add can be configured not to be saved as dependencies.
A generator for interceptors is available.
The ng new command gains a strict option.
A packageManager option is available in the Angular package schematic.
Project metadata can be accessed through the architect host.
PWA functionality is available in CLI applications.
The component generator accepts a type option.
runWebpackDevServer accepts a webpackDevServerFactory.
Performance 2
Script bundles are fully optimized when bundle downleveling is used.
Scripts optimization is enabled for the server bundle.
Behavior and default changes 15
Budgets check differential builds separately.
The server builder enables bundleDependencies by default.
bundleDependencies can be specified as a boolean.
Assets are copied outside webpack only when differential loading is needed.
i18nFile may be omitted when using i18nLocale.
The update tooling includes prerelease peer dependencies when using the next option.
Update commit creation is disabled by default, so running migrations no longer creates a commit unless requested.
The update command skips the project analytics prompt.
Package installation output for add and update is shown only when errors occur.
The CLI no longer passes
no-bin-linksduring npm or Yarn installs.The update tooling validates peer dependencies; missing peer dependencies produce warnings instead of errors, and out-of-range peers are updated.
A default poll value is used when none is present.
The workspace tsconfig now includes skipLibCheck.
The workspace tsconfig generated by the CLI includes the strict compiler option.
The update command creates a separate commit for each migration.
Tooling 27
The app-shell schematic can be added after using the nguniversal schematics.
The guard schematic adds a CanDeactivate guard.
The app-shell schematic can be added without specifying clientProject.
Lazy chunks receive a crossorigin attribute.
i18n extraction is supported with Ivy.
Localization is supported for non-differential builds.
Localization can run in parallel.
Localization can be used with the development server.
The CLI improves i18n option migrations, including output path and localized base HREF handling.
Initial support is added for inlining translations during builds.
The CLI adds Ivy library migration support, allowing library projects to be migrated for Ivy.
The CLI supports using multiple configurations.
Schema prompt types for multiselect are automatically discovered.
The update command supports prerelease CLI versions when bootstrapping an update.
The command prints when a commit is made and includes the migration name in the commit header.
After Angular migrations, the command provides a link to the update guide.
The command reports whether Ivy is enabled.
ngcc runs during postinstall.
Peer dependency support is updated.
New projects use an updated Protractor version.
The CLI can run a single migration from a package.
Test coverage collection supports JSX and TSX files.
The migration replaces deprecated TestBed.get calls with TestBed.inject.
tsickle is an optional peer dependency of build-ng-packagr.
Differential loading is supported for web workers.
The CLI checks for and prompts users about workspace-level analytics configuration.
The translation file parser supports XMB and XTB files.
Fixes and other changes 21
The app-shell builder works with Ivy.
The deprecation of baseUrl in the Protractor builder was removed.
Fixes optimization and bundleDependencies issues in universal builds.
Correct SRI values are injected in downlevel bundles.
The migration handles aliased or already-existing environment imports.
Permission errors for ES5 bundles are fixed.
The extract i18n format option is normalized.
Licenses are kept when license extraction is disabled.
The HTML lang attribute is set when localizing.
Fixes i18n with Ivy in the universal builder.
The document locale is set when i18nLocale is used.
Lazy-loading module generation correctly looks up the routing module.
A locale identifier is set when localizing.
Using an array option multiple times no longer produces a warning.
Update logic now accounts for linked packages when determining packages to update.
The outdated CLI message and logic for determining whether the installed CLI is out of date are clarified and corrected.
The Node.js version check is more robust.
Proxy configuration works with Windows authentication.
Generated routes are inserted before wildcard routes so they are not shadowed.
Fixes sockPath handling for a custom path.
Sourcemaps are updated during localization.
@angular/cli 8125 changes
Breaking changes 28
Adds an Angular version check to required builders.
The libraries tsconfig no longer includes annotateForClosureCompiler.
Requires browserTarget to match the target pattern.
angular-devkit/core no longer depends on chokidar; users relying on its file-watching functionality must add chokidar to their devDependencies.
Deprecated test functions were removed from the public API.
Throws an error when multiple bundles are given the same name.
The experimentalImportFactories option has been removed.
The experimentalIvy option is renamed to enableIvy.
The importFactories option was removed.
New applications no longer include the ivy-ngcc postinstall script.
The ES6 polyfill is dropped from modern polyfills.
The unsupported dryRun and force options have been removed from ng add.
The deprecated eject command has been removed.
The generated service worker files are relocated.
Schematics commands now fail when given unknown options.
The update command checks that the Git repository is clean before proceeding.
The minimum required Node.js version is now 10.9.
Changes the es5BrowserSupport output filename to polyfills.es5.js.
The unimplemented prompt priority was removed.
Errors when both baseUrl and devServerTarget are used in Protractor.
Type checking is added for the Protractor configuration file.
Removes pure_getters.
Root-relative stylesheet URL rebasing is disabled by default; this compatibility option is available during the 8.x release cycle for transition.
The build system now uses dart-sass instead of node-sass by default; install node-sass as a dev dependency to keep using it.
Fails the build if the service worker fails.
Disables stylesheet root-relative URL rebasing by default.
The end-to-end TypeScript configuration file is renamed to tsconfig.json.
The worker alias is dropped.
Security 1
Stops the dev server fallback from serving paths outside the configured serve path.
Deprecations 5
Adds a warning for ES2017.
The browser builder option is deprecated.
The redundant isObservable function was deprecated.
Deprecates the profile option in build.
Synchronous schematics testing methods were deprecated.
New APIs and options 18
Analytics interfaces and basic implementations were added, with support in schematics.
Adds a new AppShell builder API.
A build builder was added to @angular-devkit/build-webpack.
A new API lets tooling developers replace the behavior of CLI commands such as build and test; Architect is also being used to support a deploy command.
Aliases were added to collection-schema.json.
An API builder for the dev server was added.
The Ivy configuration option is named enableIvy and is set to true.
Adds the experimentalImportFactories option.
An option was added to control lazy route discovery.
The library schematic gains a project name option.
pnpm is now supported as a package manager option.
Project type was added as a workspace special extension.
A reusable JobStrategy was added.
Adds a server output path.
An API builder for webpack was added.
Tools can use the Workspace API to read or write the angular.json file.
Core APIs to read and write workspace JSON were added.
The workspace project type is available as a special extension.
Behavior and default changes 19
Implements the stable Architect API.
New projects are scaffolded with Angular packages at version 8.
Ignores bundle budgets when running Karma or the dev server.
createJobFactory no longer requires options.
Builds modern and legacy application bundles; enabled by default when the application tsconfig.json target is es2015. Set target to es5 to disable it.
Implements the stable Architect API for extract-i18n.
Limits extract-i18n output to warnings and errors.
Implements the stable Architect API for Karma.
Ivy supports string syntax for loadChildren, and ViewEngine supports import syntax.
newProjectRoot defaults to the current directory.
Updating the CLI automatically updates Angular builders.
Prevents polyfill chunks from being split.
Progress bar updates are no longer throttled.
Implements the stable Architect API for Protractor.
Karma configuration templates set restartOnFileChange to true.
Schematics are now all asynchronous, which affects authors writing schematics.
The default TypeScript module format changes to esnext.
New workspaces set the TypeScript target to es2015.
The root component schematic no longer includes ViewEncapsulation by default, and provided ViewEncapsulation values are now configured.
Tooling 34
@ngtools/webpack added support for Angular 8.
Experimental package versions now follow the formula 0.(major × 100 + minor).patch; for this release, @angular-devkit/build-angular is version 0.800.0.
Adds support for ng-packagr version 5.
Generated scaffolding no longer includes @angular/http as a dependency.
Adds Browser Builder v2.
Adds analytics for build operations.
Generated projects gained support for Chrome 41.
Opt-in reporting lets developers share CLI usage data with the Angular team and their own Google Analytics account.
More codelyzer rules are used in generated workspaces.
Updates to core-js 3.
New projects no longer include the unused core-js dependency.
Moves dev-server to the new API.
The migration runs only for projects using @angular-devkit/build-angular:browser.
Runs differential-loading build steps in sequence to avoid confusing progress information.
Existing ES5 projects are migrated to support differential loading.
Uses named chunks for dynamic imports.
Adds web worker support and webpack transformation to the Karma builder.
Lazy-loaded routes support EcmaScript dynamic import(); ng update changes loadChildren syntax, and the string-based style is no longer recommended.
NGCC was added to the webpack workflow, and its errors and warnings are redirected to webpack.
Loads polyfills-es5 when running tests.
Schematics rules gained support for promises and async operations.
Workspace projects can use scoped names.
Adds Server Builder v2.
A JSON schema is added for service worker configuration.
The browserslist file is moved and updated, and the differential loading migration is aligned with its template.
Enables webpack profiling when using the stats-json flag.
SVG files can be used as templates.
Adds support for TypeScript web workers, including module web workers.
The worker TypeScript configuration is generated outside the src folder and added to the linted tsconfig files.
Moves TSLint to the new API.
Relaxes the TypeScript peer dependency requirement.
A migration is added to update the web-animations-js polyfill.
Schematics for web workers are added.
The CLI bundles WebWorkers automatically into a separate browser script, making it easier to move expensive computation to another thread.
Fixes and other changes 20
Fixes base href insertion when HTML is on a single line.
The build waits for the last output before completing.
Avoids bundling linked modules in the server builder when bundleDependencies is none.
Makes end-to-end tests respect dev-server host and port settings.
Corrects the port number shown in logs when using port=0.
Adds a promise polyfill to the provided polyfills when ES5 browser support is enabled.
Resolves fonts with spaces in their filenames.
No longer shows a warning when font shorthand is used.
Fixes the inability to disable live reload.
Shows an error for missing modules.
Fixed parsing of positional arrays in ng config.
Corrects the location of index.html when outputPath is absolute.
Fixes serving with port 0 so a suitable port can be found.
Uses the dev-server baseUrl in Protractor and accounts for its dynamic port.
Propagates Protractor errors during execution.
Ensures the correct dev-server path when using the public host option.
The .sass file extension is supported again.
Normalizes sourceMap options in the Karma webpack plugin and fixes the option in tests.
Fixes the sourceMap option in tests.
Path handling is fixed to support Windows.
@angular/cli 617 changes
Breaking changes 8
The allowOutsideOutDir option in assets has been removed.
Replaces .angular-cli.json with a workspace configuration file that supports multiple projects and contains CLI configuration and defaults.
The completion command has been removed because its functionality no longer aligns with this CLI version.
Replaces the serve option in ng e2e to specify which server target to use; an empty string means nothing will be served.
The environment option in build-related commands is replaced with fileReplacements.
Replaces the environment option in build-related commands for configuring application environments.
The eject command is temporarily disabled because it is not compatible with the new angular.json format.
The serve option in ng e2e is replaced with devServerTarget, which selects the server target; an empty value means nothing will be served.
New APIs and options 8
Smart defaults let schematic authors control how values are parsed, including assigning an unnamed command-line argument to an option.
Adds configuration and assets to configure the supplied project as a progressive web application.
Installing a package with ng add runs its ng-add schematic when present, allowing package authors to provide dynamic setup instructions.
Generates another individual application inside a workspace, with separate configurations and defaults.
Generates a library in an existing workspace, with a component and service inside a NgModule.
Can serve an application in a multi-application workspace by passing the project name.
A new command helps keep projects up to date by applying package-defined logic and changes that reduce the impact of breaking changes.
Configure default values for any property in any schematic collection at the workspace root, project, or global level.
Tooling 1
The CLI build system upgrades to Webpack 4, which comes with performance and bundling improvements.