ericmj

ericmj

Elixir Core Team

Release: Release v2.5.0 · hexpm/hex · GitHub

Announcement: Hex v25 released | Hex

Enhancements

  • Add organization-defined dependency policies that filter the package versions available during dependency resolution. An organization publishes a named policy through its repository, and a project opts into one with the policy config (HEX_POLICY, [org: "ORG", name: "NAME"] in the mix.exs :hex block, or mix hex.config). A policy constrains one or more repositories — typically the organization’s own repo and hexpm — and for each can block releases that:

    • carry a security advisory at or above a minimum severity
    • are retired for one of a given set of reasons
    • are newer than a release-age cooldown window

    Per-package allow/deny overrides take precedence over the restriction (an allow also exempts the release, and the most specific match wins), and versions already in mix.lock are never filtered. Use mix hex.policy show to summarize the active policy and mix hex.policy why PACKAGE to see why specific versions are blocked.

  • Add a configurable release-age cooldown to dependency resolution that withholds freshly published versions until they reach a minimum age, mitigating supply-chain attacks where a compromised release is pulled into projects before it can be detected and retired. Configure it with the cooldown config (HEX_COOLDOWN), accepting durations like 7d, 2w, or 1mo, and exempt specific repositories with cooldown_exclude_repos. Versions already in mix.lock, and locked versions that are retired or carry an advisory, bypass the cooldown so existing projects and security fixes are never held back.

  • Warn about packages with known security advisories during mix deps.get and mix deps.update

  • Add mix hex.search QUERY to search documentation from the terminal, and move package name search to mix hex.package search

  • Add --page and --format md options to mix hex.docs

  • Support JSON output in mix hex.outdated

  • Annotate cooldown-held versions in mix hex.outdated

  • Validate package files in mix hex.build

  • Accept LicenseRef- license identifiers in mix hex.build

  • Use subdomain URLs (PACKAGE.hexdocs.pm) for package docs

  • Escape terminal control sequences in server-provided x-hex-message headers

Bug fixes

  • Fix a crash when a server responds with an x-hex-message header
  • Deduplicate aliased security advisories
  • Warn when the OAuth session cannot be refreshed instead of silently sending unauthenticated requests

Deprecations

  • Deprecate mix hex.organization auth ORGANIZATION without --key; authenticate as a user with mix hex.user auth instead, or pass a pre-generated organization key with --key for CI
  • Deprecate authenticating to organization repositories with a stored key; a future release will require mix hex.user auth or a short-lived organization token
  • Deprecate authenticating to organization repositories with HEX_REPOS_KEY; authenticate per organization with mix hex.organization auth ORGANIZATION --key KEY (HEX_REPOS_KEY continues to authenticate the base hexpm repository and trusted mirrors)

Showing Posts 1 to 2

arcanemachine

arcanemachine

The Hex folks have been busy lately! We all appreciate the work you’re doing!

abrookewood

abrookewood

Having those first three items built into the ecosystem is amazing work. Thank you.

— All posts loaded —

Where Next? Top

Trending in News Top

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
261 13183 112
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
charlenopires
Hi everyone :waving_hand: I’ve been working on PhiaUI, an open-source UI component library for Phoenix LiveView, and I wanted to share i...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews