Releases: ueberdosis/hocuspocus
v2.7.1
What's Changed
- fixes #730: extension-redis: This reverts an unintended breaking change causing hocuspocus instances to call onStoreDocument hooks even if the update was received on another instance: #733. This could create issues in certain situations if you are relying on the
context
.
Full Changelog: v2.7.0...v2.7.1
v2.7.0
What's Changed
-
Fix return type of database extension
store
method by @haines in #715 -
fixes #718: replace arraybuffer by nodebuffer by @janthurau in #721
-
Handle errors thrown by provider token function by @haines in #722
-
Efficiently route messages through HocuspocusProviderWebsocket by @raineorshine in #727
-
fixes #709: unload document when there is no other connection left af… by @janthurau in #723
-
adds Document.isDestroyed by @janthurau in #728
-
build(deps): bump postcss from 8.4.23 to 8.4.31 by @dependabot in #712
-
build(deps): bump ws from 7.5.9 to 8.14.2 in /packages/provider by @dependabot in #705
New Contributors
Full Changelog: v2.6.1...v2.7.0
v2.6.1
v2.6.0
What's Changed
- throw error in onStoreDocument to prevent afterStoreDocument from releasing lock by @ralphiee22 in #669
- Stop listening to messages once the websocket closes by @canadaduane in #702
- Fix multiple sockets on reconnection by @talhazubairbutt in #698
- server/examples.md: Remove outdated documentName references by @raineorshine in #706
- Update extensions.md by @raineorshine in #701
- Fix payload types for after load/unload document hooks by @haines in #710
New Contributors
- @talhazubairbutt made their first contribution in #698
- @haines made their first contribution in #710
Full Changelog: v2.5.0...v2.6.0
v2.5.0
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)
What's Changed
- make immediate unload optional by @georeith in #683
- attach ydoc origin to onChange, onStoreDocument payloads by @janthurau in #688
- Reset last message received when creating new socket by @TalhaASiddiqi in #689
- extension-redis: Subscribe to channels instead of patterns by @EugeneZ in #679
- extension-redis: fixes a bug that caused document updates to cause another sync by @janthurau in #696
Documentation / Misc:
- Fix typos and unnecessary gendered language by @12joan in #694
- Update custom-extensions.md by @raineorshine in #693
- Update Redis extension docs by @raineorshine in #692
- moves debounce to utils by @janthurau in #695
- build(deps): bump actions/checkout from 3 to 4 by @dependabot in #697
New Contributors
- @12joan made their first contribution in #694
- @TalhaASiddiqi made their first contribution in #689
- @EugeneZ made their first contribution in #679
Full Changelog: v2.4.0...v2.5.0
v2.4.0
Possible breaking change: With this release, a failed auth won't anymore terminate the connection (and thus not call onClose
) but just trigger onAuthenticateFailed.
What's Changed
- Lazily createEncoder for IncomingMessage by @canadaduane in #672
- Always clean up connection listeners by @canadaduane in #670
- fix: check if ymap is empty by @linspw in #666
- Allow provider awareness to be disabled by @raineorshine in #675
- don't close when auth fails by @YousefED in #615
- this allows giving extensions a custom name, that takes priority over the class name by @janthurau in #677
- Linear time mux by @canadaduane in #671
- Started with seperation of server from hocuspocus by @timoisik in #678
- Fixed link for sqlite section by @timoisik in #684
- Improve introducing examples in the documentation by @lode in #681
New Contributors
Full Changelog: v2.3.1...v2.4.0
v2.4.0-rc.1
Breaking change: With this release, a failed auth won't anymore terminate the connection (and thus not call onClose
) but just trigger onAuthenticateFailed.
What's Changed
- Lazily createEncoder for IncomingMessage by @canadaduane in #672
- Always clean up connection listeners by @canadaduane in #670
- fix: check if ymap is empty by @linspw in #666
- Allow provider awareness to be disabled by @raineorshine in #675
- don't close when auth fails by @YousefED in #615
- this allows giving extensions a custom name, that takes priority over the class name by @janthurau in #677
Full Changelog: v2.3.1...v2.4.0-rc.1
v2.3.1
What's Changed
- Force-Close the websocket state after trying to gracefully close the websocket twice, refs #661 by @janthurau in #665
Full Changelog: v2.3.0...v2.3.1
v2.3.0
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.
What's Changed
- Fix/unsyncedchanges (#635) by @YousefED in #654
- build(deps): bump semver from 5.7.1 to 5.7.2 by @dependabot in #653
- refs #566: force-reconnect the websocket (if disconnected) on attach of provider by @janthurau in #652
- afterUnloadDocument hook by @georeith in #656
- build(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in #655
- fix: remove awareness stats on page unload instead of beforeunload by @iowxy in #658
- Fix/doc links by @patrickbaber in #664
- fix: hocuspocus provider auto connect and disconnect behavior by @linspw in #663
New Contributors
- @georeith made their first contribution in #656
- @iowxy made their first contribution in #658
- @linspw made their first contribution in #663
Full Changelog: v2.2.3...v2.3.0
v2.2.3
This is a forward-compatibility release, making @hocuspocus/provider compatible with the upcoming @hocuspocus/server v2.3.0
Full Changelog: v2.2.2...v2.2.3