Repository navigation
v0.10.2
Nothing changes in the catalog hash, the generated SQL, or the public API, apart from the stricter descendants() and ancestors() types below.
🐛 Fixed
- A value that a
.sensitive()or hidden column rejects no longer appears in the error. Reads now say onlyField <name> was rejected.(OKM1210) in the message,toHttp(),log(), and the cause, as writes already did. This covers awhereonfind,page,one,count, andexists, values insideinList, relation filters (has,none,every), and thewhereofupdateanddelete. An ordinary column still names the rejected value. distinctOnreports the default-limit warning (OKM2011) even after an earlierdistinctread. Each read that takes a default limit now reports it from its own call site.- The OKM1120 "Accepted names" list on a write names only the fields that write may set. Columns it would refuse with OKM1190 are left out: an
id()identity default, guarded columns (unlessallownames them), trait fields, and the primary key on an update. A primary key you set yourself stays in the list on an insert. descendants()andancestors()on atree()table now need an options argument with alimitin TypeScript whenconnectdoes not setlimits.find, the same asfind(). A baredescendants(id)used to compile and then throw OKM1101. Withlimits.findset, a bare id still works, and.all(reason)is still available.- On a Bun.sql pool from
open(), a query that the server terminated while it ran (for example withpg_terminate_backend) now fails with a lost-connection error. It used to run again on a new connection. Bun 1.4.4 made this happen every time. - When a seed file fails to import,
okm seednow names the seed file and the module that could not be loaded. - On the docs site, unknown pages return 404 instead of a server error, and the old
/docs/define/*and/docs/start/*links redirect to their new pages.
📚 Docs
- The error pages no longer claim that row values never appear in errors. They say when a value can appear in
toHttp()for an ordinary column, and that a table with any.sensitive()column keepsvalues()undefined and a reduced cause even witherrors.includeValues. - The seed docs explain that relative imports in a seed file use the
.tsextension underbunx okm, with an example that seeds a globaltenantstable and then tenant rows.