Skip to content

Releases: angular/angular

21.0.0-next.2

03 Sep 19:45
Compare
Choose a tag to compare
21.0.0-next.2 Pre-release
Pre-release

common

Commit Description
feat - c795960ada Add experimental support for the Navigation API (#63406)

compiler

Commit Description
fix - 0a82138d4b fixes regression with event parsing and animate prefix (#63470)

core

Commit Description
fix - 538de86a72 avoid injecting internal error handler from a destroyed injector (#62275)
fix - d399d7d02b Explicit Zone CD in TestBed providers should not override TestBed error handler (#63404)
fix - ed3d1f246b Fix cancellation of animation enter classes (#63442)
fix - 06f4fd4456 Fixed inject migration schematics for migrate destructured properties (#62832)
fix - 9ae9875384 Prevent an error on cleanup when an rxResource stream threw before returning an Observable (#63342)
fix - 92e09adc0a Remove ignoreChangesOutsideZone option (#62700)

forms

Commit Description
feat - b8314bd340 add experimental signal-based forms (#63408)
fix - 10ef96adb3 consistent treatment of empty (#63456)

http

Commit Description
feat - 07e678872f Add reponseType property to HttpResponse and HttpErrorResponse (#63043)

platform-browser

Commit Description
refactor - ce8db665f9 remove deprecated ApplicationConfig export (#63529)

platform-server

Commit Description
fix - ee73dc9553 prevent false warning for duplicate state serialization (#63525)

router

Commit Description
fix - 5b53535dd1 Update recognize stage to use internally async/await (#62994)

upgrade

Commit Description
fix - f86846555b Remove deprecated UpgradeAdapter (#61659)

Breaking Changes

common

  • (test only) - TestBed now provides a fake PlatformLocation
    implementation that supports the Navigation API. This may break some
    tests, though we have not observed any failures internally. You can revert to the
    old default for TestBed by providing the MockPlatformLocation from
    @angular/common/testing in your providers:
    {provide: PlatformLocation, useClass: MockPlatformLocation}

core

  • (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.
  • ignoreChangesOutsideZone is no longer available as an
    option for configuring ZoneJS change detection behavior.

platform-browser

  • The deprecated ApplicationConfig export from @angular/platform-browser has been removed.
    Please import ApplicationConfig from @angular/core instead.

router

  • Router navigations may take several additional
    microtasks to complete. Tests have been found to often be highly
    dependent on the exact timing of navigation completions with respect to
    the microtask queue. The most common fix for tests is to ensure all
    navigations have been completed before making assertions. On rare
    occasions, this can also affect production applications. This can be
    caused by multiple subscriptions to router state throughout the application,
    both of which trigger navigations that happened to not conflict with the
    previous timing.

upgrade

  • UpgradeAdapter is no longer available. Use
    upgrade/static instead

20.2.4

03 Sep 19:36
Compare
Choose a tag to compare

core

Commit Description
fix - dc64f3e478 Fixed inject migration schematics for migrate destructured properties (#62832)

platform-server

Commit Description
fix - d1d32db972 prevent false warning for duplicate state serialization (#63525)

20.2.3

29 Aug 12:33
Compare
Choose a tag to compare

compiler

Commit Description
fix - 479a919f42 fixes regression with event parsing and animate prefix (#63470)

core

Commit Description
fix - f87fad3fff avoid injecting internal error handler from a destroyed injector (#62275)
fix - 114906d2d6 Fix cancellation of animation enter classes (#63442)
fix - 596b545130 Prevent an error on cleanup when an rxResource stream threw before returning an Observable (#63342)

21.0.0-next.1

27 Aug 18:00
Compare
Choose a tag to compare
21.0.0-next.1 Pre-release
Pre-release

common

Commit Description
refactor - 25f593ce2a removengModuleFactory input of NgComponentOutlet (#62838)

compiler

Commit Description
fix - a0388409e3 fixes animations on elements with structural directives (#63390)
fix - 827c3c15f4 Keep paraenthesis in Nullish + Boolean expression. (#63292)

core

Commit Description
fix - 37ead5ffb5 Ensures @for loop animations never get cancelled (#63328)
fix - 18c9352d21 fix memory leak with leaving nodes tracking (#63328)
fix - 9139fe0d95 Fixes animate.leave binding to a string with spaces (#63366)

forms

Commit Description
feat - 0dd95c503f Add FormArrayDirective (#55880)

migrations

Commit Description
feat - 6ddb250391 add migration to convert ngClass to use class (#62983)

Breaking Changes

common

  • NgModuleFactory has been removed, use NgModule instead.

forms

  • This new directive will conflict with existing FormArray directives or formArray inputs on the same element.

20.2.2

27 Aug 17:53
Compare
Choose a tag to compare

compiler

Commit Description
fix - d7b6045d61 fixes animations on elements with structural directives (#63390)

core

Commit Description
fix - 6c421ed65d Ensures @for loop animations never get cancelled (#63328)
fix - 9093e0e132 fix memory leak with leaving nodes tracking (#63328)
fix - c8f07daf8f Fixes animate.leave binding to a string with spaces (#63366)

20.2.1

21 Aug 10:53
Compare
Choose a tag to compare

compiler

Commit Description
fix - a28672fb70 Keep paraenthesis in Nullish + Boolean expression. (#63292)

21.0.0-next.0

20 Aug 12:45
Compare
Choose a tag to compare
21.0.0-next.0 Pre-release
Pre-release

compiler-cli

Commit Description
fix - be7110342b disallow compiling with the emitDeclarationOnly TS compiler option enabled (#61609)

http

Commit Description
feat - 4bed062bc9 Provide http services in root (#56212)

router

Commit Description
feat - 4e0fc81491 convert lastSuccessfulNavigation to signal (#63057)

Breaking Changes

compiler-cli

  • The Angular compiler now produces an error when the
    the emitDeclarationOnly TS compiler option is enabled as this mode is
    not supported.

router

  • lastSuccessfulNavigation is now a signal and needs to be invoked

20.2.0

20 Aug 12:29
Compare
Choose a tag to compare

animations

Commit Description
refactor - 9766116cea deprecate the animations package (#62795)

compiler

Commit Description
fix - 7767aa640c allow more characters in square-bracketed attribute names (#62742)
fix - 7b51728813 fixes animation event host bindings not firing (#63217)

compiler-cli

Commit Description
feat - 5abfe4a899 add diagnostic for uninvoked functions in text interpolation (#59191)
fix - c4917074f1 display proper function in NG8117 message (#62842)
fix - 812463c563 Ignore diagnostics on ngTemplateContextGuard lines in TCB (#63054)
fix - 45b030b5ce prevent dom event assertion in TCB generation on older angular versions (#63053)

core

Commit Description
feat - 6b1f4b9e8b add enter and leave animation instructions (#62682)
feat - cec91c0035 add option to infer the tag names of components in tests (#62283)
feat - 141bb75ff2 Promote zoneless to stable (#62699)
feat - 4138aca91f render ARIA property bindings as attributes (#62630)
feat - a409534d6c support as aliases on else if blocks (#63047)
feat - 745ea44394 support TypeScript 5.9 (#62541)
fix - 593cc8a368 checks if body exists before continuing (#62768)
fix - bdc31675b7 ensure animate events do not have duplicate elements (#63216)
fix - de3a0c5cf3 Fix animate.enter class removal when composing classes (#62981)
fix - 6597ac0af7 fix support for space separated strings in leave animations (#62979)
fix - ebd622b344 fixes empty animations when recalculating styles (#63007)
fix - 455b147488 fixes timing issues with enter animations (#62925)
fix - f9d73cc687 handle cases where classes added have no animations (#63242)
fix - 6a1184600c prevents duplicate nodes when @if toggles with leave animations (#63048)
fix - 063b5e166f switch check to documentElement with chaining (#62773)
refactor - 320de4e96d deprecate animations field on component interface (#62895)

forms

Commit Description
feat - c353497a01 add support for pushing an array of controls to formarray (#57102)

http

Commit Description
feat - 0984b30388 Add redirected property to HttpResponse and HttpErrorResponse (#62675)
feat - be811fee79 add referrer & integrity support for fetch requests in httpResource (#62461)
feat - 1cf9d9064c Add support for fetch referrer & integrity options in HttpClient (#62417)
fix - 1408baff45 Add missing timeout and transferCache options to HttpClient (#62586)

language-service

Commit Description
feat - c81e345e72 support auto-import for attribute completions (#62797)
feat - d64dd27a02 support to report the deprecated API in the template (#62054)
fix - 591c7e2ec8 Support to resolve the re-export component. (#62585)

platform-browser

Commit Description
feat - 52b8e07d6e Warns on conflicting hydration and blocking navigation (#62963)

router

Commit Description
feat - d00b3fed58 add a currentNavigation signal to the Router service. (#62971)
feat - 687c374826 add a currentNavigation signal to the Router service. (#63011)
fix - 9c45c322d1 ensure preloaded components are properly activated (#62502)

service-worker

Commit Description
feat - 8255e0cf15 add messageerror event handling and logging (#62834)
feat - 5220b51e75 Adds for type in provideServiceWorker (#62831)
feat - 4ac6171b09 Adds support for updateViaCache in provideServiceWorker (#62721)
feat - b65c3d5e19 Improves storage full detection in data caching (#62737)
feat - 3b214d2040 Logs unhandled promise rejections in service worker (#63059)
feat - 6d011687ec notify clients about version failures (#62718)

Deprecations

animations

  • @angular/animations

core

  • @angular/animations

router

  • The Router.getCurrentNavigation method is deprecated. Use the Router.currentNavigation signal instead.

20.1.8

20 Aug 12:13
Compare
Choose a tag to compare

compiler

Commit Description
fix - 691f5ed033 error when ng-content fallback has translated children (#63156)
fix - b1dec9bc50 incorrect source span for expression AST inside template attribute (#63175)

compiler-cli

Commit Description
fix - cda402f1d8 account for expression with type arguments during HMR extraction (#63261)

20.2.0-rc.1

13 Aug 20:27
Compare
Choose a tag to compare
20.2.0-rc.1 Pre-release
Pre-release

compiler

Commit Description
fix - 79b91593c9 incorrect spans for AST inside input value with leading space (#63082)

language-service

Commit Description
feat - c81e345e72 support auto-import for attribute completions (#62797)