Skip to content

Weft v0.1.2

Choose a tag to compare

@golovanov-dev golovanov-dev released this 30 Jul 16:15
· 2 commits to main since this release

Fixes found while running the engine in production on golovanov.dev.

Fixed

  • Data passed to Alert::send() / Alert::critical() as $context now reaches AlertLoop: it is
    sent as the event's payload, and the trace id travels as the top-level trace_id — previously
    both were dropped on arrival.
  • A failed alert delivery is no longer silent: transport errors and non-2xx responses are recorded
    on the request trace as an alert.failed event (metadata only — never the alert body). Delivery
    stays best-effort and non-blocking.

Performance

  • Vite asset tags now include preload hints in production: rel="modulepreload" for the entry and
    for every chunk it statically imports (walked recursively through the manifest), and
    rel="preload" for stylesheets. Dynamic imports are deliberately left out.

Added

  • Alert::send() accepts a category, the AlertLoop field for your own labels — $type stays the
    AlertLoop event type (incident, business_event, audit).

Upgrade: none required. golovanov/weft v0.1.2 is API-compatible with v0.1.1 — category is a new
optional argument at the end of Alert::send(). One thing worth checking in your own code: if you
passed a label of your own as $type (the third argument), AlertLoop rejects it — move it to
category:.