Simon Egersand
2018-02-11 d4bf16e299f8ea25477ed9c15a336bce36affe4b
commit | author | age
8abb28 1 Changelog
M 2 =========
12add8 3 ## 2.14.0
SE 4 * Make `viewDate` dynamic
5
94dde5 6 ## 2.13.0
SE 7 * Use more appropriate cursor for empty space in time picker and in day texts
8 * Add `viewDate` prop that sets a value when opening the calendar when there is no selected date
9 * Make `disableOnClickOutside` work as intended
10 * Better touch support for tapping and holding
11 * Use static property `defaultProps` instead of `getDefaultProps`
12
6e920a 13 ## 2.12.0
SE 14 * The `renderInput` prop now receives `closeCalendar` function as well
15
2a5ddc 16 ## 2.11.1
SE 17 * The open prop should now work as intended
18
c1a952 19 ## 2.11.0
SE 20 * onFocus now receives the browser event
21 * Do not open browser menu on right click of arrows in time view
22 * Open calendar when onClick is triggered, before it would just react to onFocus
23 * Update TypeScript definitions for value and defaultValue to comply with code
24 * Fix bug where AM/PM would not sync between component value and input field value
25 * Add renderInput prop which let's the consumer of the component render their own HTML input element
26
39b827 27 ## 2.10.3
12add8 28 * Update react-onclickoutside dependency
SE 29 * Remove isValidDate check before rendering as implementation was causing crashes in some edge cases.
39b827 30
033119 31 ## 2.10.2
SE 32 * Move @types/react back to devDependencies
39b827 33 * Add [demo](https://youcanbookme.github.io/react-datetime) app.
033119 34
1c710b 35 ## 2.10.1
LA 36 * Fix build files.
37
8f6f33 38 ## 2.10.0
LA 39 * Add isValidDate check before rendering so it doesn't render with an invalid date.
40
833531 41 ## 2.9.0
SE 42 * Trigger callback method on view mode changes
43
eb8710 44 ## 2.8.11
SE 45 * Update TypeScript definitions
46 * Replace deprecated React method with non-deprecated method
47
7392ed 48 ## 2.8.10
SE 49 * Increase click area of arrows for changing day/month/year
50 * Update code according to React 15.5.0
51   * Remove usage of React.createClass
eb8710 52   * Use separate module for PropTypes
7392ed 53
7d7b99 54 ## 2.8.9
SE 55 * Fixes issue where incorrect current month is shown
56
11612b 57 ## 2.8.8
JM 58 * Fixes issues introduced in v2.8.7 recognizing any calendar view as clickingOutside trigger
59
7750ac 60 ## 2.8.7
JM 61 * Update react-onclickoutside dependency. That should fix most of the problems about closeOnSelect.
62
a6752b 63 ## 2.8.6
SE 64 * Revert commits related to `closeOnSelect` that did not fix all issues they were meant to
65
be9654 66 ## 2.8.5
SE 67 * Fix bug where `closeOnSelect` was not closing when it was set to `true`
68 * Fix bug where component would not immediately re-render when updating either `utc` or `locale` prop
69
c5aa9b 70 ## 2.8.4
SE 71 * Fix bug where `closeOnSelect=true` would cause component to close on state change
72
13fdd0 73 ## 2.8.3
SE 74 * Fix `isValidDate` related bug where current month would be invalid
75 * Trigger re-render of component when `viewMode` changes
76 * Never append `rdtOld` class in year view
77
4c3a30 78 ## 2.8.2
SE 79 * Fix year related bug in tests where year was set to 2016
80 * Add a yarnfile so yarn is now possible to use for installing dependencies
81
f41744 82 ## 2.8.1
SE 83 * Fix timeFormat related bug where 'A' was being picked up but not 'a', for setting 12-hour clock.
84
b1f53a 85 ## 2.8.0
SE 86 * Add typings for TypeScript 2.0. We now support TypeScript typings for versions 1.8 and 2.0.
87
932eda 88 ## 2.7.5
M 89 * Bumps the version to skip buggy deployment 2.7.4
90
5d0ee1 91 ## 2.7.4
SE 92 * Reverting updating `react` related dependencies. They were not the issue so they should not be set to the latest version of `react`.
93
612fa3 94 ## 2.7.3
SE 95 * When updating `moment` to `2.16.0` something broke, hopefully by updating all `react` prefixed dependencies to `15.4.0` and changing the syntax in the dependency object a bit will resolve this issue.
96
77e8e7 97 ## 2.7.2
SE 98 * Bug fix: When setting `locale` and entering month view mode the component would sometimes freeze, depending on the locale. This has now been fixed.
99
1647b9 100 ## 2.7.1
SE 101 * Bug fix: `onFocus` and `onBlur` were being called in a way causing state to reset. This unwanted behavior is now adjusted.
102
851b44 103 ## 2.7.0
SE 104 * `isValidDate` now supports months and years.
105 * `utc` prop was added, by setting it to `true` input time values will be interpreted as UTC (Zulu time).
932eda 106 * Bug fix: The input value now updates when `dateFormat` changes.
M 107 * Removed the source-map file because the commit it was introduced in was causing the minified file to be bigger than the non-minified.
851b44 108
e00d4b 109 ## 2.6.2
SE 110 * Update file references in `package.json`
111
3fdcb7 112 ## 2.6.1
SE 113 * Added a source-map file.
114 * Fixed bug with invalid moment object.
115 * Decreased npm package size by ~29.3KB.
116
b53b25 117 ## 2.6.0
M 118 * Fixed hover styles for days
119 * Added multiple simultaneous datetime component support.
120 * `className` prop now supports string arrays
121 * Fixes 12:00am
122 * Removed warning for missing element keys.
123
cc4a96 124 ## 2.5.0
M 125 * Added pre-commit hook for tests.
126 * Added the `timeConstraints` prop.
127
52191d 128 ## 2.4.0
M 129 * Added ES linting.
130 * Added `closeOnTab` property.
131
64ce8b 132 ## 2.3.3
M 133 * Updated readme.
134 * Fixed short months for not English locales.
135 * Fixed mixed 12 AM/PM.
136
fa70cd 137 ## 2.3.2
M 138 * Time editor now handles the A format to display 12h times.
139
0390c2 140 ## 2.3.0
M 141 * Added typescript definition file.
142 * Changed button markup and updated styles.
a8a17a 143 * Fixes autoclosing on time change.
0390c2 144
50a0c2 145 ## 2.2.1
M 146 * Controlled datepicker now working for controlled datepickers
147
92a2c6 148 ## 2.2.0
M 149 * The picker can be used as a month or year picker just giving a format date without days/months
150 * Updates test suite
795f65 151
b9158d 152 ## 2.1.0
M 153 * Fixed rdtActive not getting set.
154 * Add react-dom as external dependency.
155 * Fixed rendering a span directly under the calendar table.
156 * Added dev setup
157 * Added example
158
795f65 159 ## 2.0.2
M 160 * Fixed january days go to november problem.
161
8b2e86 162 ## 2.0.1
M 163 * Fixed two days can't have the same header name.
164
08dd0e 165 ## 2.0.0
M 166 * DOM classes are now prefixed with `rdt`.
167 * A modified version of OnClickOutside is now included in the code to handle react 0.13 and 0.14 versions.
168 * Updated dependencies.
d6a6f7 169
272903 170 ## 1.3.0
M 171 * Added open prop.
172 * Added strictParsing prop.
173 * Fixed not possible to set value to `''`.
174
1f5ec1 175 ## 1.2.1
d6a6f7 176 * Removed classlist-polyfill so the component can be used in the server side.
M 177
b73550 178 ## 1.1.1
M 179 * Updates react-onclickoutside dependency to avoid the bug https://github.com/Pomax/react-onclickoutside/issues/20
180
62fd2f 181 ## 1.1.0
M 182 * Datepicker can have an empty value. If the value in the input is not valid, `onChange` and `onBlur` will return input value.
183 * `onBlur` is not triggered anymore if the calendar is not open.
8abb28 184
6eef21 185 ## 1.0.0-rc.2
M 186 * Added travis CI
187 * Fixed not showing timepicker when `dateFormat`=`false`.
188
8abb28 189 ## 1.0.0-rc.1
M 190 This is the release candidate for this project. Now it is pretty usable and API won't change drastically in a while. If you were using the alpha versions (v0.x) there is a bunch of breaking changes:
191
192 * `date` prop is now called `defaultValue` and it is the initial value to use the component uncontrolled.
193 * `value` prop has been added to use it as a [controlled component](https://facebook.github.io/react/docs/forms.html#controlled-components).
194 * Removed `minDate` and `maxDate` props. Now to define what dates are valid it is possible to use the new `isValidDate` prop.
195 * `dateFormat` and `timeFormat` default value is always the locale default format. In case that you don't want the component to show the date/time picker you should set `dateFormat`/`timeFormat` to `false`.
196
197 Moreover:
198 * Buttons doesn't submit anymore when the Datetime component is in a form.
199 * `className` prop has been added to customize component class.