Repository navigation
v0.11.0
Added
- text:
datastream/text.utf8_decode_lossyis a convenience wrapper
overutf8_decodethat drops chunks which fail to decode and yields
a plainStream(String). The chunked-bytes → lines → records pipeline
(the most common shape) now composes directly without a hand-rolled
Result(String, Nil) -> Option(String)shim:
chunks |> text.utf8_decode_lossy |> text.lines |> .... The strict
utf8_decoderemains the right tool when callers need to observe
decode errors viafold.partition_result. README and the
ndjson_pipeline_exampleare updated to lead with the lossy variant.
(#200)
Install
gleam add datastreamSee HexDocs for the API
reference.