Skip to content

Releases: angular/angular

20.0.0-next.8

23 Apr 15:18
Compare
Choose a tag to compare
20.0.0-next.8 Pre-release
Pre-release

compiler

Commit Description
feat - 1b8e7ab9fe support the in keyword in Binary expression (#58432)

core

Commit Description
feat - 953c4b2580 Move zoneless change detection to dev preview (#60748)
fix - 0ac949c266 do not run change detection on global error events (#60944)
fix - 0162ceb427 inject migration should treat @Attribute as optional (#60916)

forms

Commit Description
fix - be995623cd make NgForm emit FormSubmittedEvent and FormResetEvent (#60887)

platform-server

Commit Description
refactor - 2240a21c97 deprecate the testing entry point (#60915)

router

Commit Description
feat - 62de7d930a add asynchronous redirects (#60863)
fix - 2419060fef relax required types on router commands to readonly array (#60345)

Breaking Changes

compiler

  • 'in' in an expression now refers to the operator

core

  • provideExperimentalZonelessChangeDetection is
    renamed to provideZonelessChangeDetection as it is now "Developer
    Preview" rather than "Experimental".

router

  • The RedirectFn can now return Observable or
    Promise. Any code that directly calls functions returning this type
    may need to be adjusted to account for this.
  • Several methods in the public API of the Router which
    required writable arrays have now been updated to accept readonly
    arrays when no mutations are done.

Deprecations

platform-server

  • @angular/platform-server/testing

    Use e2e tests to verify SSR behavior instead.

19.2.8

23 Apr 15:12
Compare
Choose a tag to compare

forms

Commit Description
fix - ea4a211216 make NgForm emit FormSubmittedEvent and FormResetEvent (#60887)

20.0.0-next.7

16 Apr 21:03
Compare
Choose a tag to compare
20.0.0-next.7 Pre-release
Pre-release

common

Commit Description
fix - cbbea70fa3 issue a warning instead of an error when NgOptimizedImage exceeds the preload limit (#60879)

core

Commit Description
feat - 65adb3024d Add provider which reports unhandled errors on window to ErrorHandler (#60704)
feat - c1bcae91dd expose performance data in Chrome DevTools (#60789)
feat - 727cda3856 mark linkedSignal API as public (#60865)
feat - 567522398f stabilize incremental hydration api (#60888)
feat - bf8492b871 stabilize withI18nSupport() api (#60889)
fix - 11d441ff8b inject migration: replace param with this. (#60713)

http

Commit Description
fix - 9f31947aad Include HTTP status code and headers when HTTP requests errored in httpResource (#60802)

19.2.7

16 Apr 20:41
Compare
Choose a tag to compare

common

Commit Description
fix - 37ab6814f5 issue a warning instead of an error when NgOptimizedImage exceeds the preload limit (#60883)

core

Commit Description
fix - b144126612 inject migration: replace param with this. (#60713)

http

Commit Description
fix - d39e09da41 Include HTTP status code and headers when HTTP requests errored in httpResource (#60802)

20.0.0-next.6

09 Apr 20:02
Compare
Choose a tag to compare
20.0.0-next.6 Pre-release
Pre-release

compiler

Commit Description
feat - 7a971766dc add extended diagnostic for uninvoked track function on @for blocks (#60495)

compiler-cli

Commit Description
fix - 8744c9a165 ensure HMR works with different output module type (#60797)

core

Commit Description
feat - 4e88e18a8e mark toObservable as stable (#60449)
feat - 8d050b5bfc stabilize linkedSignal API (#60741)
feat - 866cea9a05 Stabilize PendingTasks Injectable (#60716)
fix - d8e941bd61 fix docs for output migration (#60764)
fix - 39a4e00464 fix ng generate @angular/core:output-migration. Fixes #58650 (#60763)
fix - 0b69b61929 Flush animations when no component has been checked (#58089)
fix - 3d85d9363c reduce total memory usage of various migration schematics (#60774)
fix - 0ae1889560 run ApplicationRef.prototype.bootstrap in NgZone (#60720)

http

Commit Description
fix - 5795e03cdf Delay stabilization until next app synchronization (#60656)

language-service

Commit Description
fix - a22b13f990 Do not provide element completions in end tag (#60616)
fix - b9cf414790 Ensure dollar signs are escaped in completions (#60597)

Breaking Changes

core

  • Animations are guaranteed to be flushed when Angular
    runs automatic change detection or manual calls to ApplicationRef.tick.
    Prior to this change, animations would not be flushed in some situations
    if change detection did not run on any views attached to the
    application. This change can affect tests which may rely on the old
    behavior, often by making assertions on DOM elements that should have
    been removed but weren't because DOM removal is delayed until animations
    are flushed.

19.2.6

09 Apr 19:26
Compare
Choose a tag to compare

compiler

Commit Description
fix - 3441f7b914 error if rawText isn't estimated correctly (#60529) (#60753)

compiler-cli

Commit Description
fix - fc946c5f72 ensure HMR works with different output module type (#60797)

core

Commit Description
fix - 00bbd9b382 fix docs for output migration (#60764)
fix - f2bfa3151e fix ng generate @angular/core:output-migration. Fixes #58650 (#60763)
fix - 9241615ad0 reduce total memory usage of various migration schematics (#60776)

language-service

Commit Description
fix - 0e82d42774 Do not provide element completions in end tag (#60616)
fix - fcdef1019f Ensure dollar signs are escaped in completions (#60597)

20.0.0-next.5

02 Apr 19:05
Compare
Choose a tag to compare
20.0.0-next.5 Pre-release
Pre-release

Commit Description
fix - a7d1293f75 step 6 tutorial docs (#60630)

animations

Commit Description
fix - 5eccf3a5e5 add missing peer dependency on @angular/common (#60660)

compiler

Commit Description
fix - 8b990a31c3 error if rawText isn't estimated correctly (#60529)
fix - e6d2afbfb9 throw for invalid "as" expression in if block (#60580)

compiler-cli

Commit Description
fix - 1e6faad479 correctly parse event name in HostListener (#60561)
fix - 5948cd03c5 Produce fatal diagnostic on duplicate decorated properties (#60376)
fix - 7e03af898e set correct target when type checking events (#60561)
fix - 9f18c7cc74 support relative imports to symbols outside rootDir (#60555)

core

Commit Description
feat - a4bad8d361 export signalGetFn from signal primitives (#60497)
feat - 7ccec1494f move DOCUMENT token into core (#60663)
feat - fe9b79b615 update Node.js version support (#60545)
fix - 5f7f04634f call DestroyRef on destroy callback if view is destroyed (#58008)
fix - 765ba1e181 check ngDevMode for undefined (#60565)
fix - 7b819be83f Ensure errors in listeners report to the application error handler (#60251)
fix - cdbc6e8ec1 fix ng generate @angular/core:output-migration (#60626)
fix - fd5c981a29 fix regexp for event types (#60592)
fix - 6acce7ca2a fixes #592882 ng generate @angular/core:signal-queries-migration (#60688)
fix - 0cd7d3bdf0 preserve comments in internal inject migration (#60588)
fix - 005ad65b1f prevent omission of deferred pipes in full compilation (#60571)
fix - 1c7b356625 release hasPendingTasks observers (#59723)
fix - 43cbc58254 remove forceRoot flag for effects (#60535)
fix - a611b234d7 run root effects in creation order (#60534)
refactor - b407157ee8 Deprecate the structural directives ngIf/ngFor/ngSwitch. (#60492)

forms

Commit Description
feat - a07ee60989 add markAllAsDirty to AbstractControl (#58663)
feat - bdfbd54932 Allow to reset a form without emitting events (#60354)

language-service

Commit Description
fix - ea62a4f317 Update adapter to log instead of throw errors (#60651)

migrations

Commit Description
fix - 0c53970aeb handle shorthand assignments in super call (#60602)
fix - 3ff48b6467 inject migration not handling super parameter referenced via this (#60602)

router

Commit Description
feat - 0bb4bd661e Add ability to directly abort a navigation (#60380)
feat - ff98ccb193 support custom elements for RouterLink (#60290)
fix - 1226eaad51 Add missing types to transition (#60307)
fix - c57951d58f Remove 'any' type from route guards (#60378)

service-worker

Commit Description
fix - 4546d4fb39 assign initializing client's app version, when a request is for worker script (#58131)

Breaking Changes

core

    • Angular no longer supports Node.js v18.
    • Node.js versions 22.0 to 22.10 are also no longer supported.

    Before upgrading to Angular v20, ensure the Node.js version is at least 20.11.1.
    For the full list of supported versions, visit: https://angular.dev/reference/versions

  • Uncaught errors in listeners which were previously only reported to
    ErrorHandler are now also reported to Angular's internal error
    handling machinery. For tests, this means that the error will be
    rethrown by default rather than only logging the error. Developers
    should fix these errors, catch them in the test if the test is
    intentionally covering an error case, or use rethrowApplicationErrors: false in configureTestingModule as a last resort.

router

  • The guards arrays on Route no longer include any in
    the type union. The union includes functions for the functional guards
    as well as a type matching Injector.get: ProviderToken<T>|string.
    Note that string is still deprecated on both the route guards and
    Injector.get.

Deprecations

core

  • ngIf/ngFor/ngSwitch are deprecated. Use the control flow blocks instead (@for/@if/@switch).

19.2.5

02 Apr 18:53
Compare
Choose a tag to compare

Commit Description
fix - e61d06afb5 step 6 tutorial docs (#60630)

animations

Commit Description
fix - fa48f98d9f add missing peer dependency on @angular/common (#60660)

compiler

Commit Description
fix - ca5aa4d55b throw for invalid "as" expression in if block (#60580)

compiler-cli

Commit Description
fix - f4c4b10ea8 Produce fatal diagnostic on duplicate decorated properties (#60376)
fix - 22a0e54ac4 support relative imports to symbols outside rootDir (#60555)

core

Commit Description
fix - 64da69f7b6 check ngDevMode for undefined (#60565)
fix - 8f68d1bec3 fix ng generate @angular/core:output-migration (#60626)
fix - bc79985c65 fix regexp for event types (#60592)
fix - 006ac7f22f fixes #592882 ng generate @angular/core:signal-queries-migration (#60688)
fix - da6e93f434 preserve comments in internal inject migration (#60588)
fix - dbbddd1617 prevent omission of deferred pipes in full compilation (#60571)

language-service

Commit Description
fix - 0e9e0348dd Update adapter to log instead of throw errors (#60651)

migrations

Commit Description
fix - 15f53f035b handle shorthand assignments in super call (#60602)
fix - 4b161e6234 inject migration not handling super parameter referenced via this (#60602)

router

Commit Description
fix - 958e98e4f7 Add missing types to transition (#60307)

service-worker

Commit Description
fix - 7cd89ad2c6 assign initializing client's app version, when a request is for worker script (#58131)

20.0.0-next.4

27 Mar 03:32
Compare
Choose a tag to compare
20.0.0-next.4 Pre-release
Pre-release

common

Commit Description
fix - 785a1110e60 resolve host binding type issues (#60481)

core

Commit Description
fix - cf5c61c8490 fix used templates are not deleted (#60459)
fix - 13d1c8ab387 fixes timing of hydration cleanup on control flow (#60425)

forms

Commit Description
fix - bdd5e204233 resolve host binding type issues (#60481)

localize

Commit Description
fix - 7408a1f58b3 handle @angular/build:karma in ng add (#60513)

platform-browser

Commit Description
fix - 70bdb88b0c9 ensure platformBrowserTesting includes platformBrowser providers (#60480)

19.2.4

27 Mar 03:26
Compare
Choose a tag to compare

core

Commit Description
fix - 081f5f5a83f fix used templates are not deleted (#60459)

localize

Commit Description
fix - a2f622d82d6 handle @angular/build:karma in ng add (#60513)

platform-browser

Commit Description
fix - 8e8ccc79279 ensure platformBrowserTesting includes platformBrowser providers (#60480)