Skip to content

Releases: ericman314/UnitMath

v1.0.0

20 Feb 18:12
Compare
Choose a tag to compare

V1 is a major rewrite of UnitMath in TypeScript. While most of the API remains the same, V1 does introduce several breaking changes from v0.8.7. See Migrating to v1 for details.

  • toString no longer simplifies units. You must now explicitly call simplify for the unit to be simplified.
  • Removed simplify and simplifyThreshold options.
  • Removed definitions.quantities and definitions.baseQuantities.
  • Renaned definitions.unitSystems to definitions.systems
  • Renamed definitions.prefixes to definitions.prefixGroups
  • Each system defined in definitions.systems is now just a string array of units assigned to that system.
  • Removed autoAddToSystem option, since it is now much easier to add units to a system.
  • Customer formatters no longer accept additional user arguments.

v1.0.0-rc.1

21 Nov 04:11
Compare
Choose a tag to compare
v1.0.0-rc.1 Pre-release
Pre-release
  • Convert to TypeScript
  • Removed concept of "quantities" and "base quantities"
  • Simplified how systems are defined and used in formatting
  • Simpler way to define units
  • Renamed many variables and API functions to make their meaning less ambiguous
  • Updated README.md

v0.8.6

14 Jul 05:26
Compare
Choose a tag to compare
  • Standardized on US customary fluid volumes
  • Corrected values for teaspoon and fluidounce

v0.8.5

23 Nov 19:12
Compare
Choose a tag to compare
  • compare now handles NaNs consistently

v0.8.4

05 Aug 13:55
Compare
Choose a tag to compare
  • Added prefixesToChooseFrom option
  • Bugfix when auto-prefixing negative numbers

v0.8.3

05 Jun 01:25
Compare
Choose a tag to compare
  • split now supports custom types

v0.8.2

01 Jun 17:23
Compare
Choose a tag to compare
  • Fixed unit complexity calculation for deciding whether to simplify units
  • Added undocumented second parameter to conv function, which could be removed at any time

v0.8.1

01 Jun 15:25
Compare
Choose a tag to compare
  • Format function can now be used with number or custom types
  • Now supports passing parameters to custom format function

v0.8.0

31 May 00:28
Compare
Choose a tag to compare
  • Added getValue, getNormalizedValue, and setNormalizedValue
  • Added format option for custom types

v0.7.0

29 May 02:52
Compare
Choose a tag to compare
  • Added compare