Skip to content

Releases: tidepool-org/sundial

v1.1.7

11 Mar 00:01
Compare
Choose a tag to compare

Updates

  • add translateMask function to switch between date masks more easily

v1.1.6

10 Mar 00:20
Compare
Choose a tag to compare

Updates

  • isValidDateForMask = stronger validation function for form entry
  • dateDifference for computing age, etc.

v1.1.3

30 Jan 18:56
Compare
Choose a tag to compare

Updated dependencies.

v1.0.0

04 Nov 01:04
Compare
Choose a tag to compare

First revision to sundial in preparation for introducing it as a tideline dependency.

This release introduces breaking changes. General changes of note:

  • no public methods accept or return moment objects (use of moment.js sequestered within sundial with the eventual goal of no other Tidepool repositories including moment as a dependency)
  • all methods that accept or return a timezone offset parameter have been standardized to speak in terms of timezone offsets in minutes from UTC

Detailed method changes:

  • getOffsetFromTime used to return a timezone offset in minutes to UTC, now returns offset in minutes from UTC
  • formatForDisplay has been removed and replaced with formatFromOffset and formatInTimezone (usage will vary depending on context)
  • formatForStorage used to expect an offset to UTC, now expects an offset from UTC
  • momentInstance has been removed