Skip to content

Commit

Permalink
Publish version 0.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ericman314 committed Aug 5, 2019
1 parent 6a1ec18 commit 67740e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# History

## 2019-08-05, v0.8.4
- Added `prefixesToChooseFrom` option
- Bugfix when auto-prefixing negative numbers

## 2019-06-04, v0.8.3
- `split` now supports custom types

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unitmath",
"version": "0.8.3",
"version": "0.8.4",
"description": "JavaScript library for unit conversion and arithmetic",
"main": "index.js",
"module": "src/Unit.js",
Expand Down
2 changes: 1 addition & 1 deletion src/Unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ let _config = function _config (options) {
let bestScore = calcScore(bestPrefix)
// console.log(`The score was ${bestScore}`)

let prefixes
let prefixes
if (opts.prefixesToChooseFrom === 'all') {
prefixes = Object.keys(piece.unit.prefixes)
} else if (opts.prefixesToChooseFrom === 'common') {
Expand Down

0 comments on commit 67740e2

Please sign in to comment.