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