Skip to content

Warehouse 0.3.0: Moves to PhoenixKit 2.0

Warehouse 0.3.0 moves the PhoenixKit stock module to PhoenixKit 2.0. Stock, documents and the warehouse pages work as before: the main change is the core version it needs.

Requires PhoenixKit 2.0

The core requirement moves from ~> 1.7.231 to ~> 2.0, so this release no longer installs next to core 1.7. The warehouse does not call any of the migration internals that changed in core 2.0.

The packages the warehouse builds on move in step, each to its first release for core 2.0: Billing 0.7, Catalogue 0.13, Comments 0.3 and Locations 0.4. Comments 0.3.0 is a security release that fixes stored cross-site scripting in comment bodies, so the comment threads on warehouse documents get that fix too.

A translated permissions row

The warehouse’s row in the admin permissions matrix now carries the module’s translation settings, so it can show its label in the admin’s language instead of a raw English key, as the sidebar entries already did. The row reads Warehouse, described as Warehouse stock, stocktakes, and document management. There is no change to who can open the warehouse pages.

Upgrading

Core 2.0 squashes its migrations into a single V135 baseline and refuses to migrate a database below it. Run mix phoenix_kit.status before upgrading. If it reports a version below V135, install phoenix_kit 1.7.236 first and migrate until the version is at least V135, then move to core 2.0 and Warehouse 0.3. A site already at V135 or later updates core and the warehouse together.

Full release notes: Warehouse 0.3.0

0.3.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 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.

  • Sibling pins raised in step, each to that package’s first release requiring core 2.0: phoenix_kit_billing → ~> 0.7, phoenix_kit_catalogue → ~> 0.13, phoenix_kit_comments → ~> 0.3, phoenix_kit_locations → ~> 0.4. phoenix_kit_comments 0.3.0 is a security release (stored XSS in comment bodies); see its CHANGELOG.

Changed

  • Stops calling the deprecated Scope.admin?/1 (PR #13). Core renamed it to can_access_admin_area?/1 in 1.7.214 and kept the old name as a @deprecated delegate, so this is a pure rename with no behaviour change — it silences a deprecation warning host apps were eating on every compile with no way to fix it themselves.

Added

  • Gettext keys in permission_metadata (PR #14) so the permissions-matrix rows render translated labels instead of falling back to a raw key, plus a test pinning the metadata shape — a missing key degrades silently into an untranslated label rather than an error.

Warehouse 0.3.0. Install or update: {:phoenix_kit_warehouse, "~> 0.3"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.