Skip to content

Releases: elixir-cldr/cldr_utils

Cldr Utils version 2.22.0

24 Mar 14:43
Compare
Choose a tag to compare

Enhancements

  • Adds :timeout and :connection_timeout options to Cldr.Http.get/2. The defaults are [timeout: 60_000, connection_timeout: 120_000]. The environment variables CLDR_HTTP_TIMEOUT and CLDR_HTTPS_CONNECTION_TIMEOUT can also be used to set the timeouts. The prededence is options[:timeout] -> environment variable -> default.

Cldr Utils version 2.21.0

27 Jan 19:53
Compare
Choose a tag to compare

Enhancements

  • Add :verify_peer as an option to Cldr.Http.get/1 and Cldr.Http.get_with_headers/1

Cldr Utils version 2.20.0

27 Jan 12:41
Compare
Choose a tag to compare

Enhancements

  • Adds Cldr.Http.get_with_headers/1 that will return the headers from the response as well as the body.

  • Support headers when sending a request with Cldr.Http.get/1 and Cldr.Http.get_with_headers/1

Cldr Utils version 2.19.2

25 Jan 20:11
Compare
Choose a tag to compare

Bug Fixes

  • Relaxes the requirement for the optional ca_store library. Thanks to @maennchen for the PR. Closes #6.

Cldr Utils version 2.19.1

23 Aug 15:00
Compare
Choose a tag to compare

Bug Fixes

  • Use only TLS 1.2 on OTP versions less than 25. Thanks as always for the guidance from @voltone

Cldr Utils version 2.19.0

21 Aug 19:50
Compare
Choose a tag to compare

Enhancements

  • Sets SNI option for SSL connections

  • Supports CLDR_UNSAFE_HTTPS environment variable option which, if set to anything other than FALSE, false, nil or NIL will not perform peer verification for HTTPS requests. This may be used in circumstances where peer verification is failing but if generally not recommended.

Cldr Utils version 2.17.2

07 May 19:05
Compare
Choose a tag to compare

Bug Fixes

Cldr Utils version 2.17.1

20 Feb 19:54
Compare
Choose a tag to compare

Bug Fixes

  • Fix Cldr.Map.invert/2 to use Enum.map/2 not Enum.flat_map/2

Cldr Utils version 2.17.0

27 Oct 23:37
Compare
Choose a tag to compare

Enhancements

  • Add :duplicates option to Cldr.Map.invert/2 to determine how to handle duplicate values after inversion. The options are:

    • nil or false which is the default and means only one value is kept. Map.new/1 is used meanng the selected value is non-deterministic.
    • :keep meaning duplicate values are returned in a list
    • :shortest means the shortest duplicate is kept. This operates on string or atom values.
    • :longest means the shortest duplicate is kept. This operates on string or atom values.

Bug Fixes

  • Don't attempt to convert calendar era dates to iso days - do that when required in ex_cldr_calendars

  • Remove Cldr.Calendar.Conversion module which is not required

  • Fix Cldr.Map.deep_map/3 so that the :filter option is propogated correctly when :only/:except is also specified.

Cldr Utils version 2.17.0-rc.0

03 Oct 12:46
Compare
Choose a tag to compare
Pre-release

Bug Fixes

  • Don't attempt to convert calendar era dates to iso days - do that when required in ex_cldr_calendars

  • Remove Cldr.Calendar.Conversion module which is not required

  • Fix Cldr.Map.deep_map/3 so that the :filter option is propogated correctly when :only/:except is also specified.

Enhancements

  • Add :duplicates option to Cldr.Map.invert/2 to determine how to handle duplicate values after inversion. The options are:

    • nil or false which is the default and means only one value is kept. Map.new/1 is used meanng the selected value is non-deterministic.
    • :keep meaning duplicate values are returned in a list
    • :shortest means the shortest duplicate is kept. This operates on string or atom values.
    • :longest means the shortest duplicate is kept. This operates on string or atom values.