Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 7e4d906

Browse files
authored
Mark {add,remove}EventListener() as removed in migration guide (#604)
1 parent a645609 commit 7e4d906

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/src/content/get-started/migrating.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,11 @@ open-source `workerd` runtime. See the
243243
- `getKVNamespace()/getR2Bucket()/getCaches()/getDurableObjectNamespace()`
244244
- Similarly, these methods return instances of Workers runtime classes that
245245
are defined in a different process, and can no longer be supported.
246+
- `addEventListener()`/`removeEventListener()`
247+
- Miniflare no longer emits `reload` events. As Miniflare no longer watches
248+
files, reloads are only triggered by initialisation or `setOptions()` calls.
249+
In these cases, it's possible to wait for the reload with either
250+
`await mf.ready` or `await mf.setOptions()` respectively.
246251
- `Response#waitUntil()`
247252
- [`workerd`](https://github.com/cloudflare/workerd) does not support waiting
248253
for all `waitUntil()`ed promises yet.

0 commit comments

Comments
 (0)