Skip to content

feat: use utf8-only TextEncoder/TextDecoder polyfill#39

Merged
ChALkeR merged 1 commit into
mainfrom
chalker/text-encoding-utf8/0
Apr 9, 2025
Merged

feat: use utf8-only TextEncoder/TextDecoder polyfill#39
ChALkeR merged 1 commit into
mainfrom
chalker/text-encoding-utf8/0

Conversation

@ChALkeR
Copy link
Copy Markdown
Collaborator

@ChALkeR ChALkeR commented Apr 9, 2025

  • Reduce d8/jsc/hermes bundle size by ~500 KiB,
  • Make Hermes take ~100ms less per test file,
  • Remove unmaintained dep warning on install.

At the cost of not supporting non-utf8 TextEncoder/TextDecoder on d8/jsc/hermes engines anymore.

Seems reasonable, and the tests can polyfill those manually if needed.

@ChALkeR ChALkeR changed the title feat: use utf8-only text-encoding polyfill feat: use utf8-only TextEncoder/TextDecoder polyfill Apr 9, 2025
@ChALkeR ChALkeR merged commit dfc0702 into main Apr 9, 2025
11 checks passed
@ChALkeR ChALkeR deleted the chalker/text-encoding-utf8/0 branch April 9, 2025 04:58
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.

1 participant