v0.6.0 (2026-12-02)

Breaking: the package split, pages and their graph, templates, containers, presets and variables, and a render that costs what it draws, on macaw_base, macaw_layers, macaw_data 0.21, macaw_units, macaw_format and macaw_component 0.13 (#478, #485–#490). What every Macaw package shares is macaw_base's, units macaw_units', presentation macaw_format's, and the definition readers macaw's own (Macaw.Definition); macaw#478's Renames table lists each moved name. Pages, regions, scopes, exports and ranked pulses (#365–#368), templates and their stack (#367), containers (#369), presets, variables and the request-time check (#370), declared view controls and a visitor's row changes (#446), colors declared by the surface (#482), and the hot path's cost work (#380–#383, #408–#419, #434, #435, #465).

  • The family's packages from Hex (#490, #478 step 9): macaw_base ~> 0.1.1, macaw_layers ~> 0.6.0, macaw_data ~> 0.21.1, macaw_units ~> 0.1.0, macaw_format ~> 0.1.0 and macaw_component ~> 0.13.0, where they were pinned by git; CI fetches nothing with the job's token.
  • Breaking: units are macaw_units' and presentation macaw_format's; macaw_data at 6cd29cb (#489, #487, dco-tek/macaw/macaw#478 steps 4–5, spec/00 §4). macaw_data deleted its units and formats, which moved to two new packages, and macaw takes both by git, pinned by commit, until the family's release: macaw_data at 6cd29cb, macaw_units at 2ae8303, macaw_format at 8304686, and macaw_component at its #110 merge, which takes the same.
  • Breaking: macaw stands on macaw_base; the shared modules are Macaw.Base.* (#486, #485, dco-tek/macaw/macaw#478 step 3, spec/00 §4). What every Macaw package shares moved out of macaw_layers into macaw_base, and macaw takes macaw_base, macaw_layers, macaw_data and macaw_component by git, pinned by commit, until the family's release:
  • macaw_data at its v0.20.1 release; macaw_component at its #104 merge (#483). 0.20.1 holds no color, makes the readers' parts public and resolves a measure's unit once. It is pinned by its tag's commit until it is on Hex, then ~> 0.20.1. macaw_component takes Hex macaw_data as macaw does.
  • New: macaw reads and writes definition documents, Macaw.Definition (#484, #480, dco-tek/macaw/macaw#478 decision 2, spec/15). The map and JSON forms of a schema, a derived source and a static source move here from macaw_data, which takes and gives plain values only:
  • New: a surface declares the colors of a field's values, colors: (#482, #479, spec/06 §3.1). Data holds no color, so the color a design wants for a team, a platform or a state is the design's, declared once: colors: %{"platform" => %{"ios" => c}}.
    • It is judged when the surface is built, a non-color being {[:colors, field, value], {:type, :color}}, and written by both forms only when not empty.
    • Every cell's render context carries it (Macaw.Component.Context's colors, macaw_component#101), so the Frame, its Legend and the built-ins color a value alike: the surface's color, else its status role, else its position.
    • macaw_component is pinned to its main at #102's merge.
  • :color is macaw's own type; a column of colors is :term (#481, #479, spec/03 §1.1, dco-tek/macaw/macaw_data#446). macaw_data holds no color now, so it no longer judges colors:
    • Unchanged for you: a :color state source, page param and template param work as before. Macaw.ColorType judges their values: a literal or a theme's color value, never a string. To macaw_data such a parameter is a :term one.
    • Upgrading: a component's color setting is a :term parameter, checked by the component itself. It is no longer :color, which macaw_data's Parameter refuses as {:enum, types}.
    • The built-in table and record take :term columns where they took :color. A cell holding a literal color is drawn as its CSS text, a theme color as its name, and any other term as Elixir writes it, never raising.
    • macaw_data and macaw_component are pinned by git to their mains at macaw_data#447's and macaw_component#100's merges (macaw_data with override: true) until they release (#483).
  • macaw_data ~> 0.19.0 from Hex (#472, #471). macaw takes macaw_data 0.19.0 from Hex, the source manager release (dco-tek/macaw/macaw_data#436), where it was pinned by git with override: true, and macaw_component at the commit that asks the same (dco-tek/macaw/macaw_component#98), so nothing overrides.
  • The weekly stress job runs on an image without ps, and every branch pipeline runs its self-test (#470, #469, dco-tek/macaw/macaw_data#420). ci/stress.exs, re-vendored from the family reference, tells a run's pid from /proc/PID, else ps, else reports that it can't, never crashing; the stress-self-test job runs elixir ci/stress.exs --self-test on the stress job's image in every branch pipeline.

Upgrading from 0.5.0

  1. macaw reads no configuration: config :macaw, packages:, layouts:, ceiling: is ignored (#319, #325, spec/00 §4.4 rule 3). Build the registry once at boot and pass it, with the ceiling, to Macaw.Surface.show/2:

    # config/config.exs: your app's own key
    config :my_app, :macaw, packages: [MyApp.Components], ceiling: 1_000
    
    # at boot (MyApp.Application.start/2): a bad package fails here
    registry = Macaw.Registry.from_config!(Application.fetch_env!(:my_app, :macaw))
    
    # every call
    Macaw.Surface.show(surface, sources: sources, registry: registry, ceiling: 1_000)
    • Macaw.Registry.default/0 and default!/0 are removed. Use from_config/1 and from_config!/1, which already took the same keys as a keyword list.
    • show/2 without registry: now validates against the built-in registry (Macaw.Registry.from_config([])), so a surface naming another package's component answers :unknown_component until you pass yours.
    • show/2 without ceiling: answers {:error, [{[:ceiling], :required}]}, whatever the configuration says.
    • The tutorial's chapter 10 shows a MyApp.Boot that builds the registry and keeps it.
  2. macaw is on macaw_data ~> 0.18.0 and macaw_component ~> 0.12.0 (#347, #350). Follow their upgrading notes for any call you make into them directly: macaw_data's for 0.15 through 0.18, macaw_component's for 0.12. Those likeliest to reach a host of macaw:

    • a component's hook file must default-export its hook object (export default {…}), or the component no longer compiles;
    • Macaw.Component.budget/4 and reducer/4 take the cell's %Macaw.Component.Context{} in place of a size;
    • Macaw.Surface.fetch/2 and readers/2 now judge a mode:, theme:, heading_level: or links: in their env as rendering does, since each budget is asked in the cell's context: a bad one draws every bound cell invalid, where fetching ignored it.
  3. The stat's and meter's text changes for every reading whose field has a measure (#323, #351). If you compare rendered text, expect Macaw.Data.Format's writing: 30ms where it was 30 and ms, 1.50 MB where it was 1500000, 91.40% where it was 0.914. A number with no measure takes the axis's notation (45,000, 1.5M). The stat's <span class="mw-stat-unit"> and its .mw-stat-unit rule are gone, since the unit is part of the reading. Macaw.Builtin.Reading.format/2 is removed; use Reading.writer/3 and Reading.write/2.

  4. A fetched delivery holds its packed table (#381, spec/06 §3.5). Macaw.Surface.fetch/2 packs each delivery into a %Macaw.Data.Table{} once, so a component of yours reading Delivery.rows/1 gets the table's rows, normalized as packing normalizes them (an integer beside floats reads back a float, a naive time a UTC DateTime, a category's atom its string), where it had the rows as the source gave them. Read Delivery.table/2 and the packed column reads (Table.fold_column/4) instead, which answer the table at once.

  5. Macaw.Surface.legal/2 answers each state's legal values as a MapSet (#413, #424, spec/07 §2.2), where it answered a list. Hand it to Macaw.State.apply/3's legal: as before. If you read the values yourself, use MapSet.member?/2 or Enum over the set, and don't count on their order. A list given as legal: is still accepted, spelled at each call.

  6. A validated cell holds stack, not layers (#418, #428, spec/07 §1.2). Macaw.Surface.Validated's cells held their settings layers, built on every validation. They now hold stack, %{preset, own}, what the layers are built from, and Macaw.Surface.explain_settings/2 builds the layers when asked. If you read a cell's layers, call explain_settings/2, or Macaw.Preset.layers/3 over stack and the component's defaults.

  7. The table's render is keyed parts, not {:safe, iodata} (#434, #438, spec/05 §6.1). Macaw.Builtin.Table.render/2 answers a %Macaw.Builtin.Table.Rows{}, safe HTML whose flattened bytes are the table's as before, in every mode. Macaw.Surface.render/2,3 and anything flattening a render with Phoenix.HTML.Safe.to_iodata/1 (as the component contract's Phoenix.HTML.Safe.t() asks) see no change. Code that matches {:safe, _} on the table's own render, or hands it to Phoenix.HTML.safe_to_string/1, flattens it with Phoenix.HTML.Safe.to_iodata/1 instead.

  8. Every table has a first setting and per-cell <cell>.first state (#435, #440, spec/05 §6.1). The table's new range event sets its new bindable first parameter by a default action, so a table cell with no actions gets the state <cell>.first (a number, 0), and Macaw.State.values/1, Macaw.Surface.expand/2 and a persistence carrier show it beside <cell>.sort and <cell>.order. Code that matches a table's exact state, bindings or actions adds it. In :live the table's render is a range of its rows (see Changes); Surface.render/2,3 in any other mode is unchanged.

Changes

  • Added: the table draws only the rows its runtime doesn't already hold (#465, #466, spec/05 §6.1). Handed macaw_component's new held assign (its spec/02 §1.2), a map from {scope, version} to the markup a runtime already placed, Macaw.Builtin.Table.render/2 still reads every row's key, version and order, and answers each row held by its scope and version with the held markup without drawing it; every other row, and every row of a chunk with no version, is drawn, and an entry under another scope is ignored. Given held rows it reads the shown columns only if a row isn't held. Flattened, the render is the bytes it answers given held: nil, which a property holds over generated tables, settings, modes and ranges. Measured 2026-11-23 for a 1,000-row packed table with an identity: 275,511 reductions drawing every row, 30,464 with every row held. Rendering with held: nil, or without the assign, is unchanged. On macaw_component at the commit adding held (macaw_component#93, #94), whose :held conformance check the table passes.

  • Security: phoenix 1.8.16 → 1.8.17 (EEF-CVE-2026-128361 and EEF-CVE-2026-129344, both HIGH) and phoenix_live_view 1.2.13 → 1.2.15 (EEF-CVE-2026-126334, MEDIUM), the releases that fix them (#461).

  • Added: Macaw.Page.Graph.describe/1, the page's data flow as plain nodes and edges (#451, #459, spec/06 §1.4). Of a page's graph, or a %Macaw.Page.Validated{}, it answers {:ok, %{nodes, edges}} for a diagram drawn by a library macaw doesn't depend on (macaw_frame's diagrams.page_flow): each node %{id, kind, label, surface, rank}, its kind :source, :derived, :state, :export or :cell, every node of the graph and every cell a binding ends at, but a standard state no binding reads; each edge %{source, target, kind, label}, one per binding, its kind the binding's and its label that kind's word and what it binds ("slot rows", "request rows.service"). It reads the graph's own order, ranks and edges, costing their size. Anything else is {:error, [{[], {:type, :graph}}]}.

  • Added: Macaw.Page.explain/2, the page document shown whole, with what the host supplies marked as the host's (#449, #454, spec/06 §1.3). Of a page and an env (surfaces: required; sources:, host:, registry:, viewer:, manager: and links: optional), it answers {:ok, explained}: Macaw.Page.to_map/1's map with surfaces, every surface the page holds, panes among them, in its Macaw.Surface.to_map/1 form, and host, each part the host supplies named and marked host: true with whether the env gives it: each source by name with the paths that bind it, each {:host, key} value, the registry, auth (the viewer) and the callbacks "links.to" and "manager". Only names are read of them: no source configuration, credential, viewer, callback or host value appears. Without host, the page's and each surface's map rebuild them through from_map/2. A bad env is its faults by key, and a surface the page names that surfaces: doesn't hold {:unknown_surface, name} at its path.

  • Added: a reset action takes the view back to where the page started (#446, #448, #455, spec/03 §1.3). A cell action %{on: event, reset: target}, beside set and navigate: :view takes every :surface state back to its initial value (the declared states, the variables, each cell's sort, order and range, selection and window), :page the :page states too, and a list names the states, a :viewer preference such as theme among them; :session and :shared state are refused even when named. It applies through Macaw.State.apply/2, answering the changed names, so affected/2 fetches and renders their readers alone; writes/2 lists what it takes back. Macaw.State.reset/3 is the effect alone, pure, costing the states it resets: given legal:, a values_from initial no longer among the current values falls back to nil (a state's declared default is its literal initial, the value judged) and is reported; apply/3 applies the same fallback for the names writes/2 answers. With no socket the reset control is a link to the page with the reset states' params removed. window's own reset event is its one-state case, unchanged. Macaw.State.apply/2 now reads its changed names from the writes rather than every state.

  • Added: rendering applies the viewer's chosen theme (#450, #457, spec/03 §1.7.3, spec/06 §3.6.1, spec/12 §1.1). A registry holds themes: the built-in "default", "dark", "color_safe" and "print", and the host's, given as themes: to Macaw.Registry.new/2 or from_config/1, looked up with Macaw.Registry.theme/2 and listed with themes/1. When the theme preference names one, every cell's context carries it, whatever theme: the env gives, and the surface's div carries its class, mw-surface mw-theme-<name>. Macaw.Surface.theme/2 answers what a render applies, with the theme's stylesheet {path, css} for the page to link. A name the registry doesn't hold is a fault in its answer, and the render falls back as if unset. Unset, rendering is byte for byte what it was. A host no longer reads the preference back to restyle the page.

  • Added: a visitor's own row changes: a schema-driven add form, a remove control in each row, and reset: :all (#446, #453, #462, spec/13 §3, spec/05 §6.8). Two actions, %{on: event, add: source} and %{on: event, remove: source}, change the visitor's overlay of a source (Macaw.Overlay), held in %Macaw.State{} at :session scope and never written to the source. The host gives each changed source a policy, Macaw.State.new/2's overlays: (Macaw.Overlay.Policy: its row rules:, whether this viewer may write:, where it is held:, :visit or :session, how its params select added rows (filters:), and max:); a changed source with no policy is a fault. Readers see the source's rows with the overlay applied, packed: removed rows are found by matching their identity's bytes in the column's buffers and cut out by slices, and added rows are appended as their own chunks. "macaw.add_form" takes its fields from the source's schema and shows each refusal at its field; the table's new remove parameter gives each row a remove control named by its identity ("Remove Hyacinth"). With no socket both are POST forms, read and applied by the new Macaw.State.submit/4, which the host routes; links: takes hidden:, the fields every POST carries. reset: :all is the view and the overlays; with no socket it is a POST, rendered by the new built-in reset control "macaw.reset" (a link for reset: :view), since the link builder answers no link for an event that would change an overlay. A filter offers the values of the visitor's own added rows, to that visitor only.

  • Added: declared view controls, offered from the data and working with no socket (#446, #452, #460, spec/05 §6.7). Three built-ins of kind :control: "macaw.sort" (a table's sort field and order), "macaw.filter" (one value of one field) and "macaw.theme_switch" (the theme preference). Each writes its state through the cell's own set actions, and its options are the state's current legal values: its closed values, its values_from values, or the registry's themes. render/3, cells/3 and cell/4 take them as legal:, as apply/3 does, and render/2 and show/2 read them with Macaw.Surface.legal/3 when none is given; a control given none draws loading. Live, each select sends mw-event through a phx-change form; with no socket and links:, a control is a GET form over URL persistence, read back by the new Macaw.State.restore/4, whose legal: drops a hand-made value outside the data as {:not_allowed, value}. A component offering choices implements Macaw.Control.

  • Fixed: a control renders again when its own state changes, and its live forms carry stable ids (#463, #464, spec/03 §1.5, spec/05 §6.7). Macaw.State.affected/2 now names a control in render for each state among its choices, so it shows its new current after an event, a restore, an owner's put or a refused write, where only a bound setting made a cell a reader and a control never rendered again; a surface with no control has the readers it had. Each live <form class="mw-control-choice"> carries id="<instance>-choice-<i>-form", beside its select's <instance>-choice-<i>, so LiveView recovers it after a reconnect and Phoenix.LiveViewTest warns of no missing form id.

  • Added: Macaw.Surface.legal/3 reads the legal values of the named states only (#456, #458, spec/07 §2.2). legal(validated, env, names: names) answers legal/2's MapSet for each named state declaring values_from, reading only those states' sources, each {source, field} once, at a cost the surface's other states don't change; a named state with no values_from, a standard state or a preference among them, answers no entry. A name no state has is {[:names], {:unknown_state, name}}, names that aren't a list {[:names], {:type, :list}}, another option {[key], :unknown_key}, with the env's faults at once. legal/2 is legal/3 with every name, unchanged. A host checking one event passes the names Macaw.State.writes/2 answers instead of a narrowed copy of the validated surface.

  • CI: the repository's top level holds only what it should (#445, #447). Five empty files named after surfex review notes, tracked at the root since #440 by a shell redirect that a broken quote let through, are removed. ci/root.exs fails the new root job on any top-level entry its allowlist doesn't name and .gitignore doesn't match, and on an allowed one gone missing; a new top-level entry is added to the list in the change that adds it. Nothing in the package changes.

  • Added: fetch/2, legal/2 and check/3 read through a source manager when the host gives one (#108, #443, #444, spec/06 §3.5, spec/07 §2.2). Each env takes an optional manager: {module, arg}, a Macaw.Surface.Reader: a behavior of window(arg, source, request), answering {:ok, delivery} (the delivery the source would answer), :loading or {:error, reason}, and distinct(arg, source, field, request), answering {:ok, MapSet} of the field's present values, spelled as Macaw.Surface.Reader.spelled/1 spells them, or {:error, reason}. With it, Macaw.Surface.fetch/2 (and so render/2, show/2 and a container's surfaces) reads each pooled request through window once, in the caller, and packs, finishes and reduces what it answers as a fetch's delivery, so cells draw as they would from the source; :loading draws loading, an error down. Macaw.Surface.legal/2 and Macaw.Page.check/3 read a field without declared values through distinct, once per {source, field} per call; its error is {:unavailable, reason}. A manager: that is neither nil nor a reader is {[:manager], {:type, :reader}}. Without it, nothing changes, except that check/3 now reads a field once for all the params taking their values from it, where it read it once per param, as spec/07 §2.2 always said. legal/2 already answered sets (#413); values_from/1 still answers %{name => {source, field}}. macaw_live's managers implement the reader (macaw_live#73).

  • Added: a live table draws a range of its rows (#435, #440, spec/05 §6.1). In :live the table draws the rows its height shows and an overscan of half as many on each side (at least 5), from its first row, the window kept whole at the end; the rows not drawn are counted by an empty <tbody class="mw-gap" data-mw-gap="N" aria-hidden="true"> before and after the rows' <tbody>, for the live runtime's scroll hook to size, and Macaw.Builtin.Table.Rows carries them as gap_before and gap_after, with the range drawn. Its range event sets first, which its request never reads (#441), so a scroll fetches nothing. :print, :neutral and :socketless draw every row as before, over the pinned corpus and the generated-delivery property; a live table whose rows fit its window draws them all. A cell's text is now written and escaped as its row is drawn, never for rows not drawn. Measured 2026-11-18: the render harness's 1,000-row :live table in an 8,000 px cell (500 rows drawn), on main 378,020 reductions to render and, placed whole as macaw_live places it today, 863,602 reductions and 450,146 B a change; with the range 218,650 to render and 462,581 and 226,026 B a change. In macaw's fixture, 1,000 rows at 640 px: 371,640 reductions and 340,928 B drawing every row, 151,716 and 14,617 B drawing the 40 of its range; placed keyed, the first placement is 16,208 B where all 1,000 rows were 378,009, and a scroll of 20 rows 7,878 B.

  • Changed: a setting a component's requests don't read renders its cell without a fetch (#435, #441, spec/03 §1.5). Macaw.State.affected/2 fetched every slot of a cell any of whose bound settings changed, since a component's order/2 and budget/3 may read any setting. A component may now name the parameters a slot's request reads, Macaw.RequestReads's request_reads(slot) (macaw's behavior, as Macaw.Container is), and a change of any other bound setting renders the cell and fetches nothing. A component naming none fetches as before. The built-in table names sort and order, so a live table's range (the next item of #435) moves without asking its source again.

  • Added: each keyed table row carries its content version, and the table its scope (#434, #439, spec/05 §6.1). A row of Macaw.Builtin.Table.Rows is {key, version, markup}: its version {chunk version, place, mark}, from the delivery's chunk holding it (Macaw.Data.Table.Chunk.version/1), its place there and its selection mark, nil where the chunk has none; the struct's scope, {instance, events?, columns, identity field}, is what every row's markup reads besides. Equal scope and version mean equal markup (a property over generated tables, appended and changed copies, settings, modes and selections), so macaw_live's row memo can keep a row's markup by them. A chunk's version covers its rows, up to 8,192: a one-row change moves the version of every row its chunk holds, while an append's earlier chunks and the same rows fetched again keep theirs. Measured 2026-11-18 on the 1,000-row :live table: the render 376,007 reductions before, 378,020 after.

  • Changed: the table answers its rows as keyed parts (#434, #438, spec/05 §6.1). Its render is Macaw.Builtin.Table.Rows: the head (a notice, the caption, the header), each row with its key, and the tail, safe HTML that flattens to the bytes it rendered before in every mode, held over the pinned corpus and a property over generated deliveries against a frozen copy of the old render. A row's key is its identity's spelling, else its position in the delivery, unique within the render, so a runtime placing rows as a keyed comprehension (macaw_live, its own proposal) sends only the rows that changed. Measured 2026-11-18 on a 1,000-row :live table (the render harness): the render 374,004 reductions before, 376,007 after, its keys costing 0.5%; placed whole, as macaw_live places it today, a one-row change still costs 859,579 reductions of render, diff and JSON and 450,146 bytes; placed keyed, a one-row change costs 417,767 reductions (376k of them the render, which macaw_live's row memo is to save) and 464 bytes, a new row entering mid-table 430,792 and 5,500 bytes, and the first render 998,533 and 477,145 bytes, where whole it was 859,624 and 450,292.

  • Changed: a table row's identity is encoded once (#410, #432, spec/05 §6.1). Each row's select event wrote its identity for the wire twice, as its value and inside its identity, and a time's UTC spelling is most of a row's cost. The table now encodes it once with macaw_component's Client.row_scalar/1 (macaw_component#91, #92) and splices it into both, where events work; in :neutral and :print nothing is encoded. The bytes are Client.event/3's, over the pinned corpus and every row of a 1,000-row table named by a time. Counted 2026-11-18 in reductions, 1,000 fetched rows named by a time: 529,680 before, 513,680 with macaw_component's identity written pair by pair, 415,683 after; named by a string, 303,387 and 268,478.

  • Changed: a page pulse costs what it runs, learning what ran and changed from the engine (#415, #433, spec/03 §6.3). Every pulse that reached a derived source read Macaw.Data.Derived.Engine.runs/1 and outputs/1 before and after the engine's run and compared every output, pushed every delivery it had ever held, and built each changed export's schema again, and every Macaw.Page.Pulse.sources/2 built every derived source's Output again. Now each export's schema, and which exports a derived source reads, are built once in Macaw.Page.Pulse.new/3; the engine is shown only the deliveries that changed and its answer (Engine.pulse/2, macaw_data#365) says what ran and what changed; and each changed source's Output is kept for sources/2. Pulses answer as before over generated pages. A pulse of one changed export, 2026-11-18, Macaw.Test.Work: 2,068 → 1,419 reductions on 5 exports and derived sources, 5,936 → 1,419 on 50; sources/2 over 50, 1,617 → 7. macaw_data is pinned to its main with #365.

  • Changed: the stat and the meter build their number format once per placement (#411, #431, spec/05 §6.3, spec/06 §3.6). Every render built the format from the specifier, though everything it reads holds for the placement's life. macaw_component's prepare/2 (macaw_component#89, #90) now builds it: validate/3 runs each cell's prepare/2 through Macaw.Component.prepare/3 with the env's defaults and the state's literal initial values, keeps the data with the cell's render data, and reports its faults as the surface's at [:cells, name | path]. Every render receives it as the seventh assign, prepared, while its settings and stable context fields are those it was prepared from, and prepares again when they differ, so a cell's prepared is always its own settings' and context's. The rendered bytes are unchanged over the pinned corpus. Counted 2026-11-18 in reductions, a stat at latest 1,340 before and 586 after, at mean with a format 6,077 and 4,761, a meter 1,417 and 659. macaw_component is pinned to its #92 commit.

  • Changed: a capped table is sorted once per fetch, never per render (#410, #430, spec/05 §6.1). The table drew a delivery in its order with no sort only when it was not stopped short (served.capped false), so every render of a capped fetch sorted its rows again, though fetching had already put them in the table's order: a source that orders serves them in it (ordered: :source), and finishing orders the rows a source cut (ordered: :sample). A capped delivery in the table's order is now drawn in it, so a fetch's rows are sorted once, at fetch, and every render of it sorts nothing; one in no order, or by a category its schema orders, is sorted as before. The rendered bytes are unchanged, over the pinned corpus's capped and uncapped ordered deliveries and over fetched surfaces from sources that order and cap, cap alone, or do neither. Measured 2026-11-18 with Macaw.Test.Work, two renders of one capped fetch of a table drawing 128 rows: 92,536 → 87,524 reductions, and two sorts → none. The proposal's other half, one encode of a row's identity for its value and its identity, waits on macaw_component#91 (Client.row_event/2 taking a pre-encoded scalar).

  • Changed: a cell's context is built from the parts validation judged, never judged again (#409, #429, spec/06 §3.6). Every cell's render built its context with Macaw.Component.Context.new/1, which judged its bindings and schemas again, though validation had judged and stored them for the cell, and judged the env's mode, theme and heading level again, though the cells' judgment had judged them once. Each cell's context is now built with macaw_component's Macaw.Component.Context.validated/1 from those parts, and is the context new/1 judged from them, which a property holds over every built-in at its defaults and its kit fixture's settings under generated envs, states and selections; an env no judgment has seen is still judged with new/1, once for all the cells. The macaw_component pin moves f246040 → ec4e966 (macaw_component#86, #88). Measured 2026-11-18 with Macaw.Test.Work, building 100 cells of every built-in with Macaw.Surface.cells/4: 51,322 → 36,726 reductions, and 101 → 1 contexts judged.

  • Changed: a cell's settings layers are built when explain_settings/2 asks, not on every validation (#418, #428, spec/07 §1.2). Validation built each cell's settings layers, its component's defaults, its preset and its own settings, which read Macaw.Component.parameters/1 again for every cell, though only Macaw.Surface.explain_settings/2 reads them. Now the cell holds what they are built from (stack) and explain_settings/2 builds them, answering exactly as before. Validation also reads each cell's parameters once, for the bound-setting check and the default actions both. Measured 2026-11-18 with Macaw.Test.Work, validating 100 table cells, a third through a preset: 590,485 → 510,883 reductions, and Component.parameters/1 called 600 → 400 times. The other 300 are macaw_component's settings/2 and declarations/2 reading them for themselves.

  • Changed: a page reads its params and matches its path from what Macaw.Page.new/1 built (#417, #427, spec/06 §5). Per request, params/2 rebuilt the parameters map and scanned every given key for each declared param that was missing, match/2 split the page's path pattern, values_from/1 split each "source.field", a step read its target's params twice, and Macaw.Page.Graph.crossing/1 filtered every edge. %Macaw.Page{} now holds read, the parameters, the pattern's segments and the parsed values_from, which new/1 builds once. params/2 reads each given name once, an atom key as its spelling. A step reads its target's params once, and the graph keeps its crossing edges. Measured 2026-11-18 with Macaw.Test.Work: params/2 of 10 declared and 2 given 630 → 314 reductions, match/2 across 20 pages 945 → 785. Every answer is unchanged, over the fixtures and a property of generated requests.

  • New: the page graph indexes which surfaces share a :page state, and the page's pulse puts a write on one into the others (#416, #426, spec/03 §2.1, §6.2, §6.3). Two surfaces of a page declaring one name at :page hold one value, but the graph gave each surface's state its own node with nothing between them, so whoever carried a write had to scan every surface, and Macaw.Page.Pulse.apply/4 applied it to the event's surface alone. Macaw.Page.Graph now holds shared, each such identity to the surfaces declaring it, read by Macaw.Page.Graph.sharing/2. Pulse.apply/4 puts a changed :page state into each surface sharing it through the index, judged by that surface's declaration, so each change is marked and each refusal is reported in the next run's dropped. The graph keeps one node per surface, since each surface judges the value by its own declaration and its readers' edges leave its own node; spec/03 §6.2 now says so. A runtime fanning a :page write out reads sharing/2 in place of a scan. Measured 2026-11-18 with Macaw.Test.Work, one :page write shared by three surfaces: 748 reductions before, reaching only its own surface, and 1,122 after, reaching the other two, on a page of 5 surfaces and of 50 alike.

  • Changed: a container finds its surfaces and panes by index, and decides at validation what it decided on every render (#414, #425, spec/05 §5.2). Macaw.Container.render/3 searched the page's surfaces for each surface and each shown pane, built a surface's readers and dropped them, judged each surface's env four times, read whether each container module exports shown/2 on every render, and built a pane's initial state on every render without states:. New: Macaw.Page.Validated's index, the surfaces by name, the panes by {surface, cell, pane} and each surface's initial state, built by Macaw.Page.validate/3; a validated container cell holds shows, whether its module chooses its panes; and each surface's env is judged once for its fetch, its chrome and its cells. Measured 2026-11-18 with Macaw.Test.Work, a page of 20 surfaces and 5 containers (tabs, an accordion, a split, a drawer): 51,420 → 37,538 reductions. Its markup in every mode is the markup it rendered before, pinned by digest.

  • Changed: an event's write is checked against legal values held as a set, spelled once (#413, #424, spec/07 §2.2). On every write to a values_from state, Macaw.State.apply/3 spelled every legal value again and tested each written value against the list, so a state whose legal values were every distinct value of a field paid for all of them on every event. Macaw.Surface.legal/2 now spells each value once, into a MapSet, when it reads them, and the check is a membership test of each written value; Macaw.Page.check/3 reads the same set. Measured 2026-11-18 with Macaw.Test.Work, one event against 10 and 10,000 legal values: 859 and 40,819 reductions before, 833 against either after. Every legal and illegal write answers as it did.

  • Changed: the status grid and the feed do once per render what their tiles and items share (#408, #423, spec/05 §6). The grid checked each tile's id with Context.id/2's regex and base64-encoded it under it, parsed its detail's unit per tile, and read the status's display names and judged its role by regex per tile; the feed did the last two per item; and the grid, the feed and the record flattened each value's escaped text to a binary. Each is now built once per render: the id prefix, the unit, and new: Macaw.Builtin.Text.roles/2 and words/2, role/3 and words/3 as functions of a state, built once; text is escaped as iodata. The grid no longer sorts names delivered in its order. Measured 2026-11-18 with Macaw.Test.Work, 1,000 packed rows with a schema of roles, names and a unit: the status grid 313,990 → 114,749 reductions, the feed 261,026 → 192,248. Rendered bytes are unchanged, pinned by digest, the corpus now holding both over that schema, the names in their order and out of it.

  • Changed: a count reading lists no reading (#411, #422, spec/05 §6.3). The stat's and meter's count folded the whole column into a list to count it; it now counts the column's present values from the packed table with Macaw.Data.Table.count_valid/2. Measured 2026-11-18 with Macaw.Test.Work, a count over 100,000 packed rows: 1,338,614 → 12,807 reductions and 748,403 → 254 words. The number is unchanged. Building the number's format at validation, #411's other half, waits on a way for validation to hand a component what it built: only its six assigns reach its render (macaw_component spec/02 §1).

  • Changed: Macaw.Surface.render/2 judges its env once for its fetch and its render (#412, #421, spec/06 §3.6). It checked the env for a key given twice three times (the readers, the chrome and the cells), merged its defaults in twice, resolved the state up to three times and built the viewer's preferences twice, every render. It now judges the env once, and the fetch, the chrome and the cells each read their own judgment of it, so every fault is still answered once at its key, by the call that reads it. cells/3 and cells/4 merge their defaults once, and a fetch's processes are handed its timeout rather than the whole env. Measured 2026-11-18 with Macaw.Test.Work, render/2 of a 10-cell surface with no state:: 73,204 → 70,542 reductions. Rendered markup is unchanged over the pinned digests.

  • New: a :pure cell is handed the selection in its context, and the row-reading built-ins draw it (#419, #420, spec/03 §1.7.7, spec/05 §6.1, §6.2, §6.5, §6.6). A :contained cell over a source with identity fields was handed the selection through bound/3 (#340); a :pure one had no field for it. The macaw_component pin moves 7d1ee4c → f246040 (macaw_component#87, its context's selection and Context.selected?/2), so validation's identities index now holds pure cells too: each pure cell over an identity carries the selection in its context's selection, in its own fields through the surface's links, Macaw.State.selection/2 answers it, and Macaw.State.affected/2 renders those cells again when selection changes. Every other context is built without the field, so a cell with nothing selected renders byte for byte as before (the pinned render digests are unchanged). The table, the status grid, the feed and the record draw the row holding the selection with the class mw-selected and aria-current="true", and every other row mw-muted, matched by Context.selected?/2 on the selection's fields alone, read once from the packed table; their stylesheets gain the two rules. Measured 2026-11-18 with Macaw.Test.Work, a 1,000-row table: 403,503 reductions with nothing selected, 433,561 with a selection, 30 a row. The pin also brings the kit's :selection check, so Conformance.checks/0 has sixteen (tutorial chapter 7).

  • Changed: a delivery is packed once, at fetch, and the built-ins render from its packed columns (#381, #405, spec/06 §3.5, spec/05 §6, §6.1). Every render of the table, the status grid, the stat, the meter, the record and the feed packed its delivery into a table again (Delivery.table/2) and turned it back into a map per row (Table.rows/1), and the table sorted on every render even when its rows came in its order. Macaw.Surface.fetch/2 now packs each delivery once, before finishing, so every reader is handed a %Macaw.Data.Table{}; each built-in reads the columns it needs with macaw_data's Table.fold_column/4, the record its one row with Table.rows_at/2, and the status grid orders row indexes with Order.sort_with/4, none building a row map; and the table draws a delivery the source or the runtime already put in its order, whole, with no sort, sorting any other once by row index. Measured 2026-11-18 with Macaw.Test.Work, one render of a 1,000-row table with an identity, sorted by a number: as a fetch hands it over, 397,306 → 299,387 reductions and 531,524 → 348,225 allocated heap words (7.9 → 3.9 ms, median at load 6 to 7); the packing, 76,493 reductions and 117,846 words, now runs once per fetch, not per render. Over 1,000 packed rows: the stat's mean 71,685 → 26,490 reductions, the feed of 20 items 44,361 → 7,255, the record 41,768 → 5,648, the status grid 106,476 → 83,311. Rendered bytes are unchanged, pinned by digest over 3,838 renders of every row-reading built-in and of whole fetched surfaces. macaw takes macaw_data by git, pinned to its main, until it releases the packed reads; the pin also carries its other unreleased work, among it the operations bucket, cumulative, density, explode, outliers, time_parts and unpack and the aggregates box, first and last, which the registry now lists (tutorial chapter 11).

  • Changed: tuple rows without names are macaw_data's fault at fetch, by the one packing path (#406, #407, spec/06 §3.5). #381 left tuple rows and a tensor without names: unpacked, because macaw_data packed them into an empty table, and finishing refused them as {[:names], :required}. macaw_data now answers them {[], :unnamed} at the rows' path (macaw_data#357, #358), so Macaw.Surface.fetch/2 packs every delivery by one path: a fault at the rows' own path draws the slot invalid before finishing, and rows whose values don't pack as their types say still stay as the source gave them, for their readers to draw as no data. A cell drawing such rows is invalid as before; only the fault behind it is macaw_data's. The macaw_data pin moves 02ffcca → b40b81b, which also brings its drains writing each touched chunk once (#355), finishing and whole-column readers reading packed columns (#354), and row maps with no key packing as many rows of no column, where they packed to none; no macaw test or pinned render changes with them.

  • Changed: the built-in table builds its rows and cells as iodata, each row's event from a prefix built once (#382, #404, spec/05 §6.1). Each row's select button built its event whole through Client.event/3 (an options check, a payload map, a JSON encode, then an escape and a binary); the instance and the name, the same for every row, are now encoded once per render by macaw_component's Client.events/2, and each row's attributes come from its value and identity alone through Client.row_event/2, the same bytes. The row id's prefix is checked once by Context.id/2, where every row ran its pattern; each cell's escaped text is spliced into the markup as iodata, never flattened to its own binary; and a row's cells are walked once, with no Enum.with_index list. Measured 2026-11-18 with the counted-run helper (Macaw.Test.Work), one render of a 1,000-row table with an identity, sorted, in :live: 703,914 → 400,857 reductions and 909,951 → 538,736 allocated heap words (16.6 → 9.0 ms, median of 21 at load 7 to 10). Rendered bytes are unchanged, pinned by digest over 909 renders (test/fixtures/renders.digests). macaw takes macaw_component by git, pinned to its main, until it releases the many-row form; the pin also carries its other unreleased changes, among them a context's preferences gaining locale (macaw_component#65), English for every cell, since macaw holds no locale preference yet (spec/03 §1.7.3).

  • New: Macaw.Surface.values/3, a contained cell's value built once per fetch; the docs say a hot path validates once (#380, #403, spec/06 §3.6, §3.7). Without values:, every render ran each contained cell's transitions again (init, each delivery, each bound setting, the selection, the size). values(validated, fetched, env) answers each contained cell's value as cells/3 builds it; handed back as values:, every later render of that fetch renders the same markup and runs no transition. The host holds it, as it holds fetched: macaw keeps no cache. Measured 2026-11-18, render/3 of a fetch of 100 contained test.counter cells over 200 rows: 103,592 reductions (2.0 ms) building the values, 60,330 (1.2 ms) given them; 10 cells 11,476 → 7,185. show/2's docs, the spec and the tutorial (chapters 4 and 10) now say that show/2 validates on every call and is for a one-off, and that a hot path validates once and calls render/2, or fetches once and calls render/3 with values/3's answer.

  • New: Macaw.Surface.cells/4, several cells on one judgment of the env; the built-in registry a constant; each cell's static render data built at validation (#380, #402, spec/06 §3.6, §3.7). cells(validated, names, fetched, env) answers the named cells as cells/3 builds them, in the order named, judging the env, resolving the state and building the link builder once for all of them; cells/3 is it over the reading order and cell/4 over one name. Re-rendering 10 cells of a 100-cell surface cost 204,766 reductions as ten cell/4 calls (without state:, each built the state again) and costs 25,407 through cells/4. show/2 with no registry: built the built-in registry on every call; it is now a constant built when macaw is compiled, never in :persistent_term (spec/00 §4.4 rule 3). A cell's instance id, layout classes and context bindings and schemas are built once by validate/3, into Macaw.Surface.Validated's new rendering, instead of on every render. Measured 2026-11-18 on surfaces of macaw.table cells at load 8 to 11, before and after: render/2 of 10 cells 132,380 → 131,586 reductions (2.9 ms both), of 100 cells 1,311,357 → 1,301,221 (26 → 24 ms); show/2 of 100 cells with no registry 1,773,359 → 1,765,984. Most of a render is the table's own (#381, #382). Rendered markup is unchanged, traced over the whole suite.

  • Changed: building a surface costs work linear in its cells, and a routed event is decoded once (#383, #401, spec/06 §3.2, spec/03 §1.6). A listed surface's names, order and faults were gathered by appending, and each derived name rebuilt the set of taken names and a list of every candidate number, so Macaw.Surface.new/1 of 400 listed cells cost 1,540,253 reductions (52 ms on a box at load 9.6); it now gathers them in one pass, each base's numbering resuming past the numbers it took, for 113,213 reductions (4 ms) and 28,334 on 100 cells. Validation, the registry and the state and cell builders gather their faults and entries the same way. Whether a cell's name is its base numbered compiled a regex per cell; it is now judged on the spelling, compiling none. New: Macaw.State.read/1 answers {:ok, instance, read} where instance/1 answers {:ok, instance}, and event/3 takes read in place of the params with the same answer, so a runtime routing among surfaces decodes each event's JSON once instead of twice. Every answer is unchanged: traced over the whole suite, the 29,369 calls of the public surface, state, registry and validation functions with arguments common to both runs answer the same.

  • New: Macaw.State.writes/2, the state an event's actions write (#389, #397, spec/03 §1.5). writes(state, event) answers {:ok, [{scope, instance, name}]}, the identity of each state an action of the event's cell on its name sets, a per-cell state among them, in declared order and each once, without applying anything or reading the event's values; an event setting nothing answers [], and an event no cell declares has apply/2's faults. A runtime holding some scopes reads here which writes are another's, in place of reading %Macaw.State{}'s internal cells. It reads the event's cell by its instance id: 63 reductions on a surface of 10 cells and of 1,000.

  • Fixed: an env with a key given twice is a fault, never a raise (#384, #385, spec/06 §3.5-3.7). show/2 judged a key's first entry and a cell's context was built from its last, so [heading_level: nil, heading_level: 1] passed show/2's judging and raised in render/3. Every env reader (show/2, fetch/2, readers/2, cells/3, cell/4, chrome/2) now answers {[key], :duplicate} for a key given twice, whichever entry is good; fetch/2 draws such a cell invalid with nothing fetched.

  • New: variables, the viewer's preferences and the window's reset (#370, #400, spec/03 §1.7). A surface's variables: are parameters (type, default, values, values_from, doc), each held as a :surface state source of its name, its default the initial value, so a control's action writes it and a bound parameter reads it; a name a state or a standard source holds is refused. Every surface holds the preferences theme, zone, units and shortcuts (Macaw.State.Preferences, Macaw.State.preferences/0), at :viewer scope when instances: gives the viewer and :session otherwise, each judged by its kind, persisted but never snapshotted; every cell's context carries zone, units and shortcuts, affected/2 renders every cell when one changes, and Macaw.State.preferences/1 gives the host the theme to render in. Declaring a preference's name is {:standard, name}, so a surface that declared units or zone as its own state renames it. A "reset" event from a component writing window takes the window back to its initial value, an event of its own. Drawing the selection in a :pure component's context waits for macaw_component#83.

  • New: the request-time check, and state that holds several values (#370, #399, spec/07 §2, spec/03 §1.7.1). A page param's values_from is checked before render by Macaw.Page.check/3, through #366's values_from/1 hook: a value outside its source's current values is {:not_found, faults}, a 404, and a check that can't be made (an unknown or malformed source, an unknown field, a source that can't answer) {:error, faults}, never a 404. A state source may declare values_from: "source.field", judged at validation (its source, field and type) and checked at each change: Macaw.Surface.legal/2 reads the current values through the source, with the request's viewer, a field declaring its values answering without a fetch, and Macaw.State.apply/3 takes them as legal:, refusing a value outside them, and any write it isn't given values for ({:unchecked, :values_from}), at [:state, name]. A state source may declare multi: true and max, holding a list of distinct values of its type: judged value by value, read element by element from the wire, persisted by position, delivered one row per value to a slot bound to it, and binding no parameter ({:multi_state, name}). %Macaw.State.Source{} gains values_from, multi and max; apply/3's opts gain legal:.

  • New: presets, a cell's settings by reference (#370, #398, spec/07 §1). Macaw.Preset is a fragment of one component's settings, %Macaw.Preset{name, component, settings, doc}, built by new/1 with every fault at once; a package's members answering __preset__/0 are its presets, which Macaw.Registry.preset/2 and presets/1 look up, a preset that doesn't build, a name two presets share ({:duplicate_preset, name, …}) and a preset of an unknown component failing the boot. A cell names one with preset, written by the forms only when given, and its settings become local overrides: Macaw.Surface.validate/3 stacks the component's defaults, the preset and the cell's own settings through macaw_layers' cascade (Macaw.Preset.stack/2), so a preset plus overrides validates and renders as the same settings inline, and a preset's bad setting is the inline setting's fault at the cell's settings path. An unknown preset is {:unknown_preset, name} and one of another component {:preset_component, name, component}, at the cell's preset. Macaw.Surface.explain_settings/2 names the layer that set each setting and those it overrode. %Macaw.Surface.Validated{}'s cells gain layers.

  • New: the drawer, the accordion and the split (#369, #393, spec/05 §5.7–5.9). Macaw.Builtin.Drawer, "macaw.drawer", one pane behind a toggle, as a disclosure or a non-modal dialog; Macaw.Builtin.Accordion, "macaw.accordion", a heading and a disclosure button per pane, one open at a time; Macaw.Builtin.Split, "macaw.split", two panes with a window-splitter separator, placed by class at steps of 10, and a disclosure collapsing the second. Each opens through its open default action, renders a closed pane as an empty hidden panel, and passes the component kit.

  • New: containers, panes as surfaces, and the tabs (#369, #392, spec/05 §5). A cell lists its panes, each a surface by name, and takes :container; Macaw.Page.validate/3 validates each pane where it sits, to a depth of 3, refusing a cycle and a surface held twice, and Macaw.Page.surfaces/1 answers every surface the page holds, panes included, so a closed pane still computes. Macaw.Container.shown/3 says which panes render, Macaw.Surface.cells/3 hands their markup in panes:, and Macaw.Container.render/3 renders a page surface with its shown panes and no other. Opening a pane is the container's open event setting its per-cell state, a view change, never a navigation. The first built-in container is Macaw.Builtin.Tabs, "macaw.tabs", the tabs pattern with roving focus.

  • New: the template kit (#367, #379, spec/12 §2.1). Macaw.Template.Kit.check/3 checks a template and its registered layers against the stacked-result rules: the template alone, each layer on it alone, the stacks an author lists in stacks:, each with and without print, answering :ok or one failure per stack that fails, its faults naming the layer at fault. Adopters add rules with sets:, modules implementing Macaw.Template.Kit.Set. It never raises.

  • New: the stack validated whole, the page's own layer, print and kind placement (#367, #378, spec/06 §2.5–§2.7). Macaw.Template.stack/2 now refuses a stack without exactly one shown main, a second banner or contentinfo, an unlabeled navigation or region, two regions of one role and label, and, under an areas layout, a DOM order that isn't the visual order, each fault naming the layer at fault. Macaw.Template.stack/3 takes own:, a page's own last layer, which may only set declared params and fill fillable regions and never collides, and print: true, which stacks the template's print: layer or the automatic one hiding every region but main and opening disclosures. A cell's kind is now nil unless given, and its placement decides it: Macaw.Template.placement/2 answers a region's kind and allowed kinds, and Macaw.Surface.validate/4 takes them, refusing a kind the region doesn't allow as {:kind_not_allowed, kind, kinds}; validate/3, and a surface on its own, still give :content. A cell's map and JSON forms write kind only when given. Macaw.Page.validate/3 validates each surface with its region's placement, and a second main is now the stack's fault, named by its layer under [:template | path], so the page's {:duplicate_main, first} is gone.

  • New: templates, layers and their stack (#367, #377, spec/06 §2.1–§2.4). %Macaw.Region{} gains a template's keys: role (a landmark), label, fillable, hidden, collapse, breakpoint, content (surface names in a flow), CSP-safe classes and kinds; name and persistent are unchanged. Macaw.Template.new/1 builds a named arrangement of regions with an optional areas layout, params (parameters) and a print: layer, and Macaw.Template.Layer.new/1 a layer on one: region changes, a restated order or layout, param values and masks. use Macaw.Template writes either in code (template :site do region … end, layer :toc, on: :site, do: fill(:sidebar, surface: :toc)), and Macaw.Registry registers them from a package's members, failing the boot on a bad one (template/2, layer/2, templates/1, layers/1). Macaw.Template.stack(names, registry) stacks a page's template stack through macaw_layers' fragment cascade: regions deep by name, content and params overridden, masks dropping keys from below, an unmasked collision between two layers a fault and an undo of one a warning, every fault naming the layer at fault. Macaw.Template.explain/1 names who set each value and what each mask dropped.

  • New: ranked pulses across a page's surfaces (#368, #388, spec/03 §6.3). Macaw.Page.Pulse holds a page's surfaces' states and its derived sources' engine as one pure value. new/3 runs the first pulse, as a page does at mount; apply/4 applies an event to one surface, put/4 puts what an owner publishes and deliver/4 shows the engine its feeds, each change marking its readers; a pulse is due debounce: (250 ms) after the first mark (due/1), and run/2 runs every marked node once in rank order: a state marks its exports, an export whose value changed marks its mirrors and gives the derived sources reading it a delivery, a mirror takes its export's value through Macaw.State.put/2, and an unchanged value stops there. The derived sources then run through the page's one Macaw.Data.Derived.Engine in its own ranked pulse, never a second engine. run/2 answers each surface's changed names for Macaw.State.affected/2, the derived sources whose answers changed and any mirror value its declaration refused. A pulse takes no visibility, so a hidden surface still computes. sources/2 gives the host's sources with each derived answer, last/1 and runs/1 what ran, and provenance/2 the graph's provenance with each edge's value now. A derived input naming an export of selection or window is {:standard_export, surface, export}. One event reaching one mirror costs 559 reductions (0.008 ms) on a page of 2 surfaces and on one of 200; each further changed mirror adds about 300.

  • New: the page DAG (#368, #387, spec/03 §6.1, §6.2, §6.4, §6.5). Macaw.Page.validate/3 builds %Macaw.Page.Graph{}, held in %Macaw.Page.Validated{}'s new graph, by pure functions over the validated surfaces: its nodes are the page's feeds, derived sources, state sources and exports, its edges its slot, request, parameter, export, mirror and input bindings, each ranked. A cycle, which only mirrors can close, is refused once and named in full, {:cycle, nodes}, at the first mirror's from. validate/3 takes derived:, the page's derived sources by name, defined by one Macaw.Data.Derived.Engine (never a second engine), each input a feed, another derived source or an export as "<surface>.<export>", and bound by a slot by name; an input naming an internal state is {:not_exported, surface, name}. Macaw.Page.Graph.readers/2 answers a node's edges out, provenance/2 every edge into a node or a cell, sources first, and crossing/1 the edges whose ends different processes hold, each marked with its two holders (a persistent region, the page, the visit or a :shared owner), for macaw_live #33. Macaw.Page.Graph.new/3 is the function validation calls, the persistent regions read from the stack.

  • New: exports, declared by the placement, and mirrors that bind to them (#368, #386, spec/03 §5). A surface's exports: names the state it makes public, each export a path to a state it holds (declared, standard, or a cell's own <cell>.<param>), and a cell's exports: names its own parameters' state; a component never declares one. Both round-trip through the map and JSON forms, written only when not empty, and %Macaw.Surface.Validated{} gains exports, every export by name; an unknown or :local state, a bad name and a name exported twice are faults at their paths. Another surface reads an export only through a mirror, a state source declaring from: {:export, surface, name} ({"$export": [surface, name]}), which its own cells bind as any state; a mirror has no initial, lives at :surface scope, never persists or snapshots, and a set of it is {:mirrored, name}. Macaw.Page.validate/3 resolves each mirror: an internal state is {:not_exported, surface, name}, an unknown one {:unknown_export, surface, name}, a surface off the page {:unknown_surface, surface}, and an export of another type or with values outside the mirror's {:export_type, …} or {:export_values, surface, name}, each at the mirror's from. Containers' exports wait for #369.

  • New: a persistent region's declaration, and its content's state following its scope (#365, #374, spec/06 §4). Macaw.Region.new/1 builds %Macaw.Region{name, persistent}, persistent false by default, every bad key a fault by path; node/1 writes it and name?/1 is the name rule Macaw.State.new/2 holds an instances: region to. Templates (#367) will carry their regions as this struct. Macaw.Region.kept/2 answers the scopes a surface instance in the region keeps across :navigate or :refill, and Macaw.State.follow/3 gives the state it holds then, every other scope at its initial value and the new instance keys merged: a persistent region keeps its :region state across a navigation and takes the new page's, and a refilled region's returning content has its :region state gone and its :session state back. follow/3 costs 321 to 412 reductions on a six-source surface.

  • New: the seven state scopes, each state identified as {scope, instance, name} (#365, #373, spec/03 §2.1). A state source may declare :local, :surface, :page, :region, :session, :viewer or :shared; another scope is {:enum, Macaw.State.scopes()}. Macaw.State.new/2 takes instances:, the page's path, the region's name, the visit and the viewer, each nil when not given, and Macaw.State.identity/2 answers a state's {scope, instance, name}, so two scopes with one name are two values. Macaw.State.values/2 answers one scope's values, for an owner to publish and a mirror to take whole. apply/3's scopes: takes any of Macaw.State.held_scopes/0, and put/2, restore/3, persist/3 and affected/2 work across them. A :local source is declared and round-trips but is never held on the server: it is in no state's values, a binding or set of it is {:local_state, name} at validation, and put/2 and restore/3 drop it. new/2 costs 506 reductions on a two-source surface (446 before, for instances:); apply/2, put/2 and affected/2 cost what they did (151, 118 and 45). %Macaw.State{} gains instances.

  • New: navigate actions, the steps an event takes, and state that reads a page param (#366, #376, spec/06 §5, spec/03 §1.1, §1.5). A cell's action may be %{on: event, navigate: page, params: %{name => value}}, each param an event path or a literal, beside state's set; it round-trips through the surface's forms, and Macaw.Surface.validate/3 checks its event as it checks a set's. Macaw.Page.validate/3 takes pages:, the pages its actions may name, the page itself always among them, and refuses an unknown target, a param the target doesn't declare, a literal the target's param refuses and a required param not given, each at its path from the page. Macaw.Page.steps/2 answers the navigation steps an event takes, each %{to:, params:, href:}, its params read from the event and judged against the target's, for the host to perform; Macaw.Page.href/2 writes a page's URL at its params. A state source may declare initial: {:param, name}, written {"$param": name}: Macaw.State.new/2 takes params:, the page's params, and Macaw.Page.validate/3 checks each such state against the page's params by name, type and legal values. A request param bound to that state is fetched at the param's value.

  • New: the page value (#366, #375, spec/06 §1, §5). Macaw.Page is a page: its name, path, title, one <h1>, its template stack's names, the regions it fills with surfaces and the params it accepts, a pure document value with map and JSON forms. Macaw.Page.validate/3 checks its fills against the stacked regions, exactly one main among them, and every surface known and valid with the registry, a surface's faults at [:regions, region, i | path], and answers a %Macaw.Page.Validated{} with each region's validated surfaces and its plan, the union of its components' observations, stylesheets and proxy routes. Its params are parameters of the six types, with defaults, legal values and values_from; Macaw.Page.match/2 reads a request's path params and Macaw.Page.params/2 reads and judges the path's and query's values, an illegal value {:not_found, faults}, a 404-class refusal before anything renders. Macaw.Page.values_from/1 names the params whose legal values come from data, for #370's request-time check. Its stack step is Macaw.Template.stack/2 (#367).

  • Changed: Macaw.State.event/3 costs the event's cell (#352, #354, spec/03 §1.6). It built every cell's entry on each event; validation now builds, once, each cell's entry by its instance id, and event/3 reads the one the payload names, with the same answer for every input. One event costs 914 reductions on a surface of 10 cells and on one of 400 (it was 2,680 and 74,650), the same as handing it the routed cell alone, so a runtime hands event/3 the whole validated surface. %Macaw.Surface.Validated{} gains events, which %Macaw.State{} holds as cells. A property holds the answer to a surface of the event's cell alone over generated surfaces and events.

  • Changed: the stat and meter write their readings through Macaw.Data.Format (#323, #351, spec/05 §6.3, §6.4). A reading is written from its field's measure in the schema by Macaw.Data.Format.for_measure/2 and measure/2, so a tile and visualize's axis over one field write it the same way. A duration is compound (1h 24m), a currency uses its code's minor units, a ratio is a percent, a count is grouped and a quantity is rescaled within its unit's family under the viewer's unit system (preferences.units). digits is the precision. A new format parameter on both components takes a d3 specifier that overrides the number. A specifier that is not one is a fault at format when the surface is validated. The meter gains digits too, and its unit-as-text suffix is gone. The locale is English until the component context carries the viewer's (macaw_component#64).

  • On macaw_data 0.18 and macaw_component 0.12; each budget is asked in the context its cell renders in (#347, #350, spec/06 §3.5). Macaw.Surface.readers/2, and so fetch/2, asks Macaw.Component.budget/4 in the context Macaw.Surface.cells/3 renders the cell in, built by the one function both share, so a component's budget/4 reading more than the size (its ratio, at 1 until a host reports another) is asked by fetching as rendering would ask it. Every render is byte-identical. The tutorial follows both upgrades: its budgets take a context, its hook file is shown and default-exports its hook, its pushing source states a subscribed fetch's position, and the kits' new checks (:context, :monitor) are listed; ci/tutorial.exs runs each chapter as a file of the reader's app, so its hook paths resolve there. Slot reducers (Macaw.Component.reducer/4) are not yet put in a slot's request.

  • New: one cell's render input, at that cell's cost (#348, #349, spec/06 §3.6). Macaw.Surface.cell/4 of a validated surface, a cell's name, fetch/2's answer and render/3's env answers that cell as Macaw.Surface.cells/3 builds it, reading only its own entry of fetched, so a live runtime re-renders the cells an event affects without building the rest. cells/3 is now defined over it and answers what it did. A name no cell has is {[:name], {:unknown_cell, name}}, never a raise. One cell costs the same on a surface of 10 cells and on one of 400 (1,124 to 1,289 reductions, where cells/3 of the 400 costs about 260,000), and a property holds cell/4 to cells/3's entry over generated surfaces.

  • New: a surface's links, and the selection handed to a cell's fields (#340, #346, spec/03 §1.7, §7, spec/06 §3.1). A surface takes links:, a map of an identity field to its canonical name, written only when not empty, round-tripping through the forms and a :union as a fragment; Macaw.Surface.new/1 refuses a non-map, a non-name and a chain, and validate/3 a linked field that is no source's identity field ({:not_identity, field}) and linked fields of different types ({:link_type, canonical}). selection is held in canonical names, so a pick on svc writes service, and two linked fields disagreeing are {:type, :identity}. Each :contained cell whose slots' sources declare identity fields is handed the selection in its own fields through bound(value, "selection", selection), in macaw_frame's shape, nil | [%{fields: [field], value: value}], one entry per identity field in name order; with nothing selected no transition runs, so every cell builds as before. Macaw.State.selection/2 answers what a cell is handed, and affected/2 renders those cells again when selection changes. %Macaw.Surface.Validated{} gains identities, and %Macaw.State{} links and identities.

  • New: the window state takes a numeric range and a :point box (#340, #345, spec/03 §1.2, spec/06 §3.5). Beside %{last: s} and %{from: t, to: t} in UTC, window holds %{from: n, to: n} of two numbers, as a brush over a :number axis writes it, and %{box: %{west, south, east, north}}, as a geographic pan writes it, judged by Macaw.Data.Source.Request.box?/1; an inverted or mixed range and a bad box are {:type, :window}, the state unchanged. A window reaches only the slots whose source's window field is of its kind: a time window a :time field and a numeric range a :number field, as the request's window, and a box a :point field, as the request's box, with as_of where it reaches. The wire reads a number from and to as it arrived and a box's bounds by a fixed table, and persistence writes them as text and reads them back. Macaw.State.affected/2 now names every slot with a window field when window changes, of any kind, since a change from one kind to another takes the window off the slots it held.

  • New: a :shared state's owner and mirrors, and routing by instance (#340, #344, spec/03 §1.5, §1.6, §2.1). A state source may declare scope: :shared, one value for every viewer of a surface, held by its owner in macaw_live; another scope is now {:enum, [:surface, :shared]}. Macaw.State.apply/3 takes scopes: and applies an event's writes to the named scopes only, a write to another scope neither judged nor applied; apply/2 is apply/3 with every scope, so a viewer applies all but :shared and the owner [:shared]. Macaw.State.put/2 puts values carried from an owner into a mirror, each judged as restore/3 judges a stored value, answering {:ok, state, changed, dropped}. Macaw.State.instance/1 reads the instance an "mw-event" payload names, {:ok, instance} or :error, so a runtime routes among surfaces without reading JSON. Each answers a value over generated input, never a raise.

  • Changed: Macaw.State.affected/2 costs the readers of the changed names (#340, #343, spec/03 §1.5). It walked every reader of the surface on each call; validation now builds, once, each state name's readers, in reading order, and affected/2 reads the changed names' entries only, with the same answer for every input. One changed name read by one cell costs 41 reductions on a surface of 10 cells and on one of 1,000 (it was 485 and 48,998), so a live runtime's per-event work doesn't grow with the cells an event leaves alone. %Macaw.Surface.Validated{} gains readers, and %Macaw.State{} holds it where it held reads. A property holds the answer to the old walk over generated surfaces and changes.

  • New: a surface's cells and chrome, with render/3 defined over them (#339, #342, spec/06 §3.6). Macaw.Surface.cells/3 answers each cell as Macaw.Surface.render/3 renders it, in reading order: its component's module and kind, its layout's classes, its instance id and its six assigns, a contained cell's value taken as given from values: when given; its faults are values, never a raise. Macaw.Surface.chrome/2 answers the surface's markup around its cells, %{open:, close:}. render/3 now writes open, each cell's div, then close, so a runtime rendering each cell on its own writes the same markup by construction. Every render of the suite (1,768 over four seeds) was byte-identical, and structurally identical, before and after; a property holds render/3 to the reassembly over generated surfaces, layouts, modes and links.

  • New: a surface's readers and drawn states, with fetch/2 defined over them (#339, #341, spec/06 §3.5). Macaw.Surface.readers/2 answers each slot's reader as Macaw.Surface.fetch/2 builds it, in reading order: a source's request with its bound values, order and clamped budget resolved, a state reader, or the faults of a slot fetch/2 draws invalid; a bad env is {:error, faults}, never a raise. Macaw.Surface.drawn/2 gives a slot's drawn state from a reader's status and its delivery. fetch/2 now fetches the readers and draws by drawn/2, so a runtime with a socket asks and draws exactly what a page without one does. A property holds fetch/2's requests and states to theirs over generated surfaces, states and sizes; fetch/2 answers what it did.

  • Breaking: macaw reads no application environment (#319, #325, spec/00 §4.4 rule 3, spec/12 §1.1, spec/06 §3.7). Registry.default/0 read config :macaw, packages:, layouts: and kept the registry in :persistent_term, and show/2 fell back to config :macaw, :ceiling, so tests sharing the node shared them. Both are gone, and ci/rules_allowlist.exs keeps only the :hang fixture's sleep. See "Upgrading from 0.5.0".

  • A dev container (#328, #329, #332, #333). .devcontainer/ builds CI's toolchain (Elixir 1.20.4 on OTP 29.0.5, Debian bookworm) as its own user, macaw, so an apu session, VS Code or the devcontainer CLI can compile and test macaw. Nothing in the package changes.

  • CI: a failed stress run names its failing tests (#320, #326). ci/stress.exs finds ExUnit's failure blocks anywhere in a failed run's output, where log lines can bury them past the tail, and prints them before the tail. Its report ends with a tally: each failing test once, with the number of runs it failed in.

  • CI: a weekly schedule runs the suite under load (#280, #315, spec/00 §4.4). ci/stress.exs, the family's copy, runs mix test 18 times, six at once, each with its own seed, and a failed run names the seed that reproduces it. The stress job runs only on the schedule whose STRESS variable is true.

  • New: a surface document's URLs are the host's to allow (#244, #318, spec/06 §3.1). Surface.from_map/2 and from_json/2 take urls:, a Macaw.Layers.Url.Policy, and hold every URL a document holds to it, closed by default, so the two readers answer one document alike. Before, from_json/2 read under the closed policy with no way to open it, and from_map/1 checked no URL. from_map/1 is still the closed policy, so a document holding a URL that read with from_map/1 now answers {:url, reason} at its path: pass urls:.

  • Docs: the Hex docs build without a warning, and CI holds them to it (#290, #317). The guides and the CHANGELOG wrote Registry.default/0, from_config/1 and new/2 short, which ExDoc resolved to Elixir's own Registry, so hexdocs rendered them unlinked. They now say Macaw.Registry. A docs job runs mix docs --warnings-as-errors.

  • CI: the rules for tests and state are checked (#280, #312, spec/00 §4.4). ci/rules.exs, the family's copy, fails on a clock that times code, a sleep or the atom count in test code, and on reading the application environment in lib/, outside ci/rules_allowlist.exs, each entry with its count and reason. macaw keeps three: Macaw.Registry.default/0's and Surface.show/2's configuration reads, whose removal is #316's, and the hanging fixture source.

  • Spec: the four rules for tests and state (#280, #311, spec/00 §4.4): time is proved by counting, a guard states its whole range and generators keep to it, a library reads no global state, and shared state sits behind a behavior at its component's edge. ci/rules.exs enforces the first and third.

  • Tests: the surface-document no-raise property costs about 1% of what it did (#283, #310). The layout generator's option lists had no length bound, so in late runs a case built terms of up to 850,000 words, and the property spent about 950 million reductions, mostly generating them. Bounded to four items each, with empty lists and junk at every level still drawn, it spends about 10 million, and a budget of 60 million fails it by itself if a generator grows again. The readers were never the cost: from_json/2 is linear in a document's bytes and stops at its limits.

  • Tooling: surfex 0.12.0 (#291, #309). The dev and test dependency moves to ~> 0.12.0. mix surfex.status gives the same counts and is about three times faster. surfex keeps its caches in .surfex/cache/, which ignores itself in git. Nothing in the package changes.

  • Only the socketless and live renders carry a contained value's stream element (spec/05 §9.1): a neutral or print render is static, so it carries neither the element nor a drawing token, as macaw_component 02 §3 requires; the reference canvas renders its own stream in :socketless alone (macaw_live#45).

v0.5.0 (2026-11-11)

State on a surface, on macaw_layers 0.5, macaw_data 0.14 and macaw_component 0.11 (#262, #263, #264, #275, #277, #285, #286, #287, #288, #289, #292, #293, #294, #295, #296, #297, #298, #299, #300, #301, #302, #304, #306, #307). A surface holds state: typed values declared under state: or given to each cell by its component's default actions, so a table written in one line sorts. Macaw.State is a pure value: it reads a visitor's event at the edge (event/3), applies it (apply/2), says what it affects (affected/2), and renders at it (state:). State survives a reload in the URL or the session through Macaw.State.Persistence, works as links with no socket (links:), and is saved and restored as a snapshot. Every value restored is judged as untrusted input. CI runs the tutorial's snippets. This release is breaking for an adopter of 0.4.0: follow the guide below, then each dependency's own upgrade notes.

Upgrading from 0.4.0

  1. The dependencies move: macaw_layers ~> 0.5.0, macaw_data ~> 0.14.0 and macaw_component ~> 0.11.0 (were ~> 0.4.0, ~> 0.12.1 and ~> 0.6.0) (#277, #278, #288, #289, #287, #296, #301). They resolve only together. An application that uses them directly moves with them and follows their notes. These are the family's errors-are-values releases, and the likeliest calls to change are:
    • Macaw.Layers.Document.digest/1, which answers {:ok, hex} (digest!/1 is the old answer);
    • Macaw.Component.Slot.resolve/3, which answers {:ok, resolved} (resolve!/3 is the old answer);
    • Macaw.Data.Reduce.lttb/3 and m4/3, and Macaw.Data.FFT.magnitudes/1 and window/2;
    • the guides: macaw_layers 0.5.0's notes; macaw_data's "Upgrading from 0.12.x", "from 0.13.0" and "from 0.13.x"; macaw_component's "Upgrading from 0.6.x" through "from 0.10.x".
  2. The table's buttons carry events through the event wire (#287, #296, #299). A sort or select button has phx-click="mw-event" and its event in phx-value-mw, in :live and :socketless, and nothing in :neutral or :print. It used to carry data-mw-event="sort" in every mode. A sort button's event value is the next sort, %{"sort" => field, "order" => next}, where it was the field. A select button's value is the row's identity as the term it is. Expectations and goldens of the table's markup change.
  3. A table sorts by itself, and two unnamed tables over one source are refused (#299). A cell with no actions takes its component's default actions, so a table gets the per-cell state <cell>.sort and <cell>.order, and State.values/1 lists it. When the component has default actions, the second unnamed cell of one component over one source is refused as {:name_required, :implicit_state}. Name the cells, or give them actions: []. Cell.actions defaults to nil, and [] is written in the map and JSON forms.
  4. Serve the table's stylesheet at its new address (#301). The table's stylesheet gains rules for header links, so its content address changes. A host that serves or caches it by path reads Macaw.Builtin.Table.stylesheet_path/0 again.

Changes

  • Docs: the tutorial and README describe 0.5.0 (#306, #307). Both pin ~> 0.5.0. The overview says what is released, state included, and what isn't. Chapters 5 and 10 say a LiveView applies the table's events through Macaw.State, and that with no socket the sort is a link. Chapter 6 says a render runs bound for each bound setting. They no longer say these wait for the live runtime.
  • New: state in the session, and state snapshots (#264, #302, spec/03 §3.1, §4). Macaw.State.Persistence.Session keeps a surface's values in a session map under its name, as text, for state that must not go in a URL. Macaw.State.snapshot/1 answers %Macaw.State.Snapshot{surface, states}, what persistence holds less each source declared snapshot: false: every changed value of a persisted source as %{state: name, value: text}, with no identity, so it restores for whoever restores it. Macaw.State.restore_snapshot/2 judges each value against the current declaration as restore/3 does, and drops one it can't use by path, a source no longer snapshotted as :not_snapshotted, never raising. A declared state source's new snapshot key (true by default, written only when false) keeps it out of snapshots; %Macaw.State.Source{} gains it.
  • New: a table sorts by links with no socket (#264, #301, spec/03 §3.3, spec/05 §6.1). render/3 and show/2 take links:, the host's [params: params, to: fun]: the params a visit arrived with and its function from params to an href. Rendering :socketless with it, each cell's context carries a link builder: an event's href is to of the params with the state the event would give written in through Persistence.Url. The table's sort headers become <a href> to the sorted view, carrying no event wire, so a bot or a reader without JavaScript can sort; once the socket connects they are buttons again. An event the state would refuse has no link and keeps its button. A links: that can't be used is every fault by key from show/2. Nothing changes without links:. The table's stylesheet gains rules for header links.
  • Breaking: on macaw_component ~> 0.11.0 (was ~> 0.10.0) (#301), for Client.link/3 and the context's link. An adopter calling it directly follows its "Upgrading from 0.10.x".
  • New: state survives a reload, in the URL (#264, #300, spec/03 §3). Macaw.State.Persistence is a host behavior: load/2 and store/3 of a surface's values as text, under its name. Macaw.State.Persistence.None (the default) stores nothing; Macaw.State.Persistence.Url nests them in a params map as Phoenix decodes and encodes a query string, so a reload or a shared link restores the view. Macaw.State.persist/3 writes every persisted source whose value isn't its initial one, by its type's text form (a time in UTC ISO 8601, a point lon,lat, a color CSS hex). Macaw.State.restore/3 reads them back as untrusted input: each value judged as apply/2 judges an event's, and one it can't use dropped and named by path, never raised. A declared state source's new persist: false keeps it out of every persistence. %Macaw.State{} gains initial and selection.
  • New: a table sorts with no declarations (#263, #299, spec/03 §1.3, spec/05 §6.1). A component's default actions apply as per-cell state: {"macaw.table", source: "services"} gets the states table_services.sort and table_services.order, of the parameters' types and values, initial the literal setting else the default, its parameters bound to them and its sort event setting them. Validated holds the explicit wiring, and its new state holds every state source, the declared and the per-cell. A cell's own binding of a parameter, or its own action on an event, takes over that part, and actions: [] turns them off. Macaw.Surface.expand/2 writes the defaults out as a document, which validates to the same cells and state. A surface may declare a cell-qualified state <cell>.<param>, its cell one of the surface's ({:unknown_cell, cell} otherwise).
  • Changed: the table's sort buttons carry the next sort (#299, spec/05 §6.1): the event's value is %{"sort" => field, "order" => next}, "desc" on the column sorted ascending and "asc" otherwise, where it was the field. A set reading {:event, :value} from a sort event now reads that map: read {:event, [:value, "sort"]}. The button's value attribute is still the field. Expectations and goldens of the table's markup change.
  • Changed: a cell with no actions takes its component's defaults (#299, spec/06 §3.2). Cell.actions defaults to nil, and [], none, is written in the map and JSON forms. A table with no actions now has per-cell state, so State.values/1 lists it, and two unnamed cells of one component over one source are refused when their component has default actions: the second's name, <base>_2, is {:name_required, :implicit_state}. Name the cells, or give them actions: [].
  • Docs: the spec names libraries, never versions (#297, #298). Versions live in mix.exs and this file; spec/00 §6 lists the libraries and what each holds now, and a test fails on a library version in spec/.
  • Docs: testing a surface in a LiveView (#293, #295). Chapter 4 tests MyAppWeb.SortedLive with Phoenix.LiveViewTest: live_isolated/3, a click sent as the browser sends it, and assertions on what renders. macaw's own end-to-end test of the event wire does the same through a test endpoint configured only by start_link/1.
  • Changed: State.event/3 reads every value into its term (#292, #294, spec/03 §1.6). The event wire is the inbound edge, and the event it builds holds no JSON spelling: a window write's keys become atoms and its times UTC DateTimes, so a window sent from the browser is written (before, apply/2 refused it as {:type, :window}); an identity's field is read by its type in the cell's slot schemas, so a :time identity is a DateTime; a value an action sets is read by its state's type, a time from ISO 8601, a point from [lon, lat] and a color from CSS text. A value not in its form is {:type, type} at its path, and an unknown window key :unknown_key. A new CI check, ci/json_edge.exs, fails on a JSON call outside Macaw.State.Wire.
  • New: a click changes a surface's state (#262, #287, spec/03 §1.2, §1.3, §1.5, §1.6, §2). Macaw.State.apply(state, event) applies one %Macaw.Data.Event{}: the standard writes (an identity writes selection, a window-valued event window, each from a component declaring writes of it), then the cell's set actions in order, every write judged and all or nothing, answering the names that changed. Macaw.State.affected(state, changed) says which slots to fetch and which cells to render again. Macaw.State.event(validated, params, now) reads the LiveView event a click sends, "mw-event" with its JSON payload in phx-value-mw, every malformed payload a fault and never a raise. State is identified by the surface and its name, so two tables writing selection share one.
  • Changed: the built-in table's buttons emit their events through macaw_component's Client.event/3 (#287, spec/05 §6.1): phx-click="mw-event" and the event in phx-value-mw, in :live and :socketless, and nothing in :neutral or :print, where they carried data-mw-event="sort" in every mode. Expectations and goldens of the table's markup change. A select button's event carries the row's identity.
  • Changed: Macaw.State.event_paths/0 is macaw_component's list (#287), Macaw.Component.Declarations.event_paths/0, writing its placeholders "key" and "field" where it wrote :name.
  • Fixed: a setting bound to a state reaches the request (#287, spec/03 §1.4). fetch/2 asked a component for its budget and order at its default settings, so a sort bound to a state fetched its capped rows in the default order; it now asks at the state's values, and affected/2 lists such a cell's slots to fetch.
  • Breaking: on macaw_component ~> 0.10.0 (was ~> 0.8.0) (#287, #296), for the event wire, the default actions and Client.event/3 taking terms. An adopter calling it directly follows its "Upgrading from 0.8.x" and "Upgrading from 0.9.x".
  • Changed: the table's select button sends the row's identity as the term it is (#292, #296, spec/05 §6.1): a string, number, boolean or DateTime as it is, through Client.event/3, and the same term as the event's value, so selection equals the row's identity, a time's precision included. Before, any identity other than a number or boolean went as its display spelling, so a time with a zero fraction lost its precision and never equalled its row. The button's text and value attribute are still spelled for a reader.
  • New: rendering at a surface's state (#262, #286, spec/03 §1.2, §1.4, §1.5; spec/06 §3.5–§3.7). Macaw.State.new(validated, host: %{...}) builds %Macaw.State{}, a pure value, at every state source's initial value, the host giving its {:host, key} initials; a missing key, a value of the wrong type or outside the values, and an initial a bound request param refuses are faults at once by path. get/2 and values/1 read it. show/2, fetch/2 and render/3 take state:: bound settings render at its values (a :contained component through bound/3), bound request params are resolved and judged before pooling, a slot bound to a state is delivered from it (one row, none while nil), and a slot whose source has a :time window field carries the window. Without state: the initial values render, so a surface with no state renders as before. Changed: a surface with a {:host, key} initial needs state:; without it show/2 answers {[:state, name, :initial], {:missing_host, key}}, fetch/2 draws its cells invalid and render/3 refuses it as a wrong call.
  • New: state on a surface, as a document (#262, #285, spec/03 §1.1, §1.3, §1.4; spec/06 §3.1, §3.2, §3.4). A surface declares state sources, state: %{name => %{type, values, initial, scope}} (Macaw.State.Source), initial a literal or {:host, key}; selection and window are standard and declared by no one. A cell binds a setting on a bindable parameter, a request param or a slot to one, {:state, name}, and sets one from its component's events, actions: [%{on: event, set: state, value: {:event, path}}], the five paths Macaw.State.event_paths/0. The JSON form tags them $state, $host and $event, and state stacks by name as cells does. validate/3 judges every binding and action at its path, all at once: an unknown state, a parameter that isn't bindable or of another type or values, an initial value a source's param refuses, an undeclared event. Declarations see each bound parameter at its default, and Validated holds where each state is bound. A surface with no state is unchanged, value and document byte for byte. Rendering at the state is #286's, below.
  • Breaking: on macaw_layers ~> 0.5.0, macaw_data ~> 0.14.0 and macaw_component ~> 0.8.0 (were ~> 0.4.0, ~> 0.13.0 and ~> 0.7.0) (#288, #289), the family's errors-are-values releases (#243). They resolve only together. The core's answers are unchanged: an areas layout's class keeps its digest, and a validated cell's slots resolve as before. An adopter calling any of the three directly follows each one's "Upgrading" notes; the likeliest are Macaw.Layers.Document.digest/1 ({:ok, hex}, or digest!/1) and Macaw.Component.Slot.resolve/3 ({:ok, resolved}, or resolve!/3). The tutorial shows the new answers: chapter 9's theme and color calls, chapter 6's Slot.resolve/3, chapter 8's digest and chapter 10's theme sheet.
  • CI runs the tutorial (#275, #282). ci/tutorial.exs runs every chapter's snippets in order and compares each result with the #=> after it, so a change that breaks the tutorial fails its merge request. phoenix_live_view is a test-only dependency, for chapter 10.
  • Breaking: on macaw_data ~> 0.13.0 and macaw_component ~> 0.7.0 (were ~> 0.12.1 and ~> 0.6.0) (#277, #278). The core calls none of what 0.13 changed in a way that alters its answers. An application that uses them directly moves with them and follows their upgrade guides. In macaw_data the calls to look for are Macaw.Data.Reduce.lttb/3 and m4/3, and Macaw.Data.FFT.magnitudes/1 and window/2, which now answer {:ok, value} or {:error, reason}. In macaw_component, the kit's :declarations check now finds a component reading a bindable parameter with a nil default.

v0.4.0 (2026-11-05)

Five more built-in components, and errors as values reach the env and the sources, on macaw_data 0.12 and macaw_component 0.6 (#252, #253, #254, #255, #256, #257, #258, #259, #260, #261, #265, #266, #267, #268, #269, #270, #271, #272, #273, #274). Beside the table, Macaw.Builtin now holds the status grid, the stat, the meter, the record and the feed, and a component's order can name a role. A delivery whose source served its last good answer draws :stale. A malformed sources: and a bad env value no longer raise, and a bad ceiling: no longer turns the row limit off. The tutorial's snippets were all run against this release.

Upgrading from 0.3.0

  1. The dependencies move: macaw_data ~> 0.12.1 and macaw_component ~> 0.6.0 (were ~> 0.11.0 and ~> 0.5.0) (#254, #265, #272). An application that uses them directly moves with them and follows macaw_data's "Upgrading from 0.11.x": Table.rows/1 and Delivery.rows/1 answer {:ok, rows} (rows!/1 is the old answer), a ! twin raises Macaw.Data.Error, and a hand-built served map adds stale. macaw_layers stays ~> 0.4.0.
  2. A cell can draw differently (#253, #266). A delivery with served.stale true draws :stale, where it drew :live, also when capped. An empty capped delivery draws :no_data, where it drew :capped. A component of your own that shows rows only when :live or :capped should also show them when :stale, as the built-ins do. Expectations written from 0.3.0's states change.
  3. The built-in table heads a unit with its symbol (#252, #255): Temperature (°C), where 0.3.0 wrote Temperature (Cel). Expectations and goldens written from 0.3.0's heads change.
  4. A malformed sources: is a fault or an invalid cell, not a crash (#267). Code that relied on the raise matches {:bad_source, name} at the binding's source from validate/3 and show/2, or {:type, :map} at [:sources]. fetch/2 and render/2 draw the cell invalid.
  5. Check your ceiling (#273). ceiling: and config :macaw, :ceiling must be a positive integer. A host passing anything else had no row limit, and its bound cells now draw invalid from fetch/2 and render/2, and show/2 answers {[:ceiling], {:type, :pos_integer}}. A float such as 10.5 is refused too. show/2 also answers a bad now:, width:, row_height:, timeout:, mode:, theme: or heading_level: as a fault by key, and an env that isn't a keyword list as {[], {:type, :keyword}}, so match {:error, faults} from it. fetch/2 draws a bad now:, width:, row_height: or timeout: invalid. render/3 has no fault to answer, so a value it can't build a cell from still raises, and so does leaving now: or ceiling: out of fetch/2 (spec/00 §4.3).
  6. Serve the new stylesheets where a page uses them (#257, #259, #260, #261): each new built-in has a static stylesheet/0 at stylesheet_path/0.

Changes

  • A bad ceiling: no longer turns the limit off (#273, spec/06 §3.5). fetch/2 compared it without judging it, and a term that isn't a number orders above every number, so ceiling: :nope clamped nothing and a budget went through whole. fetch/2 and render/2 now draw the cell invalid and fetch nothing, for any ceiling that isn't a positive integer, and show/2 answers {[:ceiling], {:type, :pos_integer}}, from the env or config :macaw, :ceiling. A float such as 10.5 was sometimes accepted, and is refused too. Changed: a bad width:, row_height: or timeout: draws invalid from fetch/2, where it raised or fetched at a nonsense size. show/2 answers every bad value of its env as a fault by key, where now:, width:, row_height:, timeout:, mode:, theme: and heading_level: could raise. Leaving out now: or ceiling: from fetch/2 still raises, as a wrong call (spec/00 §4.3).
  • The built-in meter takes optional low, high and optimum numbers, written on the <meter> when given (#272, spec/05 §6.4). Each must lie in the range and low must not be above high, else a fault at its name, where the browser would clamp silently. A number past low or high also says so in words beside it. With none given, the markup is unchanged.
  • A malformed sources: no longer raises (#267, spec/06 §3.4, §3.5). An entry that isn't a {source, context} of a real source is the fault {:bad_source, name} at its binding's source, from Surface.validate/3 and show/2, and never echoes the entry; validate/3 answers {:type, :map} at [:sources] for sources that aren't a map. In fetch/2 and render/2, a source gone or malformed since validation draws its cell invalid, where it took the caller down.
  • mix hex.publish runs the family's CI drift check first, so an edited, missing or behind copy of a ci/ script stops a release, naming the file (#268, #271).
  • The built-in feed, "macaw.feed" (Macaw.Builtin.Feed, #256, #261, spec/05 §6.6): time-ordered rows, newest first, the newest limit of them, with a title, an optional body and an optional level whose role colors the item and whose words are always shown. It has a static stylesheet at stylesheet_path/0.
  • The built-in record, "macaw.record" (Macaw.Builtin.Record, #256, #260, spec/05 §6.5): one row as a definition list, labeled and with units from the schema, chosen by identity or as the first or last in time. Its identity is bindable, so state can make a record follow a selection. It has a static stylesheet at stylesheet_path/0.
  • The built-in stat and meter, "macaw.stat" and "macaw.meter" (Macaw.Builtin.Stat, Meter, #256, #259, spec/05 §6.3–§6.4): one number from a slot's rows by a statistic, alone or in a native <meter> against its range. A latest that is the whole answer draws no capped notice (#270). Bound by their value and optional t roles; latest and delta read newest first by time, so a capped series' latest is its newest. Absence is never zero: all-gap readings show an en dash. Each has a static stylesheet at stylesheet_path/0; link it where a page uses it.
  • A component's order can name a role (macaw_component 0.6, #256, #258, spec/06 §3.5): Surface.Fetch resolves it through the slot's binding, so [{{:role, "t"}, :desc}] asks the source for the field bound to t, before the request and before slots pool. A field-keyed order is unchanged.
  • A delivery whose served.stale is true draws its cell :stale, where it drew :live: a source serving its last good answer now says so, also when capped and through a derived source (#253, #266, spec/06 §3.5). Changed: every fact of a delivery goes through Drawn.pick/1's one precedence, so an empty capped delivery draws :no_data, where it drew :capped.
  • Breaking: on macaw_data ~> 0.12.1 and macaw_component ~> 0.6.0 (were ~> 0.11.0 and ~> 0.5.0) (#254, #265). The built-in components match Table.rows/1's value, a refused source drawing no_data. An application on macaw_data 0.11 follows its "Upgrading from 0.11.x": rows/1 answers {:ok, rows} (rows!/1 is the old answer), a ! twin raises Macaw.Data.Error, and a hand-built served map adds stale.
  • The built-in status grid, "macaw.status_grid" (Macaw.Builtin.StatusGrid, #256, #257, spec/05 §6.2): one tile per thing, bound by its name, status and optional detail roles. Each tile's color comes from the role the schema's status gives its state, neutral without one, and the state's words are always shown. It has a static stylesheet at stylesheet_path/0; link it where a page uses the grid.
  • The built-in table heads a unit with its display symbol, annotations kept, where 0.3.0 wrote its UCUM code: Temperature (°C), Wind (mi/h), Lag (µs) and Request rate (request/s) for Cel, [mi_i]/h, us and {request}/s; a code with no symbol is shown as it is. The heading words come from Macaw.Builtin.Text, which the built-in components share (#252, #255, spec/05 §6.1). Expectations and goldens written from 0.3.0's heads change.

v0.3.0 (2026-11-03)

Layouts are a behavior, a surface has defaults, the built-in table is finished, and errors are values, on macaw_layers 0.4, macaw_data 0.11 and macaw_component 0.5 (#196, #198, #204, #212, #214, #215, #236, #237, #241, #243, #245, #249). The grid is one of four built-in layouts (:grid of 6, 12 or 24 columns, :stack, :flow, :areas) reached through Macaw.Layout, and a host's registry holds the layouts it allows. A surface can be written short: cells as a list, a cell's single source:, stacked placement by default, Surface.build/2, and Macaw.Registry.default/0 with Surface.show/2, which validates, fetches and renders in one call. The built-in table chooses and orders its columns, heads them with labels and units, asks its source for its sort order before the budget caps it, and has a static stylesheet. Every public function that fails on input answers its faults as values, and CI fails on a raise or a locked advisory. This release is breaking for an adopter of 0.2.0: follow the guide below, then each dependency's own upgrade notes.

Upgrading from 0.2.0

  1. The dependencies move: macaw_layers ~> 0.4.0, macaw_data ~> 0.11.0 and macaw_component ~> 0.5.0 (were ~> 0.3.0, ~> 0.7.0 and ~> 0.2.0) (#242, #246, #250). An application that uses them directly moves with them and follows their notes: macaw_layers 0.4.0 (a host's URL policy gates every read, so Form.read/3 refuses every URL without urls:, and a theme refuses untrusted text); macaw_data's "Upgrading from 0.7.0" through "Upgrading from 0.10.x" (0.8's tables are chunked and opaque and its pushes numbered, 0.9's requests carry an order, 0.10 answers errors as values, 0.11 puts every kind of time on one instant scale); macaw_component 0.3.0 (a component's optional order/2), 0.4.0 and 0.5.0 (on macaw_data 0.10 and 0.11, its API otherwise unchanged).
  2. A reader's faults are under :surface (#215, #217). Surface.from_map/1 and from_json/2 give every fault by its path in the document they were given, so a fault new/1 finds in the surface is [:surface, :cells, "a", :kind] where it was [:cells, "a", :kind]. Code matching a reader's fault paths adds the :surface step; new/1 itself is unchanged.
  3. Which layouts exist is the host's (#224, #225, #198). Surface.new/1 no longer refuses a layout name it doesn't know ({:unknown_layout, name} is gone): a layout no registry holds is {:unknown, :layout} at [:layout] from Surface.validate/3, and a layout that is neither a name nor {name, options} is {:type, :layout} at new/1. A host with its own layouts passes them to Macaw.Registry.new/2 as layouts:. A layout with options is written {"$layout": [name, options]} in JSON, and Surface.Validated gains layout.
  4. Serve the new stylesheets, and the grid's at its new address (#196, #220, #225, #226, #227). The grid's stylesheet now holds every width, so its content address changes: a host that serves or caches it by path reads Macaw.Grid.stylesheet_path/0 again. The built-in table has a static stylesheet, Macaw.Builtin.Table.stylesheet/0 at stylesheet_path/0; the :stack and :flow layouts have their own; an :areas layout's is Surface.stylesheet/1 of the validated surface. Link each a page uses.
  5. The default registry and the one-call render answer errors as values (#230, #248, spec/00 §4.3). Macaw.Registry.default/0 and from_config/1, configured by config :macaw, packages:, layouts:, answer {:ok, registry} or every fault of the configuration; a host building its registry at boot calls default!/0 (or from_config!/1), the raising twins. Surface.show/2 answers a missing ceiling, a missing or wrong sources:, a registry: that isn't one and a configured registry that can't be built as faults by key, and a first argument that isn't a surface as new/1's faults: match {:error, faults} rather than rescuing.
  6. A capped table keeps different rows, and a refused fetch draws invalid (#221, #241, #246, #250). The built-in table asks its source for its sort order, so a table capped at its budget holds the first rows in that order rather than a sorted sample; a cell whose order its schema can't answer, and a cell whose finishing step refuses, draw invalid rather than failing the render. A slot reduced under a budget over a Date or NaiveDateTime series keeps the rows a UTC series keeps. Expectations and goldens written from 0.2.0's capped or reduced cells change.
  7. Two faults change shape (#212, #213, #240). An atom a setting or param spells outside the reader's vocabulary is {:unknown_atom, spelling} at its path (was {:enum, <the surface's own words>}), and a field the table's columns role lists twice is {:duplicate, field} at its path, never shown twice.

Changes

  • Breaking: on macaw_data ~> 0.11.0 and macaw_component ~> 0.5.0 (were ~> 0.10.0 and ~> 0.4.0) (#250, #249). The core calls none of what 0.11 changed (Window.position/1, {:window, :mixed}) and puts no window in its requests; the one difference a surface can see is a slot reduced under a budget over a Date or NaiveDateTime series, which may keep different rows: the ones a UTC series keeps. macaw_component 0.5 changes nothing of its API. An application on macaw_data 0.10 follows its "Upgrading from 0.10.x".
  • Breaking: errors are values (spec/00 §4.3, #248, #243). Macaw.Registry.default/0 and from_config/1 answer {:ok, registry} or every fault of the configuration, with default!/0 and from_config!/1 the raising twins for a host's boot: a host calling default/0 at boot moves to default!/0. Surface.show/2 answers a missing ceiling, a missing or wrong sources:, a registry: that isn't one and a configured registry that can't be built as faults by key (it raised ArgumentError or KeyError), and a first argument that isn't a surface as new/1's faults. Fixed: a listed cell whose source: isn't a name no longer crashes new/1 deriving its name. ci/raises.exs, the family's copy, fails CI on a raise outside ci/raises_allowlist.exs, and properties over generated malformed attrs and documents guard the readers.
  • Breaking: on macaw_data ~> 0.10.0 and macaw_component ~> 0.4.0 (were ~> 0.9.0 and ~> 0.3.0) (#246, #245). macaw_data 0.10 answers errors as values; the fetch matches Finish.ceiling/2, finish/4 and reduce/5's answers, and a step that refuses draws its cell invalid rather than crashing the render. An application on macaw_data 0.9 follows its "Upgrading from 0.9.x".
  • The built-in table asks its source for its sort order, so a table capped at its budget holds the first rows in it, not a sorted sample; a surface's fetch puts each slot's Component.order/3 in its request, pools slots only on equal orders, and draws invalid a cell whose order its schema can't answer (#221, #196, #241).
  • Breaking: on macaw_layers ~> 0.4.0, macaw_data ~> 0.9.0 and macaw_component ~> 0.3.0 (were ~> 0.3.1, ~> 0.7.0 and ~> 0.2.2) (#242, #241). An application on the older versions moves with them and follows their upgrade notes: macaw_data 0.8's tables are chunked and opaque and its pushes numbered, 0.9's requests carry an order; macaw_layers 0.4's Form.read/3 refuses every URL without urls: and a theme refuses untrusted text; macaw_component 0.3 adds a component's order/2. The core's own API is unchanged.
  • Needs macaw_component ~> 0.2.2: a column the table's columns role lists twice is {:duplicate, field} at its path, never shown twice (#240, #237).
  • Fixed: a layout's bad options no longer hide its cells' place faults, at new/1 or at validation, since place/1 judges a place's shape alone; and Surface.show/2 answers a failed new/1 or build/2 result's faults instead of raising (#238, #236).
  • The table's docs and spec state its unbound column order as the code gives it: the delivered table's, name order for rows given as maps (#239, #237).
  • The short code form (#231, #204): Macaw.Surface.build/2 and build!/2, a surface's name and keys with its cells {component, opts} in a list, equal to the surface written out; with the defaults, a predefined source and the table are five lines.
  • The host's default registry and the one-call render (#230, #204): Macaw.Registry.default/0 (and from_config/1) from config :macaw, packages:, layouts:, Macaw.Builtin always included, kept in :persistent_term and rebuilt when the configuration changes; Macaw.Surface.show/2 validates, fetches and renders in one call, sources: given once, the registry, now: (one clock read in the call), ceiling: (from config :macaw, :ceiling) and mode: (from a LiveView socket:) defaulted.
  • Fixed: a list of cells none of which could be named also reported :place_mixed and :empty; it now gives only its entries' faults, a property over generated lists guarding it (#235, #233).
  • Fixed: a bound cell under :stack or :flow (and a stacked list cell) was never fetched and always drew no data: the fetch read the cell's place as a comprehension filter, which drops a nil place. Every built-in layout's bound cells are now tested to fetch at their declared size (#234, #232).
  • A cell's single source (#229, #204): source: (with fields: and params: beside it) binds the component's one slot, resolved at validation, kept short in the document; a component with no slot or several is {:ambiguous_slot, slots} at [:cells, name, :source], and source with slots is :source_and_slots. Cell.keys/0 gains :source, :fields and :params.
  • Cells as a list (#228, #204): cells: [cell, …] keeps the list's order; a cell may omit its name, derived as <component's last word>_<source>, numbered on a collision; with no layout and no place, the cells stack in the list's order ({:stack, order: …}), and a list placing only some cells is :place_mixed. The forms write the expanded document.
  • The :areas layout (#227, #198): named regions from a template, {:areas, template: [["header", "header"], ["nav", "main"]]}, a cell's place %{area: name}; unequal rows, an area that isn't a rectangle, an unknown area and two cells in one area are faults by path. Reading order is each area's first appearance. Its stylesheet is generated per template and served by its content address; Macaw.Surface.stylesheet/1 gives any validated surface's layout sheet and its path.
  • The :stack and :flow layouts (#226, #198): one column, and sections for prose, each in the order its one option gives, {:stack, order: [...]}, every cell's name once. A cell has no place; its declared size is the surface's width and four rows. Each has its own stylesheet, served by its address. A built-in layout's options are held checked, every name a string.
  • A grid of 6, 12 or 24 columns: {:grid, columns: 24}, from an allowed set so the grid's one stylesheet stays static; a width outside it is {:enum, [6, 12, 24]} at [:layout, :options, :columns]. A layout with options has the JSON form {"$layout": [name, options]}. The behavior gains container/1, the cells' container's classes (#225, #198). The grid's stylesheet now holds every width, so its content address changes.
  • A layout is a behavior, Macaw.Layout (spec/06 §3.3, #224, #198): the grid is the built-in one, and validation, fetching and rendering reach it only through the behavior. A host's registry holds the built-in layouts and the ones it adds (Macaw.Registry.new/2's layouts:), closed by default; a surface naming a layout no registry holds is {:unknown, :layout} at validation. Changed: Surface.new/1 no longer refuses a layout name it doesn't know (it was {:unknown_layout, name}), since which layouts exist is the host's; a layout that is neither a name nor {name, options} is {:type, :layout}. Validated gains layout.
  • The built-in table heads each column with its field's label from the source's schema, its unit after it (Request time (s)); a cell's context carries each slot's schema (schemas, read with Context.label/3 and unit/3). Needs macaw_component ~> 0.2.1 (#219, #196).
  • The built-in table has a static stylesheet, Macaw.Builtin.Table.stylesheet/0 at its content address stylesheet_path/0, as the grid's is: every color a theme custom property, and the sorted column marked (#196, #220, spec/05 §6.1).
  • The built-in table's columns are chosen by its rows slot's optional columns role (fields: %{"columns" => ["host", "p50"]}), in the order bound, each field checked against the source's schema at validation; unbound, every column shows, as before (#196, #218, spec/05 §6.1).
  • Breaking: Surface.from_map/1 and from_json/2 give every fault by path from the document they were given. The faults new/1 finds are now under :surface ([:surface, :cells, "a", :kind], was [:cells, "a", :kind]), as a reader's own faults already were; new/1 itself is unchanged (#215, #217, spec/06 §3.1).
  • 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) (#216, macaw#214).
  • macaw_layers ~> 0.3.1: an atom a setting or param spells that the reader wasn't given (neither the document's word nor in vocabulary: %{atoms: [...]}) is refused at its path as {:unknown_atom, spelling}, naming the spelling, no longer {:enum, <the surface's own words>} (#212, #213, spec/06 §3.1). Bundles read each entry with its type's vocabulary (macaw_layers#21, #192); the core reads no bundles, so nothing else changes here.

v0.2.0 (2026-10-30)

Upgrading from 0.1.4

  1. Surface.from_map/2 is from_map/1, and it judges the value as terms: the version, the envelope, then new/1. It takes no limits:; they bound reading JSON, so they are from_json/2's.
  2. Settings and params are the terms they are. Cell.new/1 no longer refuses a value that isn't plain data ({:not_plain, v} is gone): a color term, a typed color, a time, a point or an atom is kept as given, and checked against the component's (or source's) declared parameter types at Surface.validate/3. A nested map's keys are kept as given too, no longer turned into strings. Only the setting and param names must be names ({:type, :name}), and settings and params must be maps ({:type, :map}).
  3. The JSON form writes terms by their tags and refuses what it can't hold. A color is $rgb/$color/$ramp/…, a time $time, a point $point, an atom $atom; a value JSON can't hold makes to_json/1 answer {:error, faults} at its path ({:type, :term}, or {:type, :name} for a non-string key in a setting's map). An atom a setting spells reads back only when from_json/2 is given it in vocabulary: %{atoms: [...]}.
  4. Names in the value are strings everywhere: node/1, fragment/1 and to_map/1 no longer write a name spelled like a document key (a cell named "title") as that key's atom. The JSON form is unchanged for such a name: it is a string in a name map.

Changes

  • Surface validation reports every check's faults: each check runs on what it needs, so a bad component, kind or settings no longer hides a cell's binding faults; a check a failed prerequisite rules out is reported as {:unchecked, :component | :settings} at the cell's slots (#195, #199, spec/06 §3.4).

  • macaw_component ~> 0.1.5: each cell's context carries its slots' resolved bindings, so a component reads the field bound to a role with Context.field/3; Surface.Validated holds each binding resolved by Slot.resolve/3 (#194, #200, spec/06 §3.4, §3.6).
  • macaw_layers ~> 0.3.0, macaw_data ~> 0.7.0 and macaw_component ~> 0.2.0, where internal data is BEAM terms (#188, #209): colors are %Color{} terms and a theme's names strings, a category's values and a schema's field names read back as strings, and digests and schema versions change (see each library's "Upgrading" notes). Surface.from_json/2 and from_map/2 read through Macaw.Layers.Form.read/3 (Document.read/3 is gone), and the envelope is judged as its value; the surface itself is unchanged.
  • Breaking: surfaces and cell settings are terms; JSON is the adapter (#188, #210, spec/00 §4.2, spec/06 §3.1–§3.2, spec/08 §2). from_map/1 judges a value with no form written or read. A cell keeps its settings and params as the terms they are, checked against the component's and the sources' declared parameter types at validation (a setting with no declared parameter stays :unknown_param). Names are strings, normalized once at construction; the JSON adapter alone writes and reads them, through name_map?/1 and the tags ($point new, the colors' from macaw_layers), and refuses at its path a value JSON can't hold.

v0.1.4 (2026-10-29)

  • macaw_data ~> 0.6.0 and macaw_component ~> 0.1.4: a delivery keeps the rows its source gave (#185). A fetch tells no data by Delivery.empty?/1; the built-in table packs the rows into columns with Delivery.table/2, drawing no data when they don't pack (#186).

v0.1.3 (2026-10-28)

  • The macaw logo: brand/ holds the owner's originals, transparent copies, the render script and GitHub social previews; the docs and the README show the scarlet macaw (#175).

v0.1.2 (2026-10-28)

  • On Hex: depends on macaw_layers ~> 0.2.2, macaw_data ~> 0.5.3 and macaw_component ~> 0.1.2 from Hex instead of their git tags; the README installs from Hex (#155).
  • RELEASING.md names the eight packages instead of globbing macaw_* (#155).
  • The README opens with the early-release notice (macaw#174).

v0.1.1 (2026-10-28)

  • The repository is dco-tek/macaw/macaw, in the dco-tek/macaw group; dependencies named by their group paths, on macaw_data v0.5.2 and macaw_component v0.1.1 (#151, #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 v0.1.0: surfaces with a grid, validated and rendered without a socket, and the built-in table (#154)