Packages

@angular/core

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

Your version

19.0.0

major19 Nov 2024Where it was published

19.2.25 is the newest release of 19.x.

In short

7 breaking2 fixed2 changed

  • Breaking

    Angular directives, components and pipes are now standalone by default.

  • Breaking

    TypeScript versions less than 5.5 are no longer supported.

  • Breaking

    ExperimentalPendingTasks has been renamed to PendingTasks.

  • Breaking

    The autoDetect feature of ComponentFixture will now attach the fixture to the ApplicationRef. As a result, errors during automatic change detection of the fixture be reported to the ErrorHandler. This change may cause custom error handlers to observe new failures that were previously unreported.

  • Breaking

    createComponent will now render default fallback with empty projectableNodes.

  • Breaking

    The timers that are used for zone coalescing and hybrid mode scheduling (which schedules an application state synchronization when changes happen outside the Angular zone) will now run in the zone above Angular rather than the root zone. This will mostly affect tests which use fakeAsync: these timers will now be visible to fakeAsync and can be affected by tick or flush.

  • Breaking

    The deprecated factories property in KeyValueDiffers has been removed.

Security

Release note

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

Breaking Changes

core

  • Breaking

    Angular directives, components and pipes are now standalone by default.

    • Specify standalone: false for declarations that are currently declared in @NgModules.

    • ng update for v19 will take care of this automatically.

  • Breaking

    TypeScript versions less than 5.5 are no longer supported.

  • Breaking

    Timing changes for effect API (in developer preview):

    • effects which are triggered outside of change detection run as part of
      the change detection process instead of as a microtask. Depending on the
      specifics of application/test setup, this can result in them executing
      earlier or later (or requiring additional test steps to trigger; see below
      examples).

    • effects which are triggered during change detection (e.g. by input
      signals) run earlier, before the component's template.

  • Breaking

    ExperimentalPendingTasks has been renamed to PendingTasks.

  • Breaking

    The autoDetect feature of ComponentFixture will now
    attach the fixture to the ApplicationRef. As a result, errors during
    automatic change detection of the fixture be reported to the ErrorHandler.
    This change may cause custom error handlers to observe new failures that were previously unreported.

  • Breaking

    createComponent will now render default fallback with empty projectableNodes.

    • When passing an empty array to projectableNodes in the createComponent API, the default fallback content
      of the ng-content will be rendered if present. To prevent rendering the default content, pass document.createTextNode('') as a projectableNode.

    // The first ng-content will render the default fallback content if present
    createComponent(MyComponent. { projectableNodes: [[], [secondNode]] });
    
    // To prevent projecting the default fallback content:
    createComponent(MyComponent. { projectableNodes: [[document.createTextNode('')], [secondNode]] });
    
    
  • Breaking

    Errors that are thrown during ApplicationRef.tick
    will now be rethrown when using TestBed. These errors should be
    resolved by ensuring the test environment is set up correctly to
    complete change detection successfully. There are two alternatives to
    catch the errors:

    • Instead of waiting for automatic change detection to happen, trigger
      it synchronously and expect the error. For example, a jasmine test
      could write expect(() => TestBed.inject(ApplicationRef).tick()).toThrow()

    • TestBed will reject any outstanding ComponentFixture.whenStable promises. A jasmine test,
      for example, could write expectAsync(fixture.whenStable()).toBeRejected().

    As a last resort, you can configure errors to not be rethrown by
    setting rethrowApplicationErrors to false in TestBed.configureTestingModule.

  • Breaking

    The timers that are used for zone coalescing and hybrid
    mode scheduling (which schedules an application state synchronization
    when changes happen outside the Angular zone) will now run in the zone
    above Angular rather than the root zone. This will mostly affect tests
    which use fakeAsync: these timers will now be visible to fakeAsync
    and can be affected by tick or flush.

  • Breaking

    The deprecated factories property in KeyValueDiffers has been removed.

core

CommitDescription
feat - 6ea8e1e9aaAdd a schematics to migrate to standalone: false. (#57643)
feat - 3ebe6b4ad4Add async run method on ExperimentalPendingTasks (#56546)
feat - 69fc5ae922Add incremental hydration public api (#58249)
feat - 8ebbae88caAdd rxjs operator prevent app stability until an event (#56533)
feat - 19edf2c057add syntactic sugar for initializers (#53152)
feat - c93b510f9ballow passing undefined without needing to include it in the type argument of input (#57621)
feat - ab25a192baallow running output migration on a subset of paths (#58299)
feat - fc59e2a7b7change effect() execution timing & no-op allowSignalWrites (#57874)
feat - 8bcc663a53drop support for TypeScript 5.4 (#57577)
feat - 18d8d44b1fexperimental resource() API for async dependencies (#58255)
feat - 9762b24b5eexperimental impl of rxResource() (#58255)
feat - 6b8c494d05flipping the default value for standalone to true (#58169)
feat - e6e5d29e83initial version of the output migration (#57604)
feat - be2e49639bintroduce afterRenderEffect (#57549)
feat - ec386e7f12introduce debugName optional arg to framework signal functions (#57073)
feat - 8311f00faaintroduce the reactive linkedSignal (#58189)
feat - 1b1519224dmark input, output and model APIs as stable (#57804)
feat - a7eff3ffaamark signal-based query APIs as stable (#57921)
feat - a1f229850amigrate ExperimentalPendingTasks to PendingTasks (#57533)
feat - 3f1e7ab6aepromote outputFromObservable & outputToObservable to stable. (#58214)
feat - 97c44a1d6cPromote takeUntilDestroyed to stable. (#58200)
feat - e5adf92965stabilize @let syntax (#57813)
feat - b063468027support TypeScript 5.6 (#57424)
feat - 819ff034cetreat directives, pipes, components as by default (#58229)
fix - ee426c62f0allow signal write error (#57973)
fix - c095679f92avoid breaking change with apps using rxjs 6.x (#58341)
fix - 71ee81af2cclean up event contract once hydration is done (#58174)
fix - f03d274e87ComponentFixture autoDetect feature works like production (#55228)
fix - 950a5540f1Ensure the ViewContext is retained after closure minification (#57903)
fix - 7b1e5be20bfallback to default ng-content with empty projectable nodes. (#57480)
fix - 0300dd2e18Fix fixture.detectChanges with autoDetect disabled and zoneless (#57416)
fix - 5fe57d4fbbfixes issues with control flow and incremental hydration (#58644)
fix - 51933ef5a6prevent errors on contract cleanup (#58614)
fix - fd7716440bPrevents trying to trigger incremental hydration on CSR (#58366)
fix - 656b5d3e78Re-assign error codes to be within core bounds (<1000) (#53455)
fix - 6e0af6dbbbresolve forward-referenced host directives during directive matching (#58492)
fix - 468d3fb9b1rethrow errors during ApplicationRef.tick in TestBed (#57200)
fix - 226a67dabbSchedulers run in zone above Angular rather than root (#57553)
perf - 97fb86d331set encapsulation to None for empty component styles (#57130)
refactor - c15ec36bd1remove deprecated factories Property in KeyValueDiffers (#58064)

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.