Weft v0.1.2
Fixes found while running the engine in production on golovanov.dev.
Fixed
- Data passed to
Alert::send()/Alert::critical()as$contextnow reaches AlertLoop: it is
sent as the event'spayload, and the trace id travels as the top-leveltrace_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 analert.failedevent (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 acategory, the AlertLoop field for your own labels —$typestays 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:.