Skip to content

add .bytes() method to various readables - #11104

Merged
nektro merged 15 commits into
mainfrom
jarred/bytes
May 17, 2024
Merged

nektro merged 15 commits into
mainfrom
jarred/bytes

Conversation

@nektro

@nektro nektro commented May 16, 2024

Copy link
Copy Markdown
Contributor

Closes #11049

@github-actions

github-actions Bot commented May 16, 2024 •

Copy link
Copy Markdown
Contributor

❌ @nektro, your commit has failing tests :(

💪 3 failing tests Darwin AARCH64

💻 2 failing tests Darwin x64 baseline

💻 4 failing tests Darwin x64

🐧💪 1 failing tests Linux AARCH64

🐧🖥 2 failing tests Linux x64 baseline

🐧🖥 1 failing tests Linux x64

🪟💻 12 failing tests Windows x64 baseline

🪟💻 13 failing tests Windows x64

View logs

Comment thread src/bun.js/base.zig Outdated
Comment thread test/js/web/streams/streams.test.js
@Jarred-Sumner Jarred-Sumner changed the title add .body() method to various readables add .bytes() method to various readables May 16, 2024
Comment thread src/bun.js/bindings/BunObject.cpp Outdated
Comment thread src/bun.js/bindings/BunObject.cpp Outdated
Comment thread src/bun.js/bindings/BunObject.cpp Outdated
Comment thread src/bun.js/bindings/BunObject.cpp Outdated
Comment thread packages/bun-polyfills/src/modules/bun.ts Outdated
Comment thread src/bun.js/bindings/BunObject.cpp Outdated
Comment thread src/bun.js/bindings/BunObject.cpp Outdated
@nektro
nektro marked this pull request as ready for review May 16, 2024 10:29
@nektro
nektro requested a review from Jarred-Sumner May 17, 2024 00:31
@nektro
nektro merged commit 5caca9c into main May 17, 2024
@nektro
nektro deleted the jarred/bytes branch May 17, 2024 02:10
robobun added a commit that referenced this pull request Oct 16, 2026
The runtime has had ShellPromise.prototype.bytes() since #11104. The
types declared bytes() on ShellOutput and ShellError only, so
`await $`cmd`.bytes()` was a TS2339 error.

Declare it, document it beside .blob() in the shell docs, and add a
type check to the bun-types fixture.
robobun added a commit that referenced this pull request Oct 16, 2026
The runtime has had ShellPromise.prototype.bytes() since #11104. The
types declared bytes() on ShellOutput and ShellError only, so
`await $`cmd`.bytes()` was a TS2339 error.

Declare it, document it beside .blob() in the shell docs, and add a
type check to the bun-types fixture.
robobun added a commit that referenced this pull request Oct 17, 2026
The runtime has had ShellPromise.prototype.bytes() since #11104. The
types declared bytes() on ShellOutput and ShellError only, so
`await $`cmd`.bytes()` was a TS2339 error.

Declare it, document it beside .blob() in the shell docs, and add a
type check to the bun-types fixture.
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.

Implement Request/Response .bytes() method

2 participants