@js-joda/core 4.1.0 → 4.3.1
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 +16 -1
- package/README.md +42 -32
- package/dist/js-joda.esm.js +11345 -9928
- package/dist/js-joda.js +11345 -9928
- package/dist/js-joda.js.map +1 -1
- package/dist/js-joda.min.js +2 -2
- package/package.json +22 -46
- package/src/Clock.js +6 -6
- package/src/DayOfWeek.js +13 -13
- package/src/Duration.js +15 -15
- package/src/Instant.js +21 -21
- package/src/LocalDate.js +44 -44
- package/src/LocalDateTime.js +19 -19
- package/src/LocalTime.js +21 -21
- package/src/MathUtil.js +3 -3
- package/src/Month.js +12 -12
- package/src/MonthDay.js +23 -23
- package/src/OffsetDateTime.js +21 -21
- package/src/OffsetTime.js +16 -16
- package/src/Period.js +12 -12
- package/src/StringUtil.js +1 -1
- package/src/Year.js +30 -30
- package/src/YearMonth.js +26 -26
- package/src/ZoneId.js +7 -7
- package/src/ZoneIdFactory.js +13 -13
- package/src/ZoneOffset.js +20 -20
- package/src/ZoneRegion.js +2 -2
- package/src/ZonedDateTime.js +24 -24
- package/src/_init.js +24 -24
- package/src/assert.js +4 -4
- package/src/chrono/ChronoLocalDate.js +7 -7
- package/src/chrono/ChronoLocalDateTime.js +9 -9
- package/src/chrono/ChronoZonedDateTime.js +7 -7
- package/src/chrono/IsoChronology.js +13 -13
- package/src/convert.js +7 -7
- package/src/errors.js +3 -3
- package/src/format/DateTimeBuilder.js +17 -17
- package/src/format/DateTimeFormatter.js +19 -19
- package/src/format/DateTimeFormatterBuilder.js +59 -59
- package/src/format/DateTimeParseContext.js +6 -6
- package/src/format/DateTimePrintContext.js +3 -3
- package/src/format/DecimalStyle.js +1 -1
- package/src/format/ResolverStyle.js +1 -1
- package/src/format/SignStyle.js +1 -1
- package/src/format/TextStyle.js +1 -1
- package/src/format/parser/CharLiteralPrinterParser.js +3 -3
- package/src/format/parser/FractionPrinterParser.js +9 -9
- package/src/format/parser/NumberPrinterParser.js +17 -17
- package/src/format/parser/OffsetIdPrinterParser.js +9 -9
- package/src/format/parser/PadPrinterParserDecorator.js +3 -3
- package/src/format/parser/StringLiteralPrinterParser.js +2 -2
- package/src/format/parser/ZoneIdPrinterParser.js +5 -5
- package/src/temporal/ChronoField.js +5 -5
- package/src/temporal/ChronoUnit.js +4 -4
- package/src/temporal/IsoFields.js +12 -12
- package/src/temporal/NativeJsTemporal.js +11 -11
- package/src/temporal/Temporal.js +5 -5
- package/src/temporal/TemporalAccessor.js +5 -5
- package/src/temporal/TemporalAdjuster.js +1 -1
- package/src/temporal/TemporalAdjusters.js +6 -6
- package/src/temporal/TemporalAmount.js +1 -1
- package/src/temporal/TemporalQueriesFactory.js +6 -6
- package/src/temporal/TemporalQuery.js +2 -2
- package/src/temporal/TemporalUnit.js +1 -1
- package/src/temporal/ValueRange.js +15 -15
- package/src/zone/SystemDefaultZoneId.js +2 -2
- package/src/zone/SystemDefaultZoneRules.js +3 -3
- package/src/zone/ZoneOffsetTransition.js +7 -7
- package/src/zone/ZoneRules.js +4 -4
- package/src/zone/ZoneRulesProvider.js +2 -2
- package/{dist → typings}/js-joda.d.ts +0 -0
- package/{dist → typings}/js-joda.flow.js +1 -1
- package/CheatSheet.md +0 -947
- package/bower.json +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,21 @@ Changelog
|
|
|
3
3
|
|
|
4
4
|
### next (upcoming)
|
|
5
5
|
|
|
6
|
+
### 4.3.0
|
|
7
|
+
|
|
8
|
+
* [#567](https://github.com/js-joda/js-joda/pull/567) Remove generated distributions files from git ([@pithu](https://github.com/pithu))
|
|
9
|
+
* [#564](https://github.com/js-joda/js-joda/pull/564) Fix travis for PR's from forks ([@pithu](https://github.com/pithu))
|
|
10
|
+
|
|
11
|
+
### 4.2.1
|
|
12
|
+
|
|
13
|
+
* [#559](https://github.com/js-joda/js-joda/pull/559) Fix references to deprecated single repos ([@pithu](https://github.com/pithu))
|
|
14
|
+
|
|
15
|
+
### 4.2.0
|
|
16
|
+
|
|
17
|
+
* Upgrade dependencies #555 by @pithu
|
|
18
|
+
* Change @babel/preset-env targets, fix IE11 issues #555 by @pithu
|
|
19
|
+
* Improve documentation #556 by @pithu
|
|
20
|
+
|
|
6
21
|
### 4.1.0
|
|
7
22
|
|
|
8
23
|
* Remove edge case handling for Temporal.minus #542 by @pithu
|
|
@@ -311,7 +326,7 @@ Resolve those conflicts by using the 'public shorthand' methods, like instead of
|
|
|
311
326
|
|
|
312
327
|
#### Add ZoneRulesProvider stub
|
|
313
328
|
|
|
314
|
-
Add the ZoneRulesProvider. This should be the last step to enable js-joda for an external js-joda
|
|
329
|
+
Add the ZoneRulesProvider. This should be the last step to enable js-joda for an external @js-joda/timezone plugin.
|
|
315
330
|
|
|
316
331
|
#### Provide a way to extend js-joda
|
|
317
332
|
|
package/README.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
# @js-joda/core
|
|
2
|
-
|
|
3
1
|
# Immutable date and time library for JavaScript
|
|
4
2
|
|
|
5
3
|
[](https://badge.fury.io/js/%40js-joda%2Fcore)
|
|
6
|
-
[](https://app.travis-ci.com/js-joda/js-joda)
|
|
7
5
|
[](https://saucelabs.com/u/js-joda)
|
|
8
6
|
[](https://coveralls.io/github/js-joda/js-joda?branch=master)
|
|
9
|
-
[](https://img.shields.io/npm/dm/%40js-joda%2Fcore.svg)
|
|
8
|
+
|
|
9
|
+
[](https://saucelabs.com/u/js-joda)
|
|
11
10
|
|
|
12
11
|
## Introduction
|
|
13
12
|
|
|
@@ -95,11 +94,48 @@ To use js-joda from a browser, download either `dist/js-joda.min.js` or `dist/js
|
|
|
95
94
|
</script>
|
|
96
95
|
```
|
|
97
96
|
|
|
97
|
+
## js-joda packages
|
|
98
|
+
|
|
99
|
+
js-joda consist of four packages:
|
|
100
|
+
|
|
101
|
+
| package name | description | path |
|
|
102
|
+
|---|---|---|
|
|
103
|
+
| `@js-joda/core` | Implementation of the ThreeTen Classes and API | [/packages/core](//github.com/js-joda/js-joda/tree/master/packages/core) |
|
|
104
|
+
| `@js-joda/timezone` | Implementation of timezone calculation based on the iana Time Zone Database | [/packages/timezone](//github.com/js-joda/js-joda/tree/master/packages/timezone) |
|
|
105
|
+
| `@js-joda/locale` | Implementation of locale specific functionality for js-joda, especially for formatting and parsing locale specific dates | [/packages/locale](//github.com/js-joda/js-joda/tree/master/packages/locale) |
|
|
106
|
+
| `@js-joda/extra` | Implementation of the ThreeTen-Extra Classes and API |[/packages/extra](//github.com/js-joda/js-joda/tree/master/packages/extra) |
|
|
107
|
+
|
|
108
|
+
The [@js-joda/examples](//github.com/js-joda/js-joda/tree/master/packages/examples) package is for testing the different build artifacts in different context, like webpack, browser node, etc.
|
|
109
|
+
|
|
98
110
|
## Documentation
|
|
99
111
|
|
|
100
112
|
- [js-joda Quick start guide](//js-joda.github.io/js-joda/manual/getting-started.html) Quick start guide and examples
|
|
101
113
|
- [API](//js-joda.github.io/js-joda/identifiers.html) ESDoc generated API documentation
|
|
102
114
|
|
|
115
|
+
## Contributing
|
|
116
|
+
|
|
117
|
+
Contributions are always welcome. Before contributing please read the [code of conduct](http://contributor-covenant.org/version/1/4/) &
|
|
118
|
+
search the issue tracker. We use GitHub issues. Your issue may have already been discussed or fixed. To contribute, fork js-joda, commit your changes, & send a pull request.
|
|
119
|
+
|
|
120
|
+
By contributing to js-joda, you agree that your contributions will be licensed under its BSD license.
|
|
121
|
+
|
|
122
|
+
Note that only pull requests and issues that match the threeten backport API will be considered. Additional requested features will be rejected.
|
|
123
|
+
|
|
124
|
+
## License
|
|
125
|
+
|
|
126
|
+
- `js-joda` is released under the [BSD 3-clause license](//github.com/js-joda/js-joda/blob/master/LICENSE).
|
|
127
|
+
|
|
128
|
+
- `js-joda` uses the ThreeTen-Backport implementation (http://www.threeten.org/threetenbp/) as a reference base for implementation. This allows us to release js-joda under the BSD License while the OpenJDK java.time implementation is under GNU GPL+linking exception. The API of the ThreeTen-Backport is mostly identical to the official Java SE 8 API from the view of our JavaScript port.
|
|
129
|
+
|
|
130
|
+
- Our implementation reference base ThreeTen-Backport (http://www.threeten.org/threetenbp/) is also released under the BSD 3-clause license
|
|
131
|
+
|
|
132
|
+
- `OpenJDK` is under GNU GPL+linking exception.
|
|
133
|
+
|
|
134
|
+
- The author of `Joda-Time` and the lead architect of the JSR-310 is Stephen Colebourne.
|
|
135
|
+
|
|
136
|
+
The API of this project (as far as possible with JavaScript), a lot of implementation details and documentation
|
|
137
|
+
are just copied but never equalled.
|
|
138
|
+
|
|
103
139
|
## Roadmap
|
|
104
140
|
|
|
105
141
|
### Milestone 1: Core domains (reached with version v1.0.0)
|
|
@@ -112,7 +148,7 @@ To use js-joda from a browser, download either `dist/js-joda.min.js` or `dist/js
|
|
|
112
148
|
- Add IANA timezone database support to js-joda. Implement handling of daylight saving transitions, mainly in `ZonedDateTime`.
|
|
113
149
|
- For access to the IANA timezone database, the plugin [@js-joda/timezone](//github.com/js-joda/js-joda/tree/master/packages/timezone) is required. It provides an implementation of the [ZoneRulesProvider](//js-joda.github.io/js-joda/class/packages/core/src/zone/ZoneRulesProvider.js~ZoneRulesProvider.html) and contains the iana timezone database.
|
|
114
150
|
|
|
115
|
-
### Milestone 3: Locale support (reached with v2.0.0 of js-joda
|
|
151
|
+
### Milestone 3: Locale support (reached with v2.0.0 of @js-joda/locale)
|
|
116
152
|
|
|
117
153
|
- Add locale support.
|
|
118
154
|
- Extend pattern parser/ formatter for text with locale support.
|
|
@@ -124,29 +160,3 @@ see the plugin [@js-joda/locale](//github.com/js-joda/js-joda/tree/master/packag
|
|
|
124
160
|
- Reduce library size by removing redundant code, especially by refactoring code for formatting/ parsing dates.
|
|
125
161
|
- Increase test coverage (ongoing task)
|
|
126
162
|
- Cleanup documentation (ongoing task)
|
|
127
|
-
|
|
128
|
-
## Contributing
|
|
129
|
-
|
|
130
|
-
Contributions are always welcome. Before contributing please read the [code of conduct](http://contributor-covenant.org/version/1/4/) &
|
|
131
|
-
search the issue tracker. We use GitHub issues. Your issue may have already been discussed or fixed. To contribute, fork js-joda, commit your changes, & send a pull request.
|
|
132
|
-
|
|
133
|
-
By contributing to js-joda, you agree that your contributions will be licensed under its BSD license.
|
|
134
|
-
|
|
135
|
-
Note that only pull requests and issues that match the threeten backport API will be considered. Additional requested features will be rejected.
|
|
136
|
-
|
|
137
|
-
## License
|
|
138
|
-
|
|
139
|
-
- `Joda-Time` is the base for JSR-310 that became part of Java SE 8 in the java.time package. JSR-310 is a new implementation with an API 'inspired by Joda-Time' but improves on some design flaws (see http://blog.joda.org/2009/11/why-jsr-310-isn-joda-time_4941.html) `Joda-Time` is under Apache 2.0 licence.
|
|
140
|
-
|
|
141
|
-
`js-joda` uses the ThreeTen-Backport implementation (http://www.threeten.org/threetenbp/) as a reference base for implementation. This allows us to release js-joda under the BSD License while the OpenJDK java.time implementation is under GNU GPL+linking exception. The API of the ThreeTen-Backport is mostly identical to the official Java SE 8 API from the view of our JavaScript port.
|
|
142
|
-
|
|
143
|
-
- `js-joda` is released under the [BSD 3-clause license](//github.com/js-joda/js-joda/blob/master/LICENSE).
|
|
144
|
-
|
|
145
|
-
- Our implementation reference base ThreeTen-Backport (http://www.threeten.org/threetenbp/) is also released under the BSD 3-clause license
|
|
146
|
-
|
|
147
|
-
- `OpenJDK` is under GNU GPL+linking exception.
|
|
148
|
-
|
|
149
|
-
- The author of `Joda-Time` and the lead architect of the JSR-310 is Stephen Colebourne.
|
|
150
|
-
|
|
151
|
-
The API of this project (as far as possible with JavaScript), a lot of implementation details and documentation
|
|
152
|
-
are just copied but never equalled.
|