Skip to content

Releases: vkbansal/react-date-primitives

v2.0.2

27 Jun 12:47
Compare
Choose a tag to compare
chore: publish 2.0.2

v1.1.0

22 Dec 04:44
Compare
Choose a tag to compare

v0.4.0

27 Mar 11:17
Compare
Choose a tag to compare

BREAKING CHANGE!

In render prop of <CalendarMonth /> instead of null, an object with date & inCurrentMonth keys is passed.

Example:

{weeks.map((week, i) => (
  <tr key={i}>
    {week.map((day, j) => (
-     <td key={`${i}-${j}`}>{day ? day.date.getDate() : ''}</td>
+     <td key={`${i}-${j}`}>{day.inCurrentMonth ? day.date.getDate() : ''}</td>
    ))}
  </tr>
))}

v0.3.0

20 Mar 02:17
Compare
Choose a tag to compare
v0.3.0 Pre-release
Pre-release

Fixed

  • peerDependencies warning

Changed

  • dropdownMonths has been renamed to monthsDropdown in CalenderMonth render prop
  • dropdownYears has been renamed to yearsDropdown in CalenderMonth render prop

v0.2.0

16 Mar 15:37
Compare
Choose a tag to compare
v0.2.0 Pre-release
Pre-release

Added

  • Added Tests for <DateRangeControl />
  • Add custom serializers for jest

Fixed

  • Some optimizations round onDayHover in <DateRangeControl />
  • Fixed dependencies

v0.1.1

16 Mar 15:33
Compare
Choose a tag to compare
v0.1.1 Pre-release
Pre-release

Same as v0.1.0 but fixed links in package.json

v0.1.0

16 Mar 15:32
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

Initial Release