Skip to content

v2.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 22 Mar 03:57
· 11 commits to main since this release

   🚀 Features

  • unScale unit with native bigint  -  by @itsmnthn (77d00)
  • scale unit with native bigint - can scale bigint too  -  by @itsmnthn (e997a)
  • unScaleToBase unit with native bigint  -  by @itsmnthn (b98f2)
  • absBig to get absolute value of bigint  -  by @itsmnthn (ff2a4)
  • getSign returns -1 | 0 | 1 from given bigint value  -  by @itsmnthn (ff2a4)
  • calcTotalPrice with native bigint  -  by @itsmnthn (c9247)
  • calcPrice (previously - calcUnitPrice) with native bigint  -  by @itsmnthn (c9247)
  • calcUnits with native bigint  -  by @itsmnthn (c9247)
  • FormatAmount with bigint and better property names  -  by @itsmnthn (9412c)
  • shortenString formatTime (previously timeDiffToString) are now faster  -  by @itsmnthn (01a94)
  • getSmallest (previously getSmallestDecimalString) is now faster  -  by @itsmnthn (01a94)
  • stripTrailingZeros (previously removeExtraZeros) is now faster  -  by @itsmnthn (01a94)
  • formatWithComma (previously addCommaToAmount) is now faster and supports bigint  -  by @itsmnthn (01a94)
  • range is now faster  -  by @itsmnthn (71d34)
  • calcPercentValue (previously getPercentOfAmount) with native bigint  -  by @itsmnthn (5025e)
  • calcPercentage (previously getPercentageOfAmount) with native bigint  -  by @itsmnthn (5025e)
  • increaseByPercentage (previously increaseNumByPercentage) with native bigint  -  by @itsmnthn (5025e)
  • decreaseByPercentage (previously decreaseNumByPercentage) with native bigint  -  by @itsmnthn (5025e)

   🐞 Bug Fixes

    View changes on GitHub