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
Hi @RobinBlomberg, I see you've already addressed this in e4f54f4. Is there any chance that commit will make its way into a release soon? We're unable to upgrade at the moment due to the type regressions above. Thanks!
I believe the
ColumnType
type argument deduplication logic in ad03d2e was incorrect.In particular, it assumed an omitted update type would default to the insert type, when in fact Kysely's update type defaults to the select type (see https://github.com/kysely-org/kysely/blob/0.27.4/src/util/column-type.ts#L41).
This led to some regressions in the types generated by
kysely-codegen
.For instance, where we previously had these generated types
which expanded to
we now have these generated types
which expand to
The new column types are overly strict on what types of values can be specified for an update.
Upvote & Fund
The text was updated successfully, but these errors were encountered: