Repository navigation
build(deps): regenerate bun.lock for bun 1.4 and clear npm audit - #423
Merged
Merged
Conversation
Bun 1.4 honours nested overrides and fails --frozen-lockfile when bun.lock does not record them. The lockfile was written by Bun 1.3, which ignored overrides.vitest.vite, so CI (setup-bun latest) broke. Bun now writes lockfileVersion 3, which older Bun cannot read, so packageManager and engines move to Bun 1.4. No resolved versions change.
|
🚀 Preview: https://pr-423--openscan.netlify.app |
npm audit failed on 6 root advisories (29 findings, 17 high), all in transitive wallet-stack deps except happy-dom: - ws <8.21.0 (GHSA-58qx-3vcg-4xpx, GHSA-96hv-2xvq-fx4p): older viem copies under @walletconnect/utils and @reown/appkit* pin ws 8.18.0. Override ws to ^8.21.3. The ws 7 consumers (react-native/metro dev tooling, jayson, @walletconnect/jsonrpc-ws-connection) are Node-only; in the browser walletconnect uses the native WebSocket. - uuid <11.1.1 (GHSA-w5hq-g745-h8pq): @metamask/sdk and @metamask/utils pull uuid 8 and 9, which have no patched release. Override to ^11.1.1, which keeps the same named exports and still ships CJS. - zod <4.6.6 (GHSA-mrhx-c7xc-m3w5): no patched zod 3. Override to ^4.6.6. @reown/appkit-wallet and @coinbase/cdp-sdk only use APIs that zod 4 keeps, and both load their schemas under 4.6.7. - decode-uri-component <=0.5.0 (GHSA-qr28-fpjm-wq7f, GHSA-vcc3-ghjq-m6fr): only reached through query-string 7, which @walletconnect/utils lists but never imports. Override to ^0.5.1. - happy-dom <=21.0.3 (GHSA-834v-8h66-3h79, GHSA-c8p4-j97h-3vg8): test-only dev dependency, bumped to ^21.0.4.
This was referenced Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes the two CI checks that every PR to
devcurrently fails:buildandaudit. That includes #405 and the Zcash stack built on it (#406 to #413). Merge this first, then rebase #405 onto it.1.
build: regeneratebun.lockwith Bun 1.4 (3bdc0fa)CI installs with
setup-bunbun-version: latest, which is now Bun 1.4. Bun 1.4 honours nested overrides. The lockfile was written by Bun 1.3, which droppedoverrides.vitest.vite, sobun install --frozen-lockfilefails.2.
audit: clear the 6 root advisories (e1ad69c)"overrides": { + "decode-uri-component": "^0.5.1", + "uuid": "^11.1.1", + "ws": "^8.21.3", + "zod": "^4.6.6", }, "devDependencies": { - "happy-dom": "^20.8.9", + "happy-dom": "^21.0.4",ws8.18.0 → 8.23.0viemcopies under@walletconnect/utilsand@reown/appkit*ws7 consumers are Node-only: react-native/metro dev tooling, jayson, and@walletconnect/jsonrpc-ws-connection, which uses the nativeWebSocketin browsers.uuid8/9 → 11.1.1@metamask/sdk,@metamask/utilszod3 → 4.6.7@reown/appkit-wallet,@coinbase/cdp-sdkdecode-uri-component0.2.2 → 0.5.1query-string7@walletconnect/utilslistsquery-stringas a dependency but never imports it.happy-dom20 → 21.0.4The
bun.lockdiff touches only these packages, plus one hoisting move of@metamask/sdk-communication-layer.Evidence
buildon build(deps): bump network-connectors to 1.8 #405:error: lockfile had changes, but lockfile is frozen.audit:29 vulnerabilities (12 moderate, 17 high).buildcheck passed on 3bdc0fa:bun install v1.4.5,876 packages installed,✓ built in 37.63s.audit,buildand bothlintchecks pass.npm run audit:found 0 vulnerabilities.bun install --frozen-lockfile: no changes.typecheck: clean.test:run: 105 passed.vite build: ✓.vite previewand drove it with Playwright. I loaded/,/#/1and/#/settings, then opened the wallet modal on/#/devtoolsand clicked WalletConnect.Merge Danger
Door: two-way
Reverting either commit restores the previous tree.
Blast Radius: wallet connect
uuid,zodandwsoverrides cross major versions inside the wallet stack: RainbowKit, WalletConnect, MetaMask SDK and Base Account. The smoke test covers opening the modal, not a completed wallet connection.bun upgrade), because Bun 1.3 can't readlockfileVersion3.Not covered here:
npm run auditresolves dependencies fresh frompackage.jsonand never readsbun.lock.bun auditagainst the committedbun.lockstill reports in-range vulnerabilities, such as stalereact-router,vite,vitestandaxiosversions. Refreshing those is a separate follow-up.