Releases: standardschema/javascript
Releases · standardschema/javascript
Remove `Any#ref`
Removed
- Kill
Any#ref
- it's really subjective, allow aliasing separately usingmeta
and serialiser/deserialiser
Omit `undefined` object keys
Fixed
- Remove
undefined
object keys from output
Intersection Merging
Changed
- Removed
Key
type - Add a
Uuid
type - Make
type
value a title-cased string - Rename
Accepted
andRejected
toWhitelist
andBlacklist
- 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
withpropertyTypes
Return `root` object
Changed
- Return
root
until intersections are resolved
Replace `enum` with types
Changed
- Remove
enum
fromany
, replace withuses
and newTypes.{Accepted,Rejected}
Export Path Utils
Changed
- Export path utils for re-use
Correct import paths
Changed
- Explicit
index.d.ts
import, for working with Typings
Refactor validation API
Changed
- Make
compile
a function that takes a schema and returns an async function - Add support for object property patterns