Skip to content

Custom serializers, Typescript & SWC

Latest
Compare
Choose a tag to compare
@dackmin dackmin released this 11 Oct 09:54
· 11 commits to master since this release
3aa4ef0

3.0.1 (2023-11-17)

Bug Fixes

  • wrong logLevel default value (775396d)

3.0.0 (2023-10-11)

⚠ BREAKING CHANGES

  • Everything has been rewritten in full Typescript, and definitions are now directly exported from TS. It is not a breaking change per-se, but users currently relying on the v2 definitions might see some errors as some types are more robust than before (b45c3dd)
  • Unknown data structures are now serialized as empty objects ({}) instead of relying on JSON.stringify to potentially throw an error

Internal breaking changes:

  • (internal) Now requires Node 16 minimum (only applicable if you contribute to buddy as it's a browser package) (4c5e76d)
  • (internal) Project is now built using SWC instead of Babel (2d16934)
  • (internal) Now uses Yarn 3 as Yarn 1 is obsolete

Features

  • Add custom serializers, see documentation for more info (6935ae6)
  • Some utils like serialize, unserialize, bid (dumb uuid generator) or isBuddy are now exported to help create custom serializers

Full Changelog: v2.0.0...v3.0.0