Releases: elixir-cldr/cldr_utils
Cldr Utils version 2.22.0
Enhancements
- Adds
:timeout
and:connection_timeout
options toCldr.Http.get/2
. The defaults are[timeout: 60_000, connection_timeout: 120_000]
. The environment variablesCLDR_HTTP_TIMEOUT
andCLDR_HTTPS_CONNECTION_TIMEOUT
can also be used to set the timeouts. The prededence isoptions[:timeout] -> environment variable -> default.
Cldr Utils version 2.21.0
Enhancements
- Add
:verify_peer
as an option toCldr.Http.get/1
andCldr.Http.get_with_headers/1
Cldr Utils version 2.20.0
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
andCldr.Http.get_with_headers/1
Cldr Utils version 2.19.2
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
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
Enhancements
-
Sets SNI option for SSL connections
-
Supports
CLDR_UNSAFE_HTTPS
environment variable option which, if set to anything other thanFALSE
,false
,nil
orNIL
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
Bug Fixes
- Harden the SSL options for
Cldr.Http.get/1
in line with the recommendations at https://erlef.github.io/security-wg/secure_coding_and_deployment_hardening/ssl
Cldr Utils version 2.17.1
Bug Fixes
- Fix
Cldr.Map.invert/2
to useEnum.map/2
notEnum.flat_map/2
Cldr Utils version 2.17.0
Enhancements
-
Add
:duplicates
option toCldr.Map.invert/2
to determine how to handle duplicate values after inversion. The options are:nil
orfalse
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
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 toCldr.Map.invert/2
to determine how to handle duplicate values after inversion. The options are:nil
orfalse
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.