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

Update Chart.js peer dependency #137

Merged
merged 2 commits into from
Dec 8, 2022
Merged

Update Chart.js peer dependency #137

merged 2 commits into from
Dec 8, 2022

Conversation

santam85
Copy link
Collaborator

@santam85 santam85 commented Dec 8, 2022

Tested successfully on the ng2-charts demos

Thanks for contributing.

Description

Updated the Chart.js peer dependency to also support v4

Testing

Tested on the ng2-charts demo pages

Tested successfully on the ng2-charts demos
package.json Outdated
@@ -25,7 +25,7 @@
"test-types": "tsc -p types/tests/"
},
"peerDependencies": {
"chart.js": "^3.2.0"
"chart.js": "^3.2.0 || 4.0.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe that wouldn't let you use it with any other versions of 4.x like 4.0.1 . I think you probably want:

Suggested change
"chart.js": "^3.2.0 || 4.0.0"
"chart.js": ">=3.2.0"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sorry, did this in a rush. I wanted to use ^3.2.0 || ^4.0.0" to be more strict and prevent this breaking in the future, but can update to >=3.0.0 if you prefer

@benmccann benmccann merged commit 4e68f6d into master Dec 8, 2022
@benmccann benmccann deleted the chartjs4 branch December 8, 2022 18:00
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.

None yet

2 participants