Repository navigation
chore: green CI on release/v0.5.0 (TS 6 config, url + cookie advisories) - #110
Conversation
- 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).
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
| "skipLibCheck": true, | ||
| "module": "ESNext", | ||
| "moduleResolution": "Node", | ||
| "moduleResolution": "bundler", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
| dependencies = [ | ||
| "quote", | ||
| "syn 3.0.9", | ||
| "syn 2.0.117", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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
baseUrlandmoduleResolution: "Node"(node10) options.tsconfig.json/tsconfig.node.json:moduleResolution: "bundler",baseUrlremoved,@/*maps to./src/*.Dependency audit: two new advisories with patched releases, so these are upgrades, not new
--ignores.url2.5.8 -> 2.5.9: RUSTSEC-2026-0592, stack overflow inUrl::origin()on nestedblob:URLs. Pulled in byreqwest.cookie0.18.1 -> 0.18.3: RUSTSEC-2026-0594, private cookie nonces can repeat in processes that fork.Cargo also re-resolves
cssparser-macros0.7.1 fromsyn3.0.9 tosyn2.0.117, the major version it supports. The twocargo update -p ... --precisecommands alone reproduce this lockfile exactly.vite.config.ts type-check (from review):
defineConfignow comes fromvitest/config, so thetestkey type-checks, andnpm run buildalso runstsc -p tsconfig.node.json --noEmit, which plaintscskipped.Verification
npm run buildandnpm test(508 tests) pass on TypeScript 5.9.3.tsc -p tsconfig.jsonandtsc -p tsconfig.node.jsonpass 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 checkis clean, andcargo auditwith 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 rebaseon #107, #108 and #109.