Skip to content

Releases: lukeed/fromnow

v3.0.1

08 Jul 19:59
Compare
Choose a tag to compare

Patches

  • (TypeScript) Add type definitions: d53002e
  • (Golf) Drop 10 bytes: ad6b397

Chores

v3.0.0

21 Sep 20:50
Compare
Choose a tag to compare

Breaking

  • Remove opts.ago option
  • Remove segments with 0/empty values by default

Features

  • Add opts.zero flag to re-include 0/empty values: 3f421a5

  • Add opts.suffix flag to append "ago" or "from now" to output: 7d4b80f

    Thank you to @finchMFG for prompting this change!

Patches

  • Fix pluralization: e3572d6

     // Before:
     "0 month, 1 day, 2 minutes"
    
     // After:
     "0 months, 1 day, 2 minutes"

Chores

v2.2.2

21 Sep 20:46
Compare
Choose a tag to compare

Patches

Chores

  • Fix tests' Date.now mock: 4dca87b
  • Refactor: use builder and module and unpkg entries: a96ec59, f527287
  • Remove Bower entry ☠️ : ac16134
  • Update TravisCI Node versions: 0792b1a