Minor Changes
-
#1922
62b40e8
Thanks @gcanti! - Refactoring:- Schema:
- refactor
Schema.declare
API to make it safe - add
Schema.declare
overloads - add
encodeUnknown*
APIs - rename
parse*
APIs todecodeUnknown*
- symplify brand implementation
- rename
params
toannotation
intypeId
annotation - add optional
{ strict: false }
parameter tocompose
Class
- rename
transform
totransformOrFail
- rename
transformFrom
totransformOrFailFrom
- rename
- add
hashSet
andhashSetFromSelf
- add
hashMap
andhashMapFromSelf
- add
list
andlistFromSelf
- refactor
- AST:
- return
ParseResult.ParseIssue
instead ofParseResult.ParseError
in all APIs - Declaration
- split
decode
intodecodeUnknown
/encodeUnknown
- remove
type
field
- split
- return
- ParseResult
- align
mapBoth
withEffect
(i.e. onFailure, onSuccess handlers) - add missing
Declaration
node inParseIssue
- align
- Schema:
-
#1922
62b40e8
Thanks @gcanti! - add context tracking to Schema, closes #1873