PackageTrack
Sign in Get early access

units_converter

Simple and light units conversion package for all your needs.

3.3.1 6.4K downloads/mo #3513 most downloaded on pub.dev ferraridamiano/units_converter

What this package is like to depend on

Last release 4 days ago

20 Aug 2026

Ships fairly regularly

a new release about every 4 months

Nearly every release is documented

notes for 27 of 27 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

27 releases · first in 2021

4 releases in the last 12 months

see the full history below

Release timeline

27 releases · Jan 2021 to Aug 2026
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 27
  1. 3.3.1 20 Aug 2026
    Release notes

    ⚡ Performance

    • Performance improvements thanks to caching + minor code revision (3625045)
    Open source →
    Release notes
    • Significant speedup of the convertFromTo extensions by caching the underlying property instances instead of rebuilding them on every call
    • Numeral systems conversion is now faster: cached regular expressions and more efficient base conversion algorithms
    Open source →
  2. 3.3.0 11 Jul 2026
    Release notes

    🚀 Features

    🧰 Miscellaneous Tasks

    • Bump actions/checkout from 6 to 7 (#69) (2920ccc)
    • Bump codecov/codecov-action from 6 to 7 (#68) (a470343)

    👥 Contributors

    Open source →
    Release notes

    Added the following units:

    • Average month
    • Speed of sound
    • Metric cup
    • US cup
    • British cup
    • Miles / Liter
    • Short ton
    • Long ton
    • US Barrel
    • Cubic yard

    Breaking

    • VOLUME.cups has been renamed to VOLUME.usCups
    Open source →
  3. 3.2.0 19 May 2026
    Release notes

    ⚡ Performance

    🧰 Miscellaneous Tasks

    • Bump codecov/codecov-action from 5 to 6 (#65) (8cbfad8)
    • Bump softprops/action-gh-release from 2 to 3 (#66) (62ac417)

    👥 Contributors

    Open source →
    Release notes
    • This release significantly boosts conversion performance by introducing lazy string conversion and variable reference buffering.
    Open source →
  4. 3.1.0 08 Feb 2026
    Release notes

    🐛 Bug Fixes

    • Fixed github action tag (76f2dea)

    📝 Documentation

    • Documentation and comments update (4f0e9ee)

    🚀 Features

    • Added speed of light, teaspoon metric, pound force inch, watt hours, BTU (9cea857)
    • Added git cliff for github release changelog (bb21a9d)

    🧰 Miscellaneous Tasks

    • Upgrade lints and implement suggestions (14b7005)
    • Bump actions/checkout from 5 to 6 (#63) (6906091)
    Open source →
    Release notes
    • New units added: speed of light, teaspoon metric, pound force inch, watt hours, BTU

    Breaking

    • MASS.tons has been renamed to MASS.tonnes since these are two different units
    Open source →
  5. 3.0.4 11 May 2025
    Release notes
    • New pressure units: gigapascal (@Kheirlb)
    Open source →
    Release notes
    • New pressure units: gigapascal (@Kheirlb)
    Open source →
  6. 3.0.3 12 Apr 2025
    Release notes
    Open source →
    Release notes
    • New mass unit: grains (@TheRealFakeAdmin)
    • New density units: lb/in³ and lb/ft³ (@Kheirlb)
    • New pressure units: ksi, megapascal (@Kheirlb)
    Open source →
  7. 3.0.2 22 Sep 2024
    Release notes
    • Minor refinements to US volume units (cups, tablespoon, teaspoon)

    Full changelog: 3.0.1...3.0.2

    Open source →
    Release notes
    • Minor refinements to US volume units (cups, tablespoon, teaspoon)
    Open source →
  8. 3.0.1 20 Jul 2024
    Release notes

    Full changelog: 3.0.0...3.0.1

    Open source →
    Release notes
    • New unit: imperial quarts (@jacksonlo)
    • New unit: teaspoon US (@vasba)
    Open source →
  9. 3.0.0 21 Jan 2024
    Release notes
    • Improvements to the conversion algorithm: now it is simpler and ~10% faster
    • Now requires Dart >= 3.0
    • New unit: kilopascal (@jmguazzo)

    Breaking:

    • In custom conversion leafNodes has been renamed to children

    Full changelog: 2.1.1...3.0.0

    Open source →
    Release notes
    • Improvements to the conversion algorithm: now it is simpler and ~10% faster
    • Now requires Dart >= 3.0
    • New unit: kilopascal (@jmguazzo)

    Breaking:

    • In custom conversion leafNodes has been renamed to children
    Open source →
  10. 2.1.1 18 Aug 2023
    Release notes

    Changelog

    Open source →
    Release notes
    • Added Illuminance property (@denxorz)
    • Added kilojoules (@lhengl)
    • Fixed typos (@denxorz)
    • Bump Dart constraints
    Open source →
  11. 2.1.0 11 Dec 2022
    Release notes

    Added 5 new properties: density, amount of substance, molar volume, molar mass and reciprocal of molar mass. Now it is also possible to define a compound unit in the form of a ratio (e.g. Density units are defined as the ratio between mass and volume).

    Thanks to @Dokotela for his PRs!

    Open source →
  12. 2.0.1 30 Jul 2022
    Release notes
    • Improved Pascal-Bar conversion
    • We forced the use of types. So that many more error will be caught at compile-time. E.g. ConversionNode has an associated type that is the type of the name (e.g. LENGTH, AREA, etc.)
    Open source →
  13. 2.0.0 17 May 2022
    Release notes
    • We finally introduce extensions on num and String. Checkout the documentation for more details. Now you can easily convert in this way:
    1.convertFromTo(LENGTH.meters, LENGTH.inches)
    
    • We also refactor a little bit the code: now all the properties inherit from CustomProperty, this change leads to a reduction of ~500 lines of code.

    • We fixed a wrong conversion (energy foot pound)

    Breaking:

    • Node becomes ConversionNode
    • SimpleCustomConversion becomes SimpleCustomProperty
    • CustomConversion becomes CustomProperty
    Open source →
  14. 1.2.0 04 May 2022
    Release notes

    Improved the formatting of the string representation of the number (stringValue): now it is also possible to choose between decimal or scientific notation. Added feet (US survey), feet squared (US survey) and kilocalories.

    Open source →
  15. 1.1.1 01 Nov 2021
    Release notes

    Fix compatibility issue of 1.1.0 with the previous release.

    Open source →
  16. 1.1.1+1 13 Dec 2021
    Release notes

    Updated README.md.

    Open source →
  17. 1.1.1+2 13 Dec 2021
    Release notes

    Fix links in README.md.

    Open source →
  18. 1.1.0 01 Nov 2021
    Release notes

    In this release we added a complete CustomConversion definition. You are not anymore tied to SimpleCustomProperty! Check it out in the updated README. We also simplified all the code!

    Open source →
  19. 1.0.0 26 Oct 2021
    Release notes

    units_converter is stable since some releases. In this first 1.x version we made a huge work to improve the algorithm conversion. Now it is 2x faster then the previous one and it is simpler (less line of code with known algorithms). We added more test, the code coverage is now 100%. This release will not break anything, it is compatible with the previous one.

    Open source →
  20. 0.4.1 12 Oct 2021
    Release notes

    Added hectoPascal. Added a bunch of other test (99% code coverage). Minor bug fix (non-critical).

    Open source →
  21. 0.4.0 14 Sep 2021
    Release notes

    Breaking. In this release we used the lints package and changed enum to camelCase. We also added minutes/kilometer and energy foot pounds units.

    Open source →
  22. 0.3.0 05 Mar 2021
    Release notes

    Add support for null safety. Added some test. Added fluid ounces, gill, pennyweight, troy ounce. Bugfix.

    Open source →
  23. 0.3.0+1 21 Apr 2021
    Release notes

    Added mils.

    Open source →
  24. 0.2.0 12 Feb 2021
    Release notes

    Added Property class. It is the parent of all the properties. In this way we can also remove some code. Now you can assign a custom name to a Property object.

    Open source →
  25. 0.2.0+1 13 Feb 2021
    Release notes

    Fix force conversion. Fix some comment and README

    Open source →
  26. 0.2.0+2 13 Feb 2021
    Release notes

    Fix time typo and time symbols

    Open source →
  27. 0.1.0 07 Jan 2021
    Release notes

    First release

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive