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
Need update for date-fns 2.0 #7
Comments
Does @next version work for you? |
@kurkle Yes thanks you its work for me |
We have discovered a bug in the pre-release (e745f3d) with the The chart won't render with:
This works fine with the default moment library. Let me know if you need an example to reproduce the bug. 🙂 Thanks for a great package. I appreciate the exclusion of the huge moment dependency. |
Thanks @mpskovvang! |
That was fast, thanks! The chart now renders with the
Minor comment: Moment shows weeks as "Nov 10, 2019", but date-fns shows actual week numbers. Perhaps the format can be changed with the Edited: The same format as Moment can be achieved with:
|
Interestingly the format was |
The bug was discovered with the default value ( When I found the chart wasn't rendering in the I've tried the adapter both with and without the |
Did you try alpha2 with |
Sorry, I didn't, because the documentation uses Boolean as the type. But the number instead of boolean works, thanks! 👍 Would you consider updating the default formats to match the documentation? chartjs-adapter-date-fns/src/index.js Line 22 in 9770b8e
Edited |
Pushed alpha3. |
I wasn't able to reproduce the bug in alpha1 - only with However, |
Version 1.0.0 released |
Hello
The adapter need an update for version 2.0 of date-fns
Its explain here: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
Old:
chartjs-adapter-date-fns/src/index.js
Lines 15 to 26 in 46c3bb8
New version
May be show the version of date-fns for backward compatibility
The text was updated successfully, but these errors were encountered: