Skip to content

v0.1.0

Latest

Choose a tag to compare

@sambhav-aggarwal sambhav-aggarwal released this 01 Jul 11:51
9897942

Feature release: expands the package into a fuller commenting toolkit, backward-compatible and framework-agnostic.

Highlights

  • Column rename textbody, with text/comment model aliases (read + write) for backward compatibility.
  • Threading via reply_to_comment_idreplyToComment() / replies() relations, HasComments::rootComments().
  • Reactions — per-user emoji reactions (react() / unreact()), one per user per comment; reaction column pinned to utf8mb4 + utf8mb4_bin on MySQL/MariaDB and trimmed on write.
  • Edit history (opt-in)comment_changelogs snapshots gated by config('comments.changelog').
  • Lifecycle eventsCommentCreated, CommentUpdated (carries previousBody), CommentDeleted, ReactionAdded, ReactionRemoved.
  • MentionsmentionedHandles() parses @handles; delivery left to the app.
  • Publishable config — overridable models, user_model, changelog, mentions.pattern, auto_load_migrations.
  • Toolingphp bumped to ^8.1; Testbench-based test suite (12 tests).

Upgrade note

The textbody rename is a breaking DB change for existing installs (code paths are aliased). Apps that own the comments schema (e.g. otper) should set auto_load_migrations => false.