Skip to content

feat(alchemy): support alchemy v2 effect-native durable objects - #3

Merged
eersnington merged 5 commits into
mainfrom
feat/alchemy-v2
Oct 29, 2026
Merged

eersnington merged 5 commits into
mainfrom
feat/alchemy-v2

Conversation

@eersnington

Copy link
Copy Markdown
Member
  • Adds src/alchemy.ts, an adapter for Alchemy v2 Effect-native Durable Objects: Migrator.migratable(...) wraps the object, and Migrator.withMigrationRoute(app) handles /__migrate/* in the Worker.
  • After migration, RPC calls fail with a typed MigrationMovedError. Each RPC method keeps its argument and success types.
  • Reads the token and MIGRATOR_DISABLED through Effect Config, because Alchemy passes env values wrapped.
  • Exposes a small core from src/worker.ts for adapters. The public API and behaviour are unchanged.
  • Adds end-to-end tests that run an Alchemy v2 app with alchemy dev, plus type-level checks.
  • Adds an Alchemy example with both kinds of Durable Object, and an Alchemy section in the guide.

@eersnington
eersnington force-pushed the feat/alchemy-v2 branch 3 times, most recently from 0208867 to 929c8c8 Compare October 29, 2026 00:50
@eersnington
eersnington merged commit 7cd0f25 into main Oct 29, 2026
1 check passed
@eersnington
eersnington deleted the feat/alchemy-v2 branch October 29, 2026 01:23
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