Skip to content

Releases: tolu/ISO8601-duration

v2.1.2

12 Dec 08:09
Compare
Choose a tag to compare
  • Account for timezone offset between start/end time when calculating duration (#34) e1e3750

v2.1.1...v2.1.2

v2.1.1

14 Apr 20:27
Compare
Choose a tag to compare

Changes

No changes to code in this release, but improved readme!

  • Update README.md 2a3c158
  • Tidy up dev-deps - use watchlist via npx - generate package-lock 16dca73

v2.1.0...v2.1.1

v2.1.0

13 Apr 19:44
Compare
Choose a tag to compare

Changes

  • export Duration interface
  • test logic against @js-temporal/polyfill
  • update how weeks are handled (now supported to mix with Y/M/D)
  • throw RangeError on invalid input to parse (["", "P", "PT", "PT0.5H0.5S"]) etc
  • fixes use of fractional hours/minutes in toSeconds

Commits

v2.0.0...v2.1.0

2.0.0 port to typescript

13 Apr 08:36
Compare
Choose a tag to compare

Port main file to TypeScript and use tsc to build (with declarations) rather than babel.

Removes esnext:main from package.json

Changes

v1.3.0...v2.0.0

2.0.0-0@beta

13 Apr 08:18
Compare
Choose a tag to compare
2.0.0-0@beta Pre-release
Pre-release

v1.3.0...v2.0.0-0

v1.3.0

29 Nov 11:20
Compare
Choose a tag to compare

Includes #18

Sets defaults for duration object passed into toSeconds and end so that types match actual behaviour

v1.2.0

29 Nov 08:38
Compare
Choose a tag to compare
1.2.0

v1.1.0

09 Oct 08:16
Compare
Choose a tag to compare

Changes

  • added export end to get end time (Date-obj) of duration

v1.0.3

17 Jan 23:25
Compare
Choose a tag to compare
use badges from shields.io