Skip to content

Releases: enisdenjo/graphql-ws

v4.6.0

30 May 18:06
Compare
Choose a tag to compare

4.6.0 (2021-05-30)

Features

  • use: Generic for extending the context extras (401cd4c), closes #189

v4.5.2

28 May 17:42
Compare
Choose a tag to compare

4.5.2 (2021-05-28)

Bug Fixes

  • uWebSockets: Handle premature and abrupt socket closes (9d3ff52), closes #186

v4.5.1

18 May 08:41
Compare
Choose a tag to compare

4.5.1 (2021-05-18)

Bug Fixes

  • server: Init context first on connection open (a80e753), closes #181

v4.5.0

29 Apr 21:17
Compare
Choose a tag to compare

4.5.0 (2021-04-29)

Features

  • Support custom JSON message reviver and replacer (#172) (0a9894e)

v4.4.4

28 Apr 08:38
Compare
Choose a tag to compare

4.4.4 (2021-04-28)

Bug Fixes

  • client: complete should not be called after subscription error (1fba419)
  • client: Subscription can be disposed only once (abd9c28), closes #170

Note about complete not being called after subscription error

Promises and Async Iterators can reject/throw/error or resolve/return/complete only once, subsequent calls to either will simply be ignored.

Furthermore, as per the Observer pattern, from RxJS docs:

In an Observable Execution, zero to infinite Next notifications may be delivered. If either an Error or Complete notification is delivered, then nothing else can be delivered afterwards.

v4.4.3

27 Apr 22:30
Compare
Choose a tag to compare

4.4.3 (2021-04-27)

Bug Fixes

  • client: Subscribes even if socket is in CLOSING state due to all subscriptions being completed (3e3b8b7), closes #173 #170

v4.4.2

22 Apr 22:15
Compare
Choose a tag to compare

4.4.2 (2021-04-22)

Bug Fixes

  • client: Lazy connects after successful reconnects are not retries (99b85a3)
  • client: Shouldn't reconnect if all subscriptions complete while waiting for retry (2826c10), closes #163

v4.4.1

14 Apr 08:41
Compare
Choose a tag to compare

4.4.1 (2021-04-14)

Bug Fixes

v4.4.0

11 Apr 22:27
Compare
Choose a tag to compare

4.4.0 (2021-04-11)

Features

Server usage with uWebSockets.js

import uWS from 'uWebSockets.js'; // yarn add uWebSockets.js@uNetworking/uWebSockets.js#<tag>
import { makeBehavior } from 'graphql-ws/lib/use/uWebSockets';
import { schema } from './my-graphql-schema';

uWS
  .App()
  .ws('/graphql/is-performant', makeBehavior({ schema }))
  .listen(4000, (listenSocket) => {
    if (listenSocket) {
      console.log('Listening to port 4000');
    }
  });

v4.3.4

11 Apr 20:42
Compare
Choose a tag to compare

4.3.4 (2021-04-11)

Bug Fixes

  • client: Subscriptions acquire locks (eb6cb2a)