@js-joda/core 5.2.0 → 5.3.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.
@@ -1,4 +1,4 @@
1
- //! @version @js-joda/core - 5.2.0
1
+ //! @version @js-joda/core - 5.3.0
2
2
  //! @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors
3
3
  //! @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
4
4
  //! @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
@@ -1,4 +1,4 @@
1
- //! @version @js-joda/core - 5.2.0
1
+ //! @version @js-joda/core - 5.3.0
2
2
  //! @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors
3
3
  //! @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
4
4
  //! @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
package/dist/js-joda.js CHANGED
@@ -1,4 +1,4 @@
1
- //! @version @js-joda/core - 5.2.0
1
+ //! @version @js-joda/core - 5.3.0
2
2
  //! @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors
3
3
  //! @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
4
4
  //! @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
@@ -1,4 +1,4 @@
1
- //! @version @js-joda/core - 5.2.0
1
+ //! @version @js-joda/core - 5.3.0
2
2
  //! @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors
3
3
  //! @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
4
4
  //! @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@js-joda/core",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "description": "a date and time library for javascript",
5
5
  "repository": {
6
6
  "type": "git",
@@ -48,5 +48,5 @@
48
48
  "sourceMap": false,
49
49
  "instrument": false
50
50
  },
51
- "gitHead": "d07153c38a3d0b2b29b8185e3daaac69c624d4a9"
51
+ "gitHead": "de4c9adcfddc2d1c06dc4d4b748580134ccd6a0f"
52
52
  }
@@ -1152,6 +1152,7 @@ export class Instant extends Temporal implements TemporalAdjuster {
1152
1152
 
1153
1153
  static from(temporal: TemporalAccessor): Instant;
1154
1154
  static now(clock?: Clock): Instant;
1155
+ static ofEpochMicro(epochMicro: number): Instant;
1155
1156
  static ofEpochMilli(epochMilli: number): Instant;
1156
1157
  static ofEpochSecond(epochSecond: number, nanoAdjustment?: number): Instant;
1157
1158
  static parse(text: string): Instant;
@@ -1171,12 +1172,14 @@ export class Instant extends Temporal implements TemporalAdjuster {
1171
1172
  isSupported(fieldOrUnit: TemporalField | TemporalUnit): boolean;
1172
1173
  minus(amountToSubtract: number, unit: TemporalUnit): Instant;
1173
1174
  minus(amount: TemporalAmount): Instant;
1175
+ minusMicros(microsToSubtract: number): Instant;
1174
1176
  minusMillis(millisToSubtract: number): Instant;
1175
1177
  minusNanos(nanosToSubtract: number): Instant;
1176
1178
  minusSeconds(secondsToSubtract: number): Instant;
1177
1179
  nano(): number;
1178
1180
  plus(amountToAdd: number, unit: TemporalUnit): Instant;
1179
1181
  plus(amount: TemporalAmount): Instant;
1182
+ plusMicros(microsToAdd: number): Instant;
1180
1183
  plusMillis(millisToAdd: number): Instant;
1181
1184
  plusNanos(nanosToAdd: number): Instant;
1182
1185
  plusSeconds(secondsToAdd: number): Instant;
@@ -122,6 +122,7 @@ declare module "js-joda" {
122
122
  MAX_SECONDS: Instant;
123
123
  from(temporal: TemporalAccessor): Instant;
124
124
  now(clock?: Clock): Instant;
125
+ ofEpochMicro(epochMicro: number): Instant;
125
126
  ofEpochMilli(epochMilli: number): Instant;
126
127
  ofEpochSecond(epochSecond: number, nanoAdjustment?: number): Instant;
127
128
  parse(text: string): Instant;
@@ -137,12 +138,14 @@ declare module "js-joda" {
137
138
  isSupported(fieldOrUnit: TemporalField | TemporalUnit): boolean;
138
139
  minus(amount: TemporalAmount): Instant;
139
140
  minus(amountToSubtract: number, unit: TemporalUnit): Instant;
141
+ minusMicros(microsToSubtract: number): Instant;
140
142
  minusMillis(millisToSubtract: number): Instant;
141
143
  minusNanos(nanosToSubtract: number): Instant;
142
144
  minusSeconds(secondsToSubtract: number): Instant;
143
145
  nano(): number;
144
146
  plus(amount: TemporalAmount): Instant;
145
147
  plus(amountToAdd: number, unit: TemporalUnit): Instant;
148
+ plusMicros(microsToAdd: number): Instant;
146
149
  plusMillis(millisToAdd: number): Instant;
147
150
  plusNanos(nanosToAdd: number): Instant;
148
151
  plusSeconds(secondsToAdd: number): Instant;