Skip to content

feat(util): add TextEncoderStream and TextDecoderStream - #1711

Merged
richarddavison merged 7 commits into
mainfrom
feat-text-encoder-decoder-stream
Aug 13, 2026
Merged

feat(util): add TextEncoderStream and TextDecoderStream#1711
richarddavison merged 7 commits into
mainfrom
feat-text-encoder-decoder-stream

Conversation

@richarddd

Copy link
Copy Markdown
Collaborator

Issue # (if available)

Closes #793

Description of changes

Adds TextEncoderStream and TextDecoderStream in Rust, wrapping the existing TransformStream with the existing TextEncoder/TextDecoder logic (TextDecoder's chunked stream: true decode handles multi-byte sequences split across chunks). Both are exposed as globals and as util exports.

Checklist

  • Created unit tests in tests/unit and/or in Rust for my feature if needed
  • Ran make fix to format JS and apply Clippy auto fixes
  • Made sure my code didn't add any additional warnings: make check
  • Added relevant type info in types/ directory
  • Updated documentation if needed (API.md/README.md/Other)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@richarddavison
richarddavison force-pushed the feat-text-encoder-decoder-stream branch from a7c2854 to 532df2a Compare August 9, 2026 08:58
@richarddavison
richarddavison force-pushed the feat-text-encoder-decoder-stream branch from 532df2a to bc62dfa Compare August 9, 2026 09:21
@richarddavison
richarddavison force-pushed the feat-text-encoder-decoder-stream branch 2 times, most recently from d64b23d to 966071d Compare August 9, 2026 13:51
@richarddavison
richarddavison force-pushed the feat-text-encoder-decoder-stream branch from 966071d to 442b468 Compare August 10, 2026 02:52
@richarddavison
richarddavison marked this pull request as ready for review August 11, 2026 04:11
@richarddavison
richarddavison merged commit 5a49790 into main Aug 13, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TextEncoderStream and TextDecoderStream implementation

2 participants