question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Durable Objects and modules

See original GitHub issue

Just wanted to give a heads up that Durable Objects and standard Workers written as modules is on my radar, but there are still many moving pieces in BETA and so I don’t want to rush this. I’m expecting breaking changes in how toucan-js is going to consume event properties like waitUntil or request in mjs world.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tyvdhcommented, Apr 21, 2021

https://community.cloudflare.com/t/2021-4-15-workers-runtime-release-notes/261917

waitUntil is now supported for module workers. An additional argument called ‘ctx’ is passed after ‘env’, and waitUntil is a method on ‘ctx’.

Should be able to get this fully working natively now!

0reactions
tyvdhcommented, May 5, 2021

Just implemented. Looks like it’s working great! Will keep an eye on it and report anything I see. Thanks for the update!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Durable Objects · Cloudflare Workers docs
Requests for a Durable Object ID are routed by the Workers runtime to ... ES Modules differ from regular JavaScript files in that...
Read more >
cloudflare/durable-objects-rollup-esm - GitHub
A template for kick starting a Cloudflare Workers project using: Durable Objects; Modules (ES Modules to be specific); Rollup; Wrangler. Worker code is...
Read more >
Durable Objects - Miniflare
Fun, full-featured, fully-local simulator for Cloudflare Workers.
Read more >
How to use Durable Objects from Remix on Cloudflare ...
Overview. I implemented the remix application as a module worker for cloudflare workers to use Durable Objects from remix.
Read more >
The Future of Multiplayer: Cloudflare Durable Objects
Dubbed a "new approach to stateful serverless", Durable Objects are ... When using the modules syntax, make sure to declare a main module...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found