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