From c8f3a6c5a837e4554be219f7c21ae8fdb3d01c40 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Tue, 28 Sep 2021 17:51:12 +0200 Subject: [PATCH] new version 1.18.0 Changes: * bump version * sync doc * bump edown to latest 0.8.4 version --- NEWS.md | 6 ++++++ README.md | 2 +- doc/README.md | 2 +- doc/hackney.md | 2 +- doc/hackney_date.md | 2 +- doc/hackney_http_connect.md | 6 +++--- doc/hackney_local_tcp.md | 16 ++++++++-------- doc/hackney_socks5.md | 6 +++--- doc/hackney_ssl.md | 16 ++++++++-------- doc/hackney_tcp.md | 16 ++++++++-------- doc/overview.edoc | 2 +- rebar.config | 2 +- src/hackney.app.src | 2 +- 13 files changed, 43 insertions(+), 37 deletions(-) diff --git a/NEWS.md b/NEWS.md index a2deb412..da13691d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,11 @@ # NEWS +1.18.0 - 2021-09-28 +------------------- + +- security: update default CA bundle +- fix pool: make checkout synchrounous (remove unwanted messages) + 1.17.4 - 2021-03-18 ------------------- diff --git a/README.md b/README.md index c30ed241..e7abdf45 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Copyright (c) 2012-2021 Benoît Chesneau. -__Version:__ 1.17.4 +__Version:__ 1.18.0 # hackney diff --git a/doc/README.md b/doc/README.md index e7bb5262..aa1a7f50 100644 --- a/doc/README.md +++ b/doc/README.md @@ -4,7 +4,7 @@ Copyright (c) 2012-2021 Benoît Chesneau. -__Version:__ 1.17.4 +__Version:__ 1.18.0 # hackney diff --git a/doc/hackney.md b/doc/hackney.md index ef853e59..3a680124 100644 --- a/doc/hackney.md +++ b/doc/hackney.md @@ -108,7 +108,7 @@ length doesn't go over MaxLength. ### cancel_request/1 ###

-cancel_request(Ref::client_ref()) -> {ok, {atom(), inet:socket(), binary(), hackney_response:response_state()}} | {error, term()}
+cancel_request(Ref::client_ref()) -> {ok, {atom(), inet:socket(), binary(), hackney_response:response_state()}} | {error, term()}
 

diff --git a/doc/hackney_date.md b/doc/hackney_date.md index 58f7e796..9c876787 100644 --- a/doc/hackney_date.md +++ b/doc/hackney_date.md @@ -32,7 +32,7 @@ Parse an asctime date. ### date_to_rfc2109/1 ###

-date_to_rfc2109(X1::calendar:datetime()) -> binary()
+date_to_rfc2109(X1::calendar:datetime()) -> binary()
 

diff --git a/doc/hackney_http_connect.md b/doc/hackney_http_connect.md index df35bdce..c06d6cca 100644 --- a/doc/hackney_http_connect.md +++ b/doc/hackney_http_connect.md @@ -16,7 +16,7 @@

-http_socket() = {atom(), inet:socket()}
+http_socket() = {atom(), inet:socket()}
 
@@ -82,7 +82,7 @@ Atoms used to identify messages in {active, once | true} mode. ### peername/1 ###

-peername(X1::http_socket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}
+peername(X1::http_socket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}
 

