Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Dec 28, 2025

This PR contains the following updates:

Package Type Update Change
human_format dependencies minor 1.1.0 -> 1.2.0

Release Notes

BobGneu/human-format-rs (human_format)

v1.2.0

Added
  • New tests for cases out in the wild
  • try_parse which returns Result<f64, ParseError> instead of panicking
  • ParseError enum with variants for EmptyInput, InvalidNumber, and UnknownSuffix
  • parse_or_clamp convenience method to optionally clamp unknown suffixes to the largest multiplier (now respects explicit_map when present)
  • Doctests and README snippets demonstrating try_parse, binary scales, units and negative numbers
  • Support for the newest SI prefixes: R/Q (ronna/quetta) and r/q (ronto/quecto)
  • Optional micro sign formatting and parsing: accept µ and output µ when enabled via Formatter::with_micro_sign(true)
  • Forced suffix formatting: Formatter::with_suffix("M") will scale output to the requested suffix when possible (e.g., 100000 -> 0.10 M)
  • New Scales::Time() with explicit time unit multipliers (ns, us, ms, s, m, h, d, w, mo, qtr, y, dec, c, kyr, Myr, Gyr, and aliases)
Changed
  • A few tweaks to our build flow to run clippy, and make sure to gate building based on prior dependent actions
    • removed verbose flag as it does not appear to be necessary any longer
  • Renamed master branch to main
  • lower casing si suffixes - PR#27 by jdrouet
  • Replaced silent clamping/0.0 multiplier lookup with explicit try_get_magnitude_multiplier returning error on unknown suffix
  • Refactored parsing internals to centralize numeric/suffix extraction and reduce duplication
  • Added edge-case tests (empty input, trailing garbage, comma-decimal behavior, NaN/Infinity, rounding boundaries, and very large magnitudes)
Removed
  • Removed galvanic-test as a dependency

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Dec 28, 2025
@renovate renovate bot enabled auto-merge (squash) December 28, 2025 00:43
@renovate renovate bot merged commit e1e0bf0 into trunk Dec 28, 2025
20 checks passed
@renovate renovate bot deleted the renovate/human_format-1.x-lockfile branch December 28, 2025 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant