diff --git a/.sealog/changes/2-0-0.edn b/.sealog/changes/2-0-0.edn new file mode 100644 index 0000000..e3b6039 --- /dev/null +++ b/.sealog/changes/2-0-0.edn @@ -0,0 +1,22 @@ +{:version {:major 2 + :minor 0 + :patch 0} + :version-type :semver3 + :changes {:added ["`brewtility.units.color` for converting between SRM, EBC, and Lovibond." + "`brewtility.units.pressure` for converting between PSI, Bar, etc." + "`brewtility.units.specific-gravity` for converting Specific Gravity." + "`brewtility.units.temperature` for converting between Celsius, Fahrenheit, and Kelvin." + "`brewtility.units.time` for converting between seconds, minutes, hours, etc." + "`brewtility.units.volume` for converting between gallons, liters, etc." + "`brewtility.units.weight` for converting between pounds, kilograms, etc." + "`brewtility.units.options` to introduce the symbolic keyword pattern" + "Display functions for all unit types."] + :changed ["Internal functions that convert between unit systems now use `brewtility.units`"] + :deprecated [] + :removed ["`brewility.color` has been removed in favor of `brewtility.units.color`" + "`brewtility.units/convert-weight` has been removed in favor of `brewtility.units/convert` and `brewtility.units.weight/convert`" + "`brewtility.units/convert-volume` has been removed in favor of `brewtility.units/convert` and `brewtility.units.volume/convert`" + "`brewtility.units/convert-temperature` has been removed in favor of `brewtility.units/convert` and `brewtility.units.temperature/convert`"] + :fixed [] + :security []} + :timestamp "2023-06-11T18:47:32.340619900Z"} diff --git a/CHANGELOG.md b/CHANGELOG.md index 53cb6f5..4f1e9b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## Table of Contents +* [2.0.0 - 2023-06-11](#200---2023-06-11) * [1.5.0 - 2023-02-13](#150---2023-02-13) * [1.4.0 - 2023-02-12](#140---2023-02-12) * [1.3.0 - 2023-02-12](#130---2023-02-12) @@ -13,6 +14,26 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) * [1.1.0 - 2020-08-15](#110---2020-08-15) * [1.0.0 - 2020-07-19](#100---2020-07-19) +## 2.0.0 - 2023-06-11 + +* Added + * `brewtility.units.color` for converting between SRM, EBC, and Lovibond. + * `brewtility.units.pressure` for converting between PSI, Bar, etc. + * `brewtility.units.specific-gravity` for converting Specific Gravity. + * `brewtility.units.temperature` for converting between Celsius, Fahrenheit, and Kelvin. + * `brewtility.units.time` for converting between seconds, minutes, hours, etc. + * `brewtility.units.volume` for converting between gallons, liters, etc. + * `brewtility.units.weight` for converting between pounds, kilograms, etc. + * `brewtility.units.options` to introduce the symbolic keyword pattern + * Display functions for all unit types. +* Changed + * Internal functions that convert between unit systems now use `brewtility.units` +* Removed + * `brewility.color` has been removed in favor of `brewtility.units.color` + * `brewtility.units/convert-weight` has been removed in favor of `brewtility.units/convert` and `brewtility.units.weight/convert` + * `brewtility.units/convert-volume` has been removed in favor of `brewtility.units/convert` and `brewtility.units.volume/convert` + * `brewtility.units/convert-temperature` has been removed in favor of `brewtility.units/convert` and `brewtility.units.temperature/convert` + ## 1.5.0 - 2023-02-13 * Added diff --git a/doc/api/units.md b/doc/api/units.md index 5416bf3..a6a3e05 100644 --- a/doc/api/units.md +++ b/doc/api/units.md @@ -117,7 +117,7 @@ This allows for progressive evolution, and provides a consistent interface to ev Currently, brewtility supports the following types of temperature measurements: -- [clesius](https://en.wikipedia.org/wiki/Celsius) +- [celsius](https://en.wikipedia.org/wiki/Celsius) - [fahrenheit](https://en.wikipedia.org/wiki/Fahrenheit) - [kelvin](https://en.wikipedia.org/wiki/Kelvin_(unit)) diff --git a/doc/patterns/symbolic_keywords.md b/doc/patterns/symbolic_keywords.md index 4cba6cf..cdda860 100644 --- a/doc/patterns/symbolic_keywords.md +++ b/doc/patterns/symbolic_keywords.md @@ -9,7 +9,7 @@ For example: (units/display :volume 1.5 :liter {:suffix :full}) ;; => "1.5 liter" ``` -This allows us to easily extend the definition of a single function to fulfil multiple complex needs; however, option maps come with considerable drawbacks. +This allows us to easily extend the definition of a single function to fulfill multiple complex needs; however, option maps come with considerable drawbacks. When a map is keyed with keywords, it is easy to introduce subtle, hard-to-detect errors. Since most of these functions select default values for keys not present, typos can lead to meaningful differences in behavior. For example: diff --git a/package-lock.json b/package-lock.json index e9cf449..4926585 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "brewtility", - "version": "1.5.0", + "version": "2.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "brewtility", - "version": "1.5.0", + "version": "2.0.0", "license": "MIT", "devDependencies": { "karma": "^6.3.16", diff --git a/package.json b/package.json index f90ea26..322b22c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "brewtility", - "version": "1.5.0", + "version": "2.0.0", "description": "Utility functions for all of your brewing needs.", "main": "index.js", "directories": { diff --git a/pom.xml b/pom.xml index f336774..f9713fb 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.wallbrew brewtility jar - 1.5.0 + 2.0.0 brewtility Utility functions for all of your brewing needs. https://github.com/Wall-Brew-Co/brewtility @@ -20,7 +20,7 @@ https://github.com/Wall-Brew-Co/brewtility scm:git:git://github.com/Wall-Brew-Co/brewtility.git scm:git:ssh://git@github.com/Wall-Brew-Co/brewtility.git - bb5fe4473e8cf506d517b623f1a56e6e95f3055b + 1e9b875c50a61b04b3711da1cee211f836ab8662 src diff --git a/project.clj b/project.clj index 2588951..165d112 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject com.wallbrew/brewtility "1.5.0" +(defproject com.wallbrew/brewtility "2.0.0" :description "Utility functions for all of your brewing needs." :url "https://github.com/Wall-Brew-Co/brewtility" :license {:name "MIT" diff --git a/src/brewtility/units/temperature.cljc b/src/brewtility/units/temperature.cljc index efa8245..b7d3a9a 100644 --- a/src/brewtility/units/temperature.cljc +++ b/src/brewtility/units/temperature.cljc @@ -5,7 +5,7 @@ This namespace converts between that and other units. Currently, brewtility supports the following types of temperature measurements: - - [clesius](https://en.wikipedia.org/wiki/Celsius) + - [celsius](https://en.wikipedia.org/wiki/Celsius) - [fahrenheit](https://en.wikipedia.org/wiki/Fahrenheit) - [kelvin](https://en.wikipedia.org/wiki/Kelvin_(unit))" {:added "2.0"}