Skip to content

chore(npm): update wxt to 0.21 and @vitejs/plugin-react to v6 - #371

Merged
nownabe merged 1 commit into
mainfrom
chore/wxt-0.21
Sep 26, 2026
Merged

nownabe merged 1 commit into
mainfrom
chore/wxt-0.21

Conversation

@nownabe

@nownabe nownabe commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Why

Renovate's #258 (wxt 0.21) and #243 (@vitejs/plugin-react v6) each fail CI alone and depend on each other:

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 (fix(release): pin publish-browser-extension to ^4.0.5 #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.

@nownabe nownabe self-assigned this Sep 26, 2026
WXT 0.21 makes vite a peer and its generated tsconfig now enables noImplicitOverride and noUncheckedIndexedAccess, so both Renovate PRs failed CI on their own. Vite 8 lets plugin-react move to v6, and publish-browser-extension ^5.1 || ^6 makes both overrides obsolete.
@nownabe
nownabe enabled auto-merge (squash) September 26, 2026 06:25
@nownabe
nownabe merged commit 5863d1d into main Sep 26, 2026
13 checks passed
@nownabe
nownabe deleted the chore/wxt-0.21 branch September 26, 2026 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant