UNPKG

8.86 kBMarkdownView Raw
1# Changelog
2
3## 4.0.0
4
5- Rewrite the DateTime component with hooks.
6- Removed the majority of extra props that stop this from being as lightweight as possible.
7- Update date-fns dependency to 2.+
8- Update react dependency to 16.8+
9
10## 3.3.3
11
12- Updated Days/Months/Years views to be functional components. Should have perf/size improvements.
13
14## 3.3.2
15
16- Fix regression for selecting when date format is YYYY or YYYY-MM.
17
18## 3.3.1
19
20- Avoid publishing src dir.
21
22## 3.3.0
23
24- Internal refactor to shrink package size considerably.
25- Dependency bumps.
26
27## 3.2.2
28
29- Enable usage in typescript projects without `"allowSyntheticDefaultImports": true` set. Thanks to @saiicharan for this fix!
30- Dependency bumps, including upgrading the example project to react-scripts@2.0.3
31
32## 3.2.1
33
34- Resolve #34 Hours in TimeView does not show 12/24 format properly based on daypart formatting
35- Internal update/refactor of TimeView to be simpler
36
37## 3.2.0
38
39- Internal update/refactor with tests to have 100% coverage.
40
41## 3.1.0
42
43- Update components to be written in TypeScript
44- Publish typings with component
45
46## 3.0.1
47
48- Readme updates
49
50## 3.0.0
51
52- Update to build using rollup
53- Rewrite components to use JSX
54- Bump to using React 16.4.2
55- Rewrite components to use `date-fns` instead of `moment` for date functions
56
57## 2.15.0
58
59- New `onNavigateBack` and `onNavigateForward` hooks thanks to @DaanDD and @simeg.
60- Touch improvements by @NicoDos
61- TS and debugging improvements
62
63## 2.14.0
64
65- Make `viewDate` dynamic
66
67## 2.13.0
68
69- Use more appropriate cursor for empty space in time picker and in day texts
70- Add `viewDate` prop that sets a value when opening the calendar when there is no selected date
71- Make `disableOnClickOutside` work as intended
72- Better touch support for tapping and holding
73- Use static property `defaultProps` instead of `getDefaultProps`
74
75## 2.12.0
76
77- The `renderInput` prop now receives `closeCalendar` function as well
78
79## 2.11.1
80
81- The open prop should now work as intended
82
83## 2.11.0
84
85- onFocus now receives the browser event
86- Do not open browser menu on right click of arrows in time view
87- Open calendar when onClick is triggered, before it would just react to onFocus
88- Update TypeScript definitions for value and defaultValue to comply with code
89- Fix bug where AM/PM would not sync between component value and input field value
90- Add renderInput prop which let's the consumer of the component render their own HTML input element
91
92## 2.10.3
93
94- Update react-onclickoutside dependency
95- Remove isValidDate check before rendering as implementation was causing crashes in some edge cases.
96
97## 2.10.2
98
99- Move @types/react back to devDependencies
100- Add [demo](https://youcanbookme.github.io/react-datetime) app.
101
102## 2.10.1
103
104- Fix build files.
105
106## 2.10.0
107
108- Add isValidDate check before rendering so it doesn't render with an invalid date.
109
110## 2.9.0
111
112- Trigger callback method on view mode changes
113
114## 2.8.11
115
116- Update TypeScript definitions
117- Replace deprecated React method with non-deprecated method
118
119## 2.8.10
120
121- Increase click area of arrows for changing day/month/year
122- Update code according to React 15.5.0
123 - Remove usage of React.createClass
124 - Use separate module for PropTypes
125
126## 2.8.9
127
128- Fixes issue where incorrect current month is shown
129
130## 2.8.8
131
132- Fixes issues introduced in v2.8.7 recognizing any calendar view as clickingOutside trigger
133
134## 2.8.7
135
136- Update react-onclickoutside dependency. That should fix most of the problems about closeOnSelect.
137
138## 2.8.6
139
140- Revert commits related to `closeOnSelect` that did not fix all issues they were meant to
141
142## 2.8.5
143
144- Fix bug where `closeOnSelect` was not closing when it was set to `true`
145- Fix bug where component would not immediately re-render when updating either `utc` or `locale` prop
146
147## 2.8.4
148
149- Fix bug where `closeOnSelect=true` would cause component to close on state change
150
151## 2.8.3
152
153- Fix `isValidDate` related bug where current month would be invalid
154- Trigger re-render of component when `viewMode` changes
155- Never append `rdtOld` class in year view
156
157## 2.8.2
158
159- Fix year related bug in tests where year was set to 2016
160- Add a yarnfile so yarn is now possible to use for installing dependencies
161
162## 2.8.1
163
164- Fix timeFormat related bug where 'A' was being picked up but not 'a', for setting 12-hour clock.
165
166## 2.8.0
167
168- Add typings for TypeScript 2.0. We now support TypeScript typings for versions 1.8 and 2.0.
169
170## 2.7.5
171
172- Bumps the version to skip buggy deployment 2.7.4
173
174## 2.7.4
175
176- Reverting updating `react` related dependencies. They were not the issue so they should not be set to the latest version of `react`.
177
178## 2.7.3
179
180- 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.
181
182## 2.7.2
183
184- Bug fix: When setting `locale` and entering month view mode the component would sometimes freeze, depending on the locale. This has now been fixed.
185
186## 2.7.1
187
188- Bug fix: `onFocus` and `onBlur` were being called in a way causing state to reset. This unwanted behavior is now adjusted.
189
190## 2.7.0
191
192- `isValidDate` now supports months and years.
193- `utc` prop was added, by setting it to `true` input time values will be interpreted as UTC (Zulu time).
194- Bug fix: The input value now updates when `dateFormat` changes.
195- Removed the source-map file because the commit it was introduced in was causing the minified file to be bigger than the non-minified.
196
197## 2.6.2
198
199- Update file references in `package.json`
200
201## 2.6.1
202
203- Added a source-map file.
204- Fixed bug with invalid moment object.
205- Decreased npm package size by ~29.3KB.
206
207## 2.6.0
208
209- Fixed hover styles for days
210- Added multiple simultaneous datetime component support.
211- `className` prop now supports string arrays
212- Fixes 12:00am
213- Removed warning for missing element keys.
214
215## 2.5.0
216
217- Added pre-commit hook for tests.
218- Added the `timeConstraints` prop.
219
220## 2.4.0
221
222- Added ES linting.
223- Added `closeOnTab` property.
224
225## 2.3.3
226
227- Updated readme.
228- Fixed short months for not English locales.
229- Fixed mixed 12 AM/PM.
230
231## 2.3.2
232
233- Time editor now handles the A format to display 12h times.
234
235## 2.3.0
236
237- Added typescript definition file.
238- Changed button markup and updated styles.
239- Fixes autoclosing on time change.
240
241## 2.2.1
242
243- Controlled datepicker now working for controlled datepickers
244
245## 2.2.0
246
247- The picker can be used as a month or year picker just giving a format date without days/months
248- Updates test suite
249
250## 2.1.0
251
252- Fixed rdtActive not getting set.
253- Add react-dom as external dependency.
254- Fixed rendering a span directly under the calendar table.
255- Added dev setup
256- Added example
257
258## 2.0.2
259
260- Fixed january days go to november problem.
261
262## 2.0.1
263
264- Fixed two days can't have the same header name.
265
266## 2.0.0
267
268- DOM classes are now prefixed with `rdt`.
269- A modified version of OnClickOutside is now included in the code to handle react 0.13 and 0.14 versions.
270- Updated dependencies.
271
272## 1.3.0
273
274- Added open prop.
275- Added strictParsing prop.
276- Fixed not possible to set value to `''`.
277
278## 1.2.1
279
280- Removed classlist-polyfill so the component can be used in the server side.
281
282## 1.1.1
283
284- Updates react-onclickoutside dependency to avoid the bug https://github.com/Pomax/react-onclickoutside/issues/20
285
286## 1.1.0
287
288- Datepicker can have an empty value. If the value in the input is not valid, `onChange` and `onBlur` will return input value.
289- `onBlur` is not triggered anymore if the calendar is not open.
290
291## 1.0.0-rc.2
292
293- Added travis CI
294- Fixed not showing timepicker when `dateFormat`=`false`.
295
296## 1.0.0-rc.1
297
298This 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:
299
300- `date` prop is now called `defaultValue` and it is the initial value to use the component uncontrolled.
301- `value` prop has been added to use it as a [controlled component](https://facebook.github.io/react/docs/forms.html#controlled-components).
302- Removed `minDate` and `maxDate` props. Now to define what dates are valid it is possible to use the new `isValidDate` prop.
303- `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`.
304
305Moreover:
306
307- Buttons doesn't submit anymore when the Datetime component is in a form.
308- `className` prop has been added to customize component class.