Skip to content

PhoenixKit 2.43.1: No media files in the package, folder ownership enforced

PhoenixKit 2.43.1 fixes two problems in 2.43.0: the Hex package carried uploaded media files from development, and restricted Media viewers could still change another person’s folder.

The 2.43.0 package included about 9 MB of files under priv/media. They are excluded now, and the release check refuses media or generated sitemaps before publishing.

A Media viewer limited to their own files could change the colour, header or cover of a folder someone else created, because those actions named the folder in a way the ownership check did not look at. The check now covers it.

Cache entries with a wall-clock expiry, such as end of day, also no longer outlive their deadline when loading is slow or the cache is busy.

Full release notes: PhoenixKit 2.43.1

2.43.1 · 1 October 2026

Fixed

  • Uploaded and generated media no longer ship in the Hex package. priv/media is excluded even when its files are ignored by Git. The release gate inspects the built package and refuses media or generated sitemaps before publication.
  • Restricted Media viewers cannot change another person’s visible folder. Folder colour, header and cover events use folder-uuid; the ownership guard now checks that parameter as well as the other folder identifiers.
  • Wall-clock cache deadlines survive slow loads and a busy cache process. Cache.remember/4 subtracts loading time from a boundary-based lifetime and skips caching a value loaded after its deadline. An explicit Cache.put/4 expiry is measured when called, so waiting in the cache’s mailbox cannot extend it.
  • Admin-page generator tests no longer overwrite a concurrently running test’s repo configuration. The generator tests run synchronously.

PhoenixKit 2.43.1. Install or update: {:phoenix_kit, "~> 2.43"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.