UNPKG

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