Skip to content

Commit

Permalink
Release v0.28.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
iliekturtles committed May 21, 2020
1 parent 0980882 commit e11648f
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 8 deletions.
21 changes: 20 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@
### Fixed
### Security
-->
## [v0.28.0] — 2020-05-21
This request includes a number of trigonometric improvements as well as new units for `Time`.
Many thanks to [adamreichold](https://github.com/adamreichold) and
[Aehmlo](https://github.com/Aehmlo) for pull requests included and issues resolved in this
release.

### Added
* [#182](https://github.com/iliekturtles/uom/pull/182) Add inverse trigonometric functions to
`Ratio` (`acos`, `acosh`, `asin`, `asinh`, `atan`, `atanh`) and `Angle` (`atan2`).
* [#184](https://github.com/iliekturtles/uom/pull/184) Tropical and sidereal units added to `Time`.

### Changed
* [#186](https://github.com/iliekturtles/uom/pull/186) Make `hypot` available for all quantities,
not just `Length`.
* [#187](https://github.com/iliekturtles/uom/pull/187) [Breaking] Change trigonometric functions to
return `Ratio` instead of the underlying storage type so that identities like
`x.sin().asin() == x` are well-typed.

## [v0.27.0] — 2020-02-14
This release adds a number of quantities.

Expand Down Expand Up @@ -450,7 +468,8 @@ for the creation of custom systems or the use of the pre-built SI. Basic mathema
are implemented and a minimal set of quantities (length, mass, time...) and units (meter, kilometer,
foot, mile, ...) are included.

[Unreleased]: https://github.com/iliekturtles/uom/compare/v0.27.0...master
[Unreleased]: https://github.com/iliekturtles/uom/compare/v0.28.0...master
[v0.28.0]: https://github.com/iliekturtles/uom/compare/v0.27.0...v0.28.0
[v0.27.0]: https://github.com/iliekturtles/uom/compare/v0.26.0...v0.27.0
[v0.26.0]: https://github.com/iliekturtles/uom/compare/v0.25.0...v0.26.0
[v0.25.0]: https://github.com/iliekturtles/uom/compare/v0.24.0...v0.25.0
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "uom"
version = "0.27.0"
version = "0.28.0"
authors = ["Mike Boutin <[email protected]>"]
description = "Units of measurement"
documentation = "https://docs.rs/uom"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Units of measurement is a crate that does automatic type-safe zero-cost

```toml
[dependencies]
uom = "0.27.0"
uom = "0.28.0"
```

and this to your crate root:
Expand Down Expand Up @@ -77,7 +77,7 @@ enabled by default. Features can be cherry-picked by using the `--no-default-fea
```toml
[dependencies]
uom = {
version = "0.27.0",
version = "0.28.0",
default-features = false,
features = [
"autoconvert", # automatic base unit conversion.
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//!
//! ```toml
//! [dependencies]
//! uom = "0.27.0"
//! uom = "0.28.0"
//! ```
//!
//! and this to your crate root:
Expand Down Expand Up @@ -66,7 +66,7 @@
//! ```toml
//! [dependencies]
//! uom = {
//! version = "0.27.0",
//! version = "0.28.0",
//! default-features = false,
//! features = [
//! "autoconvert", # automatic base unit conversion.
Expand Down
3 changes: 1 addition & 2 deletions src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -669,8 +669,7 @@ macro_rules! system {
Self {
dimension: $crate::lib::marker::PhantomData,
units: $crate::lib::marker::PhantomData,
value: self.value.hypot(
change_base::<D, U, Ur, V>(&other.value)),
value: self.value.hypot(change_base::<D, U, Ur, V>(&other.value)),
}
}}

Expand Down

0 comments on commit e11648f

Please sign in to comment.