framer 1.0.0 copy "framer: ^1.0.0" to clipboard
framer: ^1.0.0 copied to clipboard

Incremental framing for Stream<List<int>> with hard progress guarantees, spill/drain-safe codecs, and a fast ring buffer.

Changelog #

1.0.0 #

  • Stable public API.

0.2.0 #

  • Add optional borrowed/zero-copy decoding path: FrameBorrowedView, BorrowedBytesCodec, FramerBorrowedBytes, and Stream.decodeFramesIntoBorrowed.
  • Expose borrowed APIs via package:framer/unsafe.dart (safe-by-default import remains package:framer/framer.dart).
  • Expose pooling APIs via package:framer/extra.dart.
  • DelimiterCodec and LengthPrefixedCodec now support borrowed decoding via tryDecodeBorrowed (default tryDecode still returns owned copies).

0.1.2 #

  • Add GrpcMessageCodec (gRPC 5-byte message framing) and GrpcMessage.
  • Add LspJsonRpcCodec (Content-Length framing + JSON decode convenience).
  • Add FrameCodecX.map for composing codecs.
  • Add examples for gRPC and JSON-RPC.

0.1.1 #

  • Add ContentLengthCodec for LSP / Content-Length framing.
  • Add runnable examples in example/ (SSE, WebSocket frames, LSP framing).
  • Add lib/framer.dart alias entrypoint and update docs/README imports.
  • Replace publishing placeholders and set repository metadata.

0.1.0 #

  • Initial release.
1
likes
150
points
122
downloads

Publisher

verified publishergetx.site

Weekly Downloads

Incremental framing for Stream<List<int>> with hard progress guarantees, spill/drain-safe codecs, and a fast ring buffer.

Repository (GitHub)
View/report issues
Contributing

Topics

#parsing #streaming #protocols #sse #websocket

Documentation

API reference

License

MIT (license)

More

Packages that depend on framer