framer 1.0.0
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, andStream.decodeFramesIntoBorrowed. - Expose borrowed APIs via
package:framer/unsafe.dart(safe-by-default import remainspackage:framer/framer.dart). - Expose pooling APIs via
package:framer/extra.dart. DelimiterCodecandLengthPrefixedCodecnow support borrowed decoding viatryDecodeBorrowed(defaulttryDecodestill returns owned copies).
0.1.2 #
- Add
GrpcMessageCodec(gRPC 5-byte message framing) andGrpcMessage. - Add
LspJsonRpcCodec(Content-Length framing + JSON decode convenience). - Add
FrameCodecX.mapfor composing codecs. - Add examples for gRPC and JSON-RPC.
0.1.1 #
- Add
ContentLengthCodecfor LSP /Content-Lengthframing. - Add runnable examples in
example/(SSE, WebSocket frames, LSP framing). - Add
lib/framer.dartalias entrypoint and update docs/README imports. - Replace publishing placeholders and set repository metadata.
0.1.0 #
- Initial release.