---
title: "ws 8.23.1 Breaking Changes on npm | Since.dev"
description: "What each ws release removed, renamed or changed: 473 breaking changes in 27 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/ws
last_updated: 2026-12-04
---

# ws breaking changes

ws 8.23.1 (November 27, 2026) is its newest release with breaking changes, 2 of them. The first: Stricter validation of permessage-deflate window bits values in ws 8.23.1. Every breaking API change we have recorded in ws on npm: 473 breaking changes in 27 versions. Below, its 27 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `8.23.1`, released November 27, 2026. [Source repository](https://github.com/websockets/ws)

Its 8.0.0 release requires Node.js 10.0.0 or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [7.5.3](#v-7-5-3) to [8.23.1](#v-8-23-1): 166 breaking changes in 14 versions.
- From [1.0.0](#v-1-0-0) to [8.23.1](#v-8-23-1): 470 breaking changes in 26 versions.

## ws 8.23.1 breaking changes

ws 8.23.1, released November 27, 2026: 2 breaking changes.

- **Behavior changed**  

Window bits values that do not match the RFC 7692 1\*DIGIT rule are now rejected. Code that passes non-conforming window bits values must be changed to pass valid numeric values. [github.com](https://github.com/websockets/ws/releases/tag/8.23.1)
- **Behavior changed**  

Sec-WebSocket-Version header values that do not match the RFC 6455 version grammar are now rejected. Code that sends non-conforming version values must be changed to send valid ones. [github.com](https://github.com/websockets/ws/releases/tag/8.23.1)

## ws 8.22.2 breaking changes

ws 8.22.2, released November 8, 2026: 1 breaking change.

- **Behavior changed** `WebSocket`  

The userinfo part of the URL is now percent-decoded. Code relying on the previous undecoded userinfo may need adjusting. [github.com](https://github.com/websockets/ws/releases/tag/8.22.2)

## ws 8.22.1 breaking changes

ws 8.22.1, released October 31, 2026: 1 breaking change.

- **Behavior changed** `Sender.frame`  

Sender.frame() now omits empty chunks from its output. Code that expects an empty chunk in the returned list should be checked. [github.com](https://github.com/websockets/ws/releases/tag/8.22.1)

## ws 8.21.1 breaking changes

ws 8.21.1, released July 14, 2026: 2 breaking changes.

- **Default changed** `maxBufferedChunks`  

The default value of maxBufferedChunks was reduced. If your code depends on the old default, set the option explicitly. [github.com](https://github.com/websockets/ws/releases/tag/8.21.1)
- **Default changed** `maxFragments`  

The default value of maxFragments was reduced. If your code depends on the old default, set the option explicitly. [github.com](https://github.com/websockets/ws/releases/tag/8.21.1)

## ws 8.17.0 breaking changes

ws 8.17.0, released April 28, 2024: 1 breaking change.

- **Default changed** `allowSynchronousEvents`  

The allowSynchronousEvents option now defaults to true, which can change event timing for code that relied on the old default. Set the option explicitly to keep the previous behavior. [github.com](https://github.com/websockets/ws/releases/tag/8.17.0)

## ws 8.15.1 breaking changes

ws 8.15.1, released December 12, 2023: 1 breaking change.

- **Renamed** `allowMultipleEventsPerMicrotask`  

The allowMultipleEventsPerMicrotask option was renamed to allowSynchronousEvents. Code using the old option name must switch to the new name. [github.com](https://github.com/websockets/ws/releases/tag/8.15.1)

## Older versions

21 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### ws 8.14.0 breaking changes

ws 8.14.0, released September 6, 2023: 1 breaking change.

- **Behavior changed**  

Events are now emitted at most one per microtask. Code that assumed several events would fire in the same microtask may need to change. [github.com](https://github.com/websockets/ws/releases/tag/8.14.0)

### ws 8.7.0 breaking changes

ws 8.7.0, released May 26, 2022: 2 breaking changes.

- **Behavior changed**  

The handshake now fails if the server's Upgrade response header does not case-insensitively match "websocket", where it previously succeeded. Code that relied on such responses being accepted must be checked. [github.com](https://github.com/websockets/ws/releases/tag/8.7.0)
- **Behavior changed**  

When following a redirect from wss: to ws: on the same host, the Authorization and Cookie headers are no longer sent. Code that depends on those headers being forwarded on such redirects must be updated. [github.com](https://github.com/websockets/ws/releases/tag/8.7.0)

### ws 8.6.0 breaking changes

ws 8.6.0, released May 1, 2022: 13 breaking changes.

- **Signature changed** `FinishRequestCallback`  

Was type FinishRequestCallback = (request: IncomingMessage, websocket: WebSocket) => void; now type FinishRequestCallback = (request: ClientRequest, websocket: WebSocket) => void. [npmjs.com](https://www.npmjs.com/package/ws/v/8.6.0)
- **Signature changed** `Server.addListener`  

Was addListener(event: "connection", cb: (client: InstanceType\<T>, request: InstanceType\<U>) => void): this addListener(event: "error", cb: (err: Error) => void): this; now addListener(event: "connection", cb: (websocket: InstanceType\<T>... [npmjs.com](https://www.npmjs.com/package/ws/v/8.6.0)

And 11 more in this version.

### ws 8.5.0 breaking changes

ws 8.5.0, released February 7, 2022: 18 breaking changes.

- **Removed** `ServerOptions.allowSynchronousEvents`  

ServerOptions.allowSynchronousEvents was removed in ws 8.5.0 [npmjs.com](https://www.npmjs.com/package/ws/v/8.5.0)
- **Removed** `ServerOptions.autoPong`  

ServerOptions.autoPong was removed in ws 8.5.0 [npmjs.com](https://www.npmjs.com/package/ws/v/8.5.0)

And 16 more in this version.

### ws 8.3.0 breaking changes

ws 8.3.0, released November 23, 2021: 30 breaking changes.

- **Signature changed** `PerMessageDeflateOptions.zlibDeflateOptions`  

Was zlibDeflateOptions?: {flush?: number | undefined; finishFlush?: number | undefined; chunkSize?: number | undefined; windowBits?: number | undefined; level?: number | undefined; memLevel?: number | undefined; strategy?: number |... [npmjs.com](https://www.npmjs.com/package/ws/v/8.3.0)
- **Signature changed** `ServerOptions`  

Was interface ServerOptions; now interface ServerOptions\<U extends typeof WebSocket = typeof WebSocket, V extends typeof IncomingMessage = typeof IncomingMessage>. [npmjs.com](https://www.npmjs.com/package/ws/v/8.3.0)

And 28 more in this version.

### ws 8.2.3 breaking changes

ws 8.2.3, released October 2, 2021: 1 breaking change.

- **Behavior changed** `perMessageDeflate.threshold`  

When context takeover is enabled, messages smaller than perMessageDeflate.threshold are now compressed. Code that relies on small messages being sent uncompressed should be checked. [github.com](https://github.com/websockets/ws/releases/tag/8.2.3)

### ws 8.2.0 breaking changes

ws 8.2.0, released August 18, 2021: 42 breaking changes.

- **Removed** `FinishRequestCallback`  

FinishRequestCallback was removed in ws 8.2.0 [npmjs.com](https://www.npmjs.com/package/ws/v/8.2.0)
- **Removed** `Server`  

Server was removed in ws 8.2.0 [npmjs.com](https://www.npmjs.com/package/ws/v/8.2.0)

And 40 more in this version.

### ws 8.0.0 breaking changes

ws 8.0.0, released July 28, 2021: 51 breaking changes.

- **Removed** `CLOSED`  

CLOSED was removed in ws 8.0.0 [npmjs.com](https://www.npmjs.com/package/ws/v/8.0.0)
- **Removed** `CLOSING`  

CLOSING was removed in ws 8.0.0 [npmjs.com](https://www.npmjs.com/package/ws/v/8.0.0)

And 49 more in this version.

### ws 7.5.3 breaking changes

ws 7.5.3, released July 10, 2021: 2 breaking changes.

- **Behavior changed** `WebSocketServer`  

Passing more than one of the noServer, server and port options now throws an error. Pass only one of them. [github.com](https://github.com/websockets/ws/releases/tag/7.5.3)
- **Behavior changed** `WebSocketServer.prototype.close`  

Connections can no longer be established once close() has been called on a WebSocketServer. [github.com](https://github.com/websockets/ws/releases/tag/7.5.3)

### ws 7.5.0 breaking changes

ws 7.5.0, released June 16, 2021: 2 breaking changes.

- **Behavior changed**  

When an error such as a data framing error occurs, a close frame is now sent to the remote peer. Code that relied on no close frame being sent on errors should be reviewed. [github.com](https://github.com/websockets/ws/releases/tag/7.5.0)
- **Behavior changed**  

If no close frame is received, the close code is now always 1006, even when the connection closes because of an error. Code that checks close codes after errors may see different values. [github.com](https://github.com/websockets/ws/releases/tag/7.5.0)

### ws 7.4.0 breaking changes

ws 7.4.0, released November 8, 2020: 15 breaking changes.

- **Behavior changed**  

Properties that were writable are now read-only, so code that assigns to them may now throw or fail. Stop assigning to them. [github.com](https://github.com/websockets/ws/releases/tag/7.4.0)
- **Behavior changed** `binaryType`  

These properties now appear when enumerating the object, so code that iterates over keys or serializes the socket will see them. [github.com](https://github.com/websockets/ws/releases/tag/7.4.0)

And 13 more in this version.

### ws 7.3.0 breaking changes

ws 7.3.0, released May 10, 2020: 73 breaking changes.

- **Signature changed** `ClientOptions.agent`  

Was agent?: http.Agent; now agent?: Agent | undefined. [npmjs.com](https://www.npmjs.com/package/ws/v/7.3.0)
- **Signature changed** `ClientOptions.family`  

Was family?: number; now family?: number | undefined. [npmjs.com](https://www.npmjs.com/package/ws/v/7.3.0)

And 71 more in this version.

### ws 7.2.2 breaking changes

ws 7.2.2, released March 8, 2020: 1 breaking change.

- **Behavior changed**  

A server now closes the connection when it receives a non-masked frame, and a client closes it when it receives a masked frame. Code that relied on those frames being accepted must be changed. [github.com](https://github.com/websockets/ws/releases/tag/7.2.2)

### ws 7.2.0 breaking changes

ws 7.2.0, released October 19, 2019: 75 breaking changes.

- **Removed** `CloseEvent.type`  

CloseEvent.type was removed in ws 7.2.0 [npmjs.com](https://www.npmjs.com/package/ws/v/7.2.0)
- **Removed** `OpenEvent.type`  

OpenEvent.type was removed in ws 7.2.0 [npmjs.com](https://www.npmjs.com/package/ws/v/7.2.0)

And 73 more in this version.

### ws 7.0.0 breaking changes

ws 7.0.0, released April 30, 2019: 71 breaking changes.

- **Removed**  

Node.js 6 is no longer supported. Upgrade the Node.js runtime before using this version. [github.com](https://github.com/websockets/ws/releases/tag/7.0.0)
- **Removed** `WebSocket`  

Passing url.Url objects to the WebSocket constructor is no longer supported. Pass a string URL instead. [github.com](https://github.com/websockets/ws/releases/tag/7.0.0)

And 69 more in this version.

### ws 6.0.0 breaking changes

ws 6.0.0, released July 21, 2018: 12 breaking changes.

- **Removed**  

Code running on Node.js 4 can no longer use this release. Upgrade the runtime before updating. [github.com](https://github.com/websockets/ws/releases/tag/6.0.0)
- **Removed** `PerMessageDeflateOptions.level`  

The level option is no longer supported. Pass it inside zlibDeflateOptions instead. [npmjs.com](https://www.npmjs.com/package/ws/v/6.0.0)

And 10 more in this version.

### ws 5.0.0 breaking changes

ws 5.0.0, released March 6, 2018: 3 breaking changes.

- **Removed**  

Node.js versions below 4.5.0 are no longer supported. Upgrade the Node.js runtime before using this release. [github.com](https://github.com/websockets/ws/releases/tag/5.0.0)
- **Behavior changed**  

The connection is no longer closed if the server does not agree to any of the client's requested subprotocols. Code that relied on the close must now check the negotiated protocol itself. [github.com](https://github.com/websockets/ws/releases/tag/5.0.0)

And 1 more in this version.

### ws 4.0.0 breaking changes

ws 4.0.0, released January 5, 2018: 20 breaking changes.

- **Removed** `bytesReceived`  

The non-standard bytesReceived attribute has been removed. [github.com](https://github.com/websockets/ws/releases/tag/4.0.0)
- **Removed** `protocolVersion`  

The non-standard protocolVersion attribute has been removed. [github.com](https://github.com/websockets/ws/releases/tag/4.0.0)

And 18 more in this version.

### ws 3.0.0 breaking changes

ws 3.0.0, released May 17, 2017: 6 breaking changes.

- **Removed**  

Some events were removed in 3.0.0 and listeners for them will no longer fire. [github.com](https://github.com/websockets/ws/releases/tag/3.0.0)
- **Removed** `upgradeReq`  

The upgradeReq property is gone in 3.0.0, so code that reads it must be changed. [github.com](https://github.com/websockets/ws/releases/tag/3.0.0)

And 4 more in this version.

### ws 2.0.0 breaking changes

ws 2.0.0, released January 30, 2017: 24 breaking changes.

- **Removed**  

Node.js versions before 4.5.0 are no longer supported; upgrade Node.js before using this release. [github.com](https://github.com/websockets/ws/releases/tag/2.0.0)
- **Removed**  

Clients and servers using the Hixie-76 protocol no longer work. [github.com](https://github.com/websockets/ws/releases/tag/2.0.0)

And 22 more in this version.

### ws 1.0.0 breaking changes

ws 1.0.0, released December 30, 2015: 3 breaking changes.

- **Removed**  

The built-in client was removed. Browser code should use the global WebSocket, or conditionally require ws on the server. [github.com](https://github.com/websockets/ws/releases/tag/1.0.0)
- **Removed**  

The binary addons were removed, so installs no longer build them. Users who relied on them must opt in separately. [github.com](https://github.com/websockets/ws/releases/tag/1.0.0)

And 1 more in this version.

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
