Skip to content

chore: green CI on release/v0.5.0 (TS 6 config, url + cookie advisories) - #110

Merged
pravton merged 2 commits into
release/v0.5.0from
chore/v0-5-0-ci-green
Nov 26, 2026
Merged

pravton merged 2 commits into
release/v0.5.0from
chore/v0-5-0-ci-green

Conversation

@pravton

@pravton pravton commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

The three Dependabot PRs on release/v0.5.0 (#107, #108, #109) fail two CI jobs. This fixes both on the release branch so they can rebase and pass.

Type-check + build: TypeScript 6 (in #109) errors on the deprecated baseUrl and moduleResolution: "Node" (node10) options.

  • tsconfig.json / tsconfig.node.json: moduleResolution: "bundler", baseUrl removed, @/* maps to ./src/*.

Dependency audit: two new advisories with patched releases, so these are upgrades, not new --ignores.

  • url 2.5.8 -> 2.5.9: RUSTSEC-2026-0592, stack overflow in Url::origin() on nested blob: URLs. Pulled in by reqwest.
  • cookie 0.18.1 -> 0.18.3: RUSTSEC-2026-0594, private cookie nonces can repeat in processes that fork.

Cargo also re-resolves cssparser-macros 0.7.1 from syn 3.0.9 to syn 2.0.117, the major version it supports. The two cargo update -p ... --precise commands alone reproduce this lockfile exactly.

vite.config.ts type-check (from review): defineConfig now comes from vitest/config, so the test key type-checks, and npm run build also runs tsc -p tsconfig.node.json --noEmit, which plain tsc skipped.

Verification

  • npm run build and npm test (508 tests) pass on TypeScript 5.9.3.
  • tsc -p tsconfig.json and tsc -p tsconfig.node.json pass on TypeScript 6.0.3, the version chore(deps-dev): bump the npm-dev group across 1 directory with 12 updates #109 brings in.
  • cargo check is clean, and cargo audit with the CI ignore list exits 0.
  • cargo test: 152 tests passed in 15 of 16 runs. One run had a single failure that did not reproduce, and its name was not captured. That points to an existing flaky test, not this lockfile change; it is worth an issue if CI hits it.

After merge, comment @dependabot rebase on #107, #108 and #109.

- tsconfig: moduleResolution "bundler" (Node10 is deprecated in TS 6 and
  errors in tsc), drop baseUrl, make the @/* path relative. Type-checks on
  TypeScript 5.9.3 and 6.0.3, which unblocks the npm-dev bump in #109.
- Cargo.lock: url 2.5.8 -> 2.5.9 (RUSTSEC-2026-0592, stack overflow in
  Url::origin on nested blob: URLs) and cookie 0.18.1 -> 0.18.3
  (RUSTSEC-2026-0594, private cookie nonces can repeat after fork).
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T01:34:55.777393Z 2727758 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Comment thread tsconfig.node.json
"skipLibCheck": true,
"module": "ESNext",
"moduleResolution": "Node",
"moduleResolution": "bundler",

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pre-existing (not from this change, not blocking): vite.config.ts still fails to type-check under this tsconfig, on both TypeScript 5.9.3 and 6.0.3: vite.config.ts(27,3): error TS2769 ... 'test' does not exist in type 'UserConfigExport' (run npx tsc -p tsconfig.node.json --noEmit). Nothing catches it because npm run build runs plain tsc, which does not build the references project, so the "TS 6 fixed" claim for this file is unverified. Fix: import defineConfig from vitest/config (or use /// <reference types="vitest/config" />) in vite.config.ts, and consider tsc -b in the build so this project is checked.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in b2fd91a. vite.config.ts now imports defineConfig from vitest/config, and npm run build also runs tsc -p tsconfig.node.json --noEmit, so CI type-checks this file from now on. Passes on TypeScript 5.9.3 and 6.0.3.

Comment thread src-tauri/Cargo.lock
dependencies = [
"quote",
"syn 3.0.9",
"syn 2.0.117",

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit (optional): this moves cssparser-macros 0.7.1 from syn 3.0.9 to syn 2.0.117 with the same checksum, and the PR body does not mention it (it lists only url, form_urlencoded by implication, and cookie). cargo metadata --locked accepts the lockfile, so it looks like cargo correcting an earlier bad resolution, but an unexplained proc-macro dependency swap is worth one line in the description so a reviewer knows it was intended. Fix: note it in the PR body, or confirm cargo update -p url -p cookie alone produces it.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change was generated by cargo, not edited by hand. Starting from the release/v0.5.0 lockfile, cargo update -p url --precise 2.5.9 then cargo update -p cookie --precise 0.18.3 reproduces this lockfile byte for byte. Cargo resolves cssparser-macros 0.7.1 to syn 2, the major version it supports, instead of 3. The PR body now says so.

vite.config.ts used defineConfig from vite, whose type has no `test` key,
so tsc -p tsconfig.node.json failed with TS2769. Nothing caught it because
the build's plain `tsc` skips the referenced node project. Import
defineConfig from vitest/config instead, and add the node project to
`npm run build`. Passes on TypeScript 5.9.3 and 6.0.3.
@pravton
pravton merged commit 404ad5c into release/v0.5.0 Nov 26, 2026
3 checks passed
@pravton
pravton deleted the chore/v0-5-0-ci-green branch November 26, 2026 02:54
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