What's Changed
Features
- Added
@uuidstring validation attribute (with an optional version argument, 4 or 7) and a matchingisUuid()function for use in custom validation rules and expressions - by @sanny-io and @MaxFreedomPollard
Fixes
- Fixed
argstyping of parameterized computed fields: non-scalar parameters (enums, type defs, etc.) are now properly typed instead of falling back tounknown- by @evgenovalov - Fixed enum value resolution for table-qualified references, so joined queries involving mapped enum fields or renamed enum columns no longer fail #2825 - by @DoctorFTB
- Added a mutex for single-connection database adapters (SQLite) to avoid concurrent transaction conflicts (ported from latest Kysely) #2788 - by @sanny-io
Additional notes
A side-effect improvement brought by @evgenovalov 's change is that, the generated model doesn't contain method stubs for computed fields anymore (they used to be an object under the computedFields key). Now computed field's argument type and return type are directly inferred from their field definitions.
Full Changelog: v3.9.3...v3.9.4