Support for date-fns 3.0.0 #1997
-
Very recently date-fns 3.0.0 came out. I tried updating, but I got a peer dependency warning for react-day-picker which expects version |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
I'm interested to see the v3 update of date-fns as well, because it promises substantial bundle size reduction. Could you post the error? By my reasoning updating the peerDependencies versions in package.json should be enough "peerDependencies": {
"date-fns": "^2 || ^3",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
}, |
Beta Was this translation helpful? Give feedback.
-
We added support for date-fns@3 in version 8.10. Please upgrade Thanks for your patience! |
Beta Was this translation helpful? Give feedback.
-
This reduced the bundle size from 113 kB to 84.2 kB 8.10.0 8.9.1 |
Beta Was this translation helpful? Give feedback.
-
I really hoped for a smaller bundle size, especially since date-fns advertised being as small as 200 bytes. "• Minimal size is now 200 bytes!" official release post But it seems like |
Beta Was this translation helpful? Give feedback.
We added support for date-fns@3 in version 8.10. Please upgrade
react-day-picker
before upgradingdate-fns
.Thanks for your patience!