Aura.Model.HexRelease (Aura v1.0.1)

View Source

A struct describing a single release of a Aura.Model.HexPackage

Examples

%Aura.Model.HexRelease{
 checksum: "4eaafe67a4b2d3a3b7f4637106ce81707cfa0977e6b3b44450cde4c4626a3c1a",
 configs: %{
   "erlang.mk" => "dep_aura = hex 0.9.0",
   "mix.exs" => "{:aura, "~> 0.9.0"}",
   "rebar.config" => "{aura, "0.9.0"}"
 },
 docs_html_url: "https://hexdocs.pm/aura/0.9.0/",
 has_docs: true,
 html_url: "https://hex.pm/packages/aura/0.9.0",
 inserted_at: ~U[2025-06-01 15:13:00.595681Z],
 meta: %{elixir: "~> 1.18", app: "aura", build_tools: ["mix"]},
 package_url: "https://hex.pm/api/packages/aura",
 publisher: %{
   url: "https://hex.pm/api/users/camatcode",
   username: "camatcode",
   email: "cam.cook.codes@gmail.com"
 },
 requirements: [
   %{optional: false, app: "cachex", requirement: "~> 4.0"},
   %{optional: false, app: "date_time_parser", requirement: "~> 1.2.0"},
   %{optional: false, app: "proper_case", requirement: "~> 1.3"},
   %{optional: false, app: "req", requirement: "~> 0.5.10"}
 ],
 retirement: nil,
 updated_at: ~U[2025-06-01 15:13:04.347130Z],
 version: "0.9.0",
 url: "https://hex.pm/api/packages/aura/releases/0.9.0",
 downloads: 15
}

Resources

See Also

Summary

Types

A mapping between a build-tool config and the configuration needed to grab this release

Whether this release has associated docs

URI reference to the Aura.Model.HexPackage this release belongs to

SHA-256 checksum of the associated release tar.gz

Number of all time downloads of this release

Additional information relevant to the release

Information about the user which published this release

A dependency of this release

Whether this release is considered retired

t()

Type describing a Aura.Model.HexRelease

Functions

Builds a HexRelease from a map

Types

build_tool_declarations()

@type build_tool_declarations() :: map()

A mapping between a build-tool config and the configuration needed to grab this release

Examples

   %{
     "erlang.mk" => "dep_aura = hex 0.9.0",
     "mix.exs" => "{:aura, "~> 0.9.0"}",
     "rebar.config" => "{aura, "0.9.0"}"
   }

See Also

docs?()

@type docs?() :: boolean()

Whether this release has associated docs

package_reference_url()

@type package_reference_url() :: URI.t()

URI reference to the Aura.Model.HexPackage this release belongs to

Examples

"https://hex.pm/api/packages/aura/releases/0.9.0"

See Also

release_checksum()

@type release_checksum() :: String.t()

SHA-256 checksum of the associated release tar.gz

Examples

  "4eaafe67a4b2d3a3b7f4637106ce81707cfa0977e6b3b44450cde4c4626a3c1a"

See Also

release_downloads()

@type release_downloads() :: non_neg_integer()

Number of all time downloads of this release

release_meta()

@type release_meta() :: map()

Additional information relevant to the release

Examples

%{elixir: "~> 1.18", app: "aura", build_tools: ["mix"]}

See Also

release_publisher()

@type release_publisher() :: map()

Information about the user which published this release

Examples

%{
 url: "https://hex.pm/api/users/camatcode",
 username: "camatcode",
 email: "cam.cook.codes@gmail.com"
}

See Also

release_requirement()

@type release_requirement() :: map()

A dependency of this release

Examples

%{optional: false, app: "req", requirement: "~> 0.5.10"}

See Also

retired?()

@type retired?() :: boolean()

Whether this release is considered retired

t()

@type t() :: %Aura.Model.HexRelease{
  checksum: release_checksum(),
  configs: build_tool_declarations(),
  docs_html_url: Aura.Model.Common.docs_html_url(),
  downloads: release_downloads(),
  has_docs: docs?(),
  html_url: Aura.Model.Common.html_url(),
  inserted_at: Aura.Model.Common.inserted_at(),
  meta: release_meta(),
  package_url: package_reference_url(),
  publisher: release_publisher(),
  requirements: [release_requirement()],
  retirement: retired?(),
  updated_at: Aura.Model.Common.updated_at(),
  url: Aura.Model.Common.url(),
  version: Aura.Common.release_version()
}

Type describing a Aura.Model.HexRelease

Keys

Examples

%Aura.Model.HexRelease{
 checksum: "4eaafe67a4b2d3a3b7f4637106ce81707cfa0977e6b3b44450cde4c4626a3c1a",
 configs: %{
   "erlang.mk" => "dep_aura = hex 0.9.0",
   "mix.exs" => "{:aura, "~> 0.9.0"}",
   "rebar.config" => "{aura, "0.9.0"}"
 },
 docs_html_url: "https://hexdocs.pm/aura/0.9.0/",
 has_docs: true,
 html_url: "https://hex.pm/packages/aura/0.9.0",
 inserted_at: ~U[2025-06-01 15:13:00.595681Z],
 meta: %{elixir: "~> 1.18", app: "aura", build_tools: ["mix"]},
 package_url: "https://hex.pm/api/packages/aura",
 publisher: %{
   url: "https://hex.pm/api/users/camatcode",
   username: "camatcode",
   email: "cam.cook.codes@gmail.com"
 },
 requirements: [
   %{optional: false, app: "cachex", requirement: "~> 4.0"},
   %{optional: false, app: "date_time_parser", requirement: "~> 1.2.0"},
   %{optional: false, app: "proper_case", requirement: "~> 1.3"},
   %{optional: false, app: "req", requirement: "~> 0.5.10"}
 ],
 retirement: nil,
 updated_at: ~U[2025-06-01 15:13:04.347130Z],
 version: "0.9.0",
 url: "https://hex.pm/api/packages/aura/releases/0.9.0",
 downloads: 15
 }

See Also

Functions

build(m)

@spec build(m :: map()) :: t()

Builds a HexRelease from a map

Parameters

ParameterDescription
mA map to build into a Aura.Model.HexRelease.t/0