We noticed the memory issue with Netlify's CSP plugin which used the same htmlrewriter library. We've built a new htmlrewriter library which uses the latest version of lol-html and removes the ability to use async-handlers, which is what required asyncify to be included.
Documentation
This is intended to be a pure refactor and have no user visible changes, as such no documentation updates should be required
Tests
You can test this change yourself like so:
deno test -A edge-runtime/
Relevant links (GitHub issues, etc.) or a picture of cute animal
Description
We noticed the memory issue with Netlify's CSP plugin which used the same htmlrewriter library. We've built a new htmlrewriter library which uses the latest version of lol-html and removes the ability to use async-handlers, which is what required asyncify to be included.
Documentation
This is intended to be a pure refactor and have no user visible changes, as such no documentation updates should be required
Tests
You can test this change yourself like so:
deno test -A edge-runtime/
Relevant links (GitHub issues, etc.) or a picture of cute animal
https://deno.land/x/htmlrewriter@v1.0.0