You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5cb765b
Browse filesBrowse the repository at this point in the historyBrowse files
feat(spec): warnGenericPasswordFields reads its exemption from the masked-on-read declaration
ObjectSchema.create()'s author-time password warning no longer hard-codes
managedBy 'better-auth'; it warns exactly where isMaskedOnReadFieldType
('password', managedBy) says the read mask applies. Behaviour unchanged
(same warn/no-warn per managedBy x field-shape row). A pin in object.test.ts
ties the warning to the declaration. Comments no longer say objectui derives
from the declaration today: it keeps its interim copy until its re-bind card.
Claude-Session: https://claude.ai/code/session_01CiCTczDo7tGhafXjf61dUJ
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .changeset/20141-masked-on-read-field-types-declared.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,8 @@ carrying their own `type === 'secret'` / `'password'` arms. No behaviour
27
27
change: the masked-on-read answer is identical for every `FieldType` ×
28
28
`managedBy` cell, pinned by a table test.
29
29
30
+
`@objectstack/spec`: `ObjectSchema.create()`'s author-time warning for a `password` field on a non-auth object now reads its `managedBy` exemption from `isMaskedOnReadFieldType` instead of hard-coding `'better-auth'`, so it follows the declaration; which objects and fields warn is unchanged.
31
+
30
32
A client that renders credential fields (show the mask, offer no copy) should
31
33
derive its set from `isMaskedOnReadFieldType` rather than keep its own list,
32
34
so the server's mask and the client's cannot drift apart.
0 commit comments