Skip to content

Update angular monorepo to v17 (major)

Olivier Heintz requested to merge renovate/major-angular-monorepo into demo

This MR contains the following updates:

Package Type Update Change
@angular/animations dependencies major 16.0.1 -> 17.1.0
@angular/common dependencies major 16.0.1 -> 17.1.0
@angular/compiler dependencies major 16.0.1 -> 17.1.0
@angular/compiler-cli devDependencies major 16.0.1 -> 17.1.0
@angular/core dependencies major 16.0.1 -> 17.1.0
@angular/forms dependencies major 16.0.1 -> 17.1.0
@angular/platform-browser dependencies major 16.0.1 -> 17.1.0
@angular/platform-browser-dynamic dependencies major 16.0.1 -> 17.1.0
@angular/router dependencies major 16.0.1 -> 17.1.0
@angular/service-worker dependencies major 16.0.1 -> 17.1.0

Release Notes

angular/angular

v17.1.0

Compare Source

compiler
Commit Type Description
79ff91a813 fix allow TS jsDocParsingMode host option to be programmatically set (#​53126)
5613051a8b fix allow TS jsDocParsingMode host option to be programmatically set again (#​53292)
df8a825910 fix project empty block root node (#​53620)
478d622265 fix project empty block root node in template pipeline (#​53620)
compiler-cli
Commit Type Description
abdc7e4578 feat support type-checking for generic signal inputs (#​53521)
e620b3a724 fix add compiler option to disable control flow content projection diagnostic (#​53311)
4c1d69e288 fix add diagnostic for control flow that prevents content projection (#​53190)
76ceebad04 fix do not throw fatal error if extended type check fails (#​53896)
1a6eaa0fea fix input transform in local compilation mode (#​53645)
56a76d73e0 fix modify getConstructorDependencies helper to work with reflection host after the previous change (#​52215)
core
Commit Type Description
863be4b698 feat expose new input API for signal-based inputs (#​53872)
94096c6ede feat support TypeScript 5.3 (#​52572)
69b384c0d1 fix SignalNode reactive node incorrectly exposing unset field (#​53571)
6f79507ea7 fix Change defer block fixture default behavior to playthrough (#​53956)
32f908ab70 fix do not accidentally inherit input transforms when overridden (#​53571)
bdd61c768a fix replace assertion with more intentional error (#​52234)
0daca457bb fix TestBed should still use the microtask queue to schedule effects (#​53843)
router
Commit Type Description
5c1d441029 feat Add info property to NavigationExtras (#​53303)
50d7916278 feat Add router configuration to resolve navigation promise on error (#​48910)
a5a9b408e2 feat Add transient info to RouterLink input (#​53784)
726530a9af feat Allow onSameUrlNavigation: 'ignore' in navigateByUrl (#​52265)

v17.0.9

Compare Source

17.0.9 (2024-01-10)
common
Commit Description
fix - c22b513b3f remove unused parameters from the ngClass constructor (#​53831)
fix - bd9f89d1c8 server-side rendering error when using in-memory scrolling (#​53683)
compiler
Commit Description
fix - 92fd6cc42e generate less code for advance instructions (#​53845)
fix - 6a41961fbd ignore empty switch blocks (#​53776)
compiler-cli
Commit Description
fix - 7309463697 interpolatedSignalNotInvoked diagnostic (#​53585)
core
Commit Description
fix - 441db5123f afterRender hooks now only run on ApplicationRef.tick (#​52455)
fix - f9120d79cb allow effect to be used inside an ErrorHandler (#​53713)
migrations
Commit Description
fix - e92c86b77f Fix empty switch case offset bug in cf migration (#​53839)
platform-server
Commit Description
fix - 91cb16fde9 Do not delete global Event (#​53659)

v17.0.8

Compare Source

17.0.8 (2023-12-21)

compiler
Commit Description
fix - de5c9ca8e9 correctly intercept index in loop tracking function (#​53604)
core
Commit Description
fix - d79489255a avoid repeated work when parsing version (#​53598)
fix - 513fee871e tree shake version class (#​53598)
migrations
Commit Description
fix - eb7c29c7b6 cf migration - detect and error when result is invalid i18n nesting (#​53638)
fix - ed936ba0e9 cf migration - detect and error when result is invalid i18n nesting (#​53638) (#​53639)
fix - 5c2f2539e2 cf migration - ensure full check runs for all imports (#​53637)
fix - 817dc1b27f cf migration - fix bug in attribute formatting (#​53636)
fix - 7ac60bab9a cf migration - improve import declaration handling (#​53622)
fix - c3f85e51a9 cf migration - preserve indentation on attribute strings (#​53625)
fix - e73205ff5a cf migration - stop removing empty newlines from i18n blocks (#​53578)
fix - 886aa7b2a9 Fix cf migration bug with parsing for loop conditions properly (#​53558)
router
Commit Description
fix - 0696ab6a5b Should not freeze original object used for route data (#​53635)

v17.0.7

Compare Source

17.0.7 (2023-12-13)

compiler
Commit Description
fix - 4fd5409090 handle ambient types in input transform function (#​51474)
compiler-cli
Commit Description
fix - a603338fe8 generate less type checking code in for loops (#​53515)
core
Commit Description
fix - 58ed76be93 Avoid refreshing a host view twice when using transplanted views (#​53021)
fix - c16b5e8290 Multiple subscribers to ApplicationRef.isStable should all see values (#​53541)
fix - 17dbf8b8e2 remove signal equality check short-circuit (#​53446)
fix - 5b4add27b6 update feature usage marker (#​53542)
perf - 68d111c841 avoid changes Observable creation on QueryList (#​53498)
perf - 044cb553b4 optimize memory allocation when reconcilling lists (#​52245)
migrations
Commit Description
fix - 96ab999698 CF Migration - ensure bound ngIfElse cases ignore line breaks (#​53435)
fix - c9a1c6f1c7 cf migration - undo changes when html fails to parse post migration (#​53530)
fix - b75aca1d74 CF migration only remove newlines of changed template content (#​53508)
fix - e88a12d5b3 cf migration validate structure of ngswitch before migrating (#​53530)
fix - 543df3dca5 ensure we do not overwrite prior template replacements in migration (#​53393)
fix - d232ea143f fix cf migration import removal when errors occur (#​53502)
platform-browser
Commit Description
fix - d5c631bf36 Get correct base path when using "." as base href when serving from the file:// protocol. (#​53547)
router
Commit Description
fix - e750e4edcf provide more actionable error message when route is not matched in production mode (#​53523)

v17.0.6

Compare Source

17.0.6 (2023-12-06)
compiler
Commit Description
fix - a2e5f483f5 generate proper code for nullish coalescing in styling host bindings (#​53305)
compiler-cli
Commit Description
fix - 66ecf4c274 add compiler option to disable control flow content projection diagnostic (#​53387)
fix - 74e6ce5d23 add diagnostic for control flow that prevents content projection (#​53387)
fix - 6ec7a42b95 avoid conflicts with built-in global variables in for loop blocks (#​53319)
core
Commit Description
fix - 0a53f96094 cleanup signal consumers for all views (#​53351)
fix - 4fc1581bbc handle hydration of multiple nodes projected in a single slot (#​53270)
fix - 14e66533ec support hydration for cases when content is re-projected using ng-template (#​53304)
fix - 8e366e8911 support swapping hydrated views in @for loops (#​53274)
migrations
Commit Description
fix - 45064f1ae1 CF migration - ensure NgIfElse attributes are properly removed (#​53298)
fix - a6275cfa54 CF Migration - Fix case of aliases on i18n ng-templates preventing removal (#​53299)
fix - 58a96e0f50 CF Migration add support for ngIf with just a then (#​53297)
fix - 26e40c7f89 CF Migration fix missing alias for bound ngifs (#​53296)
fix - 836aeba01d Change CF Migration ng-template placeholder generation and handling (#​53394)
fix - 72d22ba7ee fix regexp for else and then in cf migration (#​53257)
fix - 7a2facae8a handle aliases on bound ngIf migrations (#​53261)
fix - 5104a89b30 handle nested ng-template replacement safely in CF migration (#​53368)
fix - 2a4e3f5373 handle templates outside of component in cf migration (#​53368)
fix - 0db75ab5b1 remove setting that removes comments in CF migration (#​53350)
router
Commit Description
fix - 13ade13a15 Ensure canMatch guards run on wildcard routes (#​53239)

v17.0.5

Compare Source

17.0.5 (2023-11-29)
core
Commit Description
fix - 6be88040d1 avoid stale provider info when TestBed.overrideProvider is used (#​52918)
fix - dee50f1d78 inherit host directives (#​52992)
fix - 07920d96d4 Reattached views that are dirty from a signal update should refresh (#​53001)
migrations
Commit Description
fix - aab7fb8654 Add ngForTemplate support to control flow migration (#​53076)
fix - dbd6f386ea allows colons in ngIf else cases to migrate (#​53076)
fix - 5b9f896009 cf migration fix migrating empty switch default (#​53237)
fix - 2b3d3b0fe1 CF migration log warning when collection aliasing detected in @for (#​53238)
fix - dffeac8386 cf migration removes unnecessary bound ngifelse attribute (#​53236)
fix - 00cb3339ba control flow migration formatting fixes (#​53076)
fix - c22af72f75 fix off by one issue with template removal in CF migration (#​53255)
fix - ba6d7fe018 fixes CF migration i18n ng-template offsets (#​53212)
fix - 8f6affdd64 fixes control flow migration common module removal (#​53076)
fix - 6ae408847c properly handle ngIfThen cases in CF migration (#​53256)
fix - 0fcef65cea Update CF migration to skip templates with duplicate ng-template names (#​53204)
router
Commit Description
fix - 91486aaf07 Resolvers in different parts of the route tree should be able to execute together (#​52934)

v17.0.4

Compare Source

17.0.4 (2023-11-20)

common
Commit Description
fix - 7f1c55755d remove load on image once it fails to load (#​52990)
fix - fafcb0d23f scan images once page is loaded (#​52991)
compiler
Commit Description
fix - 98376f2c09 changed after checked error in for loops (#​52935)
fix - 291deac663 generate i18n instructions for blocks (#​52958)
fix - 49dca36880 nested for loops incorrectly calculating computed variables (#​52931)
fix - f01b7183d2 produce placeholder for blocks in i18n bundles (#​52958)
compiler-cli
Commit Description
fix - f671f86ac2 add diagnostic for control flow that prevents content projection (#​52726)
core
Commit Description
fix - db1a8ebdb4 cleanup loading promise when no dependencies are defined (#​53031)
fix - 31a1575334 handle local refs when getDeferBlocks is invoked in tests (#​52973)
migrations
Commit Description
fix - ac9cd6108f control flow migration fails for async pipe with unboxing of observable (#​52756) (#​52972)
fix - 13bf5b7007 Fixes control flow migration if then else case (#​53006)
fix - 492ad4698a fixes migrations of nested switches in control flow (#​53010)
fix - 0fad36eff2 tweaks to formatting in control flow migration (#​53058)

v17.0.3

Compare Source

17.0.3 (2023-11-15)

animations
Commit Description
fix - f5872c9921 prevent the AsyncAnimationRenderer from calling the delegate when there is no element. (#​52570)
core
Commit Description
fix - 6a1d4ed667 handle non-container environment injector cases (#​52774)
fix - 5de7575be8 reset cached scope for components that were overridden using TestBed (#​52916)
http
Commit Description
fix - 7c066a4af4 Use the response content-type to set the blob type. (#​52840)
migrations
Commit Description
fix - 4e200bf13b Add missing support for ngForOf (#​52903)
fix - d033540d0f Add support for bound versions of NgIfElse and NgIfThenElse (#​52869)
fix - aa2d815648 Add support for removing imports post migration (#​52763)
fix - 3831942771 Fixes issue with multiple if elses with same template (#​52863)
fix - e1f84a31dc passed in paths will be respected in nx workspaces (#​52796)

v17.0.2

Compare Source

17.0.2 (2023-11-09)

compiler-cli
Commit Description
fix - 7a95cccf50 add interpolatedSignalNotInvoked to diagnostics (#​52687)
fix - a548c0333e incorrect inferred type of for loop implicit variables (#​52732)
core
Commit Description
fix - 2cea80c6e2 error code in image performance warning (#​52727)
fix - b16fc2610a limit rate of markers invocations (#​52742)
fix - 44c48a4835 properly update collection with repeated keys in @for (#​52697)

v17.0.1

Compare Source

17.0.1 (2023-11-08)

http
Commit Description
fix - 5c6f3f8ec0 Don't override the backend when using the InMemoryWebAPI (#​52425)
migrations
Commit Description
fix - 70d30c28e0 Add support for ng-templates with i18n attributes (#​52597)
fix - 4f125c5f9a Switches to multiple passes to fix several reported bugs (#​52592)

v17.0.0

Compare Source

17.0.0 (2023-11-08)

Commit Description
build - 59aa0634f4 remove support for Node.js v16 (#​51755)
animations
Commit Description
feat - e753278faa Add the possibility of lazy loading animations code. (#​50738)
fix - 698c058e1c remove code duplication between entry-points (#​51500)
refactor - 0598613950 deprecation of AnimationDriver.NOOP (#​51843)
benchpress
Commit Description
feat - 2da3551a70 report gc and render time spent in script (#​50771)
common
Commit Description
feat - fe2fd7e1a8 make the warning for lazy-loaded lcp image an error (#​51748)
feat - dde3fdabbd upgrade warning to logged error for lazy-loaded LCP images using NgOptimizedImage (#​52004)
fix - da056a1fe2 add missing types field for @​angular/common/locales of exports in package.json (#​52080)
fix - 85843e8212 allow to specify only some properties of DatePipeConfig (#​51287)
fix - 3bd85fb7b0 apply fixed_srcset_width value only to fixed srcsets (#​52459)
fix - 65b460448e missing space in ngSwitch equality warning (#​52180)
fix - 86c5e34601 remove code duplication between entry-points (#​51500)
fix - 28a5925f53 use === operator to match NgSwitch cases (#​51504)
compiler
Commit Description
feat - 1934524a0c add docs extraction for type aliases (#​52118)
feat - 7f6d9a73ab expand class api doc extraction (#​51733)
feat - a7fa25306f extract api docs for interfaces (#​52006)
feat - 7bfe20707f extract api for fn overloads and abtract classes (#​52040)
feat - c7daf7ea16 extract directive docs info (#​51733)
feat - e0b1bb33d7 extract doc info for JsDoc (#​51733)
feat - b9c70158ab extract docs for accessors, rest params, and types (#​51733)
feat - a24ae994a0 extract docs for top level functions and consts (#​51733)
feat - 2e41488296 extract docs info for enums, pipes, and NgModules (#​51733)
feat - 34495b3533 extract docs via exports (#​51828)
feat - 7e82df45c5 initial skeleton for API doc extraction (#​51733)
fix - 6795cccbbb account for type-only imports in defer blocks (#​52343)
fix - 23bfa10ac8 add diagnostic for inaccessible deferred trigger (#​51922)
fix - 31295a3cf9 allocating unnecessary slots in conditional instruction (#​51913)
fix - 2aaddd3f64 allow comments between switch cases (#​52449)
fix - ddd9df68bb allow decimals in defer block time values (#​52433)
fix - 7dbd47fb30 allow newlines in track and let expressions (#​52137)
fix - 0eae992c4e allow nullable values in for loop block (#​51997)
fix - 073ebfe09e apply style on :host attributes in prod builds. (#​49118)
fix - 81a287a79a avoid error in template parser for tag names that can occur in object prototype (#​52225)
fix - 6c58252521 compilation error when for loop block expression contains new line (#​52447)
fix - 9d19c8e317 don't allocate variable to for loop expression (#​52158)
fix - 9acd2ac98b enable block syntax in the linker (#​51979)
fix - 1d871c03a5 forward referenced dependencies not identified as deferrable (#​52017)
fix - 16ff08ec70 narrow the type of expressions in event listeners inside if blocks (#​52069)
fix - ac0d5dcfd6 narrow the type of expressions in event listeners inside switch blocks (#​52069)
fix - 02edb43067 narrow the type of the aliased if block expression (#​51952)
fix - 83067b3ef2 ng-template directive invoke twice at the root of control flow (#​52515)
fix - 17078a3fe1 pipes used inside defer triggers not being picked up (#​52071)
fix - 861ce3a7c5 pipes using DI not working in blocks (#​52112)
fix - 1f5039bbd6 project control flow root elements into correct slot (#​52414)
fix - 81c315ec6e template type checking not reporting diagnostics for incompatible type comparisons (#​52322)
fix - 1beef49d80 update the minVersion if component uses block syntax (#​51979)
fix - 386e1e9500 work around TypeScript bug when narrowing switch statements (#​52110)
perf - e5bca43224 further reduce bundle size using arrow functions (#​52010)
compiler-cli
Commit Description
fix - 5b66330329 allow non-array imports for standalone component in local compilation mode (#​51819)
fix - 377a7abfda bypass static resolving of the component's changeDetection field in local compilation mode (#​51848)
fix - 19c3dc18d3 fix NgModule injector def in local compilation mode when imports/exports are non-array expressions (#​51819)
fix - 11bb19cafc handle nested qualified names in ctor injection in local compilation mode (#​51947)
fix - f91f222b55 resolve component encapsulation enum in local compilation mode (#​51848)
core
Commit Description
docs - 59b6ec6be8 Deprecate ChangeDetectorRef.checkNoChanges (#​52431)
feat - 4f04d1cdab add new list reconcilation algorithm (#​51980)
feat - c7127b98b5 add schematic to escape block syntax characters (#​51905)
feat - 50275e58b8 Add schematic to migrate control flow syntax (#​52035)
feat - 81b67aa987 add support for zone.js 0.14.0 (#​51774)
feat - 048f400efc add warnings for oversized images and lazy-lcp (#​51846)
feat - 93675dc797 conditional built-in control flow (#​51346)
feat - 4427e1ebc2 create function to assert not running inside reactive context (#​52049)
feat - e23aaa7d75 drop support for older TypeScript versions (#​51792)
feat - 43e6fb0606 enable block syntax (#​51994)
feat - 3cbb2a8ecf implement deferred block interaction triggers (#​51830)
feat - 8be2c48b7c implement new block syntax (#​51891)
feat - a54713c831 implement ɵgetInjectorMetadata debug API (#​51900)
feat - 5b88d136af mark core signal APIs as stable (#​51821)
feat - 8eef694def Provide a diagnostic for missing Signal invocation in template interpolation. (#​49660)
feat - 40113f653c Remove deprecated CompilerOptions.useJit andCompilerOptions.missingTranslation. (#​49672)
feat - 68ba798ae3 revamp the runtime error message for orphan components to include full component info (#​51919)
feat - 1a4aee7e49 show runtime error for orphan component rendering (#​52061)
feat - 687b96186c support deferred hover triggers (#​51874)
feat - e2e3d69a27 support deferred triggers with implicit triggers (#​51922)
feat - 16f5fc40a4 support deferred viewport triggers (#​51874)
feat - 59387ee476 support styles and styleUrl as strings (#​51715)
feat - 9cc52b9b85 support TypeScript 5.2 (#​51334)
feat - 7d42dc3c02 the new list reconciliation algorithm for built-in for (#​51980)
fix - 935c1816fd add rejectErrors option to toSignal (#​52474)
fix - 5411864c2e adjust toSignal types to handle more common cases (#​51991)
fix - dcf18dc74c allow toSignal calls in reactive context (#​51831)
fix - dbffdc09c2 avoid duplicated code between entry-points (primary, testing, rxjs-interop) (#​51500)
fix - 4f69d620d9 deferred blocks not removing content immediately when animations are enabled (#​51971)
fix - df58c0b714 disallow afterRender in reactive contexts (#​52138)
fix - 5d61221ed7 disallow using effect inside reactive contexts (#​52138)
fix - 99e7629159 do not remove used ng-template nodes in control flow migration (#​52186)
fix - c7ff9dff2c drop mutate function from the signals public API (#​51821)
fix - 00128e3853 drop mutate function from the signals public API (#​51821) (#​51986)
fix - ddef3ac9a4 effects wait for ngOnInit for their first run (#​52473)
fix - 5ead7d412d ensure a consumer drops all its stale producers (#​51722)
fix - 1dd8558f82 Ensure backwards-referenced transplanted views are refreshed (#​51854)
fix - 50ad074505 framework debug APIs getDependenciesForTokenInInjector and getInjectorMetadata (#​51719)
fix - 80e7a0f8fa guard usages of performance.mark (#​52505)
fix - b9ea2d6900 handle aliased index with no space in control flow migration (#​52444)
fix - ffe9b1fcc2 handle for alias with as in control flow migration (#​52183)
fix - e5720edb46 handle if alias in control flow migration (#​52181)
fix - 4461cefa4f handle trackBy and aliased index in control flow migration (#​52423)
fix - 7368b8aaeb host directive validation not picking up duplicate directives on component node (#​52073)
fix - 696f003553 mutation bug in getDependenciesFromInjectable (#​52450)
fix - d487014785 Remove no longer needed build rule related to removed migration (#​52143)
fix - 4da08dc2ef remove unnecessary migration (#​52141)
fix - 384d7aacd0 replace assertion with more intentional error (#​52427)
fix - 40bb45f329 Respect OnPush change detection strategy for dynamically created components (#​51356)
fix - 3a19d6b743 run afterRender callbacks outside of the Angular zone (#​51385)
fix - a2ba5482c3 use TNode instead of LView for mapping injector providers (#​52436)
fix - d5dad3eb4c viewport trigger deregistering callbacks multiple times (#​52115)
perf - 8e4a7ab52b avoid repeated access to LContainer and trackBy calculation (#​52227)
perf - 1dc14d9853 avoid unnecessary callbacks in after render hooks (#​52292)
perf - e90694259e build-in for should update indexes only when views were added / removed (#​52051)
perf - 1032c1e1a5 cache LiveCollectionLContainerImpl (#​52227)
perf - 685d01e106 chain template instructions (#​51546)
perf - 88a0af64fd generate arrow functions for pure function calls (#​51668)
perf - 37d627dbd4 minimze trackBy calculations (#​52227)
perf - 3861a73135 Update LView consumer to only mark component for check (#​52302)
refactor - 9b9e11fcaf deprecate allowing full context object to be replaced in EmbeddedViewRef (#​51887)
refactor - ba9fc2419e deprecate the NgProbeToken (#​51396)
http
Commit Description
feat - 7dde42a5df allow customization of the HttpTransferCache. (#​52029)
fix - 8156b3d4ec Don't override the backend when using the InMemoryWebAPI (#​52425)
perf - bd9e91ecf7 reduce data transfer when using HTTP caching (#​52347)
language-service
Commit Description
feat - 449830f24e Complete inside @​switch (#​52153)
feat - e2416a284f Enable go to definition of styleUrl (#​51746)
feat - 023a181ba5 Implement outlining spans for control flow blocks (#​52062)
feat - 7c052bb6ef Support autocompletion for blocks (#​52121)
fix - 9d565cd6d6 Autocomplete block keywords in more cases (#​52198)
localize
Commit Description
fix - 5a20a44c64 ng-add schematics for application builder (#​51777)
migrations
Commit Description
feat - f0da7c2e44 schematic to remove deprecated CompilerOptions properties (#​49672)
feat - 965ce5a8c5 Schematics for TransferState, StateKey and makeStateKey migration. (#​49594)
fix - 09e905ad67 account for separator characters inside strings (#​52525)
fix - 4c878f90d2 Add support for nested structures inside a switch statement (#​52358)
fix - d7397fb29b Ensure control flow migration ignores new block syntax (#​52402)
fix - 6a01d62b9d fix broken migration when no control flow is present (#​52399)
fix - 9c2be715a3 Fixes a bug in the ngFor pre-v5 alias translation (#​52531)
fix - 54fed68bbf Fixes the root level template offset in control flow migration (#​52355)
fix - 57404d4723 handle comma-separated syntax in ngFor (#​52525)
fix - 54bc384661 handle nested classes in block entities migration (#​52309)
fix - c9b1ddff4d handle nested classes in control flow migration (#​52309)
fix - 6988a0070e handle ngIf else condition with no whitespaces (#​52504)
fix - e40e55d902 Remove unhelpful parsing errors from the log (#​52401)
fix - c267f54bc3 Update regex to better match ng-templates (#​52529)
platform-browser
Commit Description
feat - c340d6e044 enable removal of styles on component destroy by default (#​51571)
feat - c5daa6ce77 expose EventManagerPlugin in the public API. (#​49969)
fix - 5b375d106f Fire Animations events when using async animations. (#​52087)
fix - 65786b2b96 prevent duplicate stylesheets from being created (#​52019)
fix - 75d610d420 set animation properties when using async animations. (#​52087)
perf - 3c0577f991 disable styles of removed components instead of removing (#​51808)
perf - c9cde3ab10 only append style element on creation (#​52237)
refactor - dbc14eb41d remove withNoDomReuse function (#​52057)
platform-server
Commit Description
fix - 0c66e2424c resolve relative requests URL (#​52326)
router
Commit Description
feat - 1da28f4825 Add callback to execute when a view transition is created (#​52002)
feat - 73e4bf2ed2 Add feature to support the View Transitions API (#​51314)
feat - 86e91463af Add option to skip the first view transition (#​51825)
fix - ce1b915868 Allow redirects after an absolute redirect (#​51731)
fix - 37df395be0 children of routes with loadComponent should not inherit parent data by default (#​52114)
fix - 4dce8766f8 Ensure newly resolved data is inherited by child routes (#​52167)
fix - f464e39364 Ensure title observable gets latest values (#​51561)
fix - b2aff43621 Remove urlHandlingStrategy from public Router properties (#​51631)
fix - c62e680098 Remove deprecated Router properties (#​51502)
fix - 3c6258c85b Remove deprecated setupTestingRouter function (#​51826)
fix - 0b3e6a41d0 Remove malformedUriErrorHandler from ExtraOptions (#​51745)
fix - c03baed854 use DOCUMENT token instead of document directly in view transitions (#​51814)

Breaking Changes

  • Node.js v16 support has been removed and the minimum support version has been bumped to 18.13.0.

    Node.js v16 is planned to be End-of-Life on 2023-09-11. Angular will stop supporting Node.js v16 in Angular v17. For Node.js release schedule details, please see: https://github.com/nodejs/release#release-schedule

common
  • the NgSwitch directive now defaults to the === equality operator, migrating from the previously used ==. NgSwitch expressions and / or individual condition values need adjusting to this stricter equality check. The added warning message should help pinpointing NgSwitch usages where adjustements are needed.
core
  • Angular now required zone.js version ~0.14.0

  • Versions of TypeScript older than 5.2 are no longer supported.

  • The mutate method was removed from the WritableSignal interface and completely dropped from the public API surface. As an alternative please use the update method and make immutable changes to the object.

    Example before:

    items.mutate(itemsArray => itemsArray.push(newItem));

    Example after:

    items.update(itemsArray => [itemsArray, newItem]);
  • The mutate method was removed from the WritableSignal interface and completely dropped from the public API surface. As an alternative please use the update method and make immutable changes to the object.

    Example before:

    items.mutate(itemsArray => itemsArray.push(newItem));

    Example after:

    items.update(itemsArray => [itemsArray, newItem]);
  • OnPush components that are created dynamically now only have their host bindings refreshed and ngDoCheck run during change detection if they are dirty. Previously, a bug in the change detection would result in the OnPush configuration of dynamically created components to be ignored when executing host bindings and the ngDoCheck function. This is rarely encountered but can happen if code has a handle on the ComponentRef instance and updates values read in the OnPush component template without then calling either markForCheck or detectChanges on that component's ChangeDetectorRef.

platform-browser
  • REMOVE_STYLES_ON_COMPONENT_DESTROY default value is now true. This causes CSS of components to be removed from the DOM when destroyed. You retain the previous behaviour by providing the REMOVE_STYLES_ON_COMPONENT_DESTROY injection token.

    import {REMOVE_STYLES_ON_COMPONENT_DESTROY} from '@​angular/platform-browser';
    ...
    providers: [{
      provide: REMOVE_STYLES_ON_COMPONENT_DESTROY,
      useValue: false,
    }]
  • The withNoDomReuse() function was removed from the public API. If you need to disable hydration, you can exclude the provideClientHydration() call from provider list in your application (which would disable hydration features for the entire application) or use ngSkipHydration attribute to disable hydration for particular components. See this guide for additional information: https://angular.io/guide/hydration#how-to-skip-hydration-for-particular-components.

router
  • Absolute redirects no longer prevent further redirects. Route configurations may need to be adjusted to prevent infinite redirects where additional redirects were previously ignored after an absolute redirect occurred.

  • Routes with loadComponent would incorrectly cause child routes to inherit their data by default. The default paramsInheritanceStrategy is emptyOnly. If parent data should be inherited in child routes, this should be manually set to always.

  • urlHandlingStrategy has been removed from the Router public API. This should instead be configured through the provideRouter or RouterModule.forRoot APIs.

  • The following Router properties have been removed from the public API:

    • canceledNavigationResolution
    • paramsInheritanceStrategy
    • titleStrategy
    • urlUpdateStrategy
    • malformedUriErrorHandler

    These should instead be configured through the provideRouter or RouterModule.forRoot APIs.

  • The setupTestingRouter function has been removed. Use RouterModule.forRoot or provideRouter to setup the Router for tests instead.

  • malformedUriErrorHandler is no longer available in the RouterModule.forRoot options. URL parsing errors should instead be handled in the UrlSerializer.parse method.

zone.js
  • Deep and legacy dist/ imports like zone.js/bundles/zone-testing.js and zone.js/dist/zone are no longer allowed. zone-testing-bundle and zone-testing-node-bundle are also no longer part of the package.

    The proper way to import zone.js and zone.js/testing is:

    import 'zone.js';
    import 'zone.js/testing';

Deprecations

animations
  • The AnimationDriver.NOOP symbol is deprecated, use NoopAnimationDriver instead.
core
  • ChangeDetectorRef.checkNoChanges is deprecated.

    Test code should use ComponentFixture instead of ChangeDetectorRef. Application code should not call ChangeDetectorRef.checkNoChanges directly.

  • Swapping out the context object for EmbeddedViewRef is no longer supported. Support for this was introduced with v12.0.0, but this pattern is rarely used. There is no replacement, but you can use simple assignments in most cases, or Object.assign , or alternatively still replace the full object by using a Proxy(seeNgTemplateOutlet` as an example).

    Also adds a warning if the deprecated

  • NgProbeToken

    The NgProbeToken is not used internally since the transition from View Engine to Ivy. The token has no utility and can be removed from applications and libraries.

v16.2.12

Compare Source

16.2.12 (2023-11-02)
animations
Commit Description
fix - 03f4050636 remove finish listener once player is destroyed (#​51136)
common
Commit Description
fix - e092184a5c apply fixed_srcset_width values only to fixed srcsets (#​52486)
compiler-cli
Commit Description
fix - b3b4ae4c3a properly emit literal types in input coercion function arguments (#​52437)
fix - 873c4f2454 use originally used module specifier for transform functions (#​52437)

v16.2.11

Compare Source

16.2.11 (2023-10-25)

core
Commit Description
fix - 54ea3b65c3 emit provider configured event when a service is configured with providedIn (#​52365)
fix - 78533324dc get root and platform injector providers in special cases (#​52365)
fix - 019a0f4c22 load global utils before creating platform injector in the standalone case (#​52365)
router
Commit Description
fix - b79b4aca91 RouterTestingHarness should throw if a component is expected but navigation fails (#​52357)

v16.2.10

Compare Source

16.2.10 (2023-10-18)

v16.2.9

Compare Source

16.2.9 (2023-10-11)
forms
Commit Description
fix - 51a5baace3 reset() call with null values on nested group (#​48830)

v16.2.8

Compare Source

16.2.8 (2023-10-04)
language-service
Commit Description
fix - b732961fc3 Retain correct language service when ts.Project reloads (#​51912)
service-worker
Commit Description
fix - 966ce9790a throw a critical error when handleFetch fails (#​51960)

v16.2.7

Compare Source

16.2.7 (2023-09-27)

core
Commit Description
fix - 39a3e34e03 allow toSignal calls in reactive context (#​51831) (#​51892)
service-worker
Commit Description
fix - c3d901eacf throw a critical error when handleFetch fails (#​51885)

v16.2.6

Compare Source

16.2.6 (2023-09-20)
core
Commit Description
fix - 82712f80df ensure a consumer drops all its stale producers (#​51722) (#​51772)

v16.2.5

Compare Source

16.2.5 (2023-09-13)

v16.2.4

Compare Source

16.2.4 (2023-09-06)

v16.2.3

Compare Source

16.2.3 (2023-08-30)

animations
Commit Description
fix - 04c6574280 remove unnecessary escaping in regex expressions (#​51554)
compiler-cli
Commit Description
fix - dbd761f528 correct incomplete escaping (#​51557)
fix - 5c36fc784f remove unnecessary escaping in regex expressions (#​51554)
core
Commit Description
fix - dcd1add06f correct incomplete escaping (#​51557)
fix - 20d62603c2 handle hydration of view containers that use component hosts as anchors (#​51456)
fix - e6b301caa2 remove unnecessary escaping in regex expressions (#​51554)
fix - 0c7c852ee7 run afterRender callbacks outside of the Angular zone (#​51551)
language-service
Commit Description
fix - 8081fdd22d correct incomplete escaping (#​51557)

v16.2.2

Compare Source

16.2.2 (2023-08-23)

common
Commit Description
fix - a43c0772ea Allow safeUrl for ngSrc in NgOptimizedImage (#​51351)
compiler-cli
Commit Description
fix - 39ace8664b enforce a minimum version to be used when a library uses input transform (#​51413)
core
Commit Description
fix - 36f434e49d guard the jasmine hooks (#​51394)
router
Commit Description
fix - b0396e7164 Ensure canceledNavigationResolution: 'computed' works on first page (#​51441)

v16.2.1

Compare Source

16.2.1 (2023-08-16)
router
Commit Description
fix - 232a8c1b8d Apply named outlets to children empty paths not appearing in the URL (#​51292)

v16.2.0

Compare Source

16.2.0 (2023-08-09)
benchpress
Commit Description
fix - dd850b2ab7 correctly report GC memory amounts (#​50760)
common
Commit Description
feat - 29d358170b add component input binding support for NgComponentOutlet (#​51148)
feat - 1837efb9da Allow ngSrc to be changed post-init (#​50683)
compiler
Commit Description
feat - c27a1e61d6 scope selectors in @​scope queries (#​50747)
compiler-cli
Commit Description
fix - 12bad6576d libraries compiled with v16.1+ breaking with Angular framework v16.0.x (#​50714)
core
Commit Description
feat - e53d4ecf4c add afterRender and afterNextRender (#​50607)
feat - 98d262fd27 create injector debugging APIs (#​48639)
feat - cdaa2a8a9e support Provider type in Injector.create (#​49587)
fix - 9f490da7e2 handle hydration of view containers for root components (#​51247)
router
Commit Description
feat - 0b14e4ef74 exposes the fixture of the RouterTestingHarness (#​50280)

v16.1.9

Compare Source

16.1.9 (2023-08-09)

v16.1.8

Compare Source

16.1.8 (2023-08-02)

compiler
Commit Description
fix - cc722ea1f5 return full spans for Comment nodes (#​50855)

v16.1.7

Compare Source

16.1.7 (2023-07-26)

http
Commit Description
fix - 916916d835 check whether Zone is defined (#​51119)

v16.1.6

Compare Source

16.1.6 (2023-07-19)

http
Commit Description
fix - dea8dc0378 Run fetch request out the angular zone (#​50981)

v16.1.5

Compare Source

16.1.5 (2023-07-13)

animations
Commit Description
fix - f920fcbd94 Ensure elements are removed from the cache after leave animation. (#​50929)
core
Commit Description
fix - 499fb5c772 ensure that standalone components get correct injector instances (#​50954)
fix - c65913ecb7 handle deref returning null on RefactiveNode. (#​50992)
platform-browser
Commit Description
perf - 31419f6a3b do not remove renderer from cache when REMOVE_STYLES_ON_COMPONENT_DESTROY is enabled. (#​51005)
upgrade
Commit Description
fix - 3efb577cf3 Use takeUntil on leaky subscription. (#​50901)

v16.1.4

Compare Source

16.1.4 (2023-07-06)
core
Commit Description
fix - 4ba5850ba6 use setTimeout when coalescing tasks in Node.js (#​50820)
upgrade
Commit Description
fix - a4348355ce allow for downgraded components to work with component-router (#​50871)

v16.1.3

Compare Source

16.1.3 (2023-06-28)

core
Commit Description
fix - dd6fc5785f expose input transform function on ComponentFactory and ComponentMirror (#​50713)
elements
Commit Description
fix - e1bbe47c23 support input transform functions (#​50713)
platform-browser
Commit Description
fix - 79dd6a847a wait until animation completion before destroying renderer (#​50677)
fix - a797f41d1b wait until animation completion before destroying renderer (#​50860)

v16.1.2

Compare Source

16.1.2 (2023-06-21)
http
Commit Description
fix - 9488a3fd46 Send query params on fetch request (#​50740)
fix - 5ae001829c use serializeBody to support JSON payload in FetchBackend (#​50776)

v16.1.1

Compare Source

16.1.1 (2023-06-14)

compiler-cli
Commit Description
fix - 71360b3a3e libraries compiled with v16.1+ breaking with Angular framework v16.0.x (#​50715)
core
Commit Description
fix - d9bed48eb5 extend toSignal to accept any Subscribable (#​50162)
migrations
Commit Description
fix - 5e1d8444ae Prevent a component from importing itself. (#​50554)

v16.1.0

Compare Source

16.1.0 (2023-06-13)

compiler
Commit Description
fix - 4e663297c5 error when reading compiled input transforms metadata in JIT mode (#​50600)
fix - 721bc72649 resolve deprecation warning with TypeScript 5.1 (#​50460)
core
Commit Description
feat - 68017d4e75 add ability to transform input values (#​50420)
feat - 69dadd2502 support TypeScript 5.1 (#​50156)
fix - c0ebe34cbd add additional component metadata to component ID generation (#​50336)
http
Commit Description
feat - 85c5427582 Introduction of the fetch Backend for the HttpClient (#​50247)

v16.0.6

Compare Source

16.0.6 (2023-06-13)

core
Commit Description
fix - 05ac0868c9 avoid duplicated content during hydration while processing a component with i18n (#​50644)

v16.0.5

Compare Source

16.0.5 (2023-06-08)

compiler
Commit Description
fix - 703b8fcac1 do not remove comments in component styles (#​50346)
core
Commit Description
fix - 2b6da93e19 incorrectly throwing error for self-referencing component (#​50559)
fix - c992109d6c wait for HTTP in ngOnInit correctly before server render (#​50573)
platform-server
Commit Description
fix - c0d4086c6e surface errors during rendering (#​50587)

v16.0.4

Compare Source

16.0.4 (2023-06-01)
animations
Commit Description
fix - df65c4fc8f Trigger leave animation when ViewContainerRef is injected (#​48705)
common
Commit Description
fix - 7e1bc513de untrack subscription and unsubscription in async pipe (#​50522)
core
Commit Description
fix - 9970b29ace update ApplicationRef.isStable to account for rendering pending tasks (#​50425)

v16.0.3

Compare Source

16.0.3 (2023-05-24)
core
Commit Description
fix - c11041e372 adds missing symbols for animation standalone bundling test (#​50434)
fix - 98e8fdf40e fix Self flag inside embedded views with custom injectors (#​50270)
fix - 199ff4fe7f host directives incorrectly validating aliased bindings (#​50364)
http
Commit Description
fix - 080bbd2137 create macrotask during request handling instead of load start (#​50406)

v16.0.2

Compare Source

16.0.2 (2023-05-17)

core
Commit Description
fix - c1016d4e57 add additional component metadata to component ID generation (#​50340)
fix - cc41758b59 allow onDestroy unregistration while destroying (#​50237)
fix - 7d679bdb59 allow passing value of any type to isSignal function (#​50035)

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about these updates again.


  • If you want to rebase/retry this MR, check this box.

This MR has been generated by Renovate Bot.

Edited by Olivier Heintz

Merge request reports