Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: angular/angular-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v21.2.8
Choose a base ref
...
head repository: angular/angular-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v21.2.9
Choose a head ref
  • 14 commits
  • 34 files changed
  • 7 contributors

Commits on Apr 23, 2026

  1. fix(@schematics/angular): add missing imports for focus and skip APIs…

    … in refactor-jasmine-vitest
    
    `xdescribe`, `fdescribe`, `xit` and `fit` Vitest equivalents use a slightly different API. This change handles the `--add-imports` aspect where the appropriate functions are imported for these specific APIs.
    
    Fixes #33021
    
    (cherry picked from commit b47dfba)
    hawkgs authored and alan-agius4 committed Apr 23, 2026
    Configuration menu
    Copy the full SHA
    e7abeb5 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2026

  1. fix(@angular/cli): remove standalone true ref in ai tutor

    (cherry picked from commit 48eab1f)
    devchas authored and alan-agius4 committed Apr 24, 2026
    Configuration menu
    Copy the full SHA
    5b1a5b7 View commit details
    Browse the repository at this point in the history
  2. fix(@angular/ssr): introduce trustProxyHeaders option to safely valid…

    …ate and sanitize proxy headers
    
    This commit adds the `trustProxyHeaders` option to `AngularAppEngineOptions` and `AngularNodeAppEngineOptions` to configure, validate, and sanitize `X-Forwarded-*` headers.
    - When `trustProxyHeaders` is `undefined` (default):
      - Allows `X-Forwarded-Host` and `X-Forwarded-Proto`.
      - Intercepts `X-Forwarded-Prefix` and triggers a dynamic CSR deoptimization to skip SSR if present.
      - Logs an informative message when receiving any other `X-Forwarded-*` headers.
    - When `false`:
      - Ignores and strips all proxy headers from the request.
    - When `true`:
      - Trusts all proxy headers.
    - When a string array:
      - Allows only the proxy headers provided inside the array.
    alan-agius4 authored Apr 24, 2026
    Configuration menu
    Copy the full SHA
    94023f6 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2026

  1. fix(@angular/cli): fix broken img ref in ai-tutor

    replacing the existing link with `INSERT_IMAGE_URL` makes
    the model insert a working link or the user can insert themselves
    
    Fixes #32908
    
    (cherry picked from commit 0572df0)
    devchas authored and dgp1130 committed Apr 27, 2026
    Configuration menu
    Copy the full SHA
    233deef View commit details
    Browse the repository at this point in the history
  2. fix(@angular/cli): introduce initial package manager workspace awareness

    This change adds the getCurrentPackageName method to the package manager abstraction.
    When dealing with workspaces (such as npm workspaces), the parser uses the resolved identity of the active package to prioritize dependencies belonging directly to that subproject.
    
    It ensures that running ng update inside a subproject directory resolves the dependency versions declared for that subproject, while gracefully falling back to root hoisted versions for shared dependencies.
    
    (cherry picked from commit d6121b5)
    clydin authored and dgp1130 committed Apr 27, 2026
    Configuration menu
    Copy the full SHA
    7cea988 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2026

  1. fix(@angular/ssr): use router to normalize URLs for comparison

    Updates `constructDecodedUrl` in the SSR engine to use the Angular `Router` for parsing and serializing URLs instead of manual string manipulation and decoding.
    
    This ensures that the URL comparison used to determine if a redirect is necessary is consistent with how the router interprets and serializes the URL. This prevents issues where differences in encoding or edge cases (like duplicate query parameters or empty values) could lead to incorrect comparison results and unexpected redirects.
    
    Also updates tests to include edge cases for query parameters and paths to verify this behavior.
    
    Fixes #33053
    
    (cherry picked from commit c34c569)
    alan-agius4 committed Apr 28, 2026
    Configuration menu
    Copy the full SHA
    0dc8a44 View commit details
    Browse the repository at this point in the history
  2. fix(@angular/ssr): decode route segments when building and matching r…

    …oute tree
    
    Updates the `getPathSegments` method in `RouteTree` to decode each path segment using `decodeURIComponent` after splitting the route by `/`.
    
    This ensures that encoded characters in URL segments (such as spaces or encoded slashes) are correctly interpreted when matching incoming requests against the route tree. This prevents issues where encoded segments would fail to match their corresponding route definitions or wildcard patterns in the tree.
    
    Also reverts experimental changes in `url.ts` and `router.ts` regarding matrix parameter handling, as the simple change in `route-tree.ts` is sufficient to resolve the issue and passes all tests.
    
    Adds a test in `router_spec.ts` to verify that a URL with an encoded parameter containing spaces and slashes (`Bob%20%2F%20Roberts`) correctly matches a wildcard route (`/user/*`).
    
    Fixes #33044
    
    (cherry picked from commit 53b9623)
    alan-agius4 committed Apr 28, 2026
    Configuration menu
    Copy the full SHA
    930ada9 View commit details
    Browse the repository at this point in the history
  3. fix(@angular/ssr): add support for configuring trusted proxy headers …

    …via environment variable
    
    Adds support for configuring trusted proxy headers via the `NG_TRUST_PROXY_HEADERS` environment variable in `AngularNodeAppEngine`.
    This allows users to specify which proxy headers (such as `X-Forwarded-Host`) should be trusted when running the server-side application behind a reverse proxy, without needing to modify the application code. The environment variable accepts a comma-separated list of header names.
    If the `NG_TRUST_PROXY_HEADERS` environment variable is set and contains non-empty values, it will take precedence over the `trustProxyHeaders` option provided programmatically in the `AngularNodeAppEngine` constructor options.
    
    (cherry picked from commit 126b19b)
    alan-agius4 committed Apr 28, 2026
    Configuration menu
    Copy the full SHA
    5ffe5c3 View commit details
    Browse the repository at this point in the history
  4. build: update dependency postcss to v8.5.12

    See associated pull request for more information.
    
    Closes #33068 as a pr takeover
    alan-agius4 committed Apr 28, 2026
    Configuration menu
    Copy the full SHA
    f2f4851 View commit details
    Browse the repository at this point in the history
  5. build: update cross-repo angular dependencies

    See associated pull request for more information.
    angular-robot authored and dgp1130 committed Apr 28, 2026
    Configuration menu
    Copy the full SHA
    56d19be View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2026

  1. build: lock file maintenance

    See associated pull request for more information.
    angular-robot authored and dgp1130 committed Apr 29, 2026
    Configuration menu
    Copy the full SHA
    a887b94 View commit details
    Browse the repository at this point in the history
  2. build: update pnpm to v10.33.2

    See associated pull request for more information.
    angular-robot authored and dgp1130 committed Apr 29, 2026
    Configuration menu
    Copy the full SHA
    828c175 View commit details
    Browse the repository at this point in the history
  3. build: update cross-repo angular dependencies

    See associated pull request for more information.
    angular-robot authored and dgp1130 committed Apr 29, 2026
    Configuration menu
    Copy the full SHA
    dbda92b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    564b108 View commit details
    Browse the repository at this point in the history
Loading