Skip to content

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 30 Apr 17:44
· 482 commits to main since this release

1.0.0 (2022-04-30)

⚠ BREAKING CHANGES

  • node 12 is no longer supported
  • fromReferenceSeconds: fromReferenceSeconds now throws if the specified count of seconds is not a finite
    value. Previously it would return an invalid Time object with the same non-finite value as its
    hours, minutes and seconds.
  • fromReferenceSeconds: time now throws if any of the component parts of the specified time are not
    finite values. Previously it would return an invalid Time object with non-finite values as its
    hours, minutes and/or seconds.
  • fromReferenceSeconds: normalize now throws if any of the component parts of the specified time are
    not finite values. Previously it would return an invalid Time object with non-finite values as its
    hours, minutes and/or seconds.
  • node: node ^13 || ^15 are no longer supported.
  • time: The Time type is now immutable.
  • node 10 is no longer supported. node >=12 is required.
  • Consumers that previously imported from "@softwareventures/time/time" should now
    import from "@softwareventures/time" instead.
  • date: The date type is no longer included in tis module. Use @softwareventures/date
    instead.
  • This library now uses ES2017 syntax. This breaks compatibility with Node < 8.10 and
    very old browsers that do not support ES2017 syntax. If you need to support older browsers, then you
    should use Babel to compile ES6+ code down to ES5.

Features

  • drop support for node 12 (6ec3620)
  • after: add after function (e10eb29)
  • before: add before function (b1df8f3)
  • beforeOrEqual: add beforeOrEqual function (5a02945)
  • compare: add compare function (6e1c250)
  • date: delete date type (2ff6823)
  • equal: add equal function (f983136)
  • isTime: add isTime function (2096a08)
  • isTimeValid: add isTimeValid alias for isValid (445aae9)
  • isValid: add isValid function (10f8690)
  • node: drop support for node ^13 || ^15 (3eeea7d)
  • notEqual: add notEqual function (b6a0a5b)
  • nowDeviceLocal: add nowDeviceLocal function (15b885b)
  • nowUtc: add nowUtc function (be10261)
  • time: add time constructor function (be5a5c6)
  • time: add type discriminator to Time type (b8b8767)
  • time: make Time type immutable (6778239)
  • timeoptions: add TimeOptions type, and prefer it to Time as argument type (5f5e70f)
  • compile to ES2017 (04df561), closes #45
  • drop support for node 10 (df5f611)
  • make time module top-level export (38c4f13)

Bug Fixes

  • deps: update dependency is-integer-in-range to v3 (#59) (9a72995)
  • fromReferenceSeconds: throw if the specified count of seconds is not a finite value (1ef121a)
  • package: delete duplicate key in package.json (575f6c7)

Reverts

  • Revert "ci(github): deploy using node 18.x" (07babd6)