[0.2.2] - 2026-05-13
Added
mix static_context.install— Igniter-powered installer that adds static_context to.formatter.exsautomatically. Run viamix igniter.install static_contextor directly withmix static_context.install.
[0.2.1] - 2026-04-27
Docs
- README:
static_belongs_toexpansion now reflects thewritable: :neveroption. usage-rules.md: note that the struct field is load-only and warn against casting or writing it directly.
[0.2.0] - 2026-04-27
Changed
- Breaking:
static_belongs_tonow addswritable: :neverto the struct field. The_idfield remains the sole write path; the struct field is load-only. This fixes a duplicate-column error onRepo.insert!when both fields are set (e.g. via ExMachina lazy resolvers), but breaks any code that wrote the struct field directly via changeset orstruct!/2and expected it to persist.
[0.1.1] - 2026-04-17
Added
usage-rules.md— ships with the hex package so tools likeusage_rulesand memexdepssources can surface it to AI agents.
[0.1.0] - 2026-04-13
Added
static_context/2macro for generating lookup functions for in-memory struct lists- 7 generated functions: list, list_by, list_for, get, get!, get_by, get_by!
StaticContext.Schema—static_belongs_tomacro for Ecto schema integrationStaticContext.Type— parameterized Ecto type bridging static lookups with EctoStaticContext.Validate— runtime validation helpers