diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b2ed9fa..5ba8ded6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ ## Changelog +### v1.4.8 (2024-05-04) + +* Add support for `%` for modulo as an alternative to `mod`. Since `%` is also + used for percentages, the way the operator is interpreted depends on + context: `5 % 2` or `(348*34)%(293-1)` is parsed as modulo, whereas `5%` or + `5% + 3` continues to be treated as a percentage. +* Add constants `electron_mass`, `proton_mass` and `neutron_mass` + ### v1.4.7 (2024-05-04) * Add Japanese units `shaku`, `tsubo` and `tatami` @@ -11,7 +19,7 @@ * Fix a bug where variable serialisation could cause numbers to be negated. This only affected fend-wasm and fend-web but could lead to incorrect results when using variables across multiple calculations. -* Add some custom TypeScript definitions to fend-wasm. +* Add some custom TypeScript definitions to fend-wasm ### v1.4.6 (2024-03-28) diff --git a/Cargo.lock b/Cargo.lock index 9535c1f9..d23269fb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -126,7 +126,7 @@ dependencies = [ [[package]] name = "fend" -version = "1.4.7" +version = "1.4.8" dependencies = [ "ctrlc", "fend-core", @@ -142,11 +142,11 @@ dependencies = [ [[package]] name = "fend-core" -version = "1.4.7" +version = "1.4.8" [[package]] name = "fend-wasm" -version = "1.4.7" +version = "1.4.8" dependencies = [ "fend-core", "instant", diff --git a/Cargo.toml b/Cargo.toml index 5cecc42f..51554fd7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["cli", "core", "wasm"] resolver = "2" [workspace.package] -version = "1.4.7" +version = "1.4.8" description = "Arbitrary-precision unit-aware calculator" edition = "2021" homepage = "https://github.com/printfn/fend" @@ -13,7 +13,7 @@ categories = ["command-line-utilities", "mathematics", "science"] license = "MIT" [workspace.dependencies] -fend-core = { version = "1.4.7", path = "core" } +fend-core = { version = "1.4.8", path = "core" } [profile.release] lto = true