ZealDocsets.HexPm (zeal_docsets v0.1.7)

Copy Markdown View Source

Fetches package metadata from the Hex.pm API.

This module is used to resolve versions for --extra-package entries that do not exist in the target project's mix.exs or mix.lock.

Summary

Functions

Returns the latest stable version published for package on Hex.pm.

Functions

latest_stable_version!(package)

@spec latest_stable_version!(String.t()) :: String.t()

Returns the latest stable version published for package on Hex.pm.

Raises a RuntimeError if the package does not exist or if Hex.pm cannot be reached.