chore: remove unenv AsyncLocalStorage patch#32
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
nuxt-convex-playground | ebdc068 | Commit Preview URL Branch Preview URL |
Mar 22 2026, 09:59 AM |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 13526122d3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| patchedDependencies: | ||
| [email protected]: patches/[email protected] | ||
| catalog: |
There was a problem hiding this comment.
Keep unenv patch until all Worker targets use native ALS
Removing the patchedDependencies entry reverts [email protected] to its known broken AsyncLocalStorage.run/exit behavior for async callbacks (the deleted patch fixed store restoration after Promise completion), but this repo still includes a Worker target on compatibility_date: "2025-01-01" in wrangler.jsonc:4, which predates the native ALS date cited in the commit message. In that deployment path, request-scoped context can be lost or bleed across async boundaries, causing incorrect per-request state (for example auth/session context) under concurrent traffic.
Useful? React with 👍 / 👎.
Summary
[email protected]patch that fixedAsyncLocalStorage.run/exitstore restorationcloudflare-modulepreset withcompatibility_date: 2025-12-11— Workers provide nativeAsyncLocalStorageat that date, so the polyfill is never reachedTest plan
pnpm installcleanpnpm buildpassespnpm test— 11/11 files, 40/40 tests pass