Releases: DZakh/rescript-schema
Releases · DZakh/rescript-schema
v0.11.0
A lot of good though breaking changes:
- Introduce
Safe
andUnsafe
modes forS.parseWith
function - Introduce
S.serializeWith
function withSafe
andUnsafe
modes - Remove
S.constructWith
in favor ofS.parseWith(~mode=Unsafe, struct)
- Remove
S.destructWith
in favor ofS.serializeWith(~mode=Unsafe, struct)
- Introduce
S.json
struct factory - Remove
S.parseJsonWith
in favor ofS.parseWith(S.json(struct))
- Remove
S.serializeJsonWith
in favor ofS.serializeWith(S.json(struct))
- Add
S.transformUnknown
function for more convenient work withS.unknown
struct factory - Renaming public functions of the
MakeMetadata
module - Add undocumented
S.refine
function. It's an alpha version, that has a hight chance to be changed in next releases.
v0.10.0
v0.9.0
v0.8.0
- Removed
S.encodeWith
. UseS.destructWith
instead - Renamed
S.decodeWith
->S.parseWith
- Renamed
S.decodeJsonWith
->S.parseJsonWith
- Renamed
S.encodeJsonWith
->S.serializeJsonWith
- Fixed incorrect Null struct behaviour inside Deprecated and Option structs
- Added package prefix to error messages and rephrase them
- Added name to the raised JS exception
v0.7.0
v0.6.0
- Make
encodeWith
anddecodeWith
work with any JS values and not only withJs.Json.t
- Remove
Json
module because it became unneeded - Introduce opaque
S.unknown
type. You can useJs.Types
module to work with it - Improve consistency for struct factories testing
I'm very happy about the change, because it makes rescript-struct something more than yet another JSON decoding/encoding library.
I've decided to update the roadmap section and start describing changes for releases 🎆