File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# History
22
3+ ## 2019-08-05, v0.8.4
4+ - Added ` prefixesToChooseFrom ` option
5+ - Bugfix when auto-prefixing negative numbers
6+
37## 2019-06-04, v0.8.3
48- ` split ` now supports custom types
59
Original file line number Diff line number Diff line change 11{
22 "name" : " unitmath" ,
3- "version" : " 0.8.3 " ,
3+ "version" : " 0.8.4 " ,
44 "description" : " JavaScript library for unit conversion and arithmetic" ,
55 "main" : " index.js" ,
66 "module" : " src/Unit.js" ,
Original file line number Diff line number Diff line change @@ -1039,7 +1039,7 @@ let _config = function _config (options) {
10391039 let bestScore = calcScore ( bestPrefix )
10401040 // console.log(`The score was ${bestScore}`)
10411041
1042- let prefixes
1042+ let prefixes
10431043 if ( opts . prefixesToChooseFrom === 'all' ) {
10441044 prefixes = Object . keys ( piece . unit . prefixes )
10451045 } else if ( opts . prefixesToChooseFrom === 'common' ) {
You can’t perform that action at this time.
0 commit comments