element-hq / element-hq/hydrogen-web

Don't include all encodings from TextEncoder polyfill as it blows up the legacy bundle by 500kb.

Open
#197 2 comments 0 reactions 0 assignees View on GitHub
maintenance
Dominant language
TypeScript
Stars
714
Forks
131
PR merge metrics
No merged PRs in 30d

Description

As our [other dependency](https://github.com/ricmoo/aes-js#migrating-from-2x-to-3x) apparently has a similar API for just utf8 (which is the only encoding we need):
```js
aesjs.utils.utf8.toBytes(aString)
aesjs.utils.utf8.fromBytes(aString)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.