Skip to content

chore(deps): batch six Renovate dev-dependency updates - #57

Merged
c-vigo merged 1 commit into
devfrom
chore/batch-renovate-dev-deps
Jul 14, 2026
Merged

c-vigo merged 1 commit into
devfrom
chore/batch-renovate-dev-deps

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

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.json and CHANGELOG.md. Once #41 merged, all six went
CONFLICTING/DIRTY against dev and against each other. Landing them serially
means 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-resolving
package-lock.json conflicts six times. One CI run, one merge.

Built by applying the bumps to a fresh branch off dev (not by merging the six
Renovate branches, which would have meant six lockfile conflict resolutions).

What's in it

Package From To Supersedes
jest 29.7.0 30.4.2 #55
@types/jest ^29.5.0 30.0.0 #55
@typescript-eslint/eslint-plugin 6.13.0 8.64.0 #56
@typescript-eslint/parser 6.13.0 8.64.0 #56
@vercel/ncc 0.38.4 0.44.1 #46
ts-jest ^29.1.1 29.4.11 #45
prettier ^3.1.0 3.9.5 #47
tsx ^4.7.0 4.23.1 #48

All development-only. None ships in the bundled dist/.

npm install resolved every one cleanly — no ERESOLVE, no peer conflicts.
typescript-eslint v8 works against the current eslint 8.57 (peer range
^8.57.0 || ^9.0.0), so it lands safely without the ESLint 10 migration.

Security side effect

ts-jest 29.4.11 no longer depends on handlebars — this clears the only
critical advisory.
Known dev-dependency vulnerabilities drop 10 → 5:

before:  critical=1  high=6  moderate=2  low=1     (10)
after:   critical=0  high=2  moderate=2  low=1     ( 5)

Remaining: @babel/core, brace-expansion, flatted, js-yaml, picomatch —
all reachable only through eslint 8, so they clear with the ESLint 10 / flat-config
migration, not here.

Not in this PR

Verification (local)

  • npm run lint — clean (eslint 8.57 + typescript-eslint 8.64)
  • npm run build — tsc clean
  • npm test — 84/84 pass, 3 suites
  • npm run bundle — ncc 0.44.1 bundles; entrypoint loads under node
  • just precommit — full suite green

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.
@c-vigo
c-vigo merged commit a50842d into dev Jul 14, 2026
9 checks passed
@c-vigo
c-vigo deleted the chore/batch-renovate-dev-deps branch July 14, 2026 09:06
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.
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