deno.land / x / typebox@0.32.21 / changelog / 0.25.0.md

0.25.0

Updates:

  • 271 Adds a new non-standard Type.Date() type. This type joins the existing Type.UInt8Array() as a promoted extended type used to represent core JavaScript primitives. It's inclusion was prompted by end user requirements to validate Date objects prior to writing them to Date supported API's and where serialization of the Date object is handled internally by the API.

  • 271 Redesign of Extended Type representations. Extended types been updated to provide external validators (such as Ajv) additional standard proporties to use when defining the custom schema. These properties are instanceOf (used for validating a class object instances), and typeOf (when validating value types). Information on configuring AJV for these properties can be found in the AJV section of the TypeBox readme.

typebox

Version Info

Tagged at
4 weeks ago