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

Use pkgroll, bump Node, remove deprecations, improve, shorter paths, and friends #613

Merged
merged 41 commits into from
Jan 14, 2025

Conversation

enisdenjo
Copy link
Owner

@enisdenjo enisdenjo commented Jan 10, 2025

Closes #567, closes #564, closes #553, closes #591

  • Drop ws v7 support
  • Drop deprecated fastify-websocket support
  • Least supported Node version is current LTS (v20)
  • Least supported graphql versions are v15.10.1 and v16.10.0
  • Default package type is module (commonjs is still supported but through exports)
  • Drop eslint
  • The /lib/ part from imports is removed. graphql-ws/lib/use/ws becomes graphql-ws/use/ws
  • Remove isFatalConnectionProblem
  • Remove isMessage
  • Errors thrown from subscription iterables will be caught and reported through the ErrorMessage
  • ErrorMessage uses and onError returns GraphQLFormattedError (instead of GraphQLError)
  • Client is truly zero-dependency, not even graphql is needed
    • New export of just client when importing graphql-ws/client
  • onSubscribe, onOperation, onError, onNext and onComplete hooks don't have the full accompanying message anymore, only the ID and the relevant part from the message

TODO

@theguild-bot
Copy link
Collaborator

theguild-bot commented Jan 10, 2025

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
graphql-ws 6.0.0-alpha-762205fc85dcd4025c050b9794d4b77a7ecea1c9 npm ↗︎ unpkg ↗︎

Copy link
Contributor

github-actions bot commented Jan 10, 2025

💻 Website Preview

The latest changes are available as preview in: https://c549be86.graphql-ws.pages.dev

@enisdenjo enisdenjo merged commit 3f11aba into master Jan 14, 2025
15 checks passed
@enisdenjo enisdenjo deleted the pkgroll-bump-stuff branch January 14, 2025 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants