Repository navigation
v0.20.0
Added
- GitHub Releases now attach the package tarball,
checksums.txt, its cosign signature (checksums.txt.sigstore.json) and build provenance (.intoto.jsonl). See "Verifying releases" in the README.
Fixed
text.split(over: s, on: "")no longer splits a grapheme cluster that spans a chunk boundary. A combining mark, the\nof\r\n, the second half of a flag or the rest of an emoji sequence that arrived in the next chunk used to be emitted as a separate element; the result now matchesstring.to_graphemesof the whole input wherever the chunks are cut.text.utf8_decodeandtext.utf8_decode_lossyno longer lose valid text next to an encoded surrogate (0xED 0xA0..0xBF), an overlong 3- or 4-byte sequence (0xE0 0x80..0x9F,0xF0 0x80..0x8F) or a code point above U+10FFFF (0xF4 0x90..). Such a sequence passed the structural check, and the whole buffered run around it, valid text included, became a singleError(Nil)(the lossy variant dropped it silently). Each byte of the invalid sequence is now oneError(Nil)and the text on both sides is decoded. Theutf8_decodedocumentation now also says that a run of valid bytes is emitted as oneOk, as the implementation and tests always did.
Install
gleam add datastreamSee HexDocs for the API
reference.