unstale

npm / ws

ws

What changed in ws 7 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-17.

2 breaking2 security6 new APIs and options1 behavior and defaults3 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.1.0 on npm

ws 813 changes

Breaking changes 2

  • The server now rejects offers whose client_max_window_bits is smaller than configured clientMaxWindowBits.

    8.21.3release notes

  • The default value of maxFragments has been reduced.

    8.21.1release notes

Security 2

New APIs and options 6

  • Introduced the protocols option.

    8.22.0release notes

  • Introduced maxBufferedChunks to configure buffering limits.

    8.21.0release notes

  • Introduced maxFragments to configure fragment limits.

    8.21.0release notes

  • The PerMessageDeflate class is now exported for developer use.

    8.20.0release notes

  • Utilities for the Sec-WebSocket-Extensions header are now exported.

    8.20.0release notes

  • Added the closeTimeout option.

    8.19.0release notes

Behavior and default changes 1

  • The default value of maxBufferedChunks has been reduced.

    8.21.1release notes

Fixes and other changes 2

  • Invalid arguments no longer transition the state to WebSocket.CLOSING.

    8.22.0release notes

  • Handled a forthcoming breaking change in Node.js core.

    8.19.0release notes

ws 71 changes

Fixes and other changes 1