@@ -153,7 +153,7 @@ __See also:__ [gen_tcp:shutdown/2](gen_tcp.md#shutdown-2). ### sockname/1 ###

-sockname(X1::http_socket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}
+sockname(X1::http_socket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}
 

diff --git a/doc/hackney_local_tcp.md b/doc/hackney_local_tcp.md index 75abec07..46a3ee14 100644 --- a/doc/hackney_local_tcp.md +++ b/doc/hackney_local_tcp.md @@ -21,7 +21,7 @@ ### close/1 ###

-close(Socket::inet:socket()) -> ok
+close(Socket::inet:socket()) -> ok
 

@@ -46,7 +46,7 @@ __See also:__ [gen_tcp:close/1](gen_tcp.md#close-1). ### controlling_process/2 ###

-controlling_process(Socket::inet:socket(), Pid::pid()) -> ok | {error, closed | not_owner | atom()}
+controlling_process(Socket::inet:socket(), Pid::pid()) -> ok | {error, closed | not_owner | atom()}
 

@@ -67,7 +67,7 @@ Atoms used to identify messages in {active, once | true} mode. ### peername/1 ###

-peername(Socket::inet:socket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}
+peername(Socket::inet:socket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}
 

@@ -86,7 +86,7 @@ __See also:__ [inet:peername/1](inet.md#peername-1). ### recv/3 ###

-recv(Socket::inet:socket(), Length::non_neg_integer(), Timeout::timeout()) -> {ok, any()} | {error, closed | atom()}
+recv(Socket::inet:socket(), Length::non_neg_integer(), Timeout::timeout()) -> {ok, any()} | {error, closed | atom()}
 

@@ -99,7 +99,7 @@ __See also:__ [gen_tcp:recv/3](gen_tcp.md#recv-3). ### send/2 ###

-send(Socket::inet:socket(), Packet::iolist()) -> ok | {error, atom()}
+send(Socket::inet:socket(), Packet::iolist()) -> ok | {error, atom()}
 

@@ -112,7 +112,7 @@ __See also:__ [gen_tcp:send/2](gen_tcp.md#send-2). ### setopts/2 ###

-setopts(Socket::inet:socket(), Opts::list()) -> ok | {error, atom()}
+setopts(Socket::inet:socket(), Opts::list()) -> ok | {error, atom()}
 

@@ -125,7 +125,7 @@ __See also:__ [inet:setopts/2](inet.md#setopts-2). ### shutdown/2 ###

-shutdown(Socket::inet:socket(), How::read | write | read_write) -> ok
+shutdown(Socket::inet:socket(), How::read | write | read_write) -> ok
 

@@ -138,7 +138,7 @@ __See also:__ [gen_tcp:shutdown/2](gen_tcp.md#shutdown-2). ### sockname/1 ###

-sockname(Socket::inet:socket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}
+sockname(Socket::inet:socket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}
 

diff --git a/doc/hackney_socks5.md b/doc/hackney_socks5.md index e47b4c1d..d7d42f06 100644 --- a/doc/hackney_socks5.md +++ b/doc/hackney_socks5.md @@ -19,7 +19,7 @@ socks 5 transport.

-socks5_socket() = {atom(), inet:socket()}
+socks5_socket() = {atom(), inet:socket()}
 
@@ -85,7 +85,7 @@ Atoms used to identify messages in {active, once | true} mode. ### peername/1 ###

-peername(X1::socks5_socket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}
+peername(X1::socks5_socket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}
 

@@ -156,7 +156,7 @@ __See also:__ [gen_tcp:shutdown/2](gen_tcp.md#shutdown-2). ### sockname/1 ###

-sockname(X1::socks5_socket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}
+sockname(X1::socks5_socket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}
 

diff --git a/doc/hackney_ssl.md b/doc/hackney_ssl.md index 36edc67f..0af9677a 100644 --- a/doc/hackney_ssl.md +++ b/doc/hackney_ssl.md @@ -39,7 +39,7 @@ ### close/1 ###

-close(Socket::ssl:sslsocket()) -> ok
+close(Socket::ssl:sslsocket()) -> ok
 

@@ -64,7 +64,7 @@ __See also:__ [ssl:close/1](ssl.md#close-1). ### controlling_process/2 ###

-controlling_process(Socket::ssl:sslsocket(), Pid::pid()) -> ok | {error, closed | not_owner | atom()}
+controlling_process(Socket::ssl:sslsocket(), Pid::pid()) -> ok | {error, closed | not_owner | atom()}
 

@@ -85,7 +85,7 @@ Atoms used to identify messages in {active, once | true} mode. ### peername/1 ###

-peername(Socket::ssl:sslsocket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}
+peername(Socket::ssl:sslsocket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}
 

@@ -104,7 +104,7 @@ __See also:__ [ssl:peername/1](ssl.md#peername-1). ### recv/3 ###

-recv(Socket::ssl:sslsocket(), Length::non_neg_integer(), Timeout::timeout()) -> {ok, any()} | {error, closed | atom()}
+recv(Socket::ssl:sslsocket(), Length::non_neg_integer(), Timeout::timeout()) -> {ok, any()} | {error, closed | atom()}
 

@@ -117,7 +117,7 @@ __See also:__ [ssl:recv/3](ssl.md#recv-3). ### send/2 ###

-send(Socket::ssl:sslsocket(), Packet::iolist()) -> ok | {error, atom()}
+send(Socket::ssl:sslsocket(), Packet::iolist()) -> ok | {error, atom()}
 

@@ -130,7 +130,7 @@ __See also:__ [ssl:send/2](ssl.md#send-2). ### setopts/2 ###

-setopts(Socket::ssl:sslsocket(), Opts::list()) -> ok | {error, atom()}
+setopts(Socket::ssl:sslsocket(), Opts::list()) -> ok | {error, atom()}
 

@@ -143,7 +143,7 @@ __See also:__ [ssl:setopts/2](ssl.md#setopts-2). ### shutdown/2 ###

-shutdown(Socket::ssl:sslsocket(), How::read | write | read_write) -> ok | {error, any()}
+shutdown(Socket::ssl:sslsocket(), How::read | write | read_write) -> ok | {error, any()}
 

@@ -156,7 +156,7 @@ __See also:__ [ssl:shutdown/2](ssl.md#shutdown-2). ### sockname/1 ###

-sockname(Socket::ssl:sslsocket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}
+sockname(Socket::ssl:sslsocket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}
 

diff --git a/doc/hackney_tcp.md b/doc/hackney_tcp.md index ef5764fd..b4344d56 100644 --- a/doc/hackney_tcp.md +++ b/doc/hackney_tcp.md @@ -21,7 +21,7 @@ ### close/1 ###

-close(Socket::inet:socket()) -> ok
+close(Socket::inet:socket()) -> ok
 

@@ -46,7 +46,7 @@ __See also:__ [gen_tcp:close/1](gen_tcp.md#close-1). ### controlling_process/2 ###

-controlling_process(Socket::inet:socket(), Pid::pid()) -> ok | {error, closed | not_owner | atom()}
+controlling_process(Socket::inet:socket(), Pid::pid()) -> ok | {error, closed | not_owner | atom()}
 

@@ -67,7 +67,7 @@ Atoms used to identify messages in {active, once | true} mode. ### peername/1 ###

-peername(Socket::inet:socket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}
+peername(Socket::inet:socket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}
 

@@ -86,7 +86,7 @@ __See also:__ [inet:peername/1](inet.md#peername-1). ### recv/3 ###

-recv(Socket::inet:socket(), Length::non_neg_integer(), Timeout::timeout()) -> {ok, any()} | {error, closed | atom()}
+recv(Socket::inet:socket(), Length::non_neg_integer(), Timeout::timeout()) -> {ok, any()} | {error, closed | atom()}
 

@@ -99,7 +99,7 @@ __See also:__ [gen_tcp:recv/3](gen_tcp.md#recv-3). ### send/2 ###

-send(Socket::inet:socket(), Packet::iolist()) -> ok | {error, atom()}
+send(Socket::inet:socket(), Packet::iolist()) -> ok | {error, atom()}
 

@@ -112,7 +112,7 @@ __See also:__ [gen_tcp:send/2](gen_tcp.md#send-2). ### setopts/2 ###

-setopts(Socket::inet:socket(), Opts::list()) -> ok | {error, atom()}
+setopts(Socket::inet:socket(), Opts::list()) -> ok | {error, atom()}
 

@@ -125,7 +125,7 @@ __See also:__ [inet:setopts/2](inet.md#setopts-2). ### shutdown/2 ###

-shutdown(Socket::inet:socket(), How::read | write | read_write) -> ok
+shutdown(Socket::inet:socket(), How::read | write | read_write) -> ok
 

@@ -138,7 +138,7 @@ __See also:__ [gen_tcp:shutdown/2](gen_tcp.md#shutdown-2). ### sockname/1 ###

-sockname(Socket::inet:socket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}
+sockname(Socket::inet:socket()) -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}
 

diff --git a/doc/overview.edoc b/doc/overview.edoc index 399114de..fdc94b6a 100644 --- a/doc/overview.edoc +++ b/doc/overview.edoc @@ -17,7 +17,7 @@ @copyright 2012-2021 Benoît Chesneau. -@version 1.17.4 +@version 1.18.0 @title hackney - HTTP client library in Erlang @doc diff --git a/rebar.config b/rebar.config index 2906a453..7af10d75 100644 --- a/rebar.config +++ b/rebar.config @@ -34,7 +34,7 @@ [ {edown, {git, "https://github.com/uwiger/edown.git", - {tag, "0.8.1"}}} + {tag, "0.8.4"}}} ]}, {edoc_opts, [{doclet, edown_doclet}, diff --git a/src/hackney.app.src b/src/hackney.app.src index b80b84bf..3e093e53 100644 --- a/src/hackney.app.src +++ b/src/hackney.app.src @@ -4,7 +4,7 @@ {application, hackney, [ {description, "simple HTTP client"}, - {vsn, "1.17.4"}, + {vsn, "1.18.0"}, {registered, [hackney_pool]}, {applications, [kernel, stdlib,