Skip to content

Commit

Permalink
Release 2.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kipcole9 committed Apr 20, 2024
2 parents 99d88a3 + 3c72d24 commit 2ae1e84
Show file tree
Hide file tree
Showing 21 changed files with 977 additions and 788 deletions.
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changelog

<<<<<<< HEAD
## Cldr_Units v3.16.5

This is the changelog for Cldr_units v3.16.4 released on April 11th, 2024. For older changelogs please consult the release tag on [GitHub](https://github.com/elixir-cldr/cldr_units/tags)
Expand All @@ -8,6 +9,20 @@ This is the changelog for Cldr_units v3.16.4 released on April 11th, 2024. For

* Fix spec for `Cldr.Unit.display_name/2`. Thanks to @ryotsu for the report. Closes #43.

## Cldr_Units v3.17.0

This is the changelog for Cldr_units v3.17.0 released on April 21st, 2024. For older changelogs please consult the release tag on [GitHub](https://github.com/elixir-cldr/cldr_units/tags)

### Bug Fixes

* Fixes canonical unit name formation. More units can now be resolved to a base unit and therefore compared and converted with other units. The primary change is to add elimination of common factors in "per" units.

### Enhancements

* Add conversion support for Beaufort. This conversion is non linear and therefore cannot be expressed using the normal unit conversion method.

* `Cldr.Unit.Math.mult/2` and `Cldr.Unit.Math.div/2` now support scalar values as the second argument. Its therefore now possible to say `Cldr.Unit.Math.mult(Cldr.Unit.new!(:meter, 10), 2)`.

## Cldr_Units v3.16.4

This is the changelog for Cldr_units v3.16.4 released on November 2nd, 2023. For older changelogs please consult the release tag on [GitHub](https://github.com/elixir-cldr/cldr_units/tags)
Expand All @@ -30,7 +45,7 @@ This is the changelog for Cldr_units v3.16.2 released on June 15th, 2023. For o

### Bug Fixes

* Fix `Cldr.round/1` for float units. Thanks to @doughsay for the report. Closes #38.
* Fix `Cldr.Unit.round/1` for float units. Thanks to @doughsay for the report. Closes #38.

## Cldr_Units v3.16.1

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## License

Copyright 2017-2023 Kip Cole
Copyright 2017-2024 Kip Cole

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
compliance with the License. You may obtain a copy of the License at
Expand Down
17 changes: 17 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
# To Do list for Cldr Units

* Not all units are translatable in all locales - so what is the canonical list of units?
* How do we localise units that have no translation in a given locale?
* How do we get the measurement systems of units that have no conversion (since thats where the system data is kept)
* What is the intention of the new unit systems?

[ ] Support any unit in `Cldr.Unit.display_name/1`
[ ] Fix use of generic unit `:unit`
[ ] Math using scalars for mult and sub should work
[ ] Math with powers should work
[ ] Support `pown` notation for powers beyond square and cubic


# Notes

* https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2981r1.html
* https://linux.die.net/man/1/units



Loading

0 comments on commit 2ae1e84

Please sign in to comment.