Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ReadableStream support, and response function transformations #37

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

james-elicx
Copy link
Owner

This PR does the following:

  • Improves the typing for data transformations.
  • Introduces support for using a ReadableStream as a value in R2 .put(...), and reading a stream through the response from R2 .get(...).body.
  • Transforms/handles certain known properties from responses to binding calls; arrayBuffer(), blob(), text(), json(), body + bodyUsed.

@changeset-bot
Copy link

changeset-bot bot commented Sep 1, 2023

🦋 Changeset detected

Latest commit: 122206d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
cf-bindings-proxy Minor

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

@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2023

🧪 A prerelease is available for testing 🧪

You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.ixion-labs.workers.dev/james-elicx/cf-bindings-proxy/runs/6048641325/npm-package-cf-bindings-proxy-37

Or you can immediately run this with npx:

npx https://prerelease-registry.ixion-labs.workers.dev/james-elicx/cf-bindings-proxy/runs/6048641325/npm-package-cf-bindings-proxy-37

@james-elicx james-elicx merged commit d87efba into main Sep 1, 2023
5 checks passed
@james-elicx james-elicx deleted the james/stream branch September 1, 2023 11:08
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