1 | # Changelog
|
2 |
|
3 | ## 1.20.0
|
4 |
|
5 | * Added Duration#mapUnits
|
6 | * added Interval#toISODate and Interval#toISOTime
|
7 | * Some documentation fixes
|
8 |
|
9 | ## 1.19.3
|
10 |
|
11 | * Cache offset values
|
12 | * Fix handling of negative sub 1-hour offsets
|
13 |
|
14 | ## 1.19.2
|
15 |
|
16 | * Speculative fix for Node 6
|
17 |
|
18 | ## 1.19.1
|
19 |
|
20 | * Fix Intl.DateTimeFormat usage for polyfills
|
21 |
|
22 | ## 1.19.0
|
23 |
|
24 | * Interval#splitAt now ignores input dates outside the interval
|
25 | * Don't allow decimals in DateTime creation
|
26 |
|
27 | ## 1.18.2
|
28 |
|
29 | * Fix handling of decimals in DateTime#plus and #minus
|
30 |
|
31 | ## 1.18.1
|
32 |
|
33 | * Fix validity when adding or subtracting time that exceeds Date max/min boundaries
|
34 |
|
35 | ## 1.18.0
|
36 |
|
37 | * Add support for macro tokens in the parser
|
38 |
|
39 | ## 1.17.2
|
40 |
|
41 | * Fix issue with `toRelative` using `style: short` with plural days
|
42 |
|
43 | ## 1.17.1
|
44 |
|
45 | * Reject out-of-range numbers in DateTime.fromMillis
|
46 | * Reject 0s in ISO date inputs
|
47 |
|
48 | ## 1.17.0
|
49 |
|
50 | * DateTime.min and DateTime.max throw if they get the wrong kind of arguments
|
51 | * Fixed throwOnInvalid logic for Interval
|
52 | * Added `DATETIME_MED_WITH_WEEKDAY` preset
|
53 |
|
54 | ## 1.16.1
|
55 |
|
56 | * Catch errors trying to use Intl in weird versions of IE 11
|
57 |
|
58 | ## 1.16.0
|
59 |
|
60 | * Fixed locale default logic for `DateTime#toFormat("ZZZZ")
|
61 |
|
62 | ## 1.15.0
|
63 |
|
64 | * Added `formatOffset` to Zones
|
65 |
|
66 | ## 1.14.0
|
67 |
|
68 | * Allow the zone argument to Interval.fromISO with duration components
|
69 | * Ignore the zone argument to Duration factory methods
|
70 |
|
71 | ## 1.13.3
|
72 |
|
73 | * Fix keepLocalTime calculations that span offset changes
|
74 |
|
75 | ## 1.13.2
|
76 |
|
77 | * Fixed ISO formatting for dates > 999
|
78 |
|
79 | ## 1.13.1
|
80 |
|
81 | * Performance improvements for regex parsing
|
82 |
|
83 | ## 1.13.0
|
84 |
|
85 | * Support numberSystem in fromFormat
|
86 | * Fix validity for bad initial zone specifiers
|
87 |
|
88 | ## 1.12.1
|
89 |
|
90 | * Fix cross-month diffs in some scenarios
|
91 | * Fix time zone parsing when the time zone isn't at the end
|
92 | * Memoize IANA zone creation
|
93 |
|
94 | ## 1.12.0
|
95 |
|
96 | * Add some explicit CDN support to the NPM package
|
97 | * Add week token to duration ISO support
|
98 | * Lots of cleanup and test coverage changes
|
99 |
|
100 | ## 1.11.4
|
101 |
|
102 | * `setZone("local")` now returns the defaultZone if it is set
|
103 | * Fixes for the polyfilled build
|
104 |
|
105 | ## 1.11.3
|
106 |
|
107 | * Allow 24:00 in ISO (and other) strings
|
108 | * Fix some bugs with the typecheck functions like `DateTime.isDateTime()`
|
109 |
|
110 | ## 1.11.2
|
111 |
|
112 | * Fixed handling of some characters in fromFormat literal sections
|
113 | * Hanlde string values in object arguments to DateTime methods
|
114 | * Fixed toRelativeCalendar's handling of zones in the base date
|
115 |
|
116 | ## 1.11.1
|
117 |
|
118 | * Fix DateTime#plus() when spanning across AD 100
|
119 |
|
120 | ## 1.11.0
|
121 |
|
122 | * Fix low-year handling for IANA zones
|
123 | * `DateTime#toLocal()` now uses the default locale
|
124 | * Fix zero duration formatting
|
125 | * Many documentation fixes
|
126 |
|
127 | ## 1.10.0
|
128 |
|
129 | - Fix endOf("day") during DSTs (#399)
|
130 | - Add `Interval#mapEndpoints (#400)
|
131 | - Add `DateTime#zone` and `Info.normalizeZone` (#404)
|
132 |
|
133 | ## 1.9.0
|
134 |
|
135 | - Add `DateTime#toRelative` and `DateTime#toRelativeCalendar`
|
136 |
|
137 | ## 1.8.3
|
138 |
|
139 | - Allow "UTC" in the zone position of `fromSQL`
|
140 | - Force `isDateTime` and `isDuration` to return booleans in all cases
|
141 |
|
142 | ## 1.8.2
|
143 |
|
144 | - Trim leading \u200e characters from offset names in Edge 16 and 17
|
145 |
|
146 | ## 1.8.1
|
147 |
|
148 | - Add `DateTime.fromSeconds` and `DateTime#toSeconds`
|
149 |
|
150 | ## 1.7.1
|
151 |
|
152 | - Floor the seconds instead of rounding them when outputting the 'X' format
|
153 | - Change the options to toLocale to override the configuration (the previous options were essentially ignored)
|
154 |
|
155 | ## 1.6.2
|
156 |
|
157 | - Fixing merge error that resulted in bad error messages
|
158 |
|
159 | ## 1.6.0
|
160 |
|
161 | - **midly breaking** Rework negative durations
|
162 | - Fix handling weekdays at the end of leap week years
|
163 | - Add isDuration, isDateTime, and isInterval
|
164 | - Fix handling of Luxon object arguments passed from other execution contexts
|
165 |
|
166 | ## 1.5.0
|
167 |
|
168 | - Improved error message
|
169 | - Added DateTime#invalidExplanation, Duration#invalidExplanation, Interval#invalidExplanation to provide more details on invalid objects
|
170 |
|
171 | ## 1.4.6
|
172 |
|
173 | - Cache Intl objects for an 85x speed up on basic operations using non-en locales
|
174 |
|
175 | ## 1.4.5
|
176 |
|
177 | - Fix minified builds
|
178 |
|
179 | ## 1.4.4
|
180 |
|
181 | - Fix hour formatting in RFC822 strings
|
182 | - Interval.fromISO accepts formats with durations
|
183 |
|
184 | ## 1.4.3
|
185 |
|
186 | Removal accidentally-introduced runtime dependency
|
187 |
|
188 | ## 1.4.2
|
189 |
|
190 | - Handle locale strings with BCP 47 extensions. Especially helpful for environments with funky default locales
|
191 | - Support for [weekYear]-W[weekNumber] ISO 8601 strings
|
192 |
|
193 | ## 1.4.1
|
194 |
|
195 | - Empty diffs now have all the asked-for units in them, set at 0
|
196 | - Duration operations perserve the superset of units
|
197 |
|
198 | ## 1.4.0
|
199 |
|
200 | - Add x and X to toFormat for formatting Epoch seconds and Epoch milliseconds
|
201 | - Parser allows a wider range of IANA zone specifiers
|
202 | - BREAKING: Etc/GMT+10 is now interpreted as UTC-10, per spec
|
203 |
|
204 | ## 1.3.3
|
205 |
|
206 | Documentation fixes
|
207 |
|
208 | ## 1.3.2
|
209 |
|
210 | - DateTime.fromMillis will throw if passed a non-number
|
211 | - Fixes for type checking across JS contexts
|
212 |
|
213 | ## 1.3.1
|
214 |
|
215 | - Include milliseconds in Duration#toISO
|
216 | - Avoid deprecation warning from DateTime#inspect in Node 10
|
217 |
|
218 | ## 1.3.0
|
219 |
|
220 | - **mildly breaking change** Duration.toFormat now floors its outputs instead of rounding them (see #224)
|
221 | - Added 'floor' option to Duration.toFormat and deprecated the 'round' option
|
222 | - Added `Dateime.toBSON`
|
223 | - Fixed infinite loop when passing invalid or zero-length durations to Interval#splitBy
|
224 | - Added better error handling to Duration.fromObject()
|
225 |
|
226 | ## 1.2.1
|
227 |
|
228 | - 222x speed-up in DateTime creation for non-en locales
|
229 | - Added `DateTime#toMillis` alias for `DateTime#valueOf`
|
230 | - Fixed types on zone exports
|
231 |
|
232 | ## 1.2.0
|
233 |
|
234 | - Export Zone classes
|
235 | - Fix `endOf` and `startOf` for quarters
|
236 | - Change `toFormat("Z")` to return a number for UTC
|
237 | - Allow "GTM" as an argument to `setZone`
|
238 |
|
239 | ## 1.1.0
|
240 |
|
241 | - Support for zone names with more than two components
|
242 | - Fixed long-term-accurate conversions for months
|
243 | - Added `weeksInWeekYear`
|
244 |
|
245 | ## 1.0.0
|
246 |
|
247 | - The big one-oh. No changes from 0.5.8.
|
248 |
|
249 | ## 0.5.8
|
250 |
|
251 | - Large perf improvements for `DateTime#toFormat()`, when using non-intl numbers
|
252 |
|
253 | ## 0.5.7
|
254 |
|
255 | - Added AMD build to the NPM package
|
256 | - Large performance improvements to technical formatting (e.g. `DateTime#toISO`)
|
257 |
|
258 | ## 0.5.6
|
259 |
|
260 | - Refactor internals
|
261 | - Added support for fractional seconds in `Duration.fromISO`
|
262 | - Added browser global to the NPM package
|
263 |
|
264 | ## 0.5.5
|
265 |
|
266 | - Best-we-can-do fix for `DateTime#toLocaleString()` for fixed-offset zones when showing the zone name in the output
|
267 | - Fixed `Duration#shiftTo` for unormalized Durations that need a rollup cascade
|
268 |
|
269 | ## 0.5.4
|
270 |
|
271 | - Fix default locales in Node
|
272 | - Fix prototype to help with React inspection
|
273 | - Improve REPL output for Durations in Node
|
274 |
|
275 | ## 0.5.3
|
276 |
|
277 | - Remove errant ICU runtime dep (again)
|
278 |
|
279 | ## 0.5.2
|
280 |
|
281 | - Remove comments from minified builds (introduced by 0.5.1)
|
282 |
|
283 | ## 0.5.1
|
284 |
|
285 | - Fixed minified builds (oops)
|
286 | - Fix computation of fractional parts of diffs
|
287 |
|
288 | ## 0.5.0
|
289 |
|
290 | - `isBefore()` returns true for the end of the interval, consistent with being half-open
|
291 | - `zoneName` now rturns `null` for invalid DateTimes
|
292 | - Added quarter support
|
293 | - Adding a month to Jan 31 gives Feb 28/29
|
294 |
|
295 | ## 0.4.0
|
296 |
|
297 | - Always round down to the nearest millisecond when parsing
|
298 |
|
299 | ## 0.3.1
|
300 |
|
301 | - Fixed `toLocaleString` for fixed-offset zones in the absence of Intl
|
302 | - Added `Info.isValidIANAZone`
|
303 | - Made malformed zone specifiers result in invalid DateTime instances
|
304 |
|
305 | ## 0.3.0
|
306 |
|
307 | - Rename DateTime.fromString to DateTime.fromFormat (leaving deprecated DateTime.fromString)
|
308 | - Rename DateTime.fromStringExplain to DateTime.fromFormatExplain (leaving deprecated DateTime.fromStringExplain)
|
309 | - Support Etc/GMT IANA zones
|
310 | - Perf fixes for zones
|
311 | - Rework build infrastructure
|
312 |
|
313 | ## 0.2.12
|
314 |
|
315 | - Fix DateTime.fromObject's handling of default zones
|
316 | - Change `keepCalendarTime` to `keepLocalTime`
|
317 |
|
318 | ## 0.2.11
|
319 |
|
320 | - Handle no arguments in `DateTime.min` and `DateTime.max`
|
321 | - Documentation fixes
|
322 |
|
323 | ## 0.2.10
|
324 |
|
325 | - Fix bug where Durations could sometimes mutate
|
326 |
|
327 | ## 0.2.9
|
328 |
|
329 | - Fix `DateTime.fromMillis(0)` more thoroughly
|
330 |
|
331 | ## 0.2.8
|
332 |
|
333 | - Fix sourcemaps
|
334 |
|
335 | ## 0.2.7
|
336 |
|
337 | - Fix `DateTime.fromMillis(0)`
|
338 |
|
339 | ## 0.2.6
|
340 |
|
341 | - Fix 'h' and 'hh' `toFormat` tokens for midnight
|
342 |
|
343 | ## 0.2.5
|
344 |
|
345 | - Better `shiftTo` behavior for durations with floating point components
|
346 |
|
347 | ## 0.2.4
|
348 |
|
349 | - Fix `toHTTP` to use 24-hour hours
|
350 | - Tighten up regular expressions
|
351 | - Various documentation fixes
|
352 |
|
353 | ## 0.2.3
|
354 |
|
355 | - Fixes for `diff` with multiple units
|
356 |
|
357 | ## 0.2.2
|
358 |
|
359 | - Fixes for `fromSQL`, `toSQL`, `toSQLTime`, and `toSQLDate`
|
360 | - Add `includeOffset` option to `toISO` and `toISOTime`
|
361 |
|
362 | ## 0.2.1
|
363 |
|
364 | - Add `module` field to package.json
|
365 |
|
366 | ## 0.2.0
|
367 |
|
368 | - Remove polyfills from main builds
|
369 | - Update compilation toolchain to target builds more exactly
|
370 | - Fix IE in polyfill build
|
371 |
|
372 | ## 0.1.0
|
373 |
|
374 | - Add `.fromSQL`, `#toSQL`, `#toSQLTime`, `#toSQLDate`
|
375 | - Fix AM/PM parsing
|
376 | - Major perf improvements
|
377 | - Default to system locale when using macro formats in `#toFormat`
|
378 | - `.fromISO` accepts standalone times
|
379 | - See https://github.com/moment/luxon/issues/93 for important news concerning field accessibility
|
380 |
|
381 | ## 0.0.22
|
382 |
|
383 | - Add 'u' formatting and parsing
|
384 | - Add 'y', 'yyyyy', and 'yyyyyy' parsing tokens
|
385 | - Add 'yyyyyy' formatting token
|
386 | - Better error messages for missing arguments to `DateTime.fromString`
|
387 |
|
388 | ## 0.0.21
|
389 |
|
390 | - Fix zones for Edge
|
391 |
|
392 | ## 0.0.20
|
393 |
|
394 | - Fix `fromISO` to accept various levels of subsecond precision
|
395 |
|
396 | ## 0.0.19
|
397 |
|
398 | - Fixed parsing for ordinals
|
399 | - Made parsing stricter
|
400 |
|
401 | ## 0.0.18
|
402 |
|
403 | - Fixed formatting for non-hour aligned fixed-offset zones
|
404 | - Fixed longterm conversion accuracy option in diffs
|
405 | - Fixed invalid handling in `Interval#set`
|
406 |
|
407 | ## 0.0.17
|
408 |
|
409 | - Fixing formatting for fixed-offset zones
|
410 |
|
411 | ## 0.0.16
|
412 |
|
413 | - Fixes for IE 9 & 10
|
414 |
|
415 | ## 0.0.15
|
416 |
|
417 | - Fixing busted release 0.0.14
|
418 |
|
419 | ## 0.0.13
|
420 |
|
421 | - toLocaleString() and others default to the system's locale
|
422 | - support for ISO week durations in `Duration.fromISO`
|
423 |
|
424 | ## 0.0.12
|
425 |
|
426 | - Improve non-Intl fallbacks for toLocaleString
|
427 | - Fix `offsetNameShort` and `offsetNameLong` for non-Intl environments
|
428 | - Added `weekdayShort`, `weekdayLong`, `monthShort`, `monthLong` DateTime getters
|
429 |
|
430 | ## 0.0.10
|
431 |
|
432 | - Only include build dir in NPM module
|
433 |
|
434 | ## 0.0.9
|
435 |
|
436 | - Move to Moment Github org
|
437 |
|
438 | ## 0.0.8
|
439 |
|
440 | - The local zone can now report its IANA name
|
441 | - Fixed parsing bug for `yy` and `kk`
|
442 | - Improved test coverage
|
443 |
|
444 | ## 0.0.7
|
445 |
|
446 | - Added `toLocaleParts`
|
447 | - Slightly more friendly month/weekday parsing
|
448 | - Default locale setting
|
449 |
|
450 | ## 0.0.6
|
451 |
|
452 | - Stricter `toJSDate`
|
453 | - `fromISO` now supports `year` and `year-month` formats
|
454 | - More graceful degradation in the absence of platform features
|
455 |
|
456 | ## 0.0.5
|
457 |
|
458 | Experimental, but now broadly useful.
|