Skip to content

Commit

Permalink
chore: add Breaking Changes note about AlarmHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
sor4chi committed Nov 30, 2023
1 parent 596e1cc commit 44b5065
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .changeset/three-actors-develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,27 @@ generateHonoObject("/", () => {}, {

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

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

### After

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

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

0 comments on commit 44b5065

Please sign in to comment.