Packages

graphql-ws

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

Upgrading graphql-ws from 6.0.8 to 6.4.1

8 releases in betweenevery note read

0
changes to make
0
advisories fixed
6
new
7
fixes

Release by release

  1. 6.4.1

    15 Oct 20261 fix
    • fixed

      Use the jsonMessageReplacer when automatically responding to a ping with a pong, on both the client and the server

  2. 6.4.0

    13 Oct 20261 new · 2 fixes
    • new

      Add an isProd option to the ws, uWebSockets.js and @fastify/websocket use-server helpers, matching the existing crossws option. It controls whether internal error messages are masked with Internal server error before reaching the client, defaulting to the NODE_ENV === 'production' check as before. This lets apps running in production keep reporting onConnect error messages to the client by opting out, or mask eagerly in non-production environments.

    • fixed

      Fix the client closing an in-use socket when many subscriptions complete at once and a new one subscribes within the lazyCloseTimeout

    • fixed

      Avoid an unhandled rejection when a subscription is disposed before the connection is acknowledged and the socket closes before the subscription releases its connection lock (for example, when the client is disposed while connecting and the WebSocket implementation delivers the close event on a microtask).

  3. 6.3.0

    24 Sep 20262 new · 1 fix
    • new

      Add onPing and onPong server callbacks to ServerOptions, similar to onConnect and onDisconnect. The callbacks receive the connection Context as the first argument and the ping/pong payload as the second, allowing apps to log or react to subprotocol-level pings with access to connection state. The automatic pong reply is preserved when using the server-level onPing callback; the low-level websocket onPing listener still disables the automatic reply for full manual control.

    • new

      Allow operation IDs that match properties inherited from Object.prototype.

    • fixed

      Fix the client leaking memory per operation on long-living connections

  4. 6.2.2

    16 Sep 20261 new · 1 fix
    • new

      Support crossws 0.4 by selecting the GraphQL WebSocket subprotocol during the upgrade handshake. Preserve automatic protocol negotiation in the legacy crossws 0.3 Node and uWebSockets adapters.

    • fixed

      Fix the CrossWS adapter ignoring socket closes issued from server.opened

  5. 6.2.1

    6 Aug 20261 fix
    • fixed

      Fix typings for WebSocketServer

  6. 6.2.0

    24 Jul 20261 new
    • new

      Add parse option for custom GraphQL parsing

  7. 6.1.1

    22 Jul 20261 fix
    • fixed

      Disposing of a client event listener twice no longer removes an unrelated listener

  8. 6.1.0

    10 Jul 20261 new
    • new

      Add support for graphql@17