Changelog History
Page 4
-
v2.4.0 Changes
May 12, 2020This is the changelog for Cldr_Dates_Times v2.4.0 released on May 4th, 2020. For older changelogs please consult the release tag on GitHub
✨ Enhancements
Add
Cldr.Time.hour_format_from_locale/1
to return the hour formatted preferred for a locale➕ Add
Cldr.DateTime.Formatter.hour/{2, 4}
that formats the hour part of a time in accordance with locale preferences (including honouring thehc
key of theu
language tag extension)➕ Add format symbol
ddd
to return the day of the month with ordinal formatting. This not a CLDR standard format symbol.➕ Add protocol support for
Cldr.Chars
which is used byCldr.to_string/1
-
v2.4.0-rc.0 Changes
May 03, 2020✨ Enhancements
Add
Cldr.Time.hour_format_from_locale/1
to return the hour formatted preferred for a locale➕ Add
Cldr.DateTime.Formatter.hour/{2, 4}
that formats the hour part of a time in accordance with locale preferences (including honouring thehc
key of theu
language tag extension)➕ Add format symbol
ddd
to return the day of the month with ordinal formatting. This not a CLDR standard format symbol.➕ Add protocol support for
Cldr.Chars
which is used byCldr.to_string/1
-
v2.3.0 Changes
February 02, 2020This is the changelog for Cldr_Dates_Times v2.3.0 released on February 2nd, 2020. For older changelogs please consult the release tag on GitHub
✨ Enhancements
- Adds backend modules
MyApp.Cldr.Date
,MyApp.Cldr.Time
andMyApp.Cldr.DateTime
that contain the functionsto_string/2
andto_string!/2
. This means all theex_cldr
family of libraries should now be primarily called on the backend modules. This makes aliasing easier too. For example:
defmodule MyApp.Cldr do use Cldr, providers: [Cldr.Number, Cldr.DateTime], default_locale: "en" end defmodule MyApp do alias MyApp.Cldr def some_fun do Cldr.Date.to_string Date.utc_today() end end
- Adds backend modules
-
v2.2.4 Changes
January 14, 2020This is the changelog for Cldr_Dates_Times v2.2.4 released on January 14th, 2020. For older changelogs please consult the release tag on GitHub
🐛 Bug Fixes
⚡️ Update tests for Elixir 1.10 date/time inspection changes
🛠 Fix dialyzer warning in generated backend
-
v2.2.3 Changes
September 14, 2019This is the changelog for Cldr_Dates_Times v2.2.3 released on September 14th, 2019. For older changelogs please consult the release tag on GitHub
🐛 Bug Fixes
- Correctly uses a provided
:backend
option when validating the:locale
option to the variousto_string/3
calls. Thanks to @lostkobrakai. Closes #108 and #109.
- Correctly uses a provided
-
v2.2.2 Changes
August 31, 2019This is the changelog for Cldr_Dates_Times v2.2.2 released on August 31st, 2019. For older changelogs please consult the release tag on GitHub
🔄 Changes & Deprecations
- 💅 Deprecates the option
:format
onCldr.DateTime.Relative.to_string/3
in favour of:style
.:format
will be removed withex_cldr_dates_times
version 3.0
🐛 Bug Fixes
- Return an error tuple immediately when a format code is used but no data is available to fulfill it
- 💅 Deprecates the option
-
v2.2.1 Changes
August 23, 2019This is the changelog for Cldr_Dates_Times v2.2.1 released on August 23rd, 2019. For older changelogs please consult the release tag on GitHub
🐛 Bug Fixes
- Fix
@spec
forCldr.Date.to_string/3
,Cldr.Time.to_string/3
andCldr.DateTime.to_string/3
as well as the!
variants.
- Fix
-
v2.2.0 Changes
This is the changelog for Cldr_Dates_Times v2.2.0 released on August 23rd, 2019. For older changelogs please consult the release tag on GitHub
💥 Breaking change
- Support Elixir 1.8 and later only since this package depends on ex_cldr_calendars which requires Elixir 1.8.
🐛 Bug Fixes
Fix references to
Cldr.get_current_locale/0
to the currentCldr.get_locale/0
🛠 Fix dialyzer warnings
-
v2.1.0 Changes
This is the changelog for Cldr_Dates_Times v2.1.0 released on June 16th, 2019. For older changelogs please consult the release tag on GitHub
✨ Enhancements
All calling
Date
,Time
andDateTime
to_string/3
asto_string/1
omitting the backend and providing options. The backend will default toCldr.default_backend()
. An exception will be raised if there is no default backend.Updates to ex_cldr_calendars 1.0 which includes
Cldr.Calendar.week_of_month/1
. The result corresponds to theW
format which is now implemented as well.
-
v2.0.2 Changes
This is the changelog for Cldr_Dates_Times v2.0.2 released on June 12th, 2019. For older changelogs please consult the release tag on GitHub
🐛 Bug Fixes
- Resolve the actual number system before transliterating a date, time or datetime. Closes #9. Thanks to @ribanez7 for the report.