Skip to content

Releases: t0gre/react-datepicker

v2.1.3

08 Nov 19:03

Choose a tag to compare

2.1.3 (2019-11-08)

Note: Version bump only for package react-datepicker

v2.1.2

08 Nov 18:55

Choose a tag to compare

2.1.2 (2019-11-08)

Note: Version bump only for package react-datepicker

v2.1.0

31 Oct 14:37

Choose a tag to compare

2.1.0 (2019-10-31)

Note: Version bump only for package react-datepicker

v2.0.1

26 Aug 08:18

Choose a tag to compare

2.0.1 (2019-08-26)

Bug Fixes

  • Day: added type button

v2.0.0

23 Aug 07:17

Choose a tag to compare

2.0.0 (2019-08-23)

Features

  • date-fns: we update date-fns to version v2.0.0 (38d961e), closes #4

BREAKING CHANGES

In version v2.0.0 we updated date-fns to 2.0.0. Therefore we need to make some breaking changes.

  • Date formatting All formats, Popular mistakes

      // Before v2.0.0.
      const dayLabelFormatFn = (date) => format(date, 'DD')
      const weekdayLabelFormatFn = (date) => format(date, 'dd')
      const monthLabelFormatFn = (date) => format(date, 'MMMM YYYY')
    
      useMonth({
        ...,
        dayLabelFormat = dayLabelFormatFn,
        weekdayLabelFormat = weekdayLabelFormatFn,
        monthLabelFormat = monthLabelFormatFn,
      })
    
      // v2.0.0.
      const dayLabelFormatFn = (date) => format(date, 'dd')
      const weekdayLabelFormatFn = (date) => format(date, 'eeeeee')
      const monthLabelFormatFn = (date) => format(date, 'MMMM yyyy')
    
      useMonth({
        ...,
        dayLabelFormat = dayLabelFormatFn,
        weekdayLabelFormat = weekdayLabelFormatFn,
        monthLabelFormat = monthLabelFormatFn,
      })
  • Hooks: parseDate function: The function takes an additional parameter, namely a date. Docs

    // Before v2.0.0
    parseDate('02/11/2014', 'MM/dd/yyyy')
    
    // v2.0.0
    parseDate('02/11/2014', 'MM/dd/yyyy', new Date())

v1.7.0

01 Aug 07:14

Choose a tag to compare

1.7.0 (2019-08-01)

Features

  • hooks: add goToNextYear and goToPreviousYear methods to the hooks. (6040c7b)

v1.5.1

01 Jul 14:46

Choose a tag to compare

1.5.1 (2019-07-01)

Bug Fixes

  • styled-system: upgrade to version 5.0.12 (6ce33b1)

v1.5.0

22 Jun 16:08

Choose a tag to compare

1.5.0 (2019-06-22)

Bug Fixes

  • theming: select date border (ffd61b6)

Features

  • theming: simplified color palette change (035bc6e)

v1.4.1

19 Jun 16:57

Choose a tag to compare

1.4.1 (2019-06-19)

Bug Fixes

  • accessibility: accessibility fix (2779136)

v1.4.0

15 Jun 11:48

Choose a tag to compare

1.4.0 (2019-06-15)

Features

  • styled-system: upgraded system-system to version 5.0.6. (d21fefa)