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) O3-3540: Bump @carbon/react to v1.74.0 #456

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

Conversation

dilankavishka
Copy link

@dilankavishka dilankavishka commented Jan 11, 2025

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

Upgrade to @carbon/react 1.73.0

Screenshots

Related Issue

https://openmrs.atlassian.net/jira/software/c/projects/O3/issues/O3-3540?jql=project%20%3D%20%22O3%22%20AND%20assignee%20%3D%20empty%20ORDER%20BY%20created%20DESC

Other

@dilankavishka
Copy link
Author

@brandones Could you please review this?

@samuelmale
Copy link
Member

@dilankavishka can we have Carbon as a peer dependency instead?

@dilankavishka
Copy link
Author

@samuelmale do you mean like, add both devDependencies and peerDependencies like other apps?

@samuelmale
Copy link
Member

@dilankavishka yes! Just like @openmrs/esm-framework.

@dilankavishka
Copy link
Author

@samuelmale Sure! I will do that.

@dilankavishka
Copy link
Author

@samuelmale I made the changes. can you take look now please?

Copy link
Member

@samuelmale samuelmale left a comment

Choose a reason for hiding this comment

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

@dilankavishka is there a plan of bumping Carbon across the framework? If yes, is the agreed-upon version ~1.73.0? cc: @denniskigen @ibacher

package.json Outdated Show resolved Hide resolved
@dilankavishka
Copy link
Author

@samuelmale I think it's says to upgrade the version to a recent one. I did the same thing for the esm-fast-data-entry app also. but it's @carbon/react": "1.71.0"

@samuelmale
Copy link
Member

@dilankavishka the failing tests are likely related to the Carbon bump. Can you investigate why or calibrate the Carbon version?

@denniskigen
Copy link
Member

denniskigen commented Jan 23, 2025

Hey, @dilankavishka, @samuelmale, there's a separate effort trying to get everything on ^1.71.0 ongoing at the moment. It'd be ideal use that version here too.

@denniskigen denniskigen changed the title O3-3540: Bump @carbon/react to v1.73.0 (chore) O3-3540: Bump @carbon/react to v1.73.0 Jan 23, 2025
@ibacher
Copy link
Member

ibacher commented Jan 24, 2025

In order for Carbon to be used as a peerdep, we do need to agree on a version. Unfortunately, I think that means we're requiring a very specific version, e.g., 1.71.0 or w/e makes sense across the app because Carbon's versions are not reliably non-breaking, even across patch versions. For right now, I think the goal should be getting everything on say 1.74.0 (the most recent release as of this moment) and then we can migrate to using it as a peer dependency.

@dilankavishka
Copy link
Author

@dilankavishka the failing tests are likely related to the Carbon bump. Can you investigate why or calibrate the Carbon version?

Sure! Let me do that.

@dilankavishka
Copy link
Author

@denniskigen, @ibacher Should I need to change the version to 1.71.0 or Keep the version 1.74.0 and go through ?

@samuelmale
Copy link
Member

The goal is to support the latest Carbon version, v1.74.0. For now, let's treat Carbon as a normal dependency and ensure everything works seamlessly, and later make Carbon a peer dependency!

@dilankavishka
Copy link
Author

@samuelmale I made the changes.

@samuelmale
Copy link
Member

@dilankavishka are you able to look into the failing tests?

@dilankavishka
Copy link
Author

@samuelmale Yeah i'll do that

@pirupius pirupius changed the title (chore) O3-3540: Bump @carbon/react to v1.73.0 (chore) O3-3540: Bump @carbon/react to v1.74.0 Feb 6, 2025
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.

4 participants