@js-joda/core 1.12.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +58 -1
- package/dist/js-joda.d.ts +2377 -1635
- package/dist/js-joda.esm.js +1678 -653
- package/dist/js-joda.js +1681 -654
- package/dist/js-joda.js.map +1 -1
- package/dist/js-joda.min.js +2 -2
- package/package.json +24 -21
- package/src/DayOfWeek.js +3 -3
- package/src/Duration.js +4 -4
- package/src/Instant.js +12 -54
- package/src/LocalDate.js +26 -75
- package/src/LocalDateTime.js +10 -62
- package/src/LocalTime.js +8 -61
- package/src/Month.js +4 -4
- package/src/MonthDay.js +1 -2
- package/src/OffsetDateTime.js +757 -0
- package/src/OffsetTime.js +621 -0
- package/src/Period.js +1 -1
- package/src/Year.js +73 -57
- package/src/YearMonth.js +10 -68
- package/src/ZonedDateTime.js +11 -52
- package/src/_init.js +4 -0
- package/src/chrono/ChronoLocalDate.js +2 -2
- package/src/chrono/ChronoLocalDateTime.js +2 -2
- package/src/chrono/ChronoZonedDateTime.js +2 -2
- package/src/errors.js +6 -6
- package/src/format/DateTimeBuilder.js +2 -2
- package/src/format/DateTimeFormatter.js +3 -3
- package/src/js-joda.js +6 -0
- package/src/temporal/ChronoField.js +241 -133
- package/src/temporal/ChronoUnit.js +72 -229
- package/src/temporal/DefaultInterfaceTemporal.js +118 -0
- package/src/temporal/IsoFields.js +35 -32
- package/src/temporal/Temporal.js +284 -1
- package/src/temporal/TemporalField.js +225 -1
- package/src/temporal/TemporalUnit.js +18 -19
- package/src/temporal/ValueRange.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,71 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
-
### next
|
|
4
|
+
### next (upcoming)
|
|
5
5
|
|
|
6
|
+
### 3.2.0
|
|
7
|
+
|
|
8
|
+
* add typescript definitions for OffsetDateTime and OffsetTime #448 by jonfreedman
|
|
9
|
+
|
|
10
|
+
### 3.1.0
|
|
11
|
+
|
|
12
|
+
* Fix bitwise or #439 by @pithu
|
|
13
|
+
* Tests for TS declaration run with ts-node #423 by InExtremaRes
|
|
14
|
+
* dependabot Bump elliptic from 6.5.2 to 6.5.3
|
|
15
|
+
* dependabot Bump lodash from 4.17.15 to 4.17.19
|
|
16
|
+
* dependabot Bump npm-registry-fetch from 4.0.2 to 4.0.5
|
|
17
|
+
|
|
18
|
+
### 3.0.0
|
|
19
|
+
|
|
20
|
+
This is a major release because of these following minor/ breaking cleanups:
|
|
21
|
+
|
|
22
|
+
* Renamed method getDisplayName to displayName for
|
|
23
|
+
* WeekFields
|
|
24
|
+
* DayOfWeek
|
|
25
|
+
* Month
|
|
26
|
+
* IsoFields
|
|
27
|
+
* Removed duplicate function YearMonth.with(number, number)
|
|
28
|
+
* YearMonth.with(year, month), use YearMonth.of() instead
|
|
29
|
+
* YearMonth.withYearMonth(year, month), use YearMonth.of() instead
|
|
30
|
+
|
|
31
|
+
All updates:
|
|
32
|
+
|
|
33
|
+
* Implement OffsetTime and OffsetDateTim #416 by exoego
|
|
34
|
+
* TS types reorganized and documentation added #418 by InExtremaRes
|
|
35
|
+
* Fix isBrowserTest check #419 by pithu
|
|
36
|
+
* Duration#(minus|plus) should accept TemporalUnit, not just ChronoUnit #417 by exoego
|
|
37
|
+
* TS types refactor part 1 #415 by InExtremaRes
|
|
38
|
+
* Remove YearMonth#with that takes (number, number) #412 by InExtremaRes
|
|
39
|
+
* Fixes and cleanups to TemporalFields and TemporalUnits #408 by InExtremaRes
|
|
40
|
+
* Switch to travis-ci.com #409 by pithu
|
|
41
|
+
* Error base name changed to "JsJodaException" and exceptions exposed in TS #407 by InExtremaRes
|
|
42
|
+
* Some fixes to TS declarations #404 by InExtremaRes
|
|
43
|
+
* remove android saucelabs test setup #403 by pithu
|
|
44
|
+
* Fix TS declarations of some TemporalAdjuster implementations (like DayOfWeak) #402 by InExtremaRes
|
|
45
|
+
* Fixed types of DateTimeFormatterBuilder.prototype.toFormatter to allow zero arguments #388 by InExtremaRes
|
|
46
|
+
* Add missing types for Clock.offset() #387 by InExtremaRes
|
|
47
|
+
* Added missing nanoAdjustment to Duration.ofSeconds static method #383 by jseter
|
|
48
|
+
* changed bitwise or to logical or #379 by bowersj
|
|
49
|
+
* Add Typescript for IsoChronology.INSTANCE #373 by cranberyxl
|
|
50
|
+
* Remove `withTemporalAdjuster` and others non-public methods from TS declaration #363 by InExtremaRes
|
|
51
|
+
|
|
52
|
+
### 2.0.0
|
|
53
|
+
|
|
54
|
+
This is a major release because some 'internal' methods were hidden from the typescript definitions
|
|
55
|
+
and were renamed in the javascript code.
|
|
56
|
+
Resolve those conflicts by using the 'public shorthand' methods, like instead of using `with*()` use `with(...)`.
|
|
57
|
+
|
|
58
|
+
* Improve of the TS declarations #353 from InExtremaRes
|
|
59
|
+
* Add missing methods to `Temporal` interface #361 from thrucker
|
|
60
|
+
* LocalDateTime.of requires at least 3 arguments #356
|
|
61
|
+
|
|
6
62
|
### 1.12.0
|
|
7
63
|
|
|
8
64
|
* Cleanup documentation and configuration
|
|
9
65
|
* Upgrade dependencies
|
|
10
66
|
* Add ISO formatters definitions #358 akonior/iso-formetters
|
|
11
67
|
* Improve TS declarations with no breaking change #357 InExtremaRes/ts-declarations
|
|
68
|
+
* Fixes to docu and LocalDateTime.of() according to the typescript changes #359
|
|
12
69
|
|
|
13
70
|
### 1.11.0
|
|
14
71
|
|