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.
toStringno longer simplifies units. You must now explicitly callsimplifyfor the unit to be simplified.- Removed
simplifyandsimplifyThresholdoptions. - Removed
definitions.quantitiesanddefinitions.baseQuantities. - Renaned
definitions.unitSystemstodefinitions.systems - Renamed
definitions.prefixestodefinitions.prefixGroups - Each system defined in
definitions.systemsis now just a string array of units assigned to that system. - Removed
autoAddToSystemoption, since it is now much easier to add units to a system. - Customer formatters no longer accept additional user arguments.