Skip to content

Releases: deseretdigital-ui/date-range-picker

v4.0.0

14 Jan 17:20
4a26b39

Choose a tag to compare

Refactors the entire app to use React Hooks and React Context and upgrades the Airbnb date picker. The API for interacting with the date picker should all be the same.

v3.0.5

21 Mar 20:56
825c75f

Choose a tag to compare

Fix issues with custom range picking causing errors and slowness to occur

v3.0.4

21 Mar 01:31
bad4c7a

Choose a tag to compare

There was an issue with setting the state value to null when the clearSelectedRange
function is called and then the moment-range isSame function is
called. It would throw an error and break everything because null was
getting passed in to be compared with an actual moment-range object.
Instead of setting the state value to null this sets it to a
moment-range object.

v3.0.3

17 May 19:39
c75fc99

Choose a tag to compare

Fixes an issue that used the constructor.name of the dates used to check
if it is a valid Moment object. When the code is compiled for production
the name value is changed because it is minified.

Also, upgrades webpack and webpack-cli to the latest version and fixes a
config issue with the webpack.cvonfig.js file when building the example file.

v3.0.2

25 Apr 20:10
dad45d4

Choose a tag to compare

  • Fix issue that caused the default value passed in to the component to not show in the UI

v3.0.1

24 Apr 18:12
09c66ad

Choose a tag to compare

  • Fix issues with moment range prop validation
  • Fix issue with new lifecycle method getDerivedStateFromProps

Notes from v3.0.0 release, which was broken:

  • Upgrades React and react-dom to v16.3.2 which is currently the latest
    version.
  • Updates the DateRangeInput component to use getDerivedStateFromProps
    which was made available in React v16.3.0
  • Updates other package dependencies do use the latest versions.

NOTE: react-dates was not upgraded because v13 and above use react-with-styles
instead of stylesheets, which will require more work to upgrade.

v2.2.5

23 Apr 16:51
d34fddd

Choose a tag to compare

  • Updates component so that it re-renders when new props are passed in.

Some notes from v2.2.4

  • Upgrades moment.js to v2.21.0 because of a security flaw in the previous versions.

v2.2.3

16 Mar 20:20
542241e

Choose a tag to compare

Update version of moment due to security errors of previous version.

v2.2.2

26 Oct 14:20

Choose a tag to compare

Fixes issue with re-selecting dates, so that when a date range is selected, selecting a date before the start date, or after the end date, extends the date range instead of resetting the entire selected range.

v2.2.1

20 Oct 20:41

Choose a tag to compare

  • Remove the default of the defaultValue prop, which was automatically set to the last 7 days. Requires the user to specify the defaultValue
  • Adds custom prop validation for the defaultValue and ranges[].value props