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