Skip to content

Releases: sosodev/duration

v1.3.0 - Stricter Parsing

07 May 20:47
5b2735a
Compare
Choose a tag to compare

In this release I fixed some bugs where the parser was being too lenient and allowing invalid input durations. Thanks to @jrdouceur for creating this issue pointing out that the parser would allow durations that were missing the period section identifier T0S.

I noticed while fixing this that the parser would also allow improperly placed negative signs P-T0S and multiple period sections PT0SP0D. Both of those bugs have been fixed too.

Also a lot of gratitude to @ccoVeille for contributing github actions, style fixes, and reviews!

Code quality and issue turnaround time for this repository will be better now. :)

v1.2.0

12 Oct 17:38
21da944
Compare
Choose a tag to compare

Adds JSON support thanks to @arieroos

v1.1.0

06 Apr 01:12
3054e00
Compare
Choose a tag to compare

Thanks to @astappiev for contributing:

  • support for negative durations
  • ability to convert a time.Duration to an ISO8601 *Duration
  • a couple of bug fixes surrounding converting *Duration back to an ISO8601 string
  • some general refactoring