Svelixir.Component (svelixir v0.61.2)

Copy Markdown

Reads and writes component.exs — a component's manifest (SDD 7.1).

Plain data: no module definition, and nothing that loads the manifest by requiring it as source — the MatchError trap 7.1 calls out in Fireside. Svelixir.Exs is the only reader, so a manifest that tries to execute code fails to decode rather than running.

Like Svelixir.Manifest, this prose avoids the literal tokens Svelixir.BoundaryGuard bans: the guard is a substring scan over the whole file, docs included, so naming those loaders the obvious way would make lib/ fail its own boundary test.

Summary

Functions

Reads a component manifest.

Writes a component manifest as deterministic bytes.

Functions

read!(path)

@spec read!(Path.t()) :: map()

Reads a component manifest.

write!(path, component)

@spec write!(Path.t(), map()) :: :ok

Writes a component manifest as deterministic bytes.

Byte stability is required by D8 so CI can assert that re-deriving reproduces the checked-in component.