|
9 | 9 | ### Fixed
|
10 | 10 | ### Security
|
11 | 11 | -->
|
12 |
| -## [v0.19.0] - 2018-06-21 |
| 12 | +## [v0.20.0] — 2018-09-06 |
| 13 | +This release resolves long-standing issue [#3](https://github.com/iliekturtles/uom/issues/3) to |
| 14 | +implement thermodynamic temperature conversions (e.g. Celsius to Fahrenheit). Support is also added |
| 15 | +for multiple quantities of the same dimension (e.g. thermodynamic temperature and temperature |
| 16 | +interval, ratio and angle). |
| 17 | + |
| 18 | +The release also contains a number of internal changes including a reorganization of tests into |
| 19 | +multiple files and updated CI setup to provide faster builds and more feature test coverage. |
| 20 | + |
| 21 | +### Added |
| 22 | + * [#3](https://github.com/iliekturtles/uom/issues/3) Implement thermodynamic temperature |
| 23 | + conversions (e.g. Celsius to Fahrenheit). Extend the `quantity!` macro to accept a coefficient |
| 24 | + and optional constant factor in the `$conversion` parameter to support these conversions. |
| 25 | + * [#14](https://github.com/iliekturtles/uom/issues/14) Implement `FromStr`. |
| 26 | + * [#78](https://github.com/iliekturtles/uom/issues/78) Add a `Kind` associated type to |
| 27 | + `Dimensions`.The new `Kind` associated type, defaulting to `uom::Kind`, allows for multiple |
| 28 | + quantities that have the same dimensions. Quantities of different kinds are not comparable. The |
| 29 | + marker traits implemented by a quantity's `Kind` control which operations are automatically |
| 30 | + implemented. |
| 31 | + * [#95](https://github.com/iliekturtles/uom/issues/95) `TemperatureInterval` quantity added. |
| 32 | + Includes `Add`, `AddAssign`, `Sub`, and `SubAssign` implementations between thermodynamic |
| 33 | + temperature and temperature interval. |
| 34 | + |
| 35 | +### Changed |
| 36 | + * [Breaking] Remove unused `_unit: N` parameters and require turbofish syntax for `get`, `floor`, |
| 37 | + `ceil`, `round`, `trunc`, and `fract` methods of `Quantity`. This is a breaking change and can |
| 38 | + easily be resolved. e.g. `l.get(meter)` becomes `l.get::<meter>()`. |
| 39 | + * [#98](https://github.com/iliekturtles/uom/issues/98), |
| 40 | + [#100](https://github.com/iliekturtles/uom/issues/100) Correct `uom` feature hygiene in macro |
| 41 | + generated code. Previously the `system!` macro generated code that included |
| 42 | + `#[cfg(feature = "...")]` attributes on code in the crate executing the `system!` macro. With |
| 43 | + this fix these attributes will be eagerly evaluated and only generate code when the appropriate |
| 44 | + `uom` feature is enabled. |
| 45 | + * Spelling corrections for a number of documentation comments and unit abbreviations. |
| 46 | + |
| 47 | +## [v0.19.0] — 2018-06-21 |
13 | 48 | This release adds a number of additional quantities, configures `uom` to use `rustfmt`, and directly
|
14 |
| -referrences `num` sub-crates to better control feature selection. |
| 49 | +references `num` sub-crates to better control feature selection. |
15 | 50 |
|
16 | 51 | ### Added
|
17 | 52 | * `Capacitance` quantity added.
|
@@ -242,7 +277,8 @@ for the creation of custom systems or the use of the pre-built SI. Basic mathema
|
242 | 277 | are implemented and a minimal set of quantities (length, mass, time...) and units (meter, kilometer,
|
243 | 278 | foot, mile, ...) are included.
|
244 | 279 |
|
245 |
| -[Unreleased]: https://github.com/iliekturtles/uom/compare/v0.19.0...master |
| 280 | +[Unreleased]: https://github.com/iliekturtles/uom/compare/v0.20.0...master |
| 281 | +[v0.20.0]: https://github.com/iliekturtles/uom/compare/v0.19.0...v0.20.0 |
246 | 282 | [v0.19.0]: https://github.com/iliekturtles/uom/compare/v0.18.0...v0.19.0
|
247 | 283 | [v0.18.0]: https://github.com/iliekturtles/uom/compare/v0.17.0...v0.18.0
|
248 | 284 | [v0.17.0]: https://github.com/iliekturtles/uom/compare/v0.16.0...v0.17.0
|
|
0 commit comments