Skip to content

Releases: gluons/date-eq

v2.0.1

26 Jul 09:18
v2.0.1
6fcf96c

Choose a tag to compare

Nothing Changes

Just republish.

v2.0.0

26 Jul 09:13
v2.0.0
99f00f0

Choose a tag to compare

Breaking Changes

  • Rewrite in TypeScript.
  • Use pnpm instead of Yarn for package management.
  • Replace Moment with Day.js for reducing size. (Used for calculating week of year.)
  • API is completely changed.
  • Migrate testing from Mocha to Jest.

v1.0.0

04 Dec 16:17
v1.0.0
3c60a2c

Choose a tag to compare

First Release

DateEQ

DateEQ class with methods:

  • eq([date2])
  • day([date2])
  • date([date2])
  • week([date2])
  • month([date2])
  • year([date2])
  • hours([date2]), hrs([date2])
  • minutes([date2]), min([date2])
  • seconds([date2]), sec([date2])
  • milliseconds([date2]), ms([date2])

DateEQ.Comparer

DateEQ.Comparer class with static methods:

  • eq(date1, date2)
  • day(date1, date2)
  • date(date1, date2)
  • week(date1, date2)
  • month(date1, date2)
  • year(date1, date2)
  • hours(date1, date2), hrs(date1, date2)
  • minutes(date1, date2), min(date1, date2)
  • seconds(date1, date2), sec(date1, date2)
  • milliseconds(date1, date2), ms(date1, date2)