Skip to content

Commit

Permalink
Release v0.10.1 (#1044)
Browse files Browse the repository at this point in the history
  • Loading branch information
supersimple authored Jun 11, 2024
1 parent e99923f commit da7e813
Show file tree
Hide file tree
Showing 16 changed files with 451 additions and 111 deletions.
26 changes: 21 additions & 5 deletions src/mix_hex_core.erl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% Vendored from hex_core v0.10.0 (d87858a), do not edit manually
%% Vendored from hex_core v0.10.1 (8a53ac8), do not edit manually

%% @doc
%% `hex_core' entrypoint module.
Expand Down Expand Up @@ -48,6 +48,18 @@
%%
%% * `repo_verify_origin' - If `true' will verify the repository signature origin,
%% requires protobuf messages as of hex_core v0.4.0 (default: `true').
%%
%% * `tarball_max_size' - Maximum size of package tarball, defaults to
%% `16_777_216' (16 MiB). Set to `infinity' to not enforce the limit.
%%
%% * `tarball_max_uncompressed_size' - Maximum size of uncompressed package tarball, defaults to
%% `134_217_728' (128 MiB). Set to `infinity' to not enforce the limit.
%%
%% * `docs_tarball_max_size' - Maximum size of docs tarball, defaults to
%% `16_777_216' (16 MiB). Set to `infinity' to not enforce the limit.
%%
%% * `docs_tarball_max_uncompressed_size' - Maximum size of uncompressed docs tarball, defaults to
%% `134_217_728' (128 MiB). Set to `infinity' to not enforce the limit.

-module(mix_hex_core).
-export([default_config/0]).
Expand Down Expand Up @@ -83,8 +95,10 @@
repo_organization => binary() | undefined,
repo_verify => boolean(),
repo_verify_origin => boolean(),
tarball_max_size => pos_integer(),
tarball_max_uncompressed_size => pos_integer()
tarball_max_size => pos_integer() | infinity,
tarball_max_uncompressed_size => pos_integer() | infinity,
docs_tarball_max_size => pos_integer() | infinity,
docs_tarball_max_uncompressed_size => pos_integer() | infinity
}.

-spec default_config() -> config().
Expand All @@ -105,6 +119,8 @@ default_config() ->
repo_organization => undefined,
repo_verify => true,
repo_verify_origin => true,
tarball_max_size => 8 * 1024 * 1024,
tarball_max_uncompressed_size => 64 * 1024 * 1024
tarball_max_size => 16 * 1024 * 1024,
tarball_max_uncompressed_size => 128 * 1024 * 1024,
docs_tarball_max_size => 16 * 1024 * 1024,
docs_tarball_max_uncompressed_size => 128 * 1024 * 1024
}.
4 changes: 2 additions & 2 deletions src/mix_hex_core.hrl
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
%% Vendored from hex_core v0.10.0 (d87858a), do not edit manually
%% Vendored from hex_core v0.10.1 (8a53ac8), do not edit manually

-define(HEX_CORE_VERSION, "0.10.0").
-define(HEX_CORE_VERSION, "0.10.1").
2 changes: 1 addition & 1 deletion src/mix_hex_erl_tar.erl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% Vendored from hex_core v0.10.0 (d87858a), do not edit manually
%% Vendored from hex_core v0.10.1 (8a53ac8), do not edit manually

%% @private
%% Copied from https://github.com/erlang/otp/blob/OTP-20.0.1/lib/stdlib/src/erl_tar.erl
Expand Down
2 changes: 1 addition & 1 deletion src/mix_hex_erl_tar.hrl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% Vendored from hex_core v0.10.0 (d87858a), do not edit manually
%% Vendored from hex_core v0.10.1 (8a53ac8), do not edit manually

% Copied from https://github.com/erlang/otp/blob/OTP-20.0.1/lib/stdlib/src/erl_tar.hrl

Expand Down
2 changes: 1 addition & 1 deletion src/mix_hex_filename.erl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% Vendored from hex_core v0.10.0 (d87858a), do not edit manually
%% Vendored from hex_core v0.10.1 (8a53ac8), do not edit manually

% @private
% Excerpt from https://github.com/erlang/otp/blob/OTP-20.0.1/lib/stdlib/src/filename.erl#L761-L788
Expand Down
4 changes: 2 additions & 2 deletions src/mix_hex_http.erl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% Vendored from hex_core v0.10.0 (d87858a), do not edit manually
%% Vendored from hex_core v0.10.1 (8a53ac8), do not edit manually

%% @doc
%% HTTP contract.
Expand All @@ -18,7 +18,7 @@
-type adapter_config() :: map().

-callback request(method(), URI :: binary(), headers(), body(), adapter_config()) ->
{ok, status(), headers(), binary()}
{ok, {status(), headers(), binary()}}
| {error, term()}.

-spec request(mix_hex_core:config(), method(), URI :: binary(), headers(), body()) ->
Expand Down
2 changes: 1 addition & 1 deletion src/mix_hex_http_httpc.erl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% Vendored from hex_core v0.10.0 (d87858a), do not edit manually
%% Vendored from hex_core v0.10.1 (8a53ac8), do not edit manually

%% @doc
%% httpc-based implementation of {@link mix_hex_http} contract.
Expand Down
Loading

0 comments on commit da7e813

Please sign in to comment.