Skip to content

Commit 7882907

Browse files
committed
feat!: gix-features uses and republishes bytesize version 2
`gix-features` republishes `bytesize`, which has been bumped from major version 1 to major version 2. Because the interface of `bytesize` is effectively part of that of `gix-features` due to the explicit republication of the `bytesize` module in full (with no documented extra limitations related to interface stability), this is effectively a breaking change in `gix-features` as well, though many callers may not be substantially affected. Major changes that may affect some callers that use `bytesize` through `gix-features` include the removal of the top-level `bytesize::to_string()` function, the change in default behavior from displaying decimal SI units to displaying binary IEC units (though all or most gitoxide-related creates, in adapting to the changes, have thus far opted to continue using decimal SI units), and the small but UI-facing change that decimal SI kilobytes (units of 1000 bytes) are given with the symbol "kB" rather than the more ambiguous (and arguably less accurate) symbol "KB". In addition to republishing `bytesize`, `gix-features` also republishes `prodash`. Futhermore, some uses of `bytesize` are transitively through `prodash`, which itself has recently received an update to use `bytesize` major version 2. (Since `prodash` does not republish `bytesize`, that is not considered to be a breaking change in `prodash` itself.) To get the benefits of the newer version of `bytesize` while avoiding new inconsistencies, and also to avoid depending on multiple versions of `bytesize`, the `prodash` dependency version has also been upgraded. For more information, see: - #1952 - https://github.com/bytesize-rs/bytesize/releases/tag/bytesize-v2.0.0 - #1949 - GitoxideLabs/prodash#33 - #1953
1 parent c7ea834 commit 7882907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gix-features/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ lints.workspace = true
44
name = "gix-features"
55
description = "A crate to integrate various capabilities using compile-time feature flags"
66
repository = "https://github.com/GitoxideLabs/gitoxide"
7-
version = "0.41.1"
7+
version = "0.42.0"
88
authors = ["Sebastian Thiel <[email protected]>"]
99
license = "MIT OR Apache-2.0"
1010
edition = "2021"

0 commit comments

Comments
 (0)