-
Notifications
You must be signed in to change notification settings - Fork 14
perf(angular): upgraded to Angular v18 latest stable version #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
## Walkthrough
This update modernizes the Angular project's configuration and dependencies. It upgrades all Angular-related packages and tools to version 18.x, updates TypeScript and ESLint dependencies, and refactors HTTP client provisioning in Angular modules to use the new `provideHttpClient` API. Build configuration files are updated to new Angular conventions, and minor CSS import path adjustments are made.
## Changes
| File(s) | Change Summary |
|-------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `angular.json` | Updated build configuration: switched builder to `application`, changed `outputPath` structure, moved `main` entry, removed some build options, and replaced `browserTarget` with `buildTarget` in serve/extract-i18n targets. |
| `package.json` | Upgraded all Angular packages and related dependencies to 18.x; updated TypeScript, ESLint, and related devDependencies to newer versions; added `ejs` package. |
| `tsconfig.json` | Removed `downlevelIteration` and `allowSyntheticDefaultImports` compiler options. |
| `src/app/app-provider-admin/provider-admin/configurations/questionnaire/add-questionnaire/add-questionnaire.component.css` | Removed tilde (~) from material-design-icons CSS import path. |
| `src/styles.css` | Removed tilde (~) from two commented-out CSS import statements. |
| `src/app/app-provider-admin/provider-admin/provider-admin.module.ts`<br>`src/app/app-provider-admin/super-admin/super-admin.module.ts`<br>`src/app/app.module.ts` | Replaced `HttpClientModule` import with `provideHttpClient(withInterceptorsFromDi())` in providers for HTTP client provisioning; in `super-admin.module.ts`, also exported `SuperAdminComponent`. |
## Sequence Diagram(s)
```mermaid
sequenceDiagram
participant AppModule
participant ProviderAdminModule
participant SuperAdminModule
participant AngularHttpClient
AppModule->>AngularHttpClient: provideHttpClient(withInterceptorsFromDi())
ProviderAdminModule->>AngularHttpClient: provideHttpClient(withInterceptorsFromDi())
SuperAdminModule->>AngularHttpClient: provideHttpClient(withInterceptorsFromDi())
note over AppModule,SuperAdminModule: HTTP interceptors are registered via DIAssessment against linked issues
Possibly related issues
Suggested reviewers
Poem
|
|
@drtechie Could you please review this ! |
|
Hi @snehar-nd can you run this locally and see if everything is working fine? |
|
@drtechie yes, It is working fine in locally, |
|
@snehar-nd @drtechie should I raise similar PR's on the other issues to update the Angular and Packages versions assigned to me then ? |



📋 Description
GitHub Issue: Fixes PSMRI/AMRIT#9
ng updatewithout force was implementedtypescriptversion was upgraded to5.4.5from5.1.3to support Angular v18✅ Type of Change
ℹ️ Additional Information
Testing was performed by checking :
ng servesuccessfully loading the sitenpm run build-cisuccessfully building the UI-repo-- Screenshots for the same are below
Screenshots
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Chores