q: chart.js 2.8.0
See original GitHub issueExpected Behavior
all peer deps are met
Actual Behavior
chart.js 2.8 has been released yesterday, and because we were installing “chart.js@^2.7.2” as a peer dep we now get an error about unmet peer dep
historically, I see vue-chart.js went from
^2.7.0
in https://github.com/apertureless/vue-chartjs/commit/fcd9071f9a7fe23ab035687ef210b88d8d24de1b2.7.0
in https://github.com/apertureless/vue-chartjs/pull/2252.7.x
in https://github.com/apertureless/vue-chartjs/commit/d104e628e25ebd0c1d6c0ea2876f30a8f253dd94
all of that happening in sep-nov 2017, but without clear indications (the peer dep changes are tangent to other fixes)
can you confirm that you have a strict requirement on 2.7, rather than ^2.7.0 ? thanks!
Environment
- vue.js version: 2.8.0
- vue-chart.js version: ^3.4.0
- npm version: 6.7.0
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Keywords - chart.js - npm
chart.js. TypeScript icon, indicating that this package has built-in type declarations. 2.8.0 • Public • Published 4 years ago.
Read more >Chart.js
Chart.js renders chart elements on an HTML5 canvas unlike several other, mostly D3.js-based, charting libraries that render as SVG. Canvas ...
Read more >lightning web components - Chartjs 2.8.0 in lwc
Using chartjs 2.8.0, added it as static resource. All the time getting an error: chart not defined. Implemented doughnut chart earlier using ...
Read more >Annotation plugin not working with Chart.js 2.8.0
trying to get chart annotation plugin to work on chartjs 2.8. 0 - as of now the annotations dont show up at all....
Read more >chart.js 2.8.0 vulnerabilities - Snyk
chart. js is a Simple HTML5 charts using the canvas element. Affected versions of this package are vulnerable to Prototype Pollution. The options...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh, good catch! Fixed the
peerDependency
version to include older versions. I generally do not consider it as a breaking change, because either in a npm env or browser env it would work / properly build, even if thepeerDependency
version is mismatched.A breaking change for me, would be an external API change, that would break peoples projects if they upgrade. Or an internal change that requires strict versions of for example vue.js to work. If vue would add some new function that I utilize and vue-chartjs thus requiring at least that version.
Because then, if people only upgrade
vue-chartjs
it would not work.Forgot to ask how do you address vue-chartjs semver? Because the commit is breaking. Non-breaking would be “>=2.7 <2.9”