Skip to content

Hocuspocus 4

v3.4.0 Breaking

This release includes 2 breaking changes for platform teams planning a safe upgrade.

Published 7mo Productivity & Wikis
✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →

✓ No known CVEs patched in this version

Topics

collaborative-editing crdt prosemirror real-time self-hosted slatejs
+2 more
tiptap yjs

Affected surfaces

breaking_upgrade

Summary

AI summary

Debounce now prevents concurrent storeDocumentHook execution and beforeSync is no longer awaited, altering behavior.

Full changelog

What's Changed

  • fix: fixes timing issues with debouncer: new debounced functions may start before the previous had finished by @janthurau in https://github.com/ueberdosis/hocuspocus/pull/1014
  • fix: make beforeSync not async, as this may break message processing … by @janthurau in https://github.com/ueberdosis/hocuspocus/pull/1015
  • feat: adds lastChangeTime on document which can be used to identify the last time a document has had changes

Note: This changes the behaviour of debounce and beforeSync. Debounce will now make sure that a storeDocumentHook can't run concurrently, and beforeSync is not awaited anymore, as this breaks message order. This will probably be fixed again in the future, once either Yjs has improved observers with missing updates, or once we have implemented messaging ordering.

Full Changelog: https://github.com/ueberdosis/hocuspocus/compare/v3.3.2...v3.4.0

Breaking Changes

  • Debounce behavior changed: new debounced functions may start before previous ones finished, preventing concurrent storeDocumentHook execution.
  • beforeSync hook is no longer async; it is not awaited, breaking prior message‑processing order expectations.

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track Hocuspocus 4

Get notified when new releases ship.

Sign up free

About Hocuspocus 4

All releases →

Related context

Beta — feedback welcome: [email protected]