Posts 0.2.0: Slugs for titles in any alphabet, and PhoenixKit 2.0
Posts 0.2.0 gives posts, groups and tags a readable address when their title is not plain English, and moves the module to PhoenixKit 2.0 and Comments 0.3.
Slugs from titles in any alphabet
The module made slugs by dropping every character outside a to z and digits. A Cyrillic or Greek title came out as an empty slug, and German “Größe” lost its umlaut and its ß. An empty slug also caused the edit form to make a new one on every later save.
Posts, groups and tags, and the slugs the post and group forms make from the title, now use PhoenixKit core’s slug function, which turns letters into their Latin equivalents instead of removing them. A Russian title now gets a slug in Latin letters.
PhoenixKit 2.0 and Comments 0.3
The module now needs PhoenixKit 2.0 and no longer installs with core 1.7. It also moves to Comments 0.3, the first Comments release for core 2.0 and a security release that fixes stored cross-site scripting in comment bodies.
Upgrading
Core 2.0 replaces its long migration history with a single starting point, V135, and mix ecto.migrate refuses to run on a database older than that. Before upgrading, run mix phoenix_kit.status. If your database is below V135, first install phoenix_kit 1.7.236, migrate until the reported version is V135 or later, and only then move to core 2.0 and Posts 0.2. Posts itself has no migration. Existing slugs are not changed; only new or regenerated ones use the new rule.
Full release notes: Posts 0.2.0
0.2.0 · 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
V135baseline and makes V135 the chain’s floor:mix ecto.migratenow refuses on a database below it rather than migrating. Checkmix phoenix_kit.statusbefore upgrading. A host below V135 must installphoenix_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.
-
phoenix_kit_commentsraised to~> 0.3in step: its 0.3.0 is the first release requiring core 2.0, and is a security release (stored XSS in comment bodies). See its CHANGELOG.
Fixed
- Non-ASCII titles produced an empty slug (PR #15). Five hand-rolled slug
pipelines (
Post,PostGroup,PostTag, and the auto-slug paths inWeb.Edit/Web.GroupEdit) stripped every non-ASCII character, so a Cyrillic or Greek title slugged to""and German “Größe” lost its umlaut and its ß. All five now call core’sSlug.slugify/2withtransliterate: true, which romanizes instead. The empty slug was not merely cosmetic: the edit form read it back as “no slug yet” and regenerated on every subsequent save.
Posts 0.2.0. Install or update: {:phoenix_kit_posts, "~> 0.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.