edge-runtime icon indicating copy to clipboard operation
edge-runtime copied to clipboard

Remove access to `Buffer` in `@edge-runtime/jest-environment`

Open guisehn opened this issue 1 year ago • 3 comments

Fixes https://github.com/vercel/edge-runtime/issues/952

Removes access to global Buffer variable from Node when using @edge-runtime/jest-environment.

Buffer will not be available in production when using the edge runtime, so it should also be unavailable in tests. That way, we can catch in tests when unavailable APIs are used.

guisehn avatar Aug 24 '24 04:08 guisehn

🦋 Changeset detected

Latest commit: ea9a5a442b29ffe749c74f416f06a7a2d50555fe

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

This PR includes changesets to release 1 package
Name Type
@edge-runtime/jest-environment Major

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

changeset-bot[bot] avatar Aug 24 '24 04:08 changeset-bot[bot]

@guisehn is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Aug 24 '24 04:08 vercel[bot]

Thanks for this!

Kikobeats avatar Aug 28 '24 15:08 Kikobeats