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(runtime,js-runtime): use ArrayBuffer for Request/Response body #807

Merged
merged 8 commits into from Apr 29, 2023

Conversation

QuiiBz
Copy link
Member

@QuiiBz QuiiBz commented Apr 28, 2023

About

To avoid serializing the body of Request & Response too often, we can make it an ArrayBuffer and store it as-is (while transforming it when we use Body#text(), Body#json(), Body#arrayBuffer()). This also enables non-utf characters in body.

@changeset-bot
Copy link

changeset-bot bot commented Apr 28, 2023

🦋 Changeset detected

Latest commit: 3ad08f0

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

This PR includes changesets to release 2 packages
Name Type
@lagon/runtime Patch
@lagon/js-runtime Patch

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

@vercel
Copy link

vercel bot commented Apr 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dashboard ❌ Failed (Inspect) Apr 29, 2023 7:31am
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Apr 29, 2023 7:31am
storybook ⬜️ Ignored (Inspect) Visit Preview Apr 29, 2023 7:31am
www ⬜️ Ignored (Inspect) Visit Preview Apr 29, 2023 7:31am

@QuiiBz QuiiBz merged commit b0b0cc5 into main Apr 29, 2023
9 of 10 checks passed
@QuiiBz QuiiBz deleted the feat/runtime-body-arraybuffer branch April 29, 2023 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant