@hocuspocus/server breaking changes
@hocuspocus/server 4.9.0 (November 20, 2026) is its newest release with breaking changes, 5 of them. The first: Awareness clients now leave with their connection and no scratch awareness is created without a hook in @hocuspocus/server 4.9.0. Every breaking API change we have recorded in @hocuspocus/server on npm: 16 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.9.0, released November 20, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
@hocuspocus/server 4.9.0 breaking changes
- Behavior changed
Awareness clients are removed when their connection closes, and no scratch awareness is created unless a hook is set. Code that relied on the earlier awareness lifecycle may need to change. github.com - Signature changed
Document.beforeHandleAwareness
Was beforeHandleAwareness(callback: (document: Document, states: Map<number, Record<string, any>>, transactionOrigin: unknown, removedClients: Set<number>) => Promise<any>): Document; now beforeHandleAwareness(callback: (document... npmjs.com - Signature changed
Document.callbacks
Was callbacks: {onUpdate: (document: Document, origin: unknown, update: Uint8Array) => void; beforeBroadcastStateless: (document: Document, stateless: string) => void; beforeHandleAwareness: (document: Document, states: Map<number... npmjs.com - Signature changed
Document.callbacks.beforeHandleAwareness
Was beforeHandleAwareness: (document: Document, states: Map<number, Record<string, any>>, transactionOrigin: unknown, removedClients: Set<number>) => Promise<void>; now beforeHandleAwareness... npmjs.com - Signature changed
MessageReceiver.readSyncMessage
Was readSyncMessage(message: IncomingMessage, document: Document, connection?: Connection, reply?: (message: Uint8Array) => void, requestFirstSync?: boolean): Promise<0 | 1 | 2>; now readSyncMessage(message: IncomingMessage, document... npmjs.com
@hocuspocus/server 4.8.0 breaking changes
- Signature changed
MessageReceiver.readSyncMessage
Was readSyncMessage(message: IncomingMessage, document: Document, connection?: Connection, reply?: (message: Uint8Array) => void, requestFirstSync?: boolean): Promise<0 | 2 | 1>; now readSyncMessage(message: IncomingMessage, document... npmjs.com
@hocuspocus/server 4.7.1 breaking changes
- Signature changed
Document.beforeHandleAwareness
Was beforeHandleAwareness(callback: (document: Document, states: Map<number, Record<string, any>>, transactionOrigin: unknown) => Promise<any>): Document; now beforeHandleAwareness(callback: (document: Document, states: Map<number... npmjs.com - Signature changed
Document.callbacks
Was callbacks: {onUpdate: (document: Document, origin: unknown, update: Uint8Array) => void; beforeBroadcastStateless: (document: Document, stateless: string) => void; beforeHandleAwareness: (document: Document, states: Map<number... npmjs.com - Signature changed
Document.callbacks.beforeHandleAwareness
Was beforeHandleAwareness: (document: Document, states: Map<number, Record<string, any>>, transactionOrigin: unknown) => Promise<void>; now beforeHandleAwareness: (document: Document, states: Map<number, Record<string, any>>... npmjs.com - Signature changed
MessageReceiver.readSyncMessage
Was readSyncMessage(message: IncomingMessage, document: Document, connection?: Connection, reply?: (message: Uint8Array) => void, requestFirstSync?: boolean): Promise<0 | 1 | 2>; now readSyncMessage(message: IncomingMessage, document... npmjs.com
@hocuspocus/server 4.7.0 breaking changes
- Signature changed
MessageReceiver.readSyncMessage
Was readSyncMessage(message: IncomingMessage, document: Document, connection?: Connection, reply?: (message: Uint8Array) => void, requestFirstSync?: boolean): Promise<0 | 2 | 1>; now readSyncMessage(message: IncomingMessage, document... npmjs.com
@hocuspocus/server 4.5.0 breaking changes
- Signature changed
Configuration
Was interface Configuration<Context = any> extends Extension<Context>; now interface Configuration<Context = any> extends Extension<Context>, FlushOptions. npmjs.com - Signature changed
defaultConfiguration
Was const defaultConfiguration: {name: null; timeout: number; debounce: number; maxDebounce: number; quiet: boolean; yDocOptions: {gc: boolean; gcFilter: () => boolean;}; unloadImmediately: boolean; maxUnauthenticatedQueueSize: number... npmjs.com - Signature changed
Document.constructor
Was constructor(name: string, yDocOptions?: object); now constructor(name: string, yDocOptions?: object, options?: Partial<FlushOptions>). npmjs.com - Signature changed
MessageReceiver.readSyncMessage
Was readSyncMessage(message: IncomingMessage, document: Document, connection?: Connection, reply?: (message: Uint8Array) => void, requestFirstSync?: boolean): Promise<0 | 1 | 2>; now readSyncMessage(message: IncomingMessage, document... npmjs.com
@hocuspocus/server 4.4.0 breaking changes
- Signature changed
defaultServerConfiguration
Was const defaultServerConfiguration: {port: number; address: string; stopOnSignals: boolean;}; now const defaultServerConfiguration: {port: number; stopOnSignals: boolean;}. npmjs.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.