Skip to content

v9.0.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 18 Feb 11:04

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 into visitObjectType and visitIntersectionType (#110) (61e5705)

BREAKING CHANGES

  • Visitor<R> interface now requires two new methods visitObjectType and visitIntersectionType while the existing visitObjectLikeType is removed.

  • chore: update docs

  • The type, input and details properties of ValidationError 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 supports null, undefined, symbols, objects and functions and anything other than strings, numbers and booleans really.