NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
plug & play collaboration backend
Latest stable
4.9.0
Last release 12 days ago
20 Nov 2026
Ships fairly regularly
a new release about every 3 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
180 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
fix: prevent race condition in unloadDocument that led to issues if a user connected while beforeUnloadDocument hooks are ran
fix: prevent race condition in unloadDocument that led to issues if a user connected while beforeUnloadDocument hooks are ran
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.15.2...v2.15.3
Make deleteComment options parameter optional
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.15.1...v2.15.2
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Doc: add missing await in "Editing a document locally" example. by @blep in https://github.com/ueberdosis/hocuspocus/pull/888
WebSocket instead of Connection to applyAwarenessUpdate by @RubaXa in https://github.com/ueberdosis/hocuspocus/pull/882Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.15.0...v2.15.1
Doc: add missing await in "Editing a document locally" example. by @blep in https://github.com/ueberdosis/hocuspocus/pull/888
WebSocket instead of Connection to applyAwarenessUpdate by @RubaXa in https://github.com/ueberdosis/hocuspocus/pull/882Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.15.0...v2.15.1-rc.0
fix JavaScript verifySignature example by @dehli in https://github.com/ueberdosis/hocuspocus/pull/873
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.14.0...v2.15.0
Add Poggio to sponsors list by @ConnorDoyle in https://github.com/ueberdosis/hocuspocus/pull/859
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.13.7...v2.14.0
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
Prevent setTimeout buildup during frequent document updates by @entropi in https://github.com/ueberdosis/hocuspocus/pull/855
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.13.6...v2.13.7
Prevent Database call applyUpdate twice by @shincurry in https://github.com/ueberdosis/hocuspocus/pull/849
Prevent Database call applyUpdate twice by @shincurry in https://github.com/ueberdosis/hocuspocus/pull/849
allow passing websocket server options by @janthurau in https://github.com/ueberdosis/hocuspocus/pull/858
build(deps): bump axios from 1.6.2 to 1.7.4 by @dependabot in https://github.com/ueberdosis/hocuspocus/pull/852
build(deps): bump micromatch from 4.0.4 to 4.0.8 by @dependabot in https://github.com/ueberdosis/hocuspocus/pull/851
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.13.5...v2.13.6
redis memory leaks by @janthurau in https://github.com/ueberdosis/hocuspocus/pull/831
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.13.2...v2.13.5
makes the logger optional in the Document class by @janthurau in https://github.com/ueberdosis/hocuspocus/pull/841
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.13.4-rc.0...v2.13.5-rc.0
fixes memory leaks when using extension-redis. The locking logic has been changed from "ignore if not acquired" to "error if not acquired" (because th
fixes memory leaks when using extension-redis. The locking logic has been changed from "ignore if not acquired" to "error if not acquired" (because that means that the other instance has persisted to DB)
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.13.2...v2.13.4-rc.0
CRITICAL: Fixes a bug that could lead to data loss when using directConnection with custom y origin
CRITICAL: Fixes a bug that could lead to data loss when using directConnection with custom y origin (#832)
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.13.1...v2.13.2
Replace deprecated unload event with pagehide event by @jul13579 in https://github.com/ueberdosis/hocuspocus/pull/824
unload event with pagehide event by @jul13579 in https://github.com/ueberdosis/hocuspocus/pull/824Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.13.0...v2.13.1
Bugfix which causes behaviour change: When two clients simultaneously request a document, before this change, the 2nd client would immediately sync wi
Bugfix which causes behaviour change: When two clients simultaneously request a document, before this change, the 2nd client would immediately sync with an empty ydoc and potentially sync with the database afterwards. The first client would wait until the document loaded from the DB and only then sync. With this version, both clients will wait for the document to finish loading, and only then sync.
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.12.3...v2.13.0
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
Checking for type of forceSyncInterval by @SynteZZZ in https://github.com/ueberdosis/hocuspocus/pull/817
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.12.2...v2.12.3
build(deps): bump actions/cache from 4.0.0 to 4.0.1 by @dependabot in https://github.com/ueberdosis/hocuspocus/pull/797
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.11.3...v2.12.2
Note: Version bump only for package hocuspocus
Note: Version bump only for package hocuspocus
Revert "websocket: enable following redirects (#806)" (#807) (930a61c), closes #806 #807
Note: Version bump only for package @hocuspocus/server
build(deps): bump ip from 2.0.0 to 2.0.1 by @dependabot in https://github.com/ueberdosis/hocuspocus/pull/791
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.11.2...v2.11.3
fix: allow resolvedAt to be null on updateThread by @bdbch in https://github.com/ueberdosis/hocuspocus/pull/789
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.11.1...v2.11.2
refactor: remove thread if first comment is deleted by @bdbch in https://github.com/ueberdosis/hocuspocus/pull/786
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.11.0...v2.11.1
Adding the possibility of not applying broadcast to specific connections by @linspw in https://github.com/ueberdosis/hocuspocus/pull/757
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.10.0...v2.11.0
build(deps): bump follow-redirects from 1.15.2 to 1.15.4 by @dependabot in https://github.com/ueberdosis/hocuspocus/pull/774
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.9.0...v2.10.0
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
build(deps): bump vite from 4.3.9 to 4.5.2 by @dependabot in https://github.com/ueberdosis/hocuspocus/pull/777
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.9.1-rc.0...v2.9.2-rc.0
Compatibility with TiptapCollab on-premise
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.9.0...v2.9.1-rc.0
WARNING: This release changes the behaviour of onStoreDocument: If there is no unsaved change, it won't be called anymore when the last user disconnec
WARNING: This release changes the behaviour of onStoreDocument: If there is no unsaved change, it won't be called anymore when the last user disconnects
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.8.1...v2.9.0
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
graceful shutdown: fixes promise issues by @janthurau in https://github.com/ueberdosis/hocuspocus/pull/750
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.8.0...v2.8.1
We've added graceful shutdown (#747). By default, Hocuspocus will listen for SIGINT, SIGTERM and SIGQUIT, and react accordingly (save all documents &
We've added graceful shutdown (#747). By default, Hocuspocus will listen for SIGINT, SIGTERM and SIGQUIT, and react accordingly (save all documents & shutdown). If you don't want that, you can turn it off by passing stopOnSignals:false to Hocuspocus.
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.7.1...v2.8.0
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
fixes #730: extension-redis: This reverts an unintended breaking change causing hocuspocus instances to call onStoreDocument hooks even if the update…
context.Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.7.0...v2.7.1
Add context to onAuthenticatePayload by @haines in https://github.com/ueberdosis/hocuspocus/pull/719
Add context to onAuthenticatePayload by @haines in https://github.com/ueberdosis/hocuspocus/pull/719
Fix return type of database extension store method by @haines in https://github.com/ueberdosis/hocuspocus/pull/715
fixes #718: replace arraybuffer by nodebuffer by @janthurau in https://github.com/ueberdosis/hocuspocus/pull/721
Handle errors thrown by provider token function by @haines in https://github.com/ueberdosis/hocuspocus/pull/722
Removing the console log messages by @websiddu in https://github.com/ueberdosis/hocuspocus/pull/726
Efficiently route messages through HocuspocusProviderWebsocket by @raineorshine in https://github.com/ueberdosis/hocuspocus/pull/727
fixes #709: unload document when there is no other connection left af… by @janthurau in https://github.com/ueberdosis/hocuspocus/pull/723
adds Document.isDestroyed by @janthurau in https://github.com/ueberdosis/hocuspocus/pull/728
build(deps): bump postcss from 8.4.23 to 8.4.31 by @dependabot in https://github.com/ueberdosis/hocuspocus/pull/712
build(deps): bump ws from 7.5.9 to 8.14.2 in /packages/provider by @dependabot in https://github.com/ueberdosis/hocuspocus/pull/705
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.6.1...v2.7.0
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
fix: add documentName into broadcast message by @xcfox in https://github.com/ueberdosis/hocuspocus/pull/713
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.6.0...v2.6.1
throw error in onStoreDocument to prevent afterStoreDocument from releasing lock by @ralphiee22 in https://github.com/ueberdosis/hocuspocus/pull/669
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.5.0...v2.6.0
Possible breaking change: extension-redis will now use channels instead of redis patterns, so if you are manually subscribing to redis messages, make…
Possible breaking change: extension-redis will now use channels instead of redis patterns, so if you are manually subscribing to redis messages, make sure to check out the changes (related PR)
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.4.0...v2.5.0
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
Possible breaking change: With this release, a failed auth won't anymore terminate the connection (and thus not call onClose) but just trigger onAuthe…
Possible breaking change: With this release, a failed auth won't anymore terminate the connection (and thus not call onClose) but just trigger onAuthenticateFailed.
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.3.1...v2.4.0
Breaking change: With this release, a failed auth won't anymore terminate the connection (and thus not call onClose) but just trigger onAuthenticateFa…
Breaking change: With this release, a failed auth won't anymore terminate the connection (and thus not call onClose) but just trigger onAuthenticateFailed.
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.3.1...v2.4.0-rc.1
Note: Version bump only for package @hocuspocus/server
Force-Close the websocket state after trying to gracefully close the websocket twice, refs #661 by @janthurau in https://github.com/ueberdosis/hocuspo
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.3.0...v2.3.1
This adds an improved way of figuring out if the document is fully synced with the server.
This adds an improved way of figuring out if the document is fully synced with the server.
WARNING: You should update @hocuspocus/server before upgrading the client. "hasUnsyncedChanges" of @hocuspocus/provider 2.3.0 is NOT compatible with @hocuspocus/server <2.3.0. If you upgrade the server while running provider <2.2.3, the provider will show errors in the browser, which can be safely ignored. If you dont want to see errors, upgrade the provider to v2.2.3 first, then upgrade the server to 2.3.0, and then upgrade the provider again. Or just upgrade everything simultaneously to 2.3.0.
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.2.3...v2.3.0
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
This is a forward-compatibility release, making @hocuspocus/provider compatible with the upcoming @hocuspocus/server v2.3.0
This is a forward-compatibility release, making @hocuspocus/provider compatible with the upcoming @hocuspocus/server v2.3.0
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.2.2...v2.2.3
Fix import paths (for node16) resolution by @reknih in https://github.com/ueberdosis/hocuspocus/pull/647
node16) resolution by @reknih in https://github.com/ueberdosis/hocuspocus/pull/647Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.2.1...v2.2.2
Fix passing the incorrect variable to onDisconnect by @martinboksa in https://github.com/ueberdosis/hocuspocus/pull/641
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.2.0...v2.2.1
This is mostly a maintenance release, it contains lots of refactorings (THX @YousefED) to make future contributions easier
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.1.0...v2.2.0
Add direct connections to documents by @canadaduane in https://github.com/ueberdosis/hocuspocus/pull/610
connected hook payload by @canadaduane in https://github.com/ueberdosis/hocuspocus/pull/607Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.0.6...v2.1.0
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
Note: Version bump only for package @hocuspocus/server
!!WARNING!! extension-redis: Removes cross-instance locking of onStoreDocument hook - this should now be handled by your database / other end that is
onStoreDocument hook and reject the promise if you don't want the hook chain to continue.Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.0.6...v2.1.0-alpha.0
Fixed typo by @timoisik in https://github.com/ueberdosis/hocuspocus/pull/589
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.0.5...v2.0.6
Fixes a bug in extension-redis that leads to broken sync when clients reconnect quickly by @janthurau in https://github.com/ueberdosis/hocuspocus/pull
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.0.4...v2.0.5
build: fix npm scripts for frontend playground by @synix in https://github.com/ueberdosis/hocuspocus/pull/578
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.0.3...v2.0.4
Delaying redis extension disconnect to allow last minute syncs to happen by @ebads67 in https://github.com/ueberdosis/hocuspocus/pull/573
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.0.2...v2.0.3
docs: cloud auth per document by @janthurau in https://github.com/ueberdosis/hocuspocus/pull/560
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.0.1...v2.0.2
fix: connection.sendStateless error when connections more than one by @groot9325 in https://github.com/ueberdosis/hocuspocus/pull/556
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.0.0...v2.0.1
After the stable release in January 2023, Hocuspocus gets its first major version update with the new core feature called “Multiplexing”. Multiplexing
Hocuspocus 2.0.0 Release
After the stable release in January 2023, Hocuspocus gets its first major version update with the new core feature called “Multiplexing”. Multiplexing allows you to synchronize multiple documents over the same websocket connection. This is especially useful when working with multiple documents at the same time and will make this experience even faster.
Please note that you need to update both the provider and the server, versions cannot be mixed
The client/server protocol has been changed, so if you are handling messages directly, you might have to adjust something. Otherwise, if you don't want to use multiplexing, you don't need to change anything.
Before: [HocuspocusMessageType][YjsMessageType][yjs binary]
After: [documentName][HocuspocusMessageType][YjsMessageType][yjs binary]
See this example on how to use multiplexing (more docs will follow):
const socket = new HocuspocusProviderWebsocket({
url: 'ws://127.0.0.1:1234',
})
const provider = new HocuspocusProvider({
websocketProvider: socket,
name: 'hocuspocus-demo',
broadcast: false,
})
const anotherProvider = new HocuspocusProvider({
websocketProvider: socket,
name: 'hocuspocus-demo2',
broadcast: false,
})
TiptapCollab runs Hocuspocus 2, so it fully supports multiplexing
Please see v2.0.0-alpha.0 for release notes. This beta release includes small fixes & bumps to beta to better reflect the current stage.
Please see v2.0.0-alpha.0 for release notes. This beta release includes small fixes & bumps to beta to better reflect the current stage.
Multiplexing has been used in a few test projects now and is considered working. Any further testing is highly welcome as this will move to stable soon.
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.0.0-alpha.0...v2.0.0-alpha.1
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v2.0.0-alpha.0...v2.0.0-alpha.1
This is the first alpha release introducing multiplexing support.
This is the first alpha release introducing multiplexing support.
The status is still a bit early, but I already wanted to gather as much feedback as possible and find potential testers in the community. I currently do not have a bigger project where I can test this, so if you can use multiplexing in your project and are willing to give the current implementation a try, this would be much appreciated and helps to get this merged soon.
On the frontend side, all connection logic has been split to a new ‘HocuspocusProviderWebsocket’, which needs to be passed to your HocuspocusProvider(s). So if you want to synchronize three documents, you’ll create one HocuspocusProviderWebsocket and three HocuspocusProvider, which gets passed the websocket (webSocket param). Authentication works per document, so the URL has to be passed to the HocuspocusProviderWebsocket, tokens to the provider related with the document. A working example can be found in playground/frontend/src/pages/Index.vue. Provider events are filtered by documentName, so the frontend shouldnt require further changes. Same on the backend, note that internally we’re spawning different Connection instances that each handle one document connection (through the same websocket). If you are somehow parsing the websocket messages yourself, please note that the protocol has changed and now includes the documentName at the first segment of the message.
You can find the PR here for details: https://github.com/ueberdosis/hocuspocus/pull/484
If you need any help, feel free to ping me (@janthurau) on Discord or send me a direct message.
extension-webhook: fixes JSON.parse issue when empty response is returned
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v1.1.2...v1.1.3
extension-wehhook: Wrap all http calls around try/catch, refs https://github.com/ueberdosis/hocuspocus/issues/498
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v1.1.1...v1.1.2
Version bump to make npm install @hocuspocus/server install the stable, not the pre-release
Version bump to make npm install @hocuspocus/server install the stable, not the pre-release
Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v1.1.0...v1.1.1
One column per quarter.