Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #22

Merged
merged 1 commit into from
Nov 30, 2023
Merged

Version Packages #22

merged 1 commit into from
Nov 30, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Nov 30, 2023

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

hono-do@1.0.0

Major Changes

  • #21 f659d6c Thanks @sor4chi! - Support for three handlers about Hibernation Websocket API.

    • webSocketMessage handler
    • webSocketClose handler
    • webSocketError handler

    You can use these handlers same way as alarm handler in Hono DO.

    Usage

    Flat way

    const DO = generateHonoObject("/", () => {});
    DO.alarm(async () => {});
    DO.webSocketMessage(async () => {});
    DO.webSocketClose(async () => {});
    DO.webSocketError(async () => {});

    Chaining way

    generateHonoObject("/", () => {})
      .alarm(async () => {})
      .webSocketMessage(async () => {})
      .webSocketClose(async () => {})
      .webSocketError(async () => {});

    Argument way

    generateHonoObject("/", () => {}, {
      alarm: async () => {},
      webSocketMessage: async () => {},
      webSocketClose: async () => {},
      webSocketError: async () => {},
    });

    Take care for registering multiple handlers for same event.
    If you register so, you will get an error.

    Breaking changes

    Changed the interface of how to configure AlarmHandler in generateHonoObject argument.

    Before

    generateHonoObject(
      "/",
      () => {},
      () => {
        console.log("alarm");
      },
    );

    After

    generateHonoObject("/", () => {}, {
      alarm: () => {
        console.log("alarm");
      },
    });

    This is because we want to support many fields of Durable Object as handlers.

hono-do-example-batcher@0.0.3

Patch Changes

  • Updated dependencies [f659d6c]:
    • hono-do@1.0.0

hono-do-example-chat@0.0.4

Patch Changes

  • Updated dependencies [f659d6c]:
    • hono-do@1.0.0

hono-do-example-counter@0.0.4

Patch Changes

  • Updated dependencies [f659d6c]:
    • hono-do@1.0.0

hono-do-example-counter-with-storage-helper@0.0.3

Patch Changes

  • Updated dependencies [f659d6c]:
    • hono-do@1.0.0

hono-do-example-hibernatable-chat@0.0.1

Patch Changes

  • Updated dependencies [f659d6c]:
    • hono-do@1.0.0

@github-actions github-actions bot force-pushed the changeset-release/main branch 4 times, most recently from b6ba2ec to efd10da Compare November 30, 2023 15:19
@sor4chi sor4chi merged commit 38162ef into main Nov 30, 2023
@sor4chi sor4chi deleted the changeset-release/main branch November 30, 2023 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant