@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.
Files changed (74) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/README.md +42 -32
  3. package/dist/js-joda.esm.js +11345 -9928
  4. package/dist/js-joda.js +11345 -9928
  5. package/dist/js-joda.js.map +1 -1
  6. package/dist/js-joda.min.js +2 -2
  7. package/package.json +22 -46
  8. package/src/Clock.js +6 -6
  9. package/src/DayOfWeek.js +13 -13
  10. package/src/Duration.js +15 -15
  11. package/src/Instant.js +21 -21
  12. package/src/LocalDate.js +44 -44
  13. package/src/LocalDateTime.js +19 -19
  14. package/src/LocalTime.js +21 -21
  15. package/src/MathUtil.js +3 -3
  16. package/src/Month.js +12 -12
  17. package/src/MonthDay.js +23 -23
  18. package/src/OffsetDateTime.js +21 -21
  19. package/src/OffsetTime.js +16 -16
  20. package/src/Period.js +12 -12
  21. package/src/StringUtil.js +1 -1
  22. package/src/Year.js +30 -30
  23. package/src/YearMonth.js +26 -26
  24. package/src/ZoneId.js +7 -7
  25. package/src/ZoneIdFactory.js +13 -13
  26. package/src/ZoneOffset.js +20 -20
  27. package/src/ZoneRegion.js +2 -2
  28. package/src/ZonedDateTime.js +24 -24
  29. package/src/_init.js +24 -24
  30. package/src/assert.js +4 -4
  31. package/src/chrono/ChronoLocalDate.js +7 -7
  32. package/src/chrono/ChronoLocalDateTime.js +9 -9
  33. package/src/chrono/ChronoZonedDateTime.js +7 -7
  34. package/src/chrono/IsoChronology.js +13 -13
  35. package/src/convert.js +7 -7
  36. package/src/errors.js +3 -3
  37. package/src/format/DateTimeBuilder.js +17 -17
  38. package/src/format/DateTimeFormatter.js +19 -19
  39. package/src/format/DateTimeFormatterBuilder.js +59 -59
  40. package/src/format/DateTimeParseContext.js +6 -6
  41. package/src/format/DateTimePrintContext.js +3 -3
  42. package/src/format/DecimalStyle.js +1 -1
  43. package/src/format/ResolverStyle.js +1 -1
  44. package/src/format/SignStyle.js +1 -1
  45. package/src/format/TextStyle.js +1 -1
  46. package/src/format/parser/CharLiteralPrinterParser.js +3 -3
  47. package/src/format/parser/FractionPrinterParser.js +9 -9
  48. package/src/format/parser/NumberPrinterParser.js +17 -17
  49. package/src/format/parser/OffsetIdPrinterParser.js +9 -9
  50. package/src/format/parser/PadPrinterParserDecorator.js +3 -3
  51. package/src/format/parser/StringLiteralPrinterParser.js +2 -2
  52. package/src/format/parser/ZoneIdPrinterParser.js +5 -5
  53. package/src/temporal/ChronoField.js +5 -5
  54. package/src/temporal/ChronoUnit.js +4 -4
  55. package/src/temporal/IsoFields.js +12 -12
  56. package/src/temporal/NativeJsTemporal.js +11 -11
  57. package/src/temporal/Temporal.js +5 -5
  58. package/src/temporal/TemporalAccessor.js +5 -5
  59. package/src/temporal/TemporalAdjuster.js +1 -1
  60. package/src/temporal/TemporalAdjusters.js +6 -6
  61. package/src/temporal/TemporalAmount.js +1 -1
  62. package/src/temporal/TemporalQueriesFactory.js +6 -6
  63. package/src/temporal/TemporalQuery.js +2 -2
  64. package/src/temporal/TemporalUnit.js +1 -1
  65. package/src/temporal/ValueRange.js +15 -15
  66. package/src/zone/SystemDefaultZoneId.js +2 -2
  67. package/src/zone/SystemDefaultZoneRules.js +3 -3
  68. package/src/zone/ZoneOffsetTransition.js +7 -7
  69. package/src/zone/ZoneRules.js +4 -4
  70. package/src/zone/ZoneRulesProvider.js +2 -2
  71. package/{dist → typings}/js-joda.d.ts +0 -0
  72. package/{dist → typings}/js-joda.flow.js +1 -1
  73. package/CheatSheet.md +0 -947
  74. 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-timezone plugin.
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
  [![npm version](https://badge.fury.io/js/%40js-joda%2Fcore.svg)](https://badge.fury.io/js/%40js-joda%2Fcore)
6
- [![Travis Build Status](https://travis-ci.org/js-joda/js-joda.svg)](https://travis-ci.org/js-joda/js-joda)
4
+ [![Travis Build Status](https://app.travis-ci.com/js-joda/js-joda.svg?branch=master)](https://app.travis-ci.com/js-joda/js-joda)
7
5
  [![Sauce Test Status](https://saucelabs.com/buildstatus/js-joda)](https://saucelabs.com/u/js-joda)
8
6
  [![Coverage Status](https://coveralls.io/repos/js-joda/js-joda/badge.svg?branch=master&service=github)](https://coveralls.io/github/js-joda/js-joda?branch=master)
9
- [![Tested node version](https://img.shields.io/badge/tested_with-current_node_LTS-blue.svg?style=flat)]()
10
- [![Sauce Test Status](https://saucelabs.com/browser-matrix/js-joda.svg)](https://saucelabs.com/u/js-joda)
7
+ [![Downloads/Month](https://img.shields.io/npm/dm/%40js-joda%2Fcore.svg)](https://img.shields.io/npm/dm/%40js-joda%2Fcore.svg)
8
+
9
+ [![Sauce Browser Matrix](https://saucelabs.com/browser-matrix/js-joda.svg?branch=master)](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-locale)
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.