npm / date-fns / 2.21.2 source ↗
Kudos to Aleksei Korzun, Maxim Topciu, Jonas L, Mohammad ali Ali panah and Tan75 for working on the release.
differenceInBusinessDays now returns NaN instead of Invalid Date when an invalid argument is passed to the function.
differenceInBusinessDays
NaN
Invalid Date
Fixed weekStartsOn in Persian locale.
weekStartsOn