v0.7.0 (2026-11-05)
On macaw_data 0.13 (#30, #31). This release is breaking only for an adopter pinning macaw_data ~> 0.12. macaw_component's own API is unchanged, and one kit check finds more.
Upgrading from 0.6.x
- Depend on
macaw_data ~> 0.13.0and follow its "Upgrading from 0.12.x" for any call you make into it directly. The ones to look for areMacaw.Data.Reduce.lttb/3andm4/3, andMacaw.Data.FFT.magnitudes/1andwindow/2, which now answer{:ok, value}or{:error, reason}. - A component whose declarations read a bindable parameter with a nil default now has a finding,
{:reads_bindable, name}, from the kit's:declarationscheck. Have it stop reading the parameter there.
Changes
- Breaking: on
macaw_data ~> 0.13.0(was~> 0.12.0) (#30, #31). - The conformance kit's
:declarationscheck probes a bindable:number,:textor:categoryparameter with a nil default (macaw_data 0.12.1), so a component whose declarations read one is the finding{:reads_bindable, name}. It was skipped.:time,:colorand:pointstay unprobed, with a nil default as with a real one (#28, #29).
v0.6.0 (2026-11-04)
On macaw_data 0.12, and an order key can name a role (#20, #21). This release is breaking for an adopter pinning macaw_data ~> 0.11. macaw_component's own API only grows: a component, a host and a fixture that use no role key change nothing else.
Upgrading from 0.5.x
- Depend on
macaw_data ~> 0.12.0and follow its "Upgrading from 0.11.x" for any call you make into it directly. In a component and in a test the one to look for isDelivery.rows/1, now{:ok, rows}: callDelivery.rows!/1for rows a delivery holds, or match the value. A served map built by hand addsstale. - A host resolves a slot's order before its request. Call
Macaw.Component.resolve_order(module, slot, settings, bindings)where it calledMacaw.Component.order/3, withbindingsthe slot'sSlot.resolve/3map, and put its answer in the request and the pooling key. The errors are the same{:error, {:bad_order, answer}}, and a field-keyed order answers as it did. A host left onorder/3passes a role key on toMacaw.Data.Source.Order, which refuses it. - A component may ask for an order by role:
def order("rows", _settings), do: [{{:role, "t"}, :desc}]. It needs nothing else, butbudget/3doesn't see bindings: if an optional role is left unbound its key drops, and a budget still caps the rows in the source's own order. - A fixture's
bindingsmust be resolved for a role in the order. The kit's:ordercheck resolves a role-keyed order through a fixture's bindings for the slot, so a required role in the order, awindowrole's field included, must be there, else{:unresolved_order, slot, answer}. A fixture without bindings for the slot isn't resolved.
Changes
- Breaking: on
macaw_data ~> 0.12.0(was~> 0.11.0) (#20, #23). - The conformance kit's
:bindingscheck reads a table delivery's rows throughTable.rows/1's value: rows it refuses (a hand-built delivery's) are the finding{:unrenamable, slot, faults}, never a raise. The rename keepsserved, withstale, unchanged (#20, #23). - New: an order key can name a role (#21, #24, spec/01 §1.4).
order/2may answer{{:role, name}, direction}, beside field keys, so a component can ask for the newest rows by itstrole whichever field a document binds.Macaw.Component.order/3checks each against the slot's declarations: an undeclared role, one named twice, amanyrole and a role with a type that has no order are{:bad_order, answer}. The newMacaw.Component.resolve_order/4answers the order in fields for the slot's resolved bindings, for the request; a host calls it in place oforder/3. The conformance kit's:ordercheck runs both, its new finding{:unresolved_order, slot, answer}a fixture's bindings that lack a required role in the order. Macaw.Component.order/3answers{:bad_order, answer}for an improper list, where it raised fromMacaw.Data.Source.Order.shape/1(#24, macaw_data#169).- Spec 02 §6 names the
stalestate's fact, a delivery'sserved.stale(#20, #23).
v0.5.0 (2026-11-03)
On macaw_data 0.11 (#17, #16). This release is breaking only for an adopter pinning macaw_data ~> 0.10: follow macaw_data's "Upgrading from 0.10.x". macaw_component's own API is unchanged.
- Breaking: on
macaw_data ~> 0.11.0(was~> 0.10.0) (#17, #16). macaw_data 0.11 answersWindow.position/1in integer Unix µs for every kind of time, compares windows of mixed kinds by instant ({:window, :mixed}is gone) and reduces a Date or NaiveDateTime series as a UTC one; macaw_component calls none of these, and its behavior is unchanged. An application on macaw_data 0.10 follows its "Upgrading from 0.10.x". - The kit's checks are stated from
Conformance.checks/0rather than as a count: its doc, the README and spec 04 §2 said thirteen after 0.3.0 added:order, the fourteenth, and spec 04's table now has the:orderrow. A doctest holds the list (#18, #13).
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)