Packages

ws

8.23.0 · 12 Nov 2026MIT428.4M / weekRepositorynpmAtom feed

Upgrading ws From 2.0.3 to 2.3.1

7 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 2.0.3Clears its 2 advisories5.2.5Latest8.23.0
0
changes to make
0
advisories fixed
5
new
6
fixes

Security

3 advisories still affect 2.3.1

Upgrading to 5.2.5 clears them.

Release by release

  1. 2.3.1

    20 Apr 20171 fix
    • Fixed

      Fixed an issue that prevented WebSocket.prototype.close() from working properly when called from a listener of the headers event (732aaf0).

  2. 2.3.0

    20 Apr 20172 new
    • New

      All hooks have now access to the upgrade request (#1070).

    • New

      The WebSocket client now emits a headers event (#1082).

  3. 2.2.3

    3 Apr 20171 new · 1 fix
    • New

      Added support for Node.js 4.1.0 - 4.4.7 (#1059).

    • Fixed

      Fixed a bug that caused the options argument to be reassigned when protocols was null (20bd7c7).

  4. 2.2.2

    21 Mar 20171 fix
    • Fixed

      Fixed a linter issue that prevented tests from running on CITGM (#1050).

  5. 2.2.1

    13 Mar 20171 fix
    • Fixed

      WebSocket.prototype.terminate() now closes the connection immediately even if the other peer fails to work properly (#1033).

  6. 2.2.0

    28 Feb 20171 new · 1 fix
    • New

      Added "fragments" as possible value for the binaryType attribute (#1018).

    • Fixed

      A random masking key is now also used for zero-length frames (5edb460).

  7. 2.1.0

    18 Feb 20171 new · 1 fix
    • New

      Added ability to specify URL path with UNIX domain socket URLs (060b275).

    • Fixed

      Fixed a bug that could make the parser crash if an error was emitted synchronously on the socket while parsing data (6695bd4).

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.