Skip to content

Conversation

connyay
Copy link
Contributor

@connyay connyay commented Aug 26, 2025

…ptions

Add support for the getByName API to directly obtain DurableObject stubs by name, matching the JavaScript Workers API. This provides a more efficient alternative to the id_from_name() + get_stub() pattern.

Changes:

  • Add get_by_name() and get_by_name_with_options() to worker-sys bindings
  • Implement get_by_name() and get_by_name_with_location_hint() in worker crate
  • Add example handlers in worker-sandbox
  • Update dependencies to latest Cloudflare Workers types

…ptions

Add support for the getByName API to directly obtain DurableObject stubs by name,
matching the JavaScript Workers API. This provides a more efficient alternative
to the id_from_name() + get_stub() pattern.

Changes:
- Add get_by_name() and get_by_name_with_options() to worker-sys bindings
- Implement get_by_name() and get_by_name_with_location_hint() in worker crate
- Add example handlers in worker-sandbox
- Update dependencies to latest Cloudflare Workers types
@connyay

This comment was marked as outdated.

@connyay connyay marked this pull request as ready for review August 29, 2025 01:47
@connyay
Copy link
Contributor Author

connyay commented Aug 29, 2025

doh. it helps if you define the DO in miniflare 🤦

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.

2 participants