Packages

@angular/core

22.2.6 · 12 Nov 2026MIT8.5M / weekRepositoryHomepagenpmAtom feed

Your version

21.0.0

major19 Nov 2025Where it was published

21.2.26 is the newest release of 21.x.

In short

8 breaking

  • Breaking

    The server-side bootstrapping process has been changed to eliminate the reliance on a global platform injector.

  • Breaking

    Using a combination of provideZoneChangeDetection while also removing ZoneJS polyfills will no longer result in the internal scheduler being disabled. All Angular applications now consistenly use the same scheduler, and those with the Zone change detection provider include additional automatic scheduling behaviors based on NgZone stabilization.

  • Breaking
    • TypeScript versions less than 5.9 are no longer supported.

  • Breaking

    (test only) - Using provideZoneChangeDetection in the TestBed providers would previously prevent TestBed from rethrowing errors as it should. Errors in the test will now be rethrown, regardless of the usage of provideZoneChangeDetection. Tests should be adjusted to prevent or account for these errors. As in previous major versions, this behavior can be disabled with rethrowApplicationErrors: false in configureTestingModule as a last resort.

  • Breaking

    ignoreChangesOutsideZone is no longer available as an option for configuring ZoneJS change detection behavior.

  • Breaking

    Angular no longer provides a change detection scheduler for ZoneJS-based change detection by default. Add provideZoneChangeDetection to the providers of your bootstrapApplication function or your AppModule (if using bootstrapModule). This provider addition will be covered by an automated migration.

  • Breaking

    moduleId was removed from Component metadata.

  • Breaking

    The interpolation option on Components has been removed. Only the default {{ ... }} is now supported.

Security

Release note

The section about @angular/core of a note shared by several packages.

core

CommitDescription
feat - 809a4ed8c1Add migration for zoneless by default. (#63042)
feat - 2a7a5de53fAllow passing application providers in bootstrapModule options (#64354)
feat - 28926ba92cintroduce BootstrapContext for improved server bootstrapping (#63562)
feat - c2d376b85amake SimpleChanges generic (#64535)
feat - ad2376435bsupport IntersectionObserver options in viewport triggers (#64130)
feat - 539717f58asupport regular expressions in templates (#63887)
fix - ab415f3d7fcontrol not recognized when input has directive injecting ViewContainerRef (#64368)
fix - f008045deddo not rename ARIA property bindings to attributes (#63925)
fix - 1352fbdbf2Drop special-case disables automatic change detection scheduling (#63846)
fix - c0791e1887drop support for TypeScript 5.8 (#63589)
fix - aa389a691bensure @for iteration over field is reactive (#64113)
fix - fec7c288e9Error on invalid APP_ID (#63252)
fix - d399d7d02bExplicit Zone CD in TestBed providers should not override TestBed error handler (#63404)
fix - 92e09adc0aRemove ignoreChangesOutsideZone option (#62700)
fix - 45fed3d201Remove Zone-based change provider from internals by default (#63382)
fix - c9f977833eskip Angular formatting when formatting signals recursively
fix - 67fbd5ff1eSSR error in signal forms
fix - c241038111update symbols (#64481)
refactor - a5e5dbbc16remove moduleId from Component metadata (#63482)
refactor - 9a16718b13remove deprecated interpolation option on Components. (#63474)

Breaking Changes

core

  • Breaking

    The server-side bootstrapping process has been changed to eliminate the reliance on a global platform injector.

    Before:

    const bootstrap = () => bootstrapApplication(AppComponent, config);

    After:

    const bootstrap = (context: BootstrapContext) =>
      bootstrapApplication(AppComponent, config, context);

    A schematic is provided to automatically update main.server.ts files to pass the BootstrapContext to the bootstrapApplication call.

    In addition, getPlatform() and destroyPlatform() will now return null and be a no-op respectively when running in a server environment.

  • Breaking

    Using a combination of provideZoneChangeDetection
    while also removing ZoneJS polyfills will no longer result in the
    internal scheduler being disabled. All Angular applications now
    consistenly use the same scheduler, and those with the Zone change detection
    provider include additional automatic scheduling behaviors based on
    NgZone stabilization.

  • Breaking
    • TypeScript versions less than 5.9 are no longer supported.

  • Breaking

    (test only) - Using provideZoneChangeDetection in the
    TestBed providers would previously prevent TestBed from rethrowing
    errors as it should. Errors in the test will now be rethrown, regardless
    of the usage of provideZoneChangeDetection. Tests should be adjusted to
    prevent or account for these errors. As in previous major versions,
    this behavior can be disabled with rethrowApplicationErrors: false in
    configureTestingModule as a last resort.

  • Breaking

    ignoreChangesOutsideZone is no longer available as an
    option for configuring ZoneJS change detection behavior.

  • Breaking

    Angular no longer provides a change detection scheduler
    for ZoneJS-based change detection by default. Add
    provideZoneChangeDetection to the providers of your
    bootstrapApplication function or your AppModule (if using
    bootstrapModule). This provider addition will be covered by an
    automated migration.

  • Breaking

    moduleId was removed from Component metadata.

  • Breaking

    The interpolation option on Components has been removed. Only the default {{ ... }} is now supported.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.