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