Skip to content

Releases: napolab/y-durableobjects

v1.0.5

05 Aug 09:27
557a9e7

Choose a tag to compare

Patch Changes

  • 3675eb1: Fix Cloudflare Env type collision and improve TypeScript support

    This patch resolves type collision issues and improves TypeScript support:

    • Fixed CI failures: Removed unavailable @cloudflare/workers-types references from tsconfig.json that were causing TypeScript compilation errors
    • Adopted wrangler types: Added worker-configuration.d.ts generated by wrangler types (introduced in Wrangler v3) for accurate type definitions
    • Resolved type collisions: Eliminated conflicts where empty Cloudflare.Env from node_modules overwrote project-specific environment types
    • Enhanced documentation: Added comprehensive troubleshooting guide for type collision issues

    Users benefit automatically from improved type support without needing to modify their code. The wrangler types command is now the recommended approach for generating Cloudflare Workers TypeScript types.

v1.0.4

17 Apr 11:24
ced52c3

Choose a tag to compare

Patch Changes

v1.0.3

17 Apr 10:35
7388306

Choose a tag to compare

Patch Changes

  • 5049074: migrate eslint config to flatconfig

v1.0.2

06 Aug 03:49
8006fa2

Choose a tag to compare

Patch Changes

v1.0.1

06 Aug 03:43
38278ff

Choose a tag to compare

Patch Changes

  • d9839ce: change readme hono env description

v1.0.0

06 Aug 03:22
cb8c9b5

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

Choose a tag to compare

Patch Changes

  • 1c87a94: fix yTansactionStorage maxBytes limits

v0.4.1

01 Jul 10:50
7812a83

Choose a tag to compare

Patch Changes

v0.4.0

01 Jul 02:13
6fa14e4

Choose a tag to compare

Minor Changes

  • 0167e63: update hono4.3 client types

v0.3.2

27 Jun 10:57
75add1a

Choose a tag to compare

Patch Changes

  • 663be81: fix typo package.json keyword