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

fix(node-ws): Added missing WSContext raw type #940

Merged
merged 4 commits into from
Jan 21, 2025
Merged

Conversation

Ryiski
Copy link
Contributor

@Ryiski Ryiski commented Jan 19, 2025

The author should do the following, if applicable

  • Add tests
  • Run tests
  • yarn changeset at the top of this repo and push the changeset
  • Follow the contribution guide

Copy link

changeset-bot bot commented Jan 19, 2025

🦋 Changeset detected

Latest commit: f6a8a55

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

This PR includes changesets to release 1 package
Name Type
@hono/node-ws 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

@yusukebe yusukebe changed the title node-ws: Added missing WSContext raw type fix(node-ws): Added missing WSContext raw type Jan 20, 2025
@yusukebe
Copy link
Member

yusukebe commented Jan 20, 2025

Hi @Ryiski

Thank you for the PR. UpgradeWebSocket does not accept generics in the version older than v4.6.0 of hono. So you can update hono in devDependencies and add peerDependencies to force user uses up to v4.6.0.

Can you do that? If not, please ping me.

@Ryiski
Copy link
Contributor Author

Ryiski commented Jan 20, 2025

@yusukebe sure thing

@@ -34,15 +34,16 @@
"devDependencies": {
"@hono/node-server": "^1.11.1",
"@types/ws": "^8",
"hono": "^4.2.9",
"hono": "^4.6.17",
Copy link
Member

Choose a reason for hiding this comment

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

I think 4.6.0 is okay, that can support the generics for upgradeWebSocket.

@yusukebe
Copy link
Member

Hi @Ryiski

I updated the lock file and fix the version of hono. Looks good. I'll merge it and release a new vesion. Thanks!

@yusukebe yusukebe merged commit 3e2db6d into honojs:main Jan 21, 2025
1 check passed
@github-actions github-actions bot mentioned this pull request Jan 21, 2025
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.

2 participants