Releases: elixir-cldr/cldr_calendars
Cldr Calendars version 1.26.4
Bug Fixes
-
Fix day of week calculations when the config
%{day_of_week: :first}
is set. -
Improve the implementation of the fix for #23 to respect the conditional compilation based upon whether
ex_cldr_units
is configured or not.
Cldr Calendars version 1.26.3
Bug Fixes
- Fix typing warning on Elixir 1.18. Thanks to @tjchambers for the report. Closes #23.
Cldr Calendars version 1.26.2
Bug Fixes
- Fix
Cldr.Calendar.Interval.compare/2
when the ranges overlap by one day. Thanks to @ArthurClemens for the report. Fixes #22.
Cldr Calendars version 1.26.1
Bug Fixes
- Fix specs to suport dialyzer flags
:error_handling, :unknown, :underspecs, :extra_return, :missing_return
Cldr Calendars version 1.26.0
Bug Fixes
- Microseconds in
t:Cldr.Calendar.Duration.t/0
now follow thet:Time.t/0
expectations.
Enhancements
- Adds
Cldr.Calendar.Duration.new_from_seconds/1
Cldr Calendars version 1.25.2
Bug Fixes
- Fix spec for
Cldr.Calendar.localize/{1,2,3}
again - the return type was being aliased and hence dialyzer was unhappy. Not always, just sometimes.
Cldr Calendars version 1.25.1
Bug Fixes
- Fix spec for
Cldr.Calendar.localize/{1,2,3}
Cldr Calendars version 1.25.0
Bug Fixes
- Fix
Cldr.Calendar.Preference.calendar_from_locale/1
when-u-ca-<calendar>
is specified as part of the locale.
Enhancements
-
This release provides initial support for partial dates. Partial dates are those that do not have all of the fields
:year
,:month
,:day
and:calendar
. Not all functions require all parts of a date. And in some cases, like formatting just the year and the month, it shouldn't be necessary to provide data that has no use. Of course many functions do require all fields be present - like adding a number of days to a date. In these cases, missing fields will cause an error to be returned.ex_cldr_dates_times
version 2.19.0 and later take advantage of partial dates when formatting. -
Support
Cldr.Calendar.localize/3
optionera: :variant
to return an alternative localization. For instance, in the:en
locale, this will returnCE
andBCE
rather than the defaultAD
andBC
. -
Add
MyApp.Cldr.Calendar.localize/3
that delegates toCldr.Calendar.localize/3
.
Cldr Calendars version 1.24.2
Bug Fixes
- Fix runtime warning about map.field notation without parens when calling a function on Elixir 1.17.
Cldr Calendars version 1.24.1
Bug Fixes
- Compile on Elixir releases < 1.17. Some code in
Cldr.Calendar
depends on the newt:Duration.t/0
struct which is only available on Elixir 1.17 or later. Elixir 1.16 is now added to the CI test matrix to ensure no future regression. Thanks to @WernerBuchert for the report. Closes #21.