Skip to content

Releases: deseretdigital/dayzed

Add React 18.0 to peerDependencies 📈

13 May 22:15
40d0161
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.2.1...v3.2.3

v3.2.1

19 Aug 16:01
Compare
Choose a tag to compare

Features

  • Type update - Add event parameter to onDateSelected signature - #39

Contributors - Thanks!

@arthurdenner

v3.2.0 - Add TypeScript types to the project

12 Aug 19:34
Compare
Choose a tag to compare

Features

  • Add TypeScript types to the project - #38

Contributors - Thanks!

@mindsers

v3.1.0

23 Oct 16:18
Compare
Choose a tag to compare

Features

  • Pass the event object to the onDateSelected prop.

This should help with issues like this and it also just makes sense to not swallow the event.

Contributors - Thanks!

@arthurdenner

Hooks!

10 Oct 14:28
cf286a2
Compare
Choose a tag to compare

Features

  • New custom useDayzed hook.
  • No longer requires date-fns to be independently installed.

Removed

  • The fillAdjacentMonths options is no longer available. Use showOutsideDays 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

13 Jun 19:19
Compare
Choose a tag to compare

Features

  • Deprecated fillAdjacentMonths prop in favor of the showOutsideDays prop to match the convention of other date picker libs like:

We will look to remove fillAdjacentMonths in the next major version.

Contributors - Thanks!

@donysukardi

v2.1.0

10 Jun 04:30
Compare
Choose a tag to compare

Features

  • firstDayOfWeek prop
  • fillAdjacentMonths 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!

@donysukardi

v2.0.2

16 Apr 23:57
Compare
Choose a tag to compare

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

11 Apr 14:24
Compare
Choose a tag to compare

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!

@arthurdenner

v1.1.0

02 Feb 22:32
b379024
Compare
Choose a tag to compare

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.