Skip to content

Releases: napolab/y-durableobjects

v1.0.2

06 Aug 03:49
8006fa2
Compare
Choose a tag to compare

Patch Changes

v1.0.1

06 Aug 03:43
38278ff
Compare
Choose a tag to compare

Patch Changes

  • d9839ce: change readme hono env description

v1.0.0

06 Aug 03:22
cb8c9b5
Compare
Choose a tag to compare

Major Changes

  • 0446fbd: Add JS RPC Support for getYDoc and updateYDoc

    1. Major Features:

      • JS RPC APIs getYDoc and updateYDoc:
        • 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.
    2. 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).
    3. 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 of WSSharedDoc managing the YDoc state.
        • storage: A YTransactionStorageImpl 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.
    4. Client-side Typed Fetch with Hono RPC:

      • Included a guide for creating a typed client using hc from hono/client to facilitate Hono RPC on the client side.
    5. 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.

v0.4.2

30 Jul 09:46
8bff68e
Compare
Choose a tag to compare

Patch Changes

  • 1c87a94: fix yTansactionStorage maxBytes limits

v0.4.1

01 Jul 10:50
7812a83
Compare
Choose a tag to compare

Patch Changes

v0.4.0

01 Jul 02:13
6fa14e4
Compare
Choose a tag to compare

Minor Changes

  • 0167e63: update hono4.3 client types

v0.3.2

27 Jun 10:57
75add1a
Compare
Choose a tag to compare

Patch Changes

  • 663be81: fix typo package.json keyword

v0.3.1

25 Apr 19:22
542af7f
Compare
Choose a tag to compare

Patch Changes

  • a3cd212: Fixed a problem that awareness remains when reloading.

v0.3.0

23 Apr 20:44
70aaa05
Compare
Choose a tag to compare

Minor Changes

  • c2d0a17: yDoc must be saved with each change.

v0.2.2

09 Apr 09:38
95a7fc0
Compare
Choose a tag to compare

Patch Changes