Skip to content

Latest commit

 

History

History
66 lines (38 loc) · 1.18 KB

CHANGELOG.md

File metadata and controls

66 lines (38 loc) · 1.18 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[2.0.5] - 2023-08-20

Fixed

  • Bug with addAmounts and negative amounts

[2.0.4] - 2023-08-20

[2.0.3] - 2023-08-07

Added

  • JSDoc function documentation

[2.0.2] - 2023-01-05

Fixed

  • formatAmount to show decimals when there's no cents

[2.0.0] - 2022-10-25

Added

  • multiplyAmount with support for amounts

Changed

  • Renamed multiplyAmount to scaleAmount

[1.0.1] - 2022-08-19

Removed

  • Banner image from npm package files

[1.0.0] - 2022-08-19

Added

  • compareAmount
  • discountAmount
  • formatAmount with USD support
  • isAmountNegative
  • isAmountZero
  • isValidAmount

Changed

  • Renamed addAmount to addAmounts
  • sumAmounts now expects an Amount[] parameter

Fixed

  • Incorrect output for negative values for floatToAmount
  • isAmountPositive incorrectly returning true for negative subdecimal values e.g. -0.01
  • Amount type to not support more than 2 subdecimal digits.