You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit daac727
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ Never touch contents inside `<!-- automd -->` in README.md. They are auto genera
92
92
## Design Decisions
93
93
94
94
- No h3/srvx/unstorage dependency â fully standalone
95
-
-`waitUntil` is typed as optional on `ServerRequest` (`event.req`) â runtime-specific (srvx ServerRequest, Cloudflare), accessed via `event?.req.waitUntil?.(promise)`
95
+
-`waitUntil` is typed as optional on `ServerRequest` (`event.req`) â runtime-specific (srvx ServerRequest, Cloudflare), accessed via `event?.req.waitUntil?.(promise)`. `http.ts`'s request narrowing replaces `event.req` with a fresh `Request`, so it carries `waitUntil` over alongside `runtime`, **bound to the original request** (a bare copy would run with the narrowed `Request` as its receiver; srvx/Cloudflare implement it against the real one). All four `cache.ts` call sites â cache write, SWR background refresh, and both evictions â read `event.req.waitUntil`_after_ that swap, so dropping it made every background write inert on exactly the runtimes that provide it: the isolate can be torn down before the write lands, i.e. every request a MISS forever, with SWR refreshes and post-failure evictions cancelled the same way
96
96
-`event.url` is optional â `http.ts` falls back to `new URL(event.req.url)`
97
97
- Storage methods are `get`/`set` (not `getItem`/`setItem`)
98
98
-`base` supports `string | string[]` â multi-tier: reads try each prefix in order (first hit wins), writes go to all prefixes
0 commit comments