v0.10.0
- Add the cross-referencing serializer mode
- This mode allows multiple calls of serialization to share the same reference maps, a behavior that's not present in current existing modes. This introduces
crossSerialize
andcrossSerializeAsync
. JSON variants will be introduced in the future.
- This mode allows multiple calls of serialization to share the same reference maps, a behavior that's not present in current existing modes. This introduces
- Add the streaming serializer mode (#5)
- With the addition of the cross-referencing serializer, it's now possible for
seroval
to stream serialized data but with a new API. This release introduces thecrossSerializeStream
and theSerializer
class, both provides two kinds of streaming format (the former being a one-time read-only stream, while the latter allowing push data).
- With the addition of the cross-referencing serializer, it's now possible for
- Fix
Promise
serialization to consider rejected instances.- Previously
seroval
throws on rejected Promises, which shouldn't be the case and is most likely a bad design, given thatseroval
can also serialize Error instances.
- Previously
- Add
ReadableStream
support.- Currently only available in
crossSerializeStream
andSerializer
class.
- Currently only available in
- Restructure docs
- Since there are two READMEs in the repo, it's a bit of redundant work to maintain one of it (and paste it to the other) so I've decided to separate the docs. Docs are still a WIP but most of it is still usable.
Full Changelog: v0.9.0...v0.10.0