Skip to content

Commit 2fcd6b8

Browse files
os-zhuangclaude
andauthored
chore(changeset): bump bare-ref validation to minor + downstream note (#1935)
The new build-time error (#1931) can fail a previously-passing build for a stack carrying a latent bare-ref bug, so it warrants a minor bump and an explicit release note rather than a silent patch. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 417b6ac commit 2fcd6b8

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.changeset/validate-formula-bare-refs.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
---
2-
"@objectstack/formula": patch
3-
"@objectstack/cli": patch
2+
"@objectstack/formula": minor
3+
"@objectstack/cli": minor
44
---
55

66
feat(validate): flag bare field references in record-scoped CEL sites at build time
77

8+
> **Heads-up for downstream:** this adds a NEW build-time error. A `Field.formula`
9+
> or validation predicate that references a field bare (`amount` instead of
10+
> `record.amount`) now fails `objectstack compile`. These expressions were already
11+
> silently broken at runtime (they evaluated to `null` / never fired), so this is a
12+
> fix that surfaces a latent bug — but a stack carrying one will go from
13+
> "builds, silently wrong" to "fails the build" on upgrade. The error message
14+
> states the exact correction (`write record.<field>`).
15+
816
A `Field.formula` and an object validation predicate evaluate against the
917
`record` namespace only — there is no field flattening — so a bare top-level
1018
identifier (`amount`, `status`) resolves to nothing and the expression silently

0 commit comments

Comments
 (0)