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 chart.js and fix font weight type #5789

Merged
merged 2 commits into from
Dec 20, 2023
Merged

Conversation

whitelisab
Copy link
Contributor

Purpose

Dependabot tried to update the Chart.js dependency in GA4 and the update failed: #5663

Approach

Chart.js version 4.4.1 changes the type of font weight from string to number (see this PR). This PR bumps the package and then changes the font weight for the line chart from a string to a number.

Note: I did change the tooltip font weight from 700 to the fontWeightDemiBold token (which equates to 600), and I still think it looks ok, see screenshot.

Screenshot 2023-12-19 at 4 31 58 PM

Testing steps

I verified that the line chart still renders correctly in the GA4 app sidebar.

Breaking Changes

Dependencies and/or References

https://github.com/chartjs/Chart.js/releases/tag/v4.4.1
chartjs/Chart.js#11605
#5663

Deployment

dependabot bot and others added 2 commits December 19, 2023 16:20
Bumps [chart.js](https://github.com/chartjs/Chart.js) from 4.4.0 to 4.4.1.
- [Release notes](https://github.com/chartjs/Chart.js/releases)
- [Commits](chartjs/Chart.js@v4.4.0...v4.4.1)

---
updated-dependencies:
- dependency-name: chart.js
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@whitelisab whitelisab requested a review from a team as a code owner December 19, 2023 23:34
Copy link

netlify bot commented Dec 19, 2023

Deploy Preview for ecommerce-app-base-components canceled.

Name Link
🔨 Latest commit 2eebfcb
🔍 Latest deploy log https://app.netlify.com/sites/ecommerce-app-base-components/deploys/65822882a40a1b0008387f1f

@whitelisab whitelisab merged commit de2d309 into master Dec 20, 2023
12 checks passed
@whitelisab whitelisab deleted the chore/update-chartjs branch December 20, 2023 14:52
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.

2 participants