Skip to content

Posts 0.2.1: Corrected code comments, no change to the module

Posts 0.2.1 changes nothing for a running site. It corrects code comments that 0.2.0 introduced about how post, group and tag slugs are made.

The comments said that PhoenixKit core’s slug function takes no language option. That was true of core 1.7, but core 2.0 supports one. The module’s three slug paths pass no language, and never did, so the slugs it makes are exactly the same as in 0.2.0.

Like 0.2.0, this release needs PhoenixKit 2.0 or later. A site still on core 1.7 has to move its database to core 2.0 first, following the steps in the 0.2.0 notes.

Full release notes: Posts 0.2.1

0.2.1 · 10 August 2026

Changed

  • ⚠️ Requires phoenix_kit ~> 2.0. The core pin moved to ~> 2.0, so this release no longer resolves against core 1.7.

    Core 2.0.0 squashes the migration chain into a single V135 baseline and makes V135 the chain’s floor: mix ecto.migrate now refuses on a database below it rather than migrating. Check mix phoenix_kit.status before upgrading. A host below V135 must install phoenix_kit 1.7.236 — the migration bridge, the last release carrying the full pre-squash chain — migrate until the reported version is at least V135, and only then move to 2.0.

    This package does not call migration internals, so the change is the pin itself.

Documentation

  • Corrects a wrong comment introduced in 0.2.0. That release rewrote PR #15’s slug comments to claim core’s Slug.slugify/2 has no :locale option. True of core 1.7; core 2.0.0 rewrote PhoenixKit.Utils.Slug to delegate to the locale_slug package, where :locale is fully supported — Slug.slugify("Größe Fußball", locale: "de") is "groesse-fussball" while locale: "et" gives "grosse-fussball". PR #15’s original comment was right.

    No behaviour changes. These three schemas slug a single-language name with no language in scope, so they pass no locale and never did; slugs are byte-identical. Only the comment was wrong. It now also notes that :transliterate is accepted-and-ignored under core 2.0 (romanization is always on), so it is redundant rather than load-bearing.


Posts 0.2.1. Install or update: {:phoenix_kit_posts, "~> 0.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.