Packages

graphql-ws

6.4.1 · 15 Oct 2026MIT10.6M / weekRepositoryHomepagenpmAtom feed

Upgrading graphql-ws from 5.16.2 to 6.0.0

1 release in betweenevery note read

Other targets from 5.16.2Latest6.4.1
5
changes to make
0
advisories fixed
2
new
0
fixes

Before you upgrade

Tick each one off as you go
  • breaking6.0.0
  • breaking6.0.0
  • breaking6.0.0
  • breaking6.0.0
  • breaking6.0.0

Release by release

  1. 6.0.0

    15 Jan 20252 new
    • new

      Client is truly zero-dependency, not even a peer dependency on graphql

    • new

      Define optional peer dependencies and least supported versions

7 other lines we could not sort, mostly version bumps
  • The /lib/ part from imports has been removed, for example graphql-ws/lib/use/ws becomes graphql-ws/use/ws

    6.0.0
  • ErrorMessage uses and onError returns GraphQLFormattedError (instead of GraphQLError)

    6.0.0
  • Least supported Node version is v20

    6.0.0
  • Least supported graphql peer dependency is ^15.10.1 and ^16

    6.0.0
  • NextMessage uses and onNext returns FormattedExecutionResult (instead of ExecutionResult)

    6.0.0
  • schema, context, 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

    6.0.0
  • Errors thrown from subscription iterables will be caught and reported through the ErrorMessage

    6.0.0