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.
- Moved
Format.getUnitsForQuantity
toUnitMap.getUnitsForQuantity
. - Moved
Format.getUnitFormat
toUnitFormat.getUnitFormat
. - Removed extra paramter in
UnitMap.getUnitsForQuantity
. - Remove
Format
module. - Moved
Unit.UnitMap
toUnitMap.UnitMap
. - Moved
Unit.UnitLookup
toUnitMap.UnitLookup
. - Refactor tests, move to
__tests__
folder
v5.0.0 - 2020-10-08
- The consumer of the package is responsible for sending in a unit lookup function. See PR #51.
v4.1.0 - 2020-03-29
- Include typescript source from
src/
in published npm package. See PR #50 for more info.
v4.0.0 - 2020-01-09
- The consumer of the package is responsible for sending in units with the correct case. See issue #48 and PR #49.
v3.0.0 - 2019-11-05
- All unit definitions (expect base SI units) moved to separate package uom-units.
- Passing explicit
UnitMap
andUnitFormatMap
is now required in Format and Serialize module functions.
v2.5.0 - 2019-11-01
- Added Units
PoundLbPerSecond
,GrainPerSecond
,KilogramPerSquareMeterHour
,GramPerSquareMeterHour
,GramPerSquareMeterSecond
,StandardCubicMeterPerHourPerSquareMeter
,PoundLbPerSquareFeetHour
,PoundLbPerSquareFeetSecond
,GrainPerSquareFeetHour
,GrainPerSquareFeetSecond
,StandardCubicFootPerMinutePerSquareFeet
.
v2.4.0 - 2019-10-17
- Added Units
KiloJoulePerCubicMeter
andBtuPerCubicFeet
.
Format.getUnitsForQuantity()
now accepts parameter for units. Default value is the registred units in this library.
v2.3.0 - 2019-04-09
- Capitalize ACFM and ACFH labels
- Added Units
StandardCubicFeetPerMinutePerSquareFeet
andStandardCubicMeterPerHourPerSquareMeter
.
v2.2.1 - 2019-03-06
- Republish package because tags were out of sync.
v2.2.0 - 2019-03-06
- All
Amount
compare functions now accepts a custom compare function as parameter.
v2.1.0 - 2019-01-10
- Format module functions now takes an optional argument units map for application specific subset of units.
v2.0.0 - 2019-01-10
Format
module, see readme.Serialize
module, see readme.Unit.buildDerivedSymbol()
.
- Amount.toString() now uses buildDerivedSymbol instead of looking up the formatted label. This change was made to make Amount independent on the formatting data.
- Some undocumented modules were removed (this functionality is partly documented in the added Format and Serialize modules):
- unit-info.ts
- unit-label.ts
- unit-registry.ts
v1.0.0 - 2018-05-08
- Initial Release