From a2bb73c2db8c60e7b0a2f86891aa0c43fd09c732 Mon Sep 17 00:00:00 2001 From: Tiffany Bennett Date: Sat, 6 Jan 2024 19:58:04 -0800 Subject: [PATCH] Release v0.7.0 --- Cargo.lock | 6 ++-- cli/Cargo.toml | 4 +-- core/BREAKING-CHANGES.md | 62 ++++++++++++++++++++++++++++++++++++++++ core/Cargo.toml | 2 +- rink-js/Cargo.toml | 4 +-- 5 files changed, 70 insertions(+), 8 deletions(-) create mode 100644 core/BREAKING-CHANGES.md diff --git a/Cargo.lock b/Cargo.lock index 220ee9b..1228a57 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1393,7 +1393,7 @@ dependencies = [ [[package]] name = "rink" -version = "0.6.3" +version = "0.7.0" dependencies = [ "ansi_term", "async-std", @@ -1417,7 +1417,7 @@ dependencies = [ [[package]] name = "rink-core" -version = "0.6.2" +version = "0.7.0" dependencies = [ "assert-json-diff", "chrono", @@ -1433,7 +1433,7 @@ dependencies = [ [[package]] name = "rink-js" -version = "0.6.0" +version = "0.7.0" dependencies = [ "chrono", "console_error_panic_hook", diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 12dc816..48502c9 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rink" -version = "0.6.3" +version = "0.7.0" description = "Unit conversion tool, similar to frink" homepage = "https://rinkcalc.app" repository = "https://github.com/tiffany352/rink-rs" @@ -29,7 +29,7 @@ async-std = { version = "1.9", features = ["unstable", "attributes"] } ubyte = { version = "0.10.3", features = ["serde"] } [dependencies.rink-core] -version = "0.6" +version = "0.7" path = "../core" [dependencies.rink-sandbox] diff --git a/core/BREAKING-CHANGES.md b/core/BREAKING-CHANGES.md new file mode 100644 index 0000000..3933fca --- /dev/null +++ b/core/BREAKING-CHANGES.md @@ -0,0 +1,62 @@ +## Rink 0.7.0 + +### Behavior + +- Quantities are now in a separate namespace from normal units. + +### Changes + +- `Dimensionality` changed from an alias of BTreeMap to its own struct. +- Several fields of `Context` were moved to the `loader::Registry` + object stored as a field on it. + - Also moved `lookup_exact` and `lookup_with_prefix` there. + - `dimensions` field renamed to `base_units`. + - `reverse` field renamed to `decomposition_units`. + - `canonicalizations` field renamed to `base_unit_long_names`. +- `Def::Prefix` and `Def::SPrefix` have been merged to an `is_long` bool + on `Def::Prefix`. `SPrefix` is `is_long == true`. +- `Def::Dimension` and `Def::Canonicalization` were merged to create + `Def::BaseUnit`. + +### Removals + +- `Context::short_output` +- `factorize::fast_decompose` +- `search::search` + +### Moves & Renames + +| old | new | +| ------------------------------ | ----------------------------------- | +| `bigint::BigInt` | `types::BigInt` | +| `bigrat::BigRat` | `types::BigRat` | +| `context::Context` | `loader::Context` | +| `Context::eval_outer` | `Context::eval_query` | +| `date::from_duration` | `parsing::datetime::from_duration` | +| `date::GenericDateTime` | `types::GenericDateTime` | +| `date::parse_datefile` | `parsing::datetime::parse_datefile` | +| `date::to_duration` | `parsing::datetime::to_duration` | +| `Def::Dimension` | `Def::BaseUnit` | +| `factorize::factorize` | `commands::factorize` | +| `factorize::Factors` | `commands::Factors` | +| `fmt` | `output::fmt` | +| `formula` | `parsing::formula` | +| `gnu_units` | `loader::gnu_units` | +| `load::load_defs` | `loader::load_defs` | +| `number::Dimension` | `types::BaseUnit` | +| `number::Number` | `types::Number` | +| `number::NumberParts` | `output::NumberParts` | +| `number::Quantity` | `types::Dimensionality` | +| `numeric::Digits` | `output::Digits` | +| `numeric::Numeric` | `types::Numeric` | +| `numeric::NumericParts` | `output::NumericParts` | +| `reply` | `output` | +| `search::query` | `commands::search` | +| `search::SearchResult` | `commands::SearchResult` | +| `substance::Properties` | `runtime::Properties` | +| `substance::Property` | `runtime::Property` | +| `substance::Substance` | `runtime::Substance` | +| `substance::SubstanceGetError` | `runtime::SubstanceGetError` | +| `text_query` | `parsing::text_query` | +| `value::Show` | `runtime::Show` | +| `value::Value` | `runtime::Value` | diff --git a/core/Cargo.toml b/core/Cargo.toml index 0ac7737..ee3f15b 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rink-core" -version = "0.6.2" +version = "0.7.0" description = "Unit conversion library behind rink" homepage = "https://github.com/tiffany352/rink-rs" repository = "https://github.com/tiffany352/rink-rs" diff --git a/rink-js/Cargo.toml b/rink-js/Cargo.toml index a9b404f..b135416 100644 --- a/rink-js/Cargo.toml +++ b/rink-js/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rink-js" -version = "0.6.0" +version = "0.7.0" description = "Wasm bindings to Rink, for use in rink-web" homepage = "https://github.com/tiffany352/rink-rs" repository = "https://github.com/tiffany352/rink-rs" @@ -16,7 +16,7 @@ default = ["console_error_panic_hook"] [dependencies.rink-core] path = "../core" -version = "0.6" +version = "0.7" features = ["gpl"] [dependencies]