Releases: ueberdosis/hocuspocus
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
v2.2.2
What's Changed
- Fix import paths (for
node16
) resolution by @reknih in #647 - Unsubscribe provider listeners from websocket on destroy by @raineorshine in #645
- Optimize typescript typings of the TiptapCollabProvider by @janthurau in #648
New Contributors
Full Changelog: v2.2.1...v2.2.2
v2.2.1
What's Changed
- Fix passing the incorrect variable to onDisconnect by @martinboksa in #641
- fixes: HocuspocusProviderWebsocket checkConnection ineffective by @groot9325 in #640
New Contributors
- @martinboksa made their first contribution in #641
Full Changelog: v2.2.0...v2.2.1
v2.2.0
What's Changed
- This is mostly a maintenance release, it contains lots of refactorings (THX @YousefED) to make future contributions easier
- Refactor: use async/await in HocusPocus.ts to make code more readable by @YousefED in #624
- Refactor: extract ClientConnection by @YousefED in #626
- Refactor/reduce nesting and fix hookPayload per document by @YousefED in #631
- fixes npx run hocuspocus bug
- exports DirectConnection interface
Full Changelog: v2.1.0...v2.2.0
v2.1.0
What's Changed
- Add direct connections to documents by @canadaduane in #610
- fix: export typings for recent typescript by @JulianCataldo in #602
- passes authorized scope to client by @YousefED in #616
- Feature/537 node resolution node16 by @janthurau in #608
- Add connection and context to
connected
hook payload by @canadaduane in #607 - Upgrade Typescript to ^5.0.4 by @janthurau in #604
- build(deps): bump meow from 11.0.0 to 12.0.1 in /packages/cli by @dependabot in #601
New Contributors
- @jjgmckenzie made their first contribution in #595
- @JulianCataldo made their first contribution in #602
- @canadaduane made their first contribution in #607
- @YousefED made their first contribution in #616
Full Changelog: v2.0.6...v2.1.0
v2.1.0-alpha.0
What's Changed
- !!WARNING!! extension-redis: Removes cross-instance locking of onStoreDocument hook - this should now be handled by your database / other end that is called from onStoreDocument. If you need locking on hocuspocus, you can create your own extension listening to the
onStoreDocument
hook and reject the promise if you don't want the hook chain to continue. - extension-redis: Updated to 5.0.4
Full Changelog: v2.0.6...v2.1.0-alpha.0
v2.0.6
v2.0.5
What's Changed
- Fixes a bug in extension-redis that leads to broken sync when clients reconnect quickly by @janthurau in #587
Full Changelog: v2.0.4...v2.0.5
v2.0.4
What's Changed
- build: fix npm scripts for frontend playground by @synix in #578
- Moves @types deps of hocuspocus-server to devDependencies by @janthurau in #585
- Adds TiptapCollabProviderWebsocket to make using multiplexing easier with TiptapCollab by @janthurau in #584
- Fixes an edge-case where the onLoadDocument would run before onStoreDocument by @janthurau in #572
- fix: Do not retry connection if data is too large by @tommoor in #586
New Contributors
Full Changelog: v2.0.3...v2.0.4