Repository navigation
fix(release): pin publish-browser-extension to ^4.0.5 - #263
Merged
Merged
Conversation
The 0.3.0 publish run failed at `wxt submit` with:
Error: Dynamic require of "buffer" is not supported
at node_modules/publish-browser-extension/dist/cli.js:11:9
`wxt submit` spawns WXT's `wxt-publish-extension` bin, which imports
`publish-browser-extension/cli` — the ESM entry — under Node. In 3.0.3
that entry is a tsup bundle carrying an esbuild `__require` shim, and
`require` is undefined in Node ESM, so loading its bundled `jsonwebtoken`
(safe-buffer -> jws) throws. Only the CJS entry (`dist/cli.cjs`, used by
the package's own bin) works in 3.x, and WXT does not go through it.
4.0.5 ships a real ESM build with `jsonwebtoken` as a runtime dependency
and no require shim, keeps the same `--chrome-zip` flag and the same
CHROME_* env vars, and is within WXT 0.20's accepted range
(`^2.3.0 || ^3.0.2 || ^4.0.5`), so the workflow needs no changes.
Verified locally: `node node_modules/wxt/bin/wxt-publish-extension.mjs
--help` now prints help instead of crashing, and `bunx wxt submit
--dry-run --chrome-zip .output/bark-0.3.0-chrome.zip` reaches credential
validation.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XqJdFJAVpL8R3GNMkejeYb
nownabe
enabled auto-merge (squash)
August 17, 2026 08:28
nownabe
force-pushed
the
claude/0-3-0-publish-failure-dvyx6c
branch
from
August 17, 2026 08:32
dc805d5 to
97b996b
Compare
nownabe
pushed a commit
that referenced
this pull request
Sep 20, 2026
🤖 I have created a release *beep* *boop* --- ## [0.4.0](bark-v0.3.0...bark-v0.4.0) (2026-09-20) ### Features * **pr:** accept .markdown and .mdx as Markdown ([#322](#322)) ([e22ee68](e22ee68)), closes [#293](#293) * **pr:** commit fork pull requests to the fork's repository ([#342](#342)) ([4e2adef](4e2adef)), closes [#273](#273) * **pr:** create a top-level draft Comment's Thread with it ([#323](#323)) ([6e192f3](6e192f3)), closes [#272](#272) * **pr:** resolve out-of-diff threads via the root comment fence ([#310](#310)) ([7e0ecb9](7e0ecb9)), closes [#270](#270) * **reanchor:** bounded region search for single-line anchors and line-local suggestion merge ([#309](#309)) ([0f735da](0f735da)), closes [#269](#269) * **reanchor:** locate multi-line anchors per endpoint in the region search ([#347](#347)) ([f4fd457](f4fd457)), closes [#311](#311) * **review:** preview the merge for shifted suggestions in the editor ([#354](#354)) ([f822f41](f822f41)), closes [#312](#312) ### Bug Fixes * **anchor:** define anchor.quote as the source text at anchor.range ([#327](#327)) ([11a935d](11a935d)), closes [#276](#276) * **background:** focus an existing review tab instead of opening a second one ([#325](#325)) ([58efa63](58efa63)), closes [#277](#277) * **pr:** compose the quote and permalink for every out-of-diff post ([#351](#351)) ([f85b99b](f85b99b)), closes [#282](#282) * **pr:** count patch lines starting with ++ or -- in parseRightRanges ([#314](#314)) ([9dfbd46](9dfbd46)), closes [#284](#284) * **pr:** keep the rel=next link in the ETag cache so 304 pages still paginate ([#318](#318)) ([6472de2](6472de2)), closes [#286](#286) * **pr:** offer Resolve only when GitHub would accept it ([#335](#335)) ([b05fdcc](b05fdcc)), closes [#274](#274) * **pr:** park a failed resolve toggle in synced, not draft ([#320](#320)) ([56e815b](56e815b)), closes [#275](#275) * **pr:** post drafts in the current head's coordinates ([#303](#303)) ([28ef345](28ef345)) * **pr:** recover comments stuck in syncing instead of re-posting them ([#305](#305)) ([3548086](3548086)) * **pr:** refuse commits to a merged or closed PR ([#330](#330)) ([2a239ff](2a239ff)), closes [#288](#288) * **pr:** refuse to submit a draft whose quoted text changed upstream ([#346](#346)) ([d4118a4](d4118a4)), closes [#313](#313) * **pr:** route replies on the parent's GitHub object kind ([#326](#326)) ([1df6462](1df6462)), closes [#285](#285) * **pr:** serialise refresh and execution under one Repository lock ([#336](#336)) ([1864488](1864488)), closes [#281](#281) * **pr:** sweep entities left syncing at the end of a submit ([#331](#331)) ([108caa9](108caa9)), closes [#271](#271) * **release:** pin publish-browser-extension to ^4.0.5 ([#263](#263)) ([b77104f](b77104f)) * **review:** derive a suggestion draft's cid from the hunk it materialises ([#337](#337)) ([963339d](963339d)), closes [#308](#308) * **review:** end a whole-line selection on the line it actually covers ([#319](#319)) ([3364d18](3364d18)), closes [#291](#291) * **review:** map comment positions between head and edited coordinates ([#348](#348)) ([9465718](9465718)), closes [#283](#283) * **review:** reject a suggestion by resolving its thread on GitHub ([#340](#340)) ([d088a8d](d088a8d)), closes [#287](#287) * **review:** resolve accepted-suggestion threads only after the commit lands ([#341](#341)) ([770f901](770f901)), closes [#278](#278) * **review:** surface failed comment posts and keep the reviewer's edits ([#307](#307)) ([48cb675](48cb675)) * **review:** validate the PR number from the review URL ([#321](#321)) ([457a942](457a942)), closes [#295](#295) * **storage:** bound chrome.storage.local growth and stop quota errors losing drafts ([#332](#332)) ([1f96120](1f96120)), closes [#289](#289) * **suggest:** consume a longer closing fence instead of leaking a backtick ([#316](#316)) ([d2e0683](d2e0683)), closes [#290](#290) ### Performance Improvements * **reanchor:** replace the LCS table with a memoised line-level Myers diff ([#344](#344)) ([8caebdd](8caebdd)), closes [#280](#280) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please-nownabe-bark[bot] <295690643+release-please-nownabe-bark[bot]@users.noreply.github.com>
nownabe
added a commit
that referenced
this pull request
Sep 26, 2026
## Why Renovate's #258 (wxt 0.21) and #243 (@vitejs/plugin-react v6) each fail CI alone and depend on each other: - WXT 0.21's generated `.wxt/tsconfig.json` (which ours extends) now enables `noImplicitOverride` and `noUncheckedIndexedAccess` (wxt-dev/wxt#2512), so `bun run typecheck` fails in files the bump doesn't touch. - WXT 0.21 makes `vite` a peer (`^6.3.4 || ^7 || ^8`). plugin-react v6 requires Vite 8, so it only works once we pick Vite 8 ourselves. ## What - `wxt` ^0.21.0, `vite` ^8.0.0 (new explicit devDependency, now a peer), `@vitejs/plugin-react` ^6.0.0. - Drop both `overrides`: - `@vitejs/plugin-react` ^4.3.4 pin was for Vite 6 compatibility; no longer applies. - `publish-browser-extension` ^4.0.5 pin (#263) guarded against the broken 3.x ESM entry. WXT 0.21 requires `^5.1 || ^6`, so 3.x can't resolve anymore and the pin would force a version outside WXT's range. It now resolves to 6.1.1, which still defaults to the Chrome API v1.1 path with the same `CHROME_*` env vars and `--chrome-zip` flag. Removed the matching section in `docs/release.md`. - Type fixes, no flags disabled: - `override` on CodeMirror `WidgetType` `eq` / `ignoreEvent` / `destroy` overrides. - Indexed access: `withRetry` and `findCommentMappings` now iterate their backoff arrays (same attempt counts), `buildAllPendingSuggestions` uses `Object.entries`, `extractSuggestionBlock` uses `m?.[2] ?? null`; `!` only where bounds are already checked (loop indices, mandatory regex groups, binary search in `offsetToLineCol`). - Tests: `?.` / `!` on indexed results. ## Checks `bun run test`, `check:lint`, `check:format`, `typecheck`, `build`, `test:e2e` (4/4) pass locally. `bun run zip` still emits `.output/bark-<version>-chrome.zip`; the manifest is unchanged; `wxt submit --dry-run` loads and reaches credential validation; `dev/preview/vite.config.ts` builds under Vite 8 + plugin-react 6. Supersedes #258 and #243.
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.
The 0.3.0 publish run failed at
wxt submitwith:wxt submitspawns WXT'swxt-publish-extensionbin, which importspublish-browser-extension/cli— the ESM entry — under Node. In 3.0.3that entry is a tsup bundle carrying an esbuild
__requireshim, andrequireis undefined in Node ESM, so loading its bundledjsonwebtoken(safe-buffer -> jws) throws. Only the CJS entry (
dist/cli.cjs, used bythe package's own bin) works in 3.x, and WXT does not go through it.
4.0.5 ships a real ESM build with
jsonwebtokenas a runtime dependencyand no require shim, keeps the same
--chrome-zipflag and the sameCHROME_* env vars, and is within WXT 0.20's accepted range
(
^2.3.0 || ^3.0.2 || ^4.0.5), so the workflow needs no changes.Verified locally:
node node_modules/wxt/bin/wxt-publish-extension.mjs --helpnow prints help instead of crashing, andbunx wxt submit --dry-run --chrome-zip .output/bark-0.3.0-chrome.zipreaches credentialvalidation.
Co-Authored-By: Claude Opus 5 [email protected]
Claude-Session: https://claude.ai/code/session_01XqJdFJAVpL8R3GNMkejeYb