ws
8.23.0 · 12 Nov 2026MIT428.4M / weekRepositorynpmAtom feed
Upgrading ws From 1.1.5 to 2.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 18
- changes to make
- 0
- advisories fixed
- 7
- new
- 15
- fixes
Before you upgrade
Tick each one off as you go- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
- Breaking2.0.0
Security
2 advisories still affect 2.0.0
- Denial of Service in wshigh · GHSA-5v72-xg48-5rpm
- ws: Memory exhaustion DoS from tiny fragments and data chunkshigh · GHSA-96hv-2xvq-fx4p
Upgrading to 5.2.5 clears them.
Release by release
- Breaking
Dropped support for Node.js < 4.5.0.
- Breaking
The
newoperator is now required to create all instances as we moved to ES6 classes. - Breaking
Error messages have been simplified.
- Breaking
The
clientsproperty of theWebSocketServeris no longer anArraybut aSetand is only set if theclientTrackingoption is truthy (#806).
- Breaking
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.