update-v8
Skill8.8k starsChanged 9 months agoApache-2.0View on GitHub
Step-by-step guide for updating the V8 JavaScript engine in workerd, including patch rebasing, dependency updates, integrity hashes, and verification. Load this skill when performing or assisting with a V8 version bump.
Trending
Quiet since August.thin dataabout the whole repository
Who's talking about cloudflare/workerd
- A Hacker News story“OS Workerd, Cloudflare's JavaScript/WASM Runtime”Hacker News · Sep 27, 2022 · 27 points
- withastro/astro“Cloudflare adapter returning [object Object]”GitHub · Oct 10, 2025 · 18 reactions
- supabase/supabase-js“The 'cache' field on 'RequestInitializerDict' is not implemented - Cloudflare Workers”GitHub · Mar 28, 2024 · 16 reactions
- nodejs/node“src: improve buffer.transcode performance”GitHub · Aug 1, 2024 · 13 reactions
- NixOS/nixpkgs“Package request: workerd”GitHub · Nov 12, 2024 · 12 reactions
The biggest 5 of 12 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 12
Talked about on GitHub, Bluesky and Hacker News (12 times).
On GitHub · 6
- Oct 10, 2025Cloudflare adapter returning [object Object] — withastro/astro18 reactions · 15 comments
- Mar 28, 2024The 'cache' field on 'RequestInitializerDict' is not implemented - Cloudflare Workers — supabase/supabase-js16 reactions · 24 comments
- Aug 1, 2024src: improve buffer.transcode performance — nodejs/node13 reactions · 26 comments
- Nov 12, 2024Package request: workerd — NixOS/nixpkgs12 reactions · 8 comments
- Feb 19, 2024Add Curve25519 — w3c/webcrypto9 reactions · 16 comments
1 more on GitHub
- Nov 3, 2025Optimize TextEncoder::encode — nodejs/performance7 reactions · 33 comments
On Bluesky · 4
- Mar 24, 2026workerd : le runtime JavaScript/Wasm open source de Cloudflare Workers — @news.humancoders.com4 likes and reposts
- Aug 22, 2026Current status: trying to build github.com/cloudflare/w... on various sandbox providers — @jeremymorrell.dev1 likes and repost
- Mar 24, 2026workerd : le runtime JavaScript/Wasm qui propulse Cloudflare Workers est maintenant open source. Basé sur les standards web, il permet… — @humancoders.com1 likes and repost
- Nov 5, 2024Technically workers are open source github.com/cloudflare/w... — @userops.bsky.social1 likes and repost
On Hacker News · 2
- Sep 27, 2022OS Workerd, Cloudflare's JavaScript/WASM Runtime27 points · 2 comments
- Oct 5, 2023Cloudflare workers is adopting Ada URL parser2 points
In this repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- build/AGENTS.mdAGENTS.md
- src/cloudflare/AGENTS.mdAGENTS.md
- src/node/AGENTS.mdAGENTS.md
- src/per_isolate/AGENTS.mdAGENTS.md
- src/per_isolate/crypto/AGENTS.mdAGENTS.md
- src/per_isolate/webfs/AGENTS.mdAGENTS.md
- src/per_isolate/webstreams/AGENTS.mdAGENTS.md
- src/pyodide/AGENTS.mdAGENTS.md
- src/rust/AGENTS.mdAGENTS.md
- src/rust/cxx/AGENTS.mdAGENTS.md
- src/tests/node/AGENTS.mdAGENTS.md
- src/tests/node/http-client/AGENTS.mdAGENTS.md
- src/tests/node/http-server/AGENTS.mdAGENTS.md
- src/tests/node/net/AGENTS.mdAGENTS.md
- src/tests/node/stream/AGENTS.mdAGENTS.md
- src/tests/streams/AGENTS.mdAGENTS.md
- src/tests/streams/cache/AGENTS.mdAGENTS.md
- src/tests/streams/compression/AGENTS.mdAGENTS.md
- src/tests/streams/digest/AGENTS.mdAGENTS.md
- src/tests/streams/encoding/AGENTS.mdAGENTS.md
- src/tests/streams/formdata/AGENTS.mdAGENTS.md
- src/tests/streams/htmlrewriter/AGENTS.mdAGENTS.md
- src/tests/streams/identity/AGENTS.mdAGENTS.md
- src/tests/streams/inspect/AGENTS.mdAGENTS.md
- src/tests/streams/iocontext/AGENTS.mdAGENTS.md
- src/tests/streams/piping/AGENTS.mdAGENTS.md
- src/tests/streams/r2-patterns/AGENTS.mdAGENTS.md
- src/tests/streams/readable/AGENTS.mdAGENTS.md
- src/tests/streams/readable-byte/AGENTS.mdAGENTS.md
- src/tests/streams/scaling/AGENTS.mdAGENTS.md
- src/tests/streams/sockets/AGENTS.mdAGENTS.md
- src/tests/streams/strategies/AGENTS.mdAGENTS.md
- src/tests/streams/transform/AGENTS.mdAGENTS.md
- src/tests/streams/writable/AGENTS.mdAGENTS.md
- src/workerd/api/AGENTS.mdAGENTS.md
- src/workerd/api/crypto/AGENTS.mdAGENTS.md
- src/workerd/api/node/AGENTS.mdAGENTS.md
- src/workerd/api/streams/AGENTS.mdAGENTS.md
- src/workerd/io/AGENTS.mdAGENTS.md
- src/workerd/jsg/AGENTS.mdAGENTS.md
- src/workerd/server/AGENTS.mdAGENTS.md
- src/workerd/util/AGENTS.mdAGENTS.md
- types/AGENTS.mdAGENTS.md
- bazel-test-hygieneSkill
- commit-categoriesSkill
- dad-jokesSkill
- find-and-run-testsSkill
- identify-reviewerSkill
- investigation-notesSkill
- kj-styleSkill
- markdown-draftsSkill
- parent-project-skillsSkill
- pr-review-guideSkill
- receiving-code-reviewSkill
- rust-reviewSkill
- ts-styleSkill
- wd-test-formatSkill
- workerd-api-reviewSkill
- workerd-safety-reviewSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Check chromiumdash.appspot.com for the latest V8 version used by Chrome Beta.
- Very specific: line 112
PATCHES: Update the list if patches were added, removed, or renamed. - Very specific: line 201
Bazel integrity mismatch: If you see expected sha256-...
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Updating V8 in workerd
V8 updates are high-risk changes that require careful patch management and human judgment for merge conflicts. This skill covers the full process. Always confirm the target version with the developer before starting.
See also the V8 update reference.
Always communicate and confirm with the developer at each step. Never take irreversible actions (like dropping patches or updating hashes) without explicit confirmation.
Prerequisites
depot_toolsinstalled and on$PATH(setup guide)- A local V8 checkout (outside the workerd repo to avoid confusing Bazel):
mkdir v8 && cd v8 && fetch v8
Step 1: Identify the target version
Check chromiumdash.appspot.com for the latest V8 version used by Chrome Beta. Confirm the target <new_version> with the developer.
Find the current version in build/deps/v8.MODULE.bazel:
VERSION = "14.5.201.6" # example — check the actual fileWe'll call this <old_version>.
Step 2: Sync local V8 to the current workerd version
cd <path_to_v8>/v8
git checkout <old_version>
gclient syncStep 3: Apply workerd's patches onto a branch
git checkout -b workerd-patches
git am --keep-non-patch <path_to_workerd>/patches/v8/*There are multiple patches in patches/v8/. These include workerd-specific customizations:
| Patch category | Examples |
| Serialization | Custom ValueSerializer/Deserializer format versions, proxy/function host object support |
| Build system | Windows/Bazel fixes, shared linkage, dependency path overrides (fp16, fast_float, simdutf, dragonbox) |
| Embedder hooks | Promise context tagging, cross-request promise resolution, extra isolate embedder slot |
| Bug workarounds | Memory leak assert disable, slow handle check disable, builtin-can-allocate workaround |
| API additions | String::IsFlat, AdjustAmountOfExternalAllocatedMemory exposure, additional Exception constructors |
| ICU/config | ICU data export, googlesource ICU binding, verify_write_barriers flag |
Step 4: Rebase patches onto the new V8 version
git rebase --onto <new_version> <old_version>This is where most of the work happens. Expect conflicts. Key guidance:
- Build-system patches (dependency paths, Bazel config) conflict most often as upstream V8 restructures its build.
- API patches (new methods on V8 classes) may conflict if upstream changed the surrounding code.
- Always preserve workerd's intent — understand what each patch does before resolving conflicts. The patch filenames are descriptive.
- Do not drop patches without explicit confirmation from the developer.
- Do not auto-resolve conflicts — flag them for human review. Merge conflicts in V8 patches almost always require human judgment.
Step 5: Regenerate patches
git format-patch --full-index -k --no-signature --no-stat --zero-commit <new_version>This produces numbered .patch files in the current directory.
Step 6: Replace patches in workerd
Always confirm with the human before replacing patches. If any patches were dropped or added, the human needs to review the changes.
rm <path_to_workerd>/patches/v8/*
cp *.patch <path_to_workerd>/patches/v8/Step 7: Update build/deps/v8.MODULE.bazel
Three things need updating:
VERSION: Set to<new_version>.INTEGRITY: Compute the sha256 hash of the new tarball:curl -sL "https://github.com/v8/v8/archive/refs/tags/<new_version>.tar.gz" -o v8.tar.gz openssl dgst -sha256 -binary v8.tar.gz | openssl base64 -AFormat:
"sha256-<base64_hash>=". Alternatively, attempt a build and copy the expected hash from Bazel's mismatch error.PATCHES: Update the list if patches were added, removed, or renamed. The list must match the filenames inpatches/v8/exactly, in order.
Step 8: Update V8's dependencies
V8 depends on several libraries that are pinned in build/deps/v8.MODULE.bazel and build/deps/deps.jsonc. Check the local V8 checkout's DEPS file for commit versions:
cat <path_to_v8>/v8/DEPSDependencies to check and update:
| Dependency | Where | Notes |
com_googlesource_chromium_icu | v8.MODULE.bazel (git_repository commit) | Chromium fork; update commit from V8's DEPS |
perfetto | deps.jsonc (managed by update-deps.py) | V8 depends via Chromium; safe to bump to latest GitHub release |
simdutf | deps.jsonc (managed by update-deps.py) | V8 depends via Chromium; safe to bump to latest GitHub release |
For dependencies in deps.jsonc, you can use the update script:
python3 build/deps/update-deps.py perfetto
python3 build/deps/update-deps.py simdutfThis fetches the latest version, computes integrity hashes, and regenerates the gen/ MODULE.bazel fragments. Do not hand-edit files in build/deps/gen/.
Step 9: Build and test
# Full build
just build
# Full test suite
just testWatch for:
- Build failures from V8 API changes: V8 may deprecate or change APIs between versions. Search for deprecation warnings in the build output. Common areas affected:
src/workerd/jsg/— V8 binding layer, most directly affectedsrc/workerd/api/— APIs that interact with V8 types directlysrc/workerd/io/worker.c++— Isolate creation and configuration
- Test failures from behavior changes: V8 may change observable JS behavior. Check:
just test //src/workerd/jsg/...— JSG binding testsjust test //src/workerd/api/tests/...— API tests- Node.js compatibility tests (
just node-test) - Web Platform Tests (
just wpt-test)
- New V8 deprecation warnings: These are future breakage signals. Document them in the PR description even if tests pass.
Step 10: Commit and submit
Prompt the user to commit the changes and push for review.
Never push the branch for review without a human review of the patch changes.
You May prepare the draft PR text for the user. The PR should include:
- Updated
build/deps/v8.MODULE.bazel(version, integrity, patches list) - Updated patches in
patches/v8/ - Updated dependency versions if changed
- Any C++ fixes for V8 API changes
- PR description listing: old version, new version, patches that required conflict resolution, any deprecation warnings observed, and any behavior changes noted
Checklist
- Target V8 version confirmed with developer
- Local V8 checked out and synced to old version
- workerd patches applied and rebased onto new version
- Conflicts resolved with human review (no auto-resolution)
- Patches regenerated with
git format-patch - Old patches replaced with new patches in
patches/v8/ VERSIONupdated inv8.MODULE.bazelINTEGRITYupdated inv8.MODULE.bazelPATCHESlist updated if patches added/removed/renamed- V8 dependencies checked and updated (ICU, perfetto, simdutf)
just buildsucceedsjust testpasses (or failures documented and explained)- No new patches dropped without explicit confirmation
- PR description documents version change, conflict resolutions, and deprecation warnings
Troubleshooting
Bazel integrity mismatch: If you see expected sha256-... but got sha256-..., copy the "got" hash into the INTEGRITY field. This happens when the hash was computed incorrectly or the tarball was re-generated by GitHub.
Patch won't apply: A patch that applied cleanly during git am but fails in Bazel means the git format-patch output differs from what Bazel expects. Verify you used --full-index -k --no-signature --no-stat --zero-commit flags. Also verify patch order matches the PATCHES list.
ICU build failures: ICU is a Chromium fork fetched via git_repository. If the commit in v8.MODULE.bazel is wrong, you'll see missing-file or compilation errors in ICU. Cross-reference with V8's DEPS file for the correct commit.
update-deps.py fails: The script requires network access to fetch versions. If a dependency's GitHub release format changed, you may need to update the version manually in deps.jsonc and run python3 build/deps/update-deps.py to regenerate hashes.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

