diff --git a/CHANGELOG.md b/CHANGELOG.md index a659af1..3befe69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +Unreleased +---------- + +1.7.6 / 2020-12-06 +------------------ + +### Added + +* Unit of acceleration `Gal` + +### Fixed + +* Missing aliases for barrel-related units (#101) + 1.7.5 / 2020-04-05 ------------------ diff --git a/README.md b/README.md index f6e488b..2db1ea5 100644 --- a/README.md +++ b/README.md @@ -13,10 +13,10 @@ and browsers. It has **no dependencies**. ## Installation -Install with `npm install js-quantities` or download latest release v1.7.5 as: +Install with `npm install js-quantities` or download latest release v1.7.6 as: -* [UMD module](https://raw.github.com/gentooboontoo/js-quantities/v1.7.5/build/quantities.js) -* [ES module](https://raw.github.com/gentooboontoo/js-quantities/v1.7.5/build/quantities.mjs) +* [UMD module](https://raw.github.com/gentooboontoo/js-quantities/v1.7.6/build/quantities.js) +* [ES module](https://raw.github.com/gentooboontoo/js-quantities/v1.7.6/build/quantities.mjs) ## Usage diff --git a/RELEASE b/RELEASE index 6a126f4..de28578 100644 --- a/RELEASE +++ b/RELEASE @@ -1 +1 @@ -1.7.5 +1.7.6 diff --git a/build/quantities.js b/build/quantities.js index 5d45152..464a3d7 100644 --- a/build/quantities.js +++ b/build/quantities.js @@ -24,7 +24,7 @@ SOFTWARE. (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : - (global = global || self, global.Qty = factory()); + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Qty = factory()); }(this, (function () { 'use strict'; /** @@ -288,9 +288,9 @@ SOFTWARE. "": [["tb","tbsp","tbs","tablespoon","tablespoons"], 1.47867648e-5, "volume", ["","",""]], "": [["tsp","teaspoon","teaspoons"], 4.92892161e-6, "volume", ["","",""]], "": [["bu","bsh","bushel","bushels"], 0.035239072, "volume", ["","",""]], - "": [["bbl","oil-barrel","oil-barrels"], 0.158987294928, "volume", ["","",""]], - "": [["bl","bl-us","beer-barrel","beer-barrels"], 0.1173477658, "volume", ["","",""]], - "": [["blimp","bl-imp","beer-barrel-imp","beer-barrels-imp"], 0.16365924, "volume", ["","",""]], + "": [["bbl","oilbarrel", "oilbarrels", "oil-barrel","oil-barrels"], 0.158987294928, "volume", ["","",""]], + "": [["bl","bl-us","beerbarrel", "beerbarrels", "beer-barrel","beer-barrels"], 0.1173477658, "volume", ["","",""]], + "": [["blimp","bl-imp","beerbarrel-imp", "beerbarrels-imp", "beer-barrel-imp","beer-barrels-imp"], 0.16365924, "volume", ["","",""]], /* speed */ "" : [["kph"], 0.277777778, "speed", [""], [""]], @@ -300,6 +300,7 @@ SOFTWARE. /* acceleration */ "" : [["gee"], 9.80665, "acceleration", [""], ["",""]], + "" : [["Gal"], 1e-2, "acceleration", [""], ["",""]], /* temperature_difference */ "" : [["degK","kelvin"], 1.0, "temperature", [""]], @@ -2006,7 +2007,7 @@ SOFTWARE. }); } - Qty.version = "1.7.5"; + Qty.version = "1.7.6"; return Qty; diff --git a/build/quantities.mjs b/build/quantities.mjs index 8a06291..1a25dde 100644 --- a/build/quantities.mjs +++ b/build/quantities.mjs @@ -282,9 +282,9 @@ var UNITS = { "": [["tb","tbsp","tbs","tablespoon","tablespoons"], 1.47867648e-5, "volume", ["","",""]], "": [["tsp","teaspoon","teaspoons"], 4.92892161e-6, "volume", ["","",""]], "": [["bu","bsh","bushel","bushels"], 0.035239072, "volume", ["","",""]], - "": [["bbl","oil-barrel","oil-barrels"], 0.158987294928, "volume", ["","",""]], - "": [["bl","bl-us","beer-barrel","beer-barrels"], 0.1173477658, "volume", ["","",""]], - "": [["blimp","bl-imp","beer-barrel-imp","beer-barrels-imp"], 0.16365924, "volume", ["","",""]], + "": [["bbl","oilbarrel", "oilbarrels", "oil-barrel","oil-barrels"], 0.158987294928, "volume", ["","",""]], + "": [["bl","bl-us","beerbarrel", "beerbarrels", "beer-barrel","beer-barrels"], 0.1173477658, "volume", ["","",""]], + "": [["blimp","bl-imp","beerbarrel-imp", "beerbarrels-imp", "beer-barrel-imp","beer-barrels-imp"], 0.16365924, "volume", ["","",""]], /* speed */ "" : [["kph"], 0.277777778, "speed", [""], [""]], @@ -294,6 +294,7 @@ var UNITS = { /* acceleration */ "" : [["gee"], 9.80665, "acceleration", [""], ["",""]], + "" : [["Gal"], 1e-2, "acceleration", [""], ["",""]], /* temperature_difference */ "" : [["degK","kelvin"], 1.0, "temperature", [""]], @@ -2000,6 +2001,6 @@ function simplify(units) { }); } -Qty.version = "1.7.5"; +Qty.version = "1.7.6"; export default Qty; diff --git a/package.json b/package.json index 5ad574b..5802f5e 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ }, "readmeFilename": "README.md", "description": "JavaScript library for quantity calculation and unit conversion", - "version": "1.7.5", + "version": "1.7.6", "homepage": "http://gentooboontoo.github.io/js-quantities/", "repository": { "type": "git", diff --git a/src/quantities.js b/src/quantities.js index 6cdf94e..12e2509 100644 --- a/src/quantities.js +++ b/src/quantities.js @@ -6,6 +6,6 @@ import "./quantities/predicates.js"; import "./quantities/conversion.js"; import "./quantities/format.js"; -Qty.version = "1.7.5"; +Qty.version = "1.7.6"; export default Qty;