Skip to content

Releases: WilcoSp/ms-relative

0.1.4

26 Oct 07:12
d274f87

Choose a tag to compare

  • package is now marked as sideEffects free
  • added a link where bugs can be reported in package.json

if there are now suggestion or bug reports at the end of November I'll bump the version to 1.0.0 as ms-relative is feature complete for now

v0.1.3

16 Oct 13:37
707e725

Choose a tag to compare

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

20 Apr 20:53
34f2dab

Choose a tag to compare

changes:

  • changed package.json to work properly with jsdelivr and also typescript (sorry it wasn't working before)

v0.0.4

20 Apr 19:31
6c3b576

Choose a tag to compare

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

14 Apr 08:24
e9d1c6c

Choose a tag to compare

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

v0.0.1

11 Apr 18:21
ae33329

Choose a tag to compare

The first release of ms-relative
The core is:

  • format
  • parseMs
    but also the building blocks of:
  • convertMap
  • formatPart / formatParts
  • getBiggestValueAndType
  • msToMap & msToObject
  • reducePartsOf3 & reducePartsOf2
  • and all units