Commit 6643ba1
docs(spec):
* docs(spec): $exists asks for a value, not a present key (#13709)
The JSDoc on `SpecialOperatorSchema.$exists` read "Field exists check
(primarily for NoSQL)", which describes key-presence. `$exists` stopped
meaning key-presence when the has-value alignment landed (PR #13529 /
9dac1ae); the line was false, not merely stale, and it was the last of
six sites still carrying the old claim.
Replaced with the wording recorded on #13539 and already shipped on the
other five sites, adapted to this file's JSDoc idiom (the sibling `$null`
line annotates which boolean maps to which lowering, so this one does too).
Direction verified against all three evaluators before rewriting.
Prose only: `$exists` is `z.boolean().optional()` before and after, and the
comment is not a `.describe()`, so no generated artifact moves.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mciyv38maJ6HYVMiaM26T1
* docs(changeset): state the measured surfaces, not the assumed one (#13709)
The first draft claimed the corrected JSDoc reaches consumers as `.d.ts`
hover text. Measured on a freshly built dist: zero `.d.ts`/`.d.mts` carry
it (the property's type is inferred from Zod, so no declaration comment is
emitted) — it appears in `dist` only inside `.js.map` sourcemaps.
The surface that does carry it is published SOURCE: this package's `files`
array ships `src/**/*.zod.ts`, so `filter.zod.ts` itself is in the tarball.
Recorded alongside the two negative results, since a PR correcting a false
claim must not ship one.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mciyv38maJ6HYVMiaM26T1
---------
Co-authored-by: Claude <noreply@anthropic.com>$exists asks whether a field has a value, not whether a key is present (#14050)1 parent ada3834 commit 6643ba1
2 files changed
Lines changed: 42 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
994 | 994 | | |
995 | 995 | | |
996 | 996 | | |
997 | | - | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
998 | 1002 | | |
999 | 1003 | | |
1000 | 1004 | | |
| |||
0 commit comments