All Versions
82
Latest Version
Avg Release Cycle
33 days
Latest Release
1424 days ago

Changelog History
Page 7

  • v2.0.3 Changes

    May 24, 2016

    πŸ“¦ Included the dist version in the npm package.

  • v2.0.2 Changes

    May 24, 2016

    πŸ›  Fixed a bug when canChangeMonth is set to true (#168).

  • v2.0.1 Changes

    May 15, 2016

    πŸ›  Fix npm release.

  • v2.0.0 Changes

    May 15, 2016

    πŸš€ This release mainly improves the component’s API (thus some breaking changes) and add some new props.

    βœ… Code has been split in multiple components and tests have been rewritten with βœ… enzyme. It should be easier to add and test the upcoming new features!

    πŸ‘ Thanks everyone for the support and for the help on making this component better πŸ€— If you have issues or suggestions, don't forget the Spectrum Chat!

    πŸ’₯ Breaking changes

    • The onDay* event handlers receive as third argument an object of modifiers instead of an array.

    This mean that if you where writing:

    onDayClick(e, day, modifiers) {
      if (modifiers.indexOf('selected') > -1) {
        console.log('This day is selected')
      }
    }
    

    you must now write:

    onDayClick(e, day, modifiers) {
      if (modifiers.selected === true) {
        console.log('This day is selected')
      }
    }
    

    πŸ‘ or better:

    onDayClick(e, day, { selected }) {
      if (selected) {
        console.log('This day is selected')
      }
    }
    
    • βœ‚ Removed onDayTouchTap. Use onDayClick instead. If you need more granularity over touch events, you can use the new onDayTouchStart and onDayTouchEnd props. See #153 for more details.

    • πŸ›  Fixed import with CommonJS modules (#136).

    0️⃣ This affects code using require('react-day-picker').default or similar syntax, which was required for v1.3.0. Now you can require('react-day-picker') as 0️⃣ usual, i.e. without specifying default. If you are using ES2015 modules import DayPicker from 'react-day-picker', this change shouldn't affect you.

    If you are using your πŸ“„ custom LocaleUtils to localize the calendar, you need to implement this function as well, which is required to format the newly added πŸ‘€ aria-label attribute (see the πŸ“š documentation for an example). If you are localizing πŸ“„ using moment, this change shouldn't affect you.

    πŸ†• New props

    • πŸ†• New disabledDays and selectedDays props. They receive a function (day) => Bool as value to easily define which day should have the selected or disabled modifiers. See #34 for more details.

    So if you were writing something like:

      <DayPicker
        modifiers={
          ({ selected: day => isDaySelected(day) },
          { disabled: day => isDayDisabled(day) })
        }
      />
    

    now you can write:

      <DayPicker
        selectedDays={day => isDaySelected(day)}
        disabledDays={day => isDayDisabled(day)}
      />
    

    πŸ‘Œ Improvements

    • Navigate between weeks or years using left/right or up/down arrow keys (#132 by limscoder)
    • βž• Added various aria-* attributes (#132 by limscoder)

    πŸ› Bug fixes

    • Navigation with keyboard when using fromMonth or endMonth

  • v1.3.2 Changes

    April 10, 2016

    βž• Adds React 15 to the peer dependencies.

  • v1.3.1 Changes

    March 02, 2016

    πŸ›  Fixes an issue causing className being overwritten by className prop (#137).

  • v1.3.0 Changes

    February 18, 2016

    πŸ‘Œ Improvements

    • πŸ‘Œ Support for Babel 6 (#90)
    • πŸ‘ HTML props are spread to container tag, so to support onBlur, onFocus, etc. (#122, #123)
    • πŸ‘ Better RTL support for month navigation (#125)
  • v1.2.0 Changes

    December 04, 2015

    πŸ†• New features

    • πŸ‘‰ Use a custom caption element with the new captionElement prop. A custom caption element is useful, for example, to create a year/month navigation as shown in this example. Read #52 for a discussion about this feature.

    πŸ‘Œ Improvements

    • πŸ‘Œ Improved navigation when clicking on outside days (#112, see also this example)
    • πŸ†• New addMonths function in DateUtils
    • βž• Added a style definition to package.json (#105, thanks @webbushka)

    πŸ›  Fixed bugs

  • v1.1.5 Changes

    November 20, 2015

    πŸ›  Fix an issue with showMonth() (#95) – thanks @JKillian

  • v1.1.4 Changes

    November 19, 2015

    Minor changes when importing utilities