9.0.0 (2025-02-18)
Bug Fixes
DeepUnbranded
type: later bailout by compiler (87d413e)
Features
withDefault
method on every type (#109) (788c2f3)- Change
string.autoCast
behaviour on anything other than booleans and numbers (#104) (4f9b0bd), closes #47 - Introduce StandardSchemaV1 interface in Skunkteam Types (#108) (36a3554)
- Make all properties of
ValidationError
readonly (3750f2b) - move
autoCast
getters to separate functions (e15a0aa) - split
visitObjectLikeType
intovisitObjectType
andvisitIntersectionType
(#110) (61e5705)
BREAKING CHANGES
-
Visitor<R>
interface now requires two new methodsvisitObjectType
andvisitIntersectionType
while the existingvisitObjectLikeType
is removed. -
chore: update docs
-
The
type
,input
anddetails
properties ofValidationError
used to be writable, they are now marked as readonly. -
The getters
.autoCast
and.autoCastAll
are removed and moved to separately exported functions. -
string.autoCast
no longer supportsnull
,undefined
, symbols, objects and functions and anything other than strings, numbers and booleans really.