Skip to content

Releases: standardschema/javascript

Remove `Any#ref`

31 May 00:22
Compare
Choose a tag to compare

Removed

  • Kill Any#ref - it's really subjective, allow aliasing separately using meta and serialiser/deserialiser

Omit `undefined` object keys

30 May 23:19
Compare
Choose a tag to compare

Fixed

  • Remove undefined object keys from output

Intersection Merging

30 May 22:24
Compare
Choose a tag to compare

Changed

  • Removed Key type
  • Add a Uuid type
  • Make type value a title-cased string
  • Rename Accepted and Rejected to Whitelist and Blacklist
  • Add _isType structural type check (for selecting branches without validation)
  • Merge the results of intersection types together
  • Return the result of validation instead of input value (now intersections properly intersect results)
  • Replaced object patterns with propertyTypes

Return `root` object

28 May 04:46
Compare
Choose a tag to compare

Changed

  • Return root until intersections are resolved

Replace `enum` with types

28 May 02:23
Compare
Choose a tag to compare

Changed

  • Remove enum from any, replace with uses and new Types.{Accepted,Rejected}

Export Path Utils

24 May 00:41
Compare
Choose a tag to compare

Changed

  • Export path utils for re-use

Correct import paths

24 May 00:33
Compare
Choose a tag to compare

Changed

  • Explicit index.d.ts import, for working with Typings

Refactor validation API

24 May 00:19
Compare
Choose a tag to compare

Changed

  • Make compile a function that takes a schema and returns an async function
  • Add support for object property patterns