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