aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--README.asciidoc4
-rw-r--r--doc/src/guide/migrating_from_2.0.asciidoc28
-rw-r--r--ebin/gun.app2
4 files changed, 26 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index ca63664..1609a37 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
PROJECT = gun
PROJECT_DESCRIPTION = HTTP/1.1, HTTP/2 and Websocket client for Erlang/OTP.
-PROJECT_VERSION = 2.0.1
+PROJECT_VERSION = 2.1.0
# Options.
@@ -40,8 +40,8 @@ define HEX_TARBALL_EXTRA_METADATA
#{
licenses => [<<"ISC">>],
links => #{
- <<"Function reference">> => <<"https://ninenines.eu/docs/en/gun/2.0/manual/">>,
- <<"User guide">> => <<"https://ninenines.eu/docs/en/gun/2.0/guide/">>,
+ <<"Function reference">> => <<"https://ninenines.eu/docs/en/gun/2.1/manual/">>,
+ <<"User guide">> => <<"https://ninenines.eu/docs/en/gun/2.1/guide/">>,
<<"GitHub">> => <<"https://github.com/ninenines/gun">>,
<<"Sponsor">> => <<"https://github.com/sponsors/essen">>
}
diff --git a/README.asciidoc b/README.asciidoc
index d4d2484..5ce3102 100644
--- a/README.asciidoc
+++ b/README.asciidoc
@@ -25,8 +25,8 @@ and https://pleroma.social/[Pleroma].
== Online documentation
-* https://ninenines.eu/docs/en/gun/2.0/guide[User guide]
-* https://ninenines.eu/docs/en/gun/2.0/manual[Function reference]
+* https://ninenines.eu/docs/en/gun/2.1/guide[User guide]
+* https://ninenines.eu/docs/en/gun/2.1/manual[Function reference]
== Offline documentation
diff --git a/doc/src/guide/migrating_from_2.0.asciidoc b/doc/src/guide/migrating_from_2.0.asciidoc
index 2f545b9..cfd64a8 100644
--- a/doc/src/guide/migrating_from_2.0.asciidoc
+++ b/doc/src/guide/migrating_from_2.0.asciidoc
@@ -1,13 +1,25 @@
[appendix]
-== Changes since Gun 2.0
+== Migrating from Gun 2.0 to 2.1
-The following patch versions were released since Gun 2.0:
+Gun 2.1 contains a small security improvement for
+the HTTP/2 protocol, as well as includes a small
+number of fixes and improvements.
-=== Gun 2.0.1
+Gun 2.1 requires Erlang/OTP 22.0 or greater.
-This release updates Cowlib to 2.12.1 to fix a compilation
-error when using Erlang/OTP 26.
+=== Features added
-It also fixes parsing of RST_STREAM frames to properly
-handle frames that have a valid length but were not fully
-received yet.
+* A new HTTP/2 option `max_fragmented_header_block_size` has
+ been added to limit the size of header blocks that are
+ sent over multiple HEADERS and CONTINUATION frames.
+
+* Update Cowlib to 2.13.0.
+
+=== Bugs fixed
+
+* Gun will no longer configure the NPN TLS extension,
+ which has long been replaced by ALPN. NPN is not
+ compatible with TLS 1.3.
+
+* Gun will no longer crash when TLS connections close
+ very early in the connection's life time.
diff --git a/ebin/gun.app b/ebin/gun.app
index 0e1338e..e156075 100644
--- a/ebin/gun.app
+++ b/ebin/gun.app
@@ -1,6 +1,6 @@
{application, 'gun', [
{description, "HTTP/1.1, HTTP/2 and Websocket client for Erlang/OTP."},
- {vsn, "2.0.1"},
+ {vsn, "2.1.0"},
{modules, ['gun','gun_app','gun_conns_sup','gun_content_handler','gun_cookies','gun_cookies_list','gun_data_h','gun_default_event_h','gun_event','gun_http','gun_http2','gun_pool','gun_pool_events_h','gun_pools_sup','gun_protocols','gun_public_suffix','gun_raw','gun_socks','gun_sse_h','gun_sup','gun_tcp','gun_tcp_proxy','gun_tls','gun_tls_proxy','gun_tls_proxy_cb','gun_tls_proxy_http2_connect','gun_tunnel','gun_ws','gun_ws_h','gun_ws_protocol']},
{registered, [gun_sup]},
{applications, [kernel,stdlib,public_key,ssl,cowlib]},