From c2ba2cd6c3d99376194d84cddece840fad413719 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Wed, 15 Apr 2026 12:03:13 +0100 Subject: [PATCH] Update Angular and NgRx peer dependencies to v19.2 (#5151) * Update Angular and NgRx peer dependencies to v19.2 Updated peerDependencies in aca-content and aca-shared libraries to correctly reflect the Angular 19.2.x and NgRx 19.2.x versions used in the root package.json, replacing outdated >=15.2 version constraints. * Update rxjs and zone.js peer dependencies to Angular 19 compatible versions - Updated rxjs peer dependency from >=6.6.6 to ^7.4.0 (compatible with Angular 19) - Updated zone.js peer dependency from >=0.11.8 to ^0.14.0 || ^0.15.0 (compatible with Angular 19) - Prevents consumers from installing incompatible RxJS 6 or older Zone.js versions while satisfying Angular 19 peer dependencies * Add missing @angular/platform-browser and @angular/router peer dependencies Both libraries import and use components from @angular/platform-browser (HammerModule, DomSanitizer, By) and @angular/router (Router, ActivatedRoute, provideRouter, RouterModule, guards), but these were not declared in peerDependencies. Adding them makes consumer requirements explicit and keeps peer dependencies aligned with actual usage. --- projects/aca-content/package.json | 18 ++++++++++-------- projects/aca-shared/package.json | 24 +++++++++++++----------- 2 files changed, 23 insertions(+), 19 deletions(-) diff --git a/projects/aca-content/package.json b/projects/aca-content/package.json index 3e982f7ce..dec8263fb 100644 --- a/projects/aca-content/package.json +++ b/projects/aca-content/package.json @@ -3,15 +3,17 @@ "version": "0.0.1", "license": "LGPL-3.0", "peerDependencies": { - "@angular/common": ">=15.2", - "@angular/core": ">=15.2", - "@angular/animations": ">=15.2", - "@angular/cdk": ">=15.2", - "@angular/forms": ">=15.2", - "@angular/material": ">=15.2", + "@angular/animations": "^19.2.0", + "@angular/cdk": "^19.2.0", + "@angular/common": "^19.2.0", + "@angular/core": "^19.2.0", + "@angular/forms": "^19.2.0", + "@angular/material": "^19.2.0", + "@angular/platform-browser": "^19.2.0", + "@angular/router": "^19.2.0", "@ngx-translate/core": "^17.0.0", - "rxjs": ">=6.6.6", - "zone.js": ">=0.11.8" + "rxjs": "^7.4.0", + "zone.js": "^0.14.0 || ^0.15.0" }, "dependencies": { "tslib": ">=2.3.0", diff --git a/projects/aca-shared/package.json b/projects/aca-shared/package.json index bb41e71c2..de708f87d 100644 --- a/projects/aca-shared/package.json +++ b/projects/aca-shared/package.json @@ -4,19 +4,21 @@ "license": "LGPL-3.0", "scripts": {}, "peerDependencies": { - "@angular/animations": ">=15.2", - "@angular/common": ">=15.2", - "@angular/compiler": ">=15.2", - "@angular/core": ">=15.2", - "@angular/forms": ">=15.2", - "@angular/material": ">=15.2", - "@ngrx/effects": ">=15.2.0", - "@ngrx/router-store": ">=15.2", - "@ngrx/store": ">=15.2", + "@angular/animations": "^19.2.0", + "@angular/common": "^19.2.0", + "@angular/compiler": "^19.2.0", + "@angular/core": "^19.2.0", + "@angular/forms": "^19.2.0", + "@angular/material": "^19.2.0", + "@angular/platform-browser": "^19.2.0", + "@angular/router": "^19.2.0", + "@ngrx/effects": "^19.2.0", + "@ngrx/router-store": "^19.2.0", + "@ngrx/store": "^19.2.0", "@ngx-translate/core": "^17.0.0", - "rxjs": ">=6.6.6", + "rxjs": "^7.4.0", "tslib": ">=2.0.0", - "zone.js": ">=0.11.8" + "zone.js": "^0.14.0 || ^0.15.0" }, "repository": { "type": "git",