Releases: deseretdigital/dayzed
Add React 18.0 to peerDependencies 📈
What's Changed
- Allow usage of react 17 by @nicksrandall in #46
- Add React 18.0 to peerDependencies by @rjvim in #50
New Contributors
- @nicksrandall made their first contribution in #46
- @rjvim made their first contribution in #50
Full Changelog: v3.2.1...v3.2.3
v3.2.1
v3.2.0 - Add TypeScript types to the project
v3.1.0
Features
- Pass the
event
object to theonDateSelected
prop.
This should help with issues like this and it also just makes sense to not swallow the event.
Contributors - Thanks!
Hooks!
Features
- New custom
useDayzed
hook. - No longer requires date-fns to be independently installed.
Removed
- The
fillAdjacentMonths
options is no longer available. UseshowOutsideDays
instead.
This release requires at least version 16.8.0
of the react
library. If using preact
, at least version 10.0.0
. This is to take advantage of the new hooks api.
v2.2.0
Features
- Deprecated
fillAdjacentMonths
prop in favor of theshowOutsideDays
prop to match the convention of other date picker libs like:
We will look to remove fillAdjacentMonths
in the next major version.
Contributors - Thanks!
v2.1.0
Features
firstDayOfWeek
propfillAdjacentMonths
prop
Not all calendar's week start on Sunday. The firstDayOfWeek
prop allows to adjust what order dates are returned in the weeks
array. Sunday is still the default.
The fillAdjacentMonths
prop allows for dates from the previous and the next months to be returned in the weeks
array instead of empty fillers. This also adds the prevMonth: boolean
and nextMonth: boolean
to the dateObjects. Defaults to false.
Contributors - Thanks!
v2.0.2
Now using eslint and prettier in the repo. Some updates to internals.
This release adds the support for eslint and prettier in the repo. It also updates some internal date calculations. Specifically https://github.com/deseretdigital/dayzed/blob/8fd362d75f6c20e1136a7860a7f73d05be09f9cc/src/utils.js#L250 which uses JS Date "overflow" capabilities to calculate month, year, and the number of days in the month - which also accounts for leap year.
v2.0.1
Update some of the internals to use the date-fns lib.
This release updates some of the internals of dayzed
to use the date-fns
libs. All the functionality should remain the same, but date-fns
was added as a peer-dependency so we are considering it a breaking change because this would unexpectedly break for projects that didn't have date-fns
added as a dependency before.
Contributors - Thanks!
v1.1.0
Features
- Added the
render
prop 🎉
This is the standard that the industry has chosen for this pattern so Dayzed now uses it as well. The children
callback can still also be used like before if that is what you prefer.