Skip to content

v0.5.0

Choose a tag to compare

@meefik meefik released this 25 Jun 18:04

Added

  • Add support for ReadableStream data in the send method.
  • Add unit tests for utilities and some drivers.
  • Add optional metadata (info field) when sending messages.
  • Add abort signal handling to stop message transmission early.
  • Add toJSON method to serialize peer information for local and remote peers.
  • Add AGENTS.md file with rules for AI agents interacting with this project.

Changed

  • Update the send method API to return an async iterator that can be used to track data transmission progress or a Promise that resolves when the data is delivered.
  • Chunk and buffer large messages during transmission via data channels, supporting larger payloads out of the box.
  • Breaking: Change incoming data to be either a ReadableStream or a Promise. Read the stream to track receiving progress; use the Promise to get a specific data type when the full message is received.
  • Breaking: Send data through only one data channel instead of multiple. If the label is omitted, it uses the default label.