Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 649 Bytes

File metadata and controls

18 lines (17 loc) · 649 Bytes

Changelog

v2.0.0

  • BREAKING: to allow 0, false, and '0' as valid arguments for ms, tests had to be changed.
  • removed: sourcemaps in dist version (additional size savings)

v1.0.6

  • fix: duration was incorrectly rounding to seconds, instead of only when part limiting
  • fix: duration incorrectly handled sub-second durations (returned empty string)

v1.0.5

  • fix: last part in duration() should include remainder decimal, not just seconds

v1.0.0

  • BREAKING: changed getSeconds() --> toSeconds()
  • added: toMs()
  • added: toDuration()
  • datePlus() remains the same
  • maintenance: code-golfing!

v0.1.0

  • first public release