D04
Warning
Data and assets
D04 — A persisted shape changed with no new version
What a returning reader's browser holds is the old shape; the page reads it as the new one. Raising version:, with a migrate step, brings it forward.
The fix
raise version: and add migrate 1 -> 2 { … } to bring the
old value forward.
Why this rule exists
Warning. The build remembers what each persist held (in
.wf-cache/persist.json); when that changes — persist items: [String] = []
becomes persist items: Lists = Lists() — and version: does not, a
returning reader's browser hands the old shape to code written for the new
one.
lints may lower it:
"lints": { "D04": "off" }
// wf-allow(D04)