Releases: WilcoSp/ms-relative
Releases · WilcoSp/ms-relative
0.1.4
v0.1.3
created the following functions:
- formatMap: formats a map with units as keys and duration as values to a time string
- formatObject: formats a object with units as keys and duration as values to a time string
- formatListMap: same as formatMap but using the list formatter
- formatListMap: same as formatObject but using the list formatter
these functions make it possible to use libraries that give the difference between 2 dates in the relative/duration format and these functions do also accept month as an option
(versions 0.1.0 - 0.1.2 don't exist due to errors from ci)
if there aren't any new suggestions I'll then move this package to 1.0.0 as their isn't much more
v0.0.5
v0.0.4
added:
- formatList: similar to format but uses Intl.ListFormat for joining the format parts together
Changes:
- changed the readme to use the current version number instead of relying on
{current version}, badges now also use this to force update them as github & npm want to cache them sometimes for a very long time
v0.0.2 and v0.0.3
changes:
- more jsdoc and readme docs have been added
- locale option for the format function has been moved to options, now all optional options are in the options object