Skip to content

0.5.0 - 2026-10-27

Choose a tag to compare

@ddon ddon released this 27 Oct 18:33
· 72 commits to main since this release

Changed

  • Core pin widened to >= 2.65.0 and < 4.0.0: works with core 3.x (core 3.0 stops creating the module tables; this module's own chain builds its tables). The floor is the first core with the file_references/0 and expected_schema/0 callbacks, which now carry @impl PhoenixKit.Module.

Added

  • The module supplies the manifest of its 4 tables (expected_schema/0, PhoenixKitComments.ExpectedSchema), so mix phoenix_kit.repair and mix phoenix_kit.doctor check and repair them again, now from the module's own chain instead of core's manifest. Generated from PhoenixKitComments.Migrations by core's dev_docs/squash/generate_module_manifest.exs, never edited by hand. Core uses it from the first release after 2.64.1; before that nothing reads it. Repair is additive (it creates what is missing and reports the rest) and checks the tables only while the database is at the chain's current version. No migration.
  • The module's own migration chain, PhoenixKitComments.Migrations
    (migration_module/0). V1 adopts the four tables core's chain creates for
    comments, phoenix_kit_comments, phoenix_kit_comments_likes,
    phoenix_kit_comments_dislikes and phoenix_kit_comment_media, exactly as a
    fresh core install builds them, and stamps a pkcmt_schema:1 marker. Nothing
    changes on an existing install but the marker; from now on a change to these
    tables ships here instead of in core. A test proves the chain builds the
    tables without core (core's PhoenixKit.TestSupport.ModuleChainCheck).