Skip to content

Commit 2ae1e84

Browse files
committed
Release 2.17.0
2 parents 99d88a3 + 3c72d24 commit 2ae1e84

21 files changed

+977
-788
lines changed

CHANGELOG.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Changelog
22

3+
<<<<<<< HEAD
34
## Cldr_Units v3.16.5
45

56
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)
@@ -8,6 +9,20 @@ This is the changelog for Cldr_units v3.16.4 released on April 11th, 2024. For
89

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

12+
## Cldr_Units v3.17.0
13+
14+
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)
15+
16+
### Bug Fixes
17+
18+
* 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.
19+
20+
### Enhancements
21+
22+
* Add conversion support for Beaufort. This conversion is non linear and therefore cannot be expressed using the normal unit conversion method.
23+
24+
* `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)`.
25+
1126
## Cldr_Units v3.16.4
1227

1328
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)
@@ -30,7 +45,7 @@ This is the changelog for Cldr_units v3.16.2 released on June 15th, 2023. For o
3045

3146
### Bug Fixes
3247

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

3550
## Cldr_Units v3.16.1
3651

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## License
22

3-
Copyright 2017-2023 Kip Cole
3+
Copyright 2017-2024 Kip Cole
44

55
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
66
compliance with the License. You may obtain a copy of the License at

TODO.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
# To Do list for Cldr Units
22

3+
* Not all units are translatable in all locales - so what is the canonical list of units?
4+
* How do we localise units that have no translation in a given locale?
5+
* How do we get the measurement systems of units that have no conversion (since thats where the system data is kept)
6+
* What is the intention of the new unit systems?
7+
38
[ ] Support any unit in `Cldr.Unit.display_name/1`
9+
[ ] Fix use of generic unit `:unit`
10+
[ ] Math using scalars for mult and sub should work
11+
[ ] Math with powers should work
12+
[ ] Support `pown` notation for powers beyond square and cubic
13+
14+
15+
# Notes
16+
17+
* https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2981r1.html
18+
* https://linux.die.net/man/1/units
19+
20+
421

0 commit comments

Comments
 (0)