Releases: DavidDuwaer/globol
Releases · DavidDuwaer/globol
v0.7.0
v0.6.0
- 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
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. TheInstant.toEpochMilli()
method will still always return an integer even when the Instant is instantiated with microseconds: it rounds down to whole millis, just likeInstant.toEpochSecond()
rounds down to whole seconds. - Global
now()
function, a shorthand forInstant.now()
.
v0.4.4
- Added Duration.ZERO
v0.4.3
Features
- Added Duration.between(..)
v0.4.1
Fixes
- Re-added return type hints that got lost when overloads were added to some methods
v0.4.0
Updated version number
v0.3.0
Moved type dependency to devDependencies and updated version number
v0.2.1
Added missing classes to index.ts exports
v0.2.0
Added documentation to emitted output published in d.ts files, so tha…