If you used getWeek
, then make sure you've replaced this function with your own implementation.
If you used getDiffInMonths
or getDiffInYears
,
then check their sources. Ensure that they work exactly as you expect. It's possible that instead you'd like to use
getDiffInCalendarMonths
and getDiffInCalendarYears
.
Everything else should work as before.
Nothing changed.
The lib works fine with Node.js 12, but we've dropped the support, so major version bump is here.
If the project was using getTime
then this function should be replaced with
getUnixTimestamp
. Also the first param of this function accepts ChronosDate
instead of Date
.
If the project was using formatTime
then this function should be replaced with
formatTimeString
. It's the same function but different name.