Skip to content

Releases: sadespresso/moment_dart

4.0.1

01 Mar 07:26
40b8830
Compare
Choose a tag to compare

What's Changed

  • [BREAKING] TimeRange month translation now includes the year, but year is omitted when useRelative is true and anchor.year is same as the range year
  • Added Moment.minValueUtc and Moment.maxValueUtc
  • Fixed Moment.minValue and Moment.maxValue overflowing
  • Updated docs

Full Changelog: 3.1.0...4.0.1

3.3.1

25 Jan 09:28
Compare
Choose a tag to compare

What's new

  • Fixed MonthTimeRange.format() would return "This month" for different year's same month

Full Changelog: 3.3.0...3.3.1

3.3.0

24 Jan 00:52
Compare
Choose a tag to compare

What's new

  • Pageable TImeRange's next, last no longer generated invalid value (e.g., month 12, day 32, etc..)

Full Changelog: 3.2.1...3.3.0

3.2.1

16 Jan 08:54
Compare
Choose a tag to compare

Full Changelog: 3.2.0...3.2.1

3.2.0

16 Jan 08:40
ffa2486
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.2.0...3.2.0

3.1.0

16 Jan 08:40
12173e0
Compare
Choose a tag to compare

What's Changed

  • TimeRange now has a unit property that returns its corresponding
    DurationUnit type if available.

Full Changelog: 3.0.0...3.1.0

3.0.0

31 Dec 15:14
0df4246
Compare
Choose a tag to compare

What's Changed

This release has breaking changes!

  • Changed TimeRange.toString() delimiter to @
  • Fixed CustomTimeRange not being able to be parsed
  • Added .encode() and .encodeShort() methods on TimeRange
  • Added TimeRange.fromStartAndDuration constructor

Full Changelog: 2.1.0...3.0.0

2.2.1+beta.0

21 Jul 08:49
9934e14
Compare
Choose a tag to compare
2.2.1+beta.0 Pre-release
Pre-release

What's Changed

  • TimeRange readable format beta. Call .format() on TimeRange objects.

Absolutely not tested :D

Full Changelog: 2.2.0...2.2.1+beta.0

2.2.0

21 Jul 08:48
f98dda4
Compare
Choose a tag to compare

What's Changed

  • fix #19, .endOf(DurationUnit.week) was incorrectly returning 7 days ahead by @sadespresso in #20
  • Renamed DateTime.to to .rangeTo for clarity. Old method will be removed on the next
  • Added Moment.maxValue and Moment.minValue. For example, now you can use CustomTimeRange(now, Moment.maxValue) or epoch.to(Moment.maxValue)

Full Changelog: 2.1.0...2.2.0

2.1.0

18 Apr 19:16
Compare
Choose a tag to compare

What's changed

  • Fixed LocalWeekTimeRange and IsoWeekTimeRange's to being 1 microsecond ahead
  • Now you can parse/serialize TimeRange by calling TimeRange.parse() and TimeRange.toString()