Repository navigation
chore(deps): batch six Renovate dev-dependency updates - #57
Merged
Merged
Conversation
Renovate opened one PR per npm package, and every one of them touched both `package-lock.json` and `CHANGELOG.md`. After #41 merged, all six conflicted with `dev` and with each other, so landing them serially would mean six rebase/regenerate/re-run-CI cycles to ship six dev-dependency bumps. Batch them onto one branch instead and regenerate the lockfile once, rather than hand-resolving lockfile conflicts six times: jest 29.7.0 -> 30.4.2 (#55) @types/jest 29.5.x -> 30.0.0 (#55) @typescript-eslint/* 6.13.0 -> 8.64.0 (#56) @vercel/ncc 0.38.4 -> 0.44.1 (#46) ts-jest 29.1.x -> 29.4.11 (#45) prettier 3.1.x -> 3.9.5 (#47) tsx 4.7.x -> 4.23.1 (#48) All six are development-only; none ships in the bundled `dist/`. Side effect worth noting: `ts-jest` 29.4.11 no longer depends on `handlebars`, which clears the only `critical` advisory. Known dev-dependency vulnerabilities drop from 10 to 5 (remaining: @babel/core, brace-expansion, flatted, js-yaml, picomatch — all reachable only through eslint 8, which is a separate migration). `dist/` is deliberately not rebuilt here; the release cycle owns it. Verified locally: eslint clean, tsc clean, 84/84 jest tests pass, ncc 0.44.1 bundles a loadable entrypoint, and the full prek suite is green.
This was referenced Jul 14, 2026
c-vigo
added a commit
that referenced
this pull request
Jul 14, 2026
## Migrate ESLint to flat config + v10 Closes #64. Supersedes Renovate's **#53**, which could not work as a bump. ### Why a bump wasn't enough ESLint 9 made flat config the default; **ESLint 10 removed the legacy `.eslintrc` path entirely**, and `ESLINT_USE_FLAT_CONFIG=false` no longer opts back in: ``` ESLint couldn't find an eslint.config.(js|mjs|cjs) file. ``` There was a second blocker until recently: `@[email protected]` **hard-crashed** under ESLint 10 (its bundled `[email protected]` yields a scope manager that ESLint 10's `SourceCode.finalize()` rejects): ``` TypeError: scopeManager.addGlobals is not a function ``` **#57 cleared that** by bumping typescript-eslint to `8.64.0`, whose peer range is `eslint: ^8.57.0 || ^9.0.0 || ^10.0.0`. So the plugin side was already ready; only the config format was left. ### What changed - `.eslintrc.json` → **`eslint.config.mjs`**. Faithful port, no intended behavior change: same base configs (`eslint:recommended` + typescript-eslint `recommended`), the same two rule overrides (`no-explicit-any: warn`, `explicit-function-return-type: off`), and the `node`/`es6`/`jest` `env`s re-expressed as `languageOptions.globals` (flat config has no `env`). - `eslint` `8.57` → `10.7.0`. - `@typescript-eslint/eslint-plugin` + `@typescript-eslint/parser` → the **`typescript-eslint`** meta package. This is the canonical v8 flat-config entry point and composes the `eslint-recommended` rule-disables correctly, instead of us hand-wiring them. Both packages remain installed transitively. - Adds `@eslint/js` and `globals` (the flat-config equivalents of the `extends` and `env` keys that went away). Node 24 satisfies ESLint 10's engines (`^20.19.0 || ^22.13.0 || >=24`). ### Verification - `npx eslint src` — lints **all 8** source files, rules firing correctly. - **Negative control** — injected `const __probe: any = 1; let __unused = __probe;` into `src/commit.ts` and confirmed ESLint caught it (`prefer-const`, `@typescript-eslint/no-unused-vars`, `no-explicit-any`), then reverted. The config is not silently linting nothing. - `tsc` clean · **84/84 tests pass** · `just precommit` fully green. - `dist/` untouched. ###⚠️ Found while doing this: `npm run lint` has never linted the real source Not introduced here, and **not fixed here** — filed separately. The lint and format scripts use `src/**/*.ts`. npm runs scripts through `sh`, which has no globstar, so `**` degrades to `*` and the pattern collapses to `src/*/*.ts`: ```console $ sh -c 'echo src/**/*.ts' src/__tests__/setup.ts ``` **One file.** `src/commit.ts`, `src/commit-runner.ts`, and `src/retry.ts` have never been linted or formatted, and the "Lint & Format" CI job has been passing on that basis. Running ESLint over the real tree surfaces **29 errors and 17 warnings across 8 files**, and `prettier --list-different src` reports **all 8 files** as unformatted. Most errors are `no-require-imports` in test mocks (defensible in tests, needs a rule override). The only two in production source are minor and **neither is a correctness bug**: - `src/commit-runner.ts:177` — `preserve-caught-error` (no `cause` on a rethrow; new v10 rule) - `src/commit.ts:85` — `no-useless-assignment` (dead initializer on `bytesRead`; harmless) I deliberately kept that out of this PR: fixing the glob means triaging 46 findings and reformatting the entire source, which has a different risk profile and would make both changes unreviewable. This PR's ESLint 10 support is verified directly via `npx eslint src` regardless of the script bug.
This was referenced Jul 14, 2026
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.
Batch six Renovate dev-dependency PRs into one
Supersedes #45, #46, #47, #48, #55, #56 — all green individually, all
mutually conflicting.
Why batch
Renovate opens one PR per npm package, and every one of them touches both
package-lock.jsonandCHANGELOG.md. Once #41 merged, all six wentCONFLICTING/DIRTYagainstdevand against each other. Landing them seriallymeans six rounds of rebase → regenerate lockfile → re-run CI → merge, where each
merge re-dirties the remaining five.
Batching regenerates the lockfile once off
dev, rather than hand-resolvingpackage-lock.jsonconflicts six times. One CI run, one merge.Built by applying the bumps to a fresh branch off
dev(not by merging the sixRenovate branches, which would have meant six lockfile conflict resolutions).
What's in it
jest29.7.030.4.2@types/jest^29.5.030.0.0@typescript-eslint/eslint-plugin6.13.08.64.0@typescript-eslint/parser6.13.08.64.0@vercel/ncc0.38.40.44.1ts-jest^29.1.129.4.11prettier^3.1.03.9.5tsx^4.7.04.23.1All development-only. None ships in the bundled
dist/.npm installresolved every one cleanly — noERESOLVE, no peer conflicts.typescript-eslintv8 works against the currenteslint8.57 (peer range^8.57.0 || ^9.0.0), so it lands safely without the ESLint 10 migration.Security side effect
ts-jest29.4.11no longer depends onhandlebars— this clears the onlycriticaladvisory. Known dev-dependency vulnerabilities drop 10 → 5:Remaining:
@babel/core,brace-expansion,flatted,js-yaml,picomatch—all reachable only through
eslint8, so they clear with the ESLint 10 / flat-configmigration, not here.
Not in this PR
dist/is deliberately not rebuilt — the release cycle owns it. Note the@vercel/nccbump changes the bundler, so the nextdist/rebuild will producea different bundle; that is expected and belongs to that cycle.
.eslintrc.json→ flat-configmigration, since ESLint 10 removed the legacy config path. This PR's
typescript-eslintv8 bump is a prerequisite for it (v6 hard-crashes underESLint 10 with
TypeError: scopeManager.addGlobals is not a function).@actions/*majors) stay out — all three are ESM-only andneed a coordinated ESM migration;
ncccannot bundle them into the current CJSbuild. Tracked separately.
Verification (local)
npm run lint— clean (eslint 8.57 + typescript-eslint 8.64)npm run build—tsccleannpm test— 84/84 pass, 3 suitesnpm run bundle—ncc 0.44.1bundles; entrypoint loads undernodejust precommit— full suite green