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

implement [data_blobs] #232

Merged
merged 1 commit into from Apr 2, 2022
Merged

Conversation

threepointone
Copy link
Contributor

This implements support for [data_blobs] for service workers, which lets you bind some data from a file as an ArrayBuffer in service-worker format workers. It also adds a --data-blob cli argument for the same.

Fixes #231


I implemented this mechanically by mirroring the implementation from text_blobs in #228. Happy to iterate!

Copy link
Contributor

@mrbbot mrbbot left a comment

Choose a reason for hiding this comment

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

Looks great! 😃 Couple minor things, then I'll approve. 👍

packages/core/src/standards/helpers.ts Outdated Show resolved Hide resolved
packages/core/test/plugins/bindings.spec.ts Outdated Show resolved Hide resolved
This implements support for `[data_blobs]` for service workers, which lets you bind some data from a file as an ArrayBuffer in service-worker format workers. It also adds a `--data-blob` cli argument for the same.
Copy link
Contributor

@mrbbot mrbbot left a comment

Choose a reason for hiding this comment

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

LGTM!

@mrbbot mrbbot merged commit bce7ecf into cloudflare:master Apr 2, 2022
@mrbbot
Copy link
Contributor

mrbbot commented Apr 2, 2022

Hoping to get a release out today btw 🤞

@threepointone
Copy link
Contributor Author

!! That would be amazing!

@threepointone threepointone deleted the data-blobs branch April 2, 2022 11:33
@mrbbot mrbbot added this to the 2.4.0 milestone Apr 2, 2022
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.

feature: implement [data_blobs]
2 participants