Skip to content
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

(chore) Bump Angular to v18 #156

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

(chore) Bump Angular to v18 #156

wants to merge 2 commits into from

Conversation

donaldkibet
Copy link
Member

@donaldkibet donaldkibet commented Jan 9, 2025

Requirements

  • This PR has a title that briefly describes the work done, including the ticket number if there is a ticket.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

Bump to version 18

Screenshots

Related Issue

Other

@donaldkibet donaldkibet marked this pull request as ready for review January 9, 2025 13:21
@donaldkibet donaldkibet requested review from denniskigen, vasharma05 and ibacher and removed request for denniskigen January 10, 2025 14:43
@denniskigen denniskigen changed the title (chore) : Bump Angular to v18 (chore) Bump Angular to v18 Jan 11, 2025
Copy link
Member

@denniskigen denniskigen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great to see this, @donaldkibet! I've left some suggestions for package version bumps.

Comment on lines 21 to 23
"@angular-extensions/elements": "^17.1.1",
"@angular/animations": "^17.3.12",
"@angular/animations": "^18.2.13",
"@angular/cdk": "^17.3.10",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we bump @angular/cdk and @angular-extensions/elements to the latest 18.2.x. releases as well?

"@angular/forms": "^18.2.13",
"@angular/platform-browser": "^18.2.13",
"@angular/platform-browser-dynamic": "^18.2.13",
"@angular/router": "^18.2.13",
"@carbon/styles": "1.x",
"@ng-select/ng-select": "^12.0.7",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be v13.x.x per this version compatibility table.

"@angular/forms": "^18.2.13",
"@angular/platform-browser": "^18.2.13",
"@angular/platform-browser-dynamic": "^18.2.13",
"@angular/router": "^18.2.13",
"@carbon/styles": "1.x",
"@ng-select/ng-select": "^12.0.7",
"@ngx-translate/core": "^15.0.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not strictly necessary, but I think we can safely bump this to v16.x based on this version compatibility table.

@@ -3,13 +3,13 @@
"version": "17.0.0",
"dependencies": {},
"peerDependencies": {
"@angular/animations": "^17.3.12",
"@angular/animations": "^18.2.13",
"@angular/cdk": "^17.3.10",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably bump @angular/cdk to the latest v18.x.x release.

Comment on lines 14 to 15
"@ng-select/ng-select": "^12.0.7",
"@ngx-translate/core": "^15.0.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto for these two deps.

@denniskigen
Copy link
Member

denniskigen commented Jan 11, 2025

This upgrade will necessitate a corresponding version upgrade for the Angular file uploader, a direct dependency of this library, as well as a Node version bump (to v20.x.x AFAICT - the current LTS version). Worth thinking about what implications the Node version bump might have elsewhere, @ibacher @donaldkibet.

CleanShot 2025-01-11 at 1  35 08@2x

@denniskigen
Copy link
Member

denniskigen commented Jan 13, 2025

@donaldkibet I've just released v18 of ngx-file-uploader with Angular 18 support https://github.com/openmrs/openmrs-ngx-file-uploader/releases/tag/v18.0.0. All you'd need to do is bump the dependency to the latest available version: yarn up @openmrs/ngx-file-uploader@next && git checkout package.json or something to that effect.

@ibacher
Copy link
Member

ibacher commented Jan 13, 2025

Worth thinking about what implications the Node version bump

Well, we're going to need to upgrade anyway. Support for 18 drops in May.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants