mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 13:44:15 +00:00
Release v0.7.0
This commit is contained in:
parent
dff5c4c9af
commit
a2bb73c2db
5 changed files with 70 additions and 8 deletions
6
Cargo.lock
generated
6
Cargo.lock
generated
|
@ -1393,7 +1393,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rink"
|
name = "rink"
|
||||||
version = "0.6.3"
|
version = "0.7.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ansi_term",
|
"ansi_term",
|
||||||
"async-std",
|
"async-std",
|
||||||
|
@ -1417,7 +1417,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rink-core"
|
name = "rink-core"
|
||||||
version = "0.6.2"
|
version = "0.7.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"assert-json-diff",
|
"assert-json-diff",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
@ -1433,7 +1433,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rink-js"
|
name = "rink-js"
|
||||||
version = "0.6.0"
|
version = "0.7.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"console_error_panic_hook",
|
"console_error_panic_hook",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "rink"
|
name = "rink"
|
||||||
version = "0.6.3"
|
version = "0.7.0"
|
||||||
description = "Unit conversion tool, similar to frink"
|
description = "Unit conversion tool, similar to frink"
|
||||||
homepage = "https://rinkcalc.app"
|
homepage = "https://rinkcalc.app"
|
||||||
repository = "https://github.com/tiffany352/rink-rs"
|
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"] }
|
ubyte = { version = "0.10.3", features = ["serde"] }
|
||||||
|
|
||||||
[dependencies.rink-core]
|
[dependencies.rink-core]
|
||||||
version = "0.6"
|
version = "0.7"
|
||||||
path = "../core"
|
path = "../core"
|
||||||
|
|
||||||
[dependencies.rink-sandbox]
|
[dependencies.rink-sandbox]
|
||||||
|
|
62
core/BREAKING-CHANGES.md
Normal file
62
core/BREAKING-CHANGES.md
Normal file
|
@ -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` |
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "rink-core"
|
name = "rink-core"
|
||||||
version = "0.6.2"
|
version = "0.7.0"
|
||||||
description = "Unit conversion library behind rink"
|
description = "Unit conversion library behind rink"
|
||||||
homepage = "https://github.com/tiffany352/rink-rs"
|
homepage = "https://github.com/tiffany352/rink-rs"
|
||||||
repository = "https://github.com/tiffany352/rink-rs"
|
repository = "https://github.com/tiffany352/rink-rs"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "rink-js"
|
name = "rink-js"
|
||||||
version = "0.6.0"
|
version = "0.7.0"
|
||||||
description = "Wasm bindings to Rink, for use in rink-web"
|
description = "Wasm bindings to Rink, for use in rink-web"
|
||||||
homepage = "https://github.com/tiffany352/rink-rs"
|
homepage = "https://github.com/tiffany352/rink-rs"
|
||||||
repository = "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]
|
[dependencies.rink-core]
|
||||||
path = "../core"
|
path = "../core"
|
||||||
version = "0.6"
|
version = "0.7"
|
||||||
features = ["gpl"]
|
features = ["gpl"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
Loading…
Reference in a new issue