Skip to content

v0.10.0

Compare
Choose a tag to compare
@lxsmnsyc lxsmnsyc released this 18 Sep 02:36
· 521 commits to main since this release
  • 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 and crossSerializeAsync. JSON variants will be introduced in the future.
  • 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 the crossSerializeStream and the Serializer class, both provides two kinds of streaming format (the former being a one-time read-only stream, while the latter allowing push data).
  • 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 that seroval can also serialize Error instances.
  • Add ReadableStream support.
    • Currently only available in crossSerializeStream and Serializer class.
  • 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