Skip to content

Commit 67740e2

Browse files
committed
Publish version 0.8.4
1 parent 6a1ec18 commit 67740e2

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

HISTORY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

src/Unit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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') {

0 commit comments

Comments
 (0)