Skip to content

Releases: elixir-cldr/cldr_calendars

Cldr Calendars version 1.26.4

28 Dec 21:25
Compare
Choose a tag to compare

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

28 Dec 19:50
Compare
Choose a tag to compare

Bug Fixes

  • Fix typing warning on Elixir 1.18. Thanks to @tjchambers for the report. Closes #23.

Cldr Calendars version 1.26.2

12 Sep 09:37
Compare
Choose a tag to compare

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

16 Aug 15:15
Compare
Choose a tag to compare

Bug Fixes

  • Fix specs to suport dialyzer flags :error_handling, :unknown, :underspecs, :extra_return, :missing_return

Cldr Calendars version 1.26.0

26 Jul 23:02
Compare
Choose a tag to compare

Bug Fixes

  • Microseconds in t:Cldr.Calendar.Duration.t/0 now follow the t:Time.t/0 expectations.

Enhancements

  • Adds Cldr.Calendar.Duration.new_from_seconds/1

Cldr Calendars version 1.25.2

09 Jul 00:23
Compare
Choose a tag to compare

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

08 Jul 09:54
Compare
Choose a tag to compare

Bug Fixes

  • Fix spec for Cldr.Calendar.localize/{1,2,3}

Cldr Calendars version 1.25.0

06 Jul 22:51
Compare
Choose a tag to compare

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 option era: :variant to return an alternative localization. For instance, in the :en locale, this will return CE and BCE rather than the default AD and BC.

  • Add MyApp.Cldr.Calendar.localize/3 that delegates to Cldr.Calendar.localize/3.

Cldr Calendars version 1.24.2

22 Jun 01:51
Compare
Choose a tag to compare

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

21 Jun 06:07
Compare
Choose a tag to compare

Bug Fixes

  • Compile on Elixir releases < 1.17. Some code in Cldr.Calendar depends on the new t: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.