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

[node][edge][cli] upgrade Edge Runtime #10051

Merged
merged 7 commits into from
Jun 20, 2023
Merged

[node][edge][cli] upgrade Edge Runtime #10051

merged 7 commits into from
Jun 20, 2023

Conversation

Kikobeats
Copy link
Member

@Kikobeats Kikobeats commented Jun 1, 2023

We avoided to use undici.WebSocket because @jawj found a bug in the implementation.

The fix was merged in undici@5.22.1, so we can be back to use it.

The latest version of Edge Runtime exposes undici.WebSocket compatible with node.js 14, 16 & 18

@changeset-bot
Copy link

changeset-bot bot commented Jun 1, 2023

🦋 Changeset detected

Latest commit: 7ef5511

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

This PR includes changesets to release 4 packages
Name Type
@vercel/node Patch
vercel Patch
@vercel/gatsby-plugin-vercel-builder Patch
@vercel/static-build 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

EndangeredMassa
EndangeredMassa previously approved these changes Jun 1, 2023
packages/node/src/edge-functions/edge-handler.mts Outdated Show resolved Hide resolved
@EndangeredMassa
Copy link
Contributor

When I tried this localy, it failed with:

Error from API Route /api/edge-websocket: WebSocket is not defined
    at (api/edge-websocket.js)

I updated the edge-runtime and it worked: cd64eec (#10051)

EndangeredMassa
EndangeredMassa previously approved these changes Jun 1, 2023
@Kikobeats Kikobeats changed the title [node] use undici.Websocket when is possible [node] upgrade Edge Runtime Jun 1, 2023
@Kikobeats Kikobeats requested a review from a team as a code owner June 1, 2023 16:27
styfle
styfle previously approved these changes Jun 1, 2023
pnpm-lock.yaml Outdated Show resolved Hide resolved
@EndangeredMassa EndangeredMassa changed the title [node] upgrade Edge Runtime [node][edge][cli] upgrade Edge Runtime Jun 7, 2023
EndangeredMassa
EndangeredMassa previously approved these changes Jun 7, 2023
Copy link
Contributor

@EndangeredMassa EndangeredMassa left a comment

Choose a reason for hiding this comment

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

I updated the changelog file

cb1kenobi
cb1kenobi previously approved these changes Jun 7, 2023
Copy link
Contributor

@cb1kenobi cb1kenobi left a comment

Choose a reason for hiding this comment

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

Tested creating a WebSocket and no issues.

@Kikobeats Kikobeats merged commit 8b3a414 into main Jun 20, 2023
104 checks passed
@Kikobeats Kikobeats deleted the websocket branch June 20, 2023 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: node semver: patch PR contains bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants