Packages

subscriptions-transport-ws

0.11.0 · 2 Nov 2021MIT2M / weekRepositoryHomepagenpmAtom feed

Deprecated by its maintainers: The `subscriptions-transport-ws` package is no longer maintained. We recommend you use `graphql-ws` instead. For help migrating Apollo software to `graphql-ws`, see https://www.apollographql.com/docs/apollo-server/data/subscriptions/#switching-from-subscriptions-transport-ws For general help using `graphql-ws`, see https://github.com/enisdenjo/graphql-ws/blob/master/README.mdWhat to use instead

Upgrading subscriptions-transport-ws from 0.1.1 to 0.11.0

52 releases in betweennotes for 43

2+
changes to make
0
advisories fixed
24+
new
27+
fixes

Counted from 43 of 52 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • breaking0.9.0
  • breaking0.9.0

Release by release

  1. 0.11.0

    2 Nov 20211 new
    • new

      Support for graphql@16 and bump minimal supported version to be graphql@15.7.2. As part of this change signatures for ExecuteFunction and SubscribeFunction were changed.

  2. 0.9.19 – 0.10.02 releases, nothing new or fixed in the notes

  3. 0.9.18

    17 Aug 20203 new · 7 fixes
    • new

      Add minTimeout option for client.

    • new

      Accept extra WebSocket client arguments.

    • new

      Support server-defined payload in GQL_CONNECTION_ACK message.

    • fixed

      Do not send GQL_STOP when unsubscribing after GQL_COMPLETE is received.

  4. 0.9.17nothing new or fixed in the note

  5. 0.9.16

    11 Mar 20191 new
    • new

      Add ability to set custom WebSocket protocols for client.

  6. 0.9.15

    18 Sep 20181 new
  7. 0.9.14

    27 Jul 20181 new
    • new

      Allow dynamically specifying/overriding the schema in the object returned from onOperation PR #447

  8. 0.9.13

    23 Jul 20181 new
    • new

      Allow connectionParams to be a Promise PR #443

46 other lines we could not sort, mostly version bumps
  • Same contents as v0.9.19 (published before v0.9.19 before realizing it would be helpful if the new version was picked up by packages looking for ^0.9).

    0.10.0
  • Bump ws dependency to allow v6 and v7. Note that there are breaking changes in ws 6.0.0 and 7.0.0; for example, messages over 100MiB are rejected, and (in v7) the behavior of sending messages while the connection is starting or ending has changed. We are publishing this package to allow users of Apollo Server 2 to avoid seeing this CVE in their npm audit. However, note that (a) this CVE does not affect the subscriptions client, just the server and (b) Apollo Server 3 will remove its superficial integration with this package entirely. We encourage users of Apollo Server 2 to disable the integration with this unmaintained package via new ApolloServer({subscriptions: false}), and consider packages such as graphql-ws to power GraphQL subscriptions until such time as Apollo Server has more fully integrated subscriptions support.

    0.9.19
  • Bump graphql peer/dev deps.

    0.9.17
  • Use lightweight lodash alternatives Issue #430

    0.9.12
  • Applies fix suggested by @pandemosth regarding "No subscription is made on reconnect" and "Duplicate subscription made on reconnect" described in Issue #295

    0.9.12
  • Upgrade ws and eventemitter3

    0.9.10
  • Change default timeout from 10s to 30s PR #368

    0.9.7
  • Pass request (upgradeReq) to ConnectionContext PR #369

    0.9.7
  • Pass ConnectionContext to onDisconnect() as second argument PR #369

    0.9.7
  • Upgrade to support graphql 0.13.X

    0.9.6

10 internal lines (docs, tests, tooling) left out.