Skip to content

Releases: Spaghetti-Dojo/konomi

v0.3.0

Choose a tag to compare

@widoz widoz released this 11 Jul 17:50

Konomi 0.3.0

This release replaces Konomi's per-domain storage with a single, swappable storage abstraction backed by a dedicated database table, and adds the plugin lifecycle plumbing to provision it.

✨ Highlights

Storage abstraction & custom-table driver

  • New Storage\Storage interface as the single persistence contract for all interactions, with a value-object model: Record, StorageKey, and an Axis enum (Entity / User) that tells the driver which column a bare $id addresses.
  • Ships one core implementation, Storage\TableStorage, writing to a custom {prefix}konomi_interactions table instead of post/user meta.
  • Registered once as a shared container service and consumed by both the Post and User repositories — a single driver serves both domains.
  • Pluggable: swap in an alternative backend (e.g. a meta-based driver) from any consumer plugin via a Modularity ExtendingModule, without re-registering the repositories. See the new docs/storage-drivers.md for the contract and a full meta-storage reference implementation.

Database & schema management

  • New Database module with InteractionsTable and SchemaManager to define and manage the custom table.

Plugin activation lifecycle

  • New Activation module (Activable, ActivationTasks, ActivationExecute) that provisions the interactions table on plugin activation.

Item registry

  • New Post\ItemRegistry and ItemRegistryKey for managing registered items.

Block hooks

  • New Blocks\Konomi\HookedContent and block-hooks support for auto-injecting block content.

♻️ Changes & removals

  • Removed the old per-domain storage classes (Post\Storage, Post\StorageKey, User\Storage, User\StorageKey) and the RawDataAssert validators, superseded by the shared storage layer.
  • Removed committed front-end build artifacts (dist/, build-module/) from version control.
  • Cleaned up bootstrap/autoloading in konomi.php; version bumped to 0.3.0.

✅ Testing

  • Added a functional test suite (tests/functional/) covering the storage driver, database module, block hooks, and Post/User repositories, plus an in-memory storage helper for tests.

Full changelog: v0.2.0...0.3.0

v0.2.0

Choose a tag to compare

@widoz widoz released this 20 Jan 21:05

What's Changed

  • Add tests for Bookmark and Reaction blocks with WorDBless integration by @widoz in #13
  • Remove Konomi-related modules and assets by @widoz in #14
  • Implements Profile Page by @widoz in #19
  • Fix inconsistent Storage InMemory Registry Sync by @widoz in #23

Full Changelog: v0.1.0...v0.2.0

v0.1.0

Choose a tag to compare

@widoz widoz released this 14 Jun 16:28
v0.1.0
655a5d1

First Release