Skip to content

feat: add stream-buffers to replacements#395

Open
gameroman wants to merge 6 commits intoes-tooling:mainfrom
gameroman:stream-buffers
Open

feat: add stream-buffers to replacements#395
gameroman wants to merge 6 commits intoes-tooling:mainfrom
gameroman:stream-buffers

Conversation

@gameroman
Copy link
Contributor

@gameroman gameroman commented Mar 6, 2026

Closes #242
Closes #244
Closes e18e/e18e#110

@gameroman gameroman marked this pull request as ready for review March 7, 2026 00:33
@gameroman gameroman changed the title [wip] feat: add stream-buffers to replacements feat: add stream-buffers to replacements Mar 7, 2026
Co-authored-by: James Garbutt <43081j@users.noreply.github.com>
@gameroman gameroman requested a review from 43081j March 9, 2026 14:29
Comment on lines +21 to +22
const out = sink.getContents() // or sink.getContentsAsString('utf8') / JSON.parse(sink.getContentsAsString('utf8')) / new Blob([sink.getContents()]) / sink.getContents().buffer.slice(...) [!code --]
const out = await buffer(readable) // or text(readable) / json(readable) / blob(readable) / arrayBuffer(readable) [!code ++]
Copy link
Contributor

@43081j 43081j Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these comments don't make much sense for a diff. a diff is meant to show before/after. if that's not possible, we shouldn't bother with a diff.

nobody would write this code, which is why it doesn't work as a diff. without the comments it'd be fine, or don't use a diff

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, will change that

I will take a look into top dependents to understand how it is usually used

Top dependents
# Downloads/month Traffic Version Package
1 14.90M 95.07 GB 2.2.x bplist-creator
2 4.02M 25.67 GB ^3.0.2 @kubernetes/client-node
3 2.80M 17.85 GB ^3.0.2 @wdio/local-runner
4 607.85k 3.88 GB ^3.0.0 shrink-ray-current
5 539.09k 3.44 GB 3.0.3 @cdktf/cli-core
6 314.31k 2.00 GB ^3.0.2 grunt-contrib-compress
7 219.30k 1.40 GB 1.0.1 pngjs-image
8 89.52k 571.06 MB ^0.2.3 connect-injector
9 68.38k 436.22 MB ^3.0.3 @anolilab/multi-semantic-release
10 40.18k 256.33 MB ^3.0.3 multi-semantic-release

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did some analysis and looks like most (or many) downloads are coming from expo

@gameroman gameroman requested a review from 43081j March 11, 2026 01:32
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.

stream-buffers

2 participants