Repository navigation
fix(TS)!: Update .wxt/tsconfig.json compiler options, require TS >=5.4 - #2512
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## major #2512 +/- ##
========================================
Coverage ? 79.39%
========================================
Files ? 131
Lines ? 3969
Branches ? 905
========================================
Hits ? 3151
Misses ? 727
Partials ? 91 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
aklinker1
marked this pull request as ready for review
July 26, 2026 16:42
aklinker1
added a commit
that referenced
this pull request
Jul 26, 2026
…5.4 (#2512) BREAKING CHANGE: Updates `.wxt/tsconfig.json` defaults to latest recommended settings for vite projects and requires Typescript 5.4 or later. See #2512 for details on what compiler options were changed. Co-authored-by: cookesan <[email protected]>
aklinker1
added a commit
that referenced
this pull request
Jul 26, 2026
…5.4 (#2512) BREAKING CHANGE: Updates `.wxt/tsconfig.json` defaults to latest recommended settings for vite projects and requires Typescript 5.4 or later. See #2512 for details on what compiler options were changed. Co-authored-by: cookesan <[email protected]>
aklinker1
added a commit
that referenced
this pull request
Jul 26, 2026
…5.4 (#2512) BREAKING CHANGE: Updates `.wxt/tsconfig.json` defaults to latest recommended settings for vite projects and requires Typescript 5.4 or later. See #2512 for details on what compiler options were changed. Co-authored-by: cookesan <[email protected]>
eliandoran
added a commit
to TriliumNext/Trilium
that referenced
this pull request
Jul 30, 2026
wxt 0.21 enables verbatimModuleSyntax and noUncheckedIndexedAccess in the generated .wxt/tsconfig.json (wxt-dev/wxt#2512), which also made the rolldown-based build reject the type-as-value Rect import. - import Rect with an inline type specifier - getActiveTab() now throws instead of returning a possibly-undefined tabs[0] - narrow indexed accesses in absoluteUrl(), pageTitle() and the protocol version parsing Co-Authored-By: Claude Fable 5 <[email protected]>
yshrsmz
added a commit
to yshrsmz/omniatp
that referenced
this pull request
Aug 27, 2026
wxt 0.21.0 changed .wxt/tsconfig.json defaults to enable verbatimModuleSyntax and noUncheckedIndexedAccess (wxt-dev/wxt#2512). Add `type` to type-only imports and guard indexed-access reads that are safe by construction (regex capture groups, array reads already guarded by a length/count check).
yshrsmz
added a commit
to yshrsmz/omniatp
that referenced
this pull request
Aug 27, 2026
* chore(deps): update npm devdependencies * fix: adapt to wxt 0.21's stricter generated tsconfig wxt 0.21.0 changed .wxt/tsconfig.json defaults to enable verbatimModuleSyntax and noUncheckedIndexedAccess (wxt-dev/wxt#2512). Add `type` to type-only imports and guard indexed-access reads that are safe by construction (regex capture groups, array reads already guarded by a length/count check). --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Yasuhiro SHIMIZU <[email protected]>
corrupt952
added a commit
to corrupt952/SnackTime
that referenced
this pull request
Sep 6, 2026
wxt 0.21.0 rewrote the generated .wxt/tsconfig.json (wxt-dev/wxt#2512), and tsconfig.json extends it, so verbatimModuleSyntax and noUncheckedIndexedAccess now apply to this project. Type-only imports are no longer elided, which broke tsc, the wxt build and the Storybook build alike: rolldown kept the erased names and reported MISSING_EXPORT against settings.ts. The imports that name only types now use `import type`, and the ones mixing a value with types take the inline `type` modifier, matching what use-settings-sync.ts and Timer.tsx already do. Settings and ColorScheme stay value imports — they are a class and an enum. Under noUncheckedIndexedAccess, parseTimeToSeconds destructures with `= 0` defaults and volume-control coalesces the slider's first value, both no-ops for the well-formed input these paths receive. The four history.test.ts sites use non-null assertions because the preceding toHaveLength assertion already establishes the elements exist. Verification: pnpm compile: no errors, down from the 24 CI reported. pnpm test: 12 files, 248 tests passed. pnpm build: succeeded. pnpm build-storybook: succeeded. pnpm test:e2e: 77 passed on a clean run; a later run flaked on timer-position, which passes in isolation and races the desktop for window focus. prettier --check: all changed files conform. Known gaps: none — the new defaults are satisfied as generated, with no compiler option overridden to keep the old behaviour. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
renovate Bot
added a commit
to corrupt952/SnackTime
that referenced
this pull request
Sep 6, 2026
* chore(deps): update dependency wxt to v0.21.4 * refactor: adopt wxt 0.21 tsconfig defaults wxt 0.21.0 rewrote the generated .wxt/tsconfig.json (wxt-dev/wxt#2512), and tsconfig.json extends it, so verbatimModuleSyntax and noUncheckedIndexedAccess now apply to this project. Type-only imports are no longer elided, which broke tsc, the wxt build and the Storybook build alike: rolldown kept the erased names and reported MISSING_EXPORT against settings.ts. The imports that name only types now use `import type`, and the ones mixing a value with types take the inline `type` modifier, matching what use-settings-sync.ts and Timer.tsx already do. Settings and ColorScheme stay value imports — they are a class and an enum. Under noUncheckedIndexedAccess, parseTimeToSeconds destructures with `= 0` defaults and volume-control coalesces the slider's first value, both no-ops for the well-formed input these paths receive. The four history.test.ts sites use non-null assertions because the preceding toHaveLength assertion already establishes the elements exist. Verification: pnpm compile: no errors, down from the 24 CI reported. pnpm test: 12 files, 248 tests passed. pnpm build: succeeded. pnpm build-storybook: succeeded. pnpm test:e2e: 77 passed on a clean run; a later run flaked on timer-position, which passes in isolation and races the desktop for window focus. prettier --check: all changed files conform. Known gaps: none — the new defaults are satisfied as generated, with no compiler option overridden to keep the old behaviour. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * chore: move pnpm overrides to workspace config pnpm 11 stopped reading the "pnpm" field from package.json, so every install warned that pnpm.overrides was ignored and the two security pins were silently inert. Moving them to pnpm-workspace.yaml, where pnpm now reads its settings, restores them; the lockfile gains the overrides block it was missing, which is what proves they take effect rather than being ignored again. Deleting the pins as obsolete was the alternative and was rejected: neither @isaacs/brace-expansion nor undici is in the tree today, so the pins cost nothing and still guard the case where a transitive dependency pulls one back in. Verification: pnpm install --frozen-lockfile: succeeded with no warning and no resolution change — the lockfile diff is the overrides block alone. pnpm compile, pnpm test, pnpm build and pnpm build-storybook all re-run after the move: passed. Known gaps: none. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: K@zuki. <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
nownabe
added a commit
to nownabe/bark
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.
Warning
BREAKING CHANGE: Updates
.wxt/tsconfig.jsondefaults to latest recommended settings for vite projects and requires Typescript 5.4 or later. See #2512 for details on what compiler options were changed.Overview
This closes #2449. Update to latest recommended tsconfig and set min version for typescript peer.