Skip to content

Releases: DavidDuwaer/globol

v0.7.0

10 Dec 11:09
Compare
Choose a tag to compare
  • Added TimeZone, an abstract type which is extended by both ZoneId and ZoneOffset.
  • Added TimeZone.browser() function, an alias for ZoneId.browser().

v0.6.0

25 Nov 08:23
Compare
Choose a tag to compare
  • Added several .equals methods, both on instances of types and statically on the type to compare 2 or more instances, and made sure all existing equals methods take null and undefined as arguments
  • Added LocalTime.atDate(LocalDate)

v0.5.0: now(), microseconds and Duration shorthands

21 Nov 17:24
Compare
Choose a tag to compare

Features

  • Added handy syntax for instantiating Durations. Example: Duration.of({days: 23, minutes: 1, millis, 5}.
  • Duration shorthand syntax can be used directly on Instant.add/plus/minus/subtract methods
  • Instants can now have microsecond precision. This can be handy when using e.g. requestAnimationFrame. Normal use cases are not affected. The Instant.toEpochMilli() method will still always return an integer even when the Instant is instantiated with microseconds: it rounds down to whole millis, just like Instant.toEpochSecond() rounds down to whole seconds.
  • Global now() function, a shorthand for Instant.now().

v0.4.4

21 Nov 16:32
Compare
Choose a tag to compare
  • Added Duration.ZERO

v0.4.3

21 Nov 16:32
Compare
Choose a tag to compare

Features

  • Added Duration.between(..)

v0.4.1

21 Nov 16:36
Compare
Choose a tag to compare

Fixes

  • Re-added return type hints that got lost when overloads were added to some methods

v0.4.0

21 Nov 16:31
Compare
Choose a tag to compare
Updated version number

v0.3.0

26 May 20:33
Compare
Choose a tag to compare
Moved type dependency to devDependencies and updated version number

v0.2.1

13 Feb 10:24
Compare
Choose a tag to compare
Added missing classes to index.ts exports

v0.2.0: Added documentation to emitted output published in d.ts files, so tha…

13 Feb 10:24
Compare
Choose a tag to compare
…t users of the library will have documentation on the methods, properties and classes of this library