- a10b1df: update lib0
- d9839ce: change readme hono env description
-
0446fbd: Add JS RPC Support for getYDoc and updateYDoc
-
Major Features:
- JS RPC APIs
getYDoc
andupdateYDoc
:- Implemented new JS RPC APIs to fetch (
getYDoc
) and update (updateYDoc
) YDocs within Durable Objects. - Allows manipulating YDocs from sources other than WebSocket, enhancing flexibility and control.
- Implemented new JS RPC APIs to fetch (
- JS RPC APIs
-
Hono Integration:
- Added examples for integrating
y-durableobjects
with Hono, using both shorthand and detailed methods. - Demonstrated how to handle WebSocket connections via fetch due to the current limitations of JS RPC (see Cloudflare issue).
- Added examples for integrating
-
Extending with JS RPC:
- Explained how to extend
y-durableobjects
for advanced operations, including accessing and manipulating protected fields:app
: The Hono app instance used to handle requests.doc
: An instance ofWSSharedDoc
managing the YDoc state.storage
: AYTransactionStorageImpl
instance for storing and retrieving YDoc updates.sessions
: A map to manage active WebSocket sessions.awarenessClients
: A set to track client awareness states.
- Provided a minimal example of creating a custom Durable Object by extending
YDurableObjects
.
- Explained how to extend
-
Client-side Typed Fetch with Hono RPC:
- Included a guide for creating a typed client using
hc
fromhono/client
to facilitate Hono RPC on the client side.
- Included a guide for creating a typed client using
-
Documentation Updates:
- Updated the README with detailed examples and explanations for the new features and integrations.
- Ensured clarity and ease of understanding for developers looking to utilize the new functionalities.
-
- 1c87a94: fix yTansactionStorage maxBytes limits
- ee6cdf3: update dependencies pacakges
- a7f594a: export inner modules
- 0167e63: update hono4.3 client types
- 663be81: fix typo package.json keyword
- a3cd212: Fixed a problem that awareness remains when reloading.
- c2d0a17: yDoc must be saved with each change.
- 4176b18: enhanced readme
- 2a92448: fix hono dependencies
- 13dc461: add typed-websocket route
- 9b0bf0a: add homepage field
- 754fcf6: FIX README Hono typing
- b574bbf: fix readme code
- 1e1f4ce: add license
- 75e5ba9: y-durableobjects publish