v0.4.0 (2026-11-02)
On macaw_data 0.10 (#15, #14). macaw_data 0.10.0 answers errors as values: Delivery.new/2 answers {:ok, delivery} or {:error, faults}, with new!/2 its raising twin, and so do Finish, Order.sort/3 and others (see its "Upgrading from 0.9.x"). This release is breaking for an adopter pinning macaw_data ~> 0.9; macaw_component's own API is unchanged.
- Breaking: on
macaw_data ~> 0.10.0(was~> 0.9.0). - The conformance kit's
:bindingscheck rebuilds a fixture's renamed delivery throughDelivery.new/2's value: one it can't rebuild is the finding{:unrenamable, slot, faults}, never a raise (spec/04).
v0.3.0 (2026-11-01)
On macaw_layers 0.4 and macaw_data 0.9, and a slot may ask for a row order (#11, macaw#241). This release is breaking for an adopter pinning macaw_layers ~> 0.3 or macaw_data ~> 0.7: follow their upgrade notes (macaw_layers 0.4.0's Form.read/3 refuses every URL without urls:, and a theme refuses untrusted text; macaw_data 0.8.0's tables are chunked and opaque, 0.9.0's request carries an order). macaw_component's own API only grows.
- Breaking: on
macaw_layers ~> 0.4.0andmacaw_data ~> 0.9.0(were~> 0.3.0and~> 0.7.0). - New: an optional callback
order(slot, settings), the row order a slot asks its source for, andMacaw.Component.order/3,[]without it and{:error, {:bad_order, answer}}for an answer of no order's shape; the conformance kit checks it (spec/01 §1.4).
v0.2.2 (2026-11-01)
Slot.check/3refuses a field amanyrole lists twice,{:duplicate, field}at[role]: a table showed the column twice, a chart would draw the series twice (#10, macaw#237).
v0.2.1 (2026-10-31)
- The drawn states' notices have a static stylesheet,
priv/static/macaw_component/drawn.css(Drawn.stylesheet_path/0, served atDrawn.stylesheet_url/0): a rule for every class a notice emits, every color a theme custom property with the default theme's fallback, and the glyph kept visible in forced-colors mode (#6, macaw#196, spec/02 §6). - The context carries each bound slot's schema (
schemas,%{slot => %Macaw.Data.Schema{}}), andContext.label/3andContext.unit/3read a field's label and unit from it, falling back to the field's name andnil, so a component heads a field in the schema's words (#5, macaw#196, spec/02 §2). - CI runs the family's dependency advisories guard (
ci/advisories.exs, with a reasoned allowlist that defaults empty), so a locked package with a security advisory, or a retired one, fails the pipeline; phoenix_html is locked at 4.4.0 (EEF-CVE-2026-117645) (#4, macaw#214).
v0.2.0 (2026-10-30)
Upgrading from 0.1.5
macaw_component's own functions are unchanged; what changes is the dependencies' terms that pass through them, to a component and to a host.
- Depend on macaw_layers
~> 0.3.0and macaw_data~> 0.7.0. Their upgrade guides ("Upgrading from 0.2.4" and "Upgrading from 0.6.1") apply to any call you make into them directly. - The context's theme holds color terms and string names.
context.theme, and the theme the conformance kit'stheme:option takes, is macaw_layers 0.3's%Macaw.Layers.Theme{}: its series, furniture and literal colors are%Macaw.Layers.Color{}, never CSS text, and its names are strings (Theme.default().name == "default", slots and role names"info"). A component that writes a theme's literal into markup writesMacaw.Layers.Color.to_css/1of it; code that matches:defaultor a slot atom in a theme's fields matches strings. A theme built with a CSS string as a color raises atTheme.new/1: write~RGB"#3b6fa8"orColor.parse!/1.Macaw.Component.Drawn.role/1andglyph/1answer as before, andTheme.cue/1takes either spelling. - A
:colorvalue is a color term. A:colorparameter's default and value (Macaw.Data.Parameter), and a:colorfield's values in a delivery, are a%Macaw.Layers.Color{}literal or a theme-relative typed color ({:color, "good"}); a string,"#2e7d32"or"red", is refused. Declare defaults with~RGB, parse CSS text at your input edge withColor.parse!/1, and draw withColor.to_css/1. The rendered markup is unchanged: the drawing rules and the:colorscheck still read literal colors as CSS text in presentation attributes (spec/02 §5, spec/04 §2). - Category values read back as strings. A
:categorycolumn of a packed delivery (Delivery.table/2, thenTable.rows/1,get/2orcolumn/2) answers"ok"for:ok;nil,trueandfalseare kept. Compare with strings, or withMacaw.Data.Operations.same?/2. A delivery's rows read withDelivery.rows/1are as the source gave them, as before. - A schema's names are strings, and its version changes. A
%Macaw.Data.Schema{}a slot is checked against holds its field names as strings;Slot.check/3andSlot.resolve/3take either spelling and answer as before. EverySchema.version, and the operations registry's digest, differs from macaw_data 0.6's: regenerate any stored version or cache key. A stylesheet's path (Macaw.Component.Stylesheet.path/1, the SHA-256 of its bytes) is unchanged.
Changes
- Breaking: on
macaw_layers ~> 0.3.0andmacaw_data ~> 0.7.0(#3, dco-tek/macaw/macaw#188): colors are terms, a theme's names are strings, category values read back as strings, and every digest and schema version changes. No code of macaw_component's changed; the guide above lists what reaches a component or a host.
v0.1.5 (2026-10-30)
- The shared client module for hooks,
priv/static/macaw_component/client.js: the announcer (two regions found or created once per page; requests queued, merged and rate-limited, undeclared names dropped) and the client bus (window.MacawBus; undeclared keys refused, values passed through uninspected). One ES module, no build step, no dependencies; served withPlug.Static, from: {:macaw_component, "priv/static"}and imported from/macaw_component/client.js.privships in the package (dco-tek/macaw/macaw#142, spec/02 §8). %Macaw.Component.Context{}gainsbindings, the cell's resolved bindings,%{slot => %{role => field | [field, …]}},%{}by default and checked byContext.new/1at paths under[:bindings];Context.field/3answers the field bound to a role, amanyrole's list, ornil. A slot's binding now reaches the component, inside its context (dco-tek/macaw/macaw#194, #2, spec/02 §2).Macaw.Component.Slot.resolve/3: the resolved role → field map of a bindingcheck/3passes, an unboundwindowrole holding the window field and an unbound optional role absent; the one source of the defaulting rule for the core and adopters (dco-tek/macaw/macaw#194, #2, spec/01 §1.3).- The conformance kit: a
bindings:fixture key,%{}by default, carried by every context the kit builds; and a thirteenth check,:bindings, which renames each slot's bound fields to fresh tokens and finds{:ignores_binding, slot}when the render doesn't follow them. Fixtures without bindings are not probed (dco-tek/macaw/macaw#194, #2, spec/04 §2, §3). Macaw.Component.Client.attributes/1: thedata-mw-announcesanddata-mw-localattributes that hand a component's declared announcement names and bus keys to the client, withannounces_attribute/0,local_attribute/0,module_path/0andmodule_url/0.
v0.1.4 (2026-10-29)
macaw_data ~> 0.6.0: a delivery keeps the rows its source gave (dco-tek/macaw/macaw#185, #186).
v0.1.3 (2026-10-28)
- The macaw logo in the docs and the README (macaw#175).
v0.1.2 (2026-10-28)
- On Hex: depends on
macaw_layers ~> 0.2.2andmacaw_data ~> 0.5.3from Hex instead of their git tags; the README installs from Hex (macaw#155). - The README opens with the early-release notice (macaw#174).
v0.1.1 (2026-10-28)
- Dependencies named by their
dco-tek/macawgroup paths, on macaw_data v0.5.2 (macaw#152). - Package metadata for Hex: the public home, the changelog link, the files shipped, and docs with
ex_doc(macaw_compose#155).
v0.1.0 (2026-10-28)
- macaw_component v0.1.0: the component contract, rendering, packages and the conformance kit (macaw_compose#143)