Skip to content

Releases: gentooboontoo/js-quantities

Release 1.6.1

27 Mar 19:58
Compare
Choose a tag to compare
  • Fix definition of square foot
  • Add tablespoon tbsp alias
  • Add Qty.version property

Release 1.6.0

26 Dec 14:40
Compare
Choose a tag to compare
  • Add Qty.getUnits to return available units of a well-known kind
  • Add Qty.getAliases to return every alias of a specific unit
  • Allow to initialize a quantity with scalar and units as separate arguments
  • Rename memory kind to information
  • Add information_rate kind
  • Accept Wh and Ah as units
  • Fix hang when using water height pressure units
  • Add plural for fluid ounce
  • Fix amu and dalton definitions
  • Add tb as tablespoon alias
  • Add plural for information units
  • Minor fixes or improvements

Release 1.5.0

08 Dec 12:57
Compare
Choose a tag to compare
  • Add Qty.getKinds returning known kinds of units
  • Add µ symbol as micro prefix alias
  • Add Ω symbol as ohm unit alias
  • Minor internal improvements and fixes

Release 1.4.2

09 Sep 16:01
Compare
Choose a tag to compare
  • Fix plural for radian and add missing ones for time units
  • Add "gon" international standard symbol as gradian alias
  • Fix units of force
  • Allow whitespaces between sign and scalar and do not accept sign without scalar

Release 1.4.1

14 May 15:33
Compare
Choose a tag to compare
  • Use a little more robust to test string type and factorize it

Release 1.4.0

10 Apr 15:59
Compare
Choose a tag to compare
  • Directly convert array of values when using swiftConverter
  • Add support for bushel units

Release 1.3.0

05 Mar 16:20
Compare
Choose a tag to compare
  • Add Qty#format and accept custom formatters
  • Allow to call Qty() without new to create Qty instances (Qty could be used
    both as a constructor or as a factory)
  • Qty#toString only supports to be passed output units as single parameter.
    Former parameters are now deprecated but still supported to not introduce
    a breaking change
  • Add mc as alternate definition for prefix "micro"
  • Throw error with mmm as unit
  • Add rounding optimization

Release 1.2.0

17 Dec 16:00
Compare
Choose a tag to compare
  • Throw QtyError instead of plain string
  • Cache conversion results from Qty#to instead of Qty#toString
  • Fix point and pica unit definitions
  • Fix error when initializing a quantity with an empty string

Release 1.1.2

04 Nov 08:49
Compare
Choose a tag to compare

Fix rounding issue when converting 1 cm3 to mm3.

v1.1.1

01 Oct 07:10
Compare
Choose a tag to compare
Bump version (1.1.1)