Download Latest Version hono-agents@3.0.7 source code.tar.gz (3.2 MB)
Email in envelope

Get an email when there's a new version of Cloudflare Agents

Home / agents@0.7.2
Name Modified Size InfoDownloads / Week
Parent folder
agents@0.7.2 source code.tar.gz < 20 hours ago 3.2 MB
agents@0.7.2 source code.zip < 20 hours ago 3.6 MB
README.md < 20 hours ago 1.6 kB
Totals: 3 Items   6.8 MB 0

Patch Changes

  • #1050 6157741 Thanks @ask-bonk! - Fix Agent alarm() bypassing PartyServer's initialization

    The Agent class defined alarm as a public readonly arrow function property, which completely shadowed PartyServer's alarm() prototype method. This meant #ensureInitialized() was never called when a Durable Object woke via alarm (e.g. from scheduleEvery), causing this.name to throw and onStart to never run.

    Converted alarm from an arrow function property to a regular async method that calls super.alarm() before processing scheduled tasks. Also added an onAlarm() no-op override to suppress PartyServer's default warning log.

  • #1052 f1e2bfa Thanks @ask-bonk! - Make scheduleEvery() idempotent

    scheduleEvery() now deduplicates by the combination of callback name, interval, and payload: calling it multiple times with the same arguments returns the existing schedule instead of creating a duplicate. A different interval or payload creates a separate, independent schedule.

    This fixes the common pattern of calling scheduleEvery() inside onStart(), which runs on every Durable Object wake. Previously each wake created a new interval schedule, leading to a thundering herd of duplicate executions.

Source: README.md, updated 2026-03-02