Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

peerjs-js-binarypack

peers96.1kMIT2.1.0TypeScript support: included

BinaryPack serialization

readme

BinaryPack

BinaryPack is 95% MessagePack. The protocol has been extended to support distinct string and binary types.

This library is mainly used by PeerJS to transfer objects via data channels. Bug reports and fixes are welcome, but we are unlikely to implement new features.

Inspired by: https://github.com/cuzic/MessagePack-JS

changelog

2.1.0 (2023-12-03)

Features

2.0.0 (2023-06-22)

Bug Fixes

  • empty TypedArray can now be packed (3475f45)
  • undefined will stay undefined instead of null (83af274)

Features

  • return ArrayBuffer instead of Blob (6b70875)

Reverts

  • Revert "fix: undefined will stay undefined instead of null" (da49137)

BREAKING CHANGES

  • Return type of pack is now ArrayBuffer