From 43db9a81333ca16372bb4f52484b308b6d8073a8 Mon Sep 17 00:00:00 2001 From: Andrea Leopardi Date: Mon, 22 Apr 2024 11:04:19 +0200 Subject: [PATCH] Release v1.6.0 --- CHANGELOG.md | 17 +++++++++++++++++ lib/mint/http.ex | 3 ++- lib/mint/http1.ex | 2 +- mix.exs | 2 +- 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a66b3f0a..f255a564 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## v1.6.0 + +### New features + + * Add `:case_sensitive_headers` option to `Mint.HTTP1.connect/4`. + * Add `:inet4` option to `Mint.HTTP.connect/4`. + +### Bug fixes and improvements + + * Require Elixir 1.11+. + * Add `match_fun` clause to deal with IP addresses in TLS handshake. + * Optimize creation of HTTP/2 requests. + * Fix a compilation warning (unused `set_flag/2` function). + * Improve performance of downcasing headers. + * Deprecate `:read_write` option in `Mint.HTTP.open?/2`. + * Improve performance of checking for the CAStore library. + ## v1.5.2 ### Bug fixes and improvements diff --git a/lib/mint/http.ex b/lib/mint/http.ex index 1ee10cac..a689e20f 100644 --- a/lib/mint/http.ex +++ b/lib/mint/http.ex @@ -296,7 +296,8 @@ defmodule Mint.HTTP do and may be overridden by the caller. * `:inet4` - if set to `true` falls back to IPv4 if IPv6 connection fails. - Defaults to `true` and may be overridden by the caller. + Defaults to `true` and may be overridden by the caller. *Available since + v1.6.0*. Options for `:https` only: diff --git a/lib/mint/http1.ex b/lib/mint/http1.ex index 18b2e2fc..3c543d5c 100644 --- a/lib/mint/http1.ex +++ b/lib/mint/http1.ex @@ -122,7 +122,7 @@ defmodule Mint.HTTP1 do * `:case_sensitive_headers` - (boolean) if set to `true` the case of the supplied headers in requests will be preserved. The default is to lowercase the headers - because HTTP/1.1 header names are case-insensitive. + because HTTP/1.1 header names are case-insensitive. *Available since v1.6.0*. """ @spec connect(Types.scheme(), Types.address(), :inet.port_number(), keyword()) :: diff --git a/mix.exs b/mix.exs index 7600dc8d..d6e2cce1 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule Mint.MixProject do use Mix.Project - @version "1.5.2" + @version "1.6.0" @repo_url "https://github.com/elixir-mint/mint" def project do