Skip to content

v2.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 18 Jun 04:24
· 1399 commits to main since this release
3403f87

2.0.0 (2021-06-18)

Features

  • change return type of convert function (cfa2a04)
  • rename type exports (160fb4b)

BREAKING CHANGES

  • The type Unit was renamed to Conversion
    The enum UnitFamilies was renamed to UnitFamily
  • The convert function has been changed from convert(quantity).from(unit).to(unit) to convert(quantity, unit).to(unit. If you are using TypeScript the updated return types are also slightly different but should not introduce compiler errors.