Closed wobsoriano closed 2 weeks ago
Latest commit: 0f5505d1468ef69430e0fbf60602d54dd38d34e3
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Description
This PR tackles ECO-19 and ECO-18 and optimizes stream modification by working directly with the
Uint8Array
instead of decoding and re-encoding a chunk to check for string (</head
>) availability. IntroducesTransformStream
.A benchmark between the current implementation and the proposed is available in this gist.
Checklist
npm test
runs as expected.npm run build
runs as expected.Type of change