Skip to content

chore(deps): update dependencies within existing semver ranges - #70

Merged
timzatko merged 2 commits into
mainfrom
chore/update-dependencies
Sep 10, 2026
Merged

timzatko merged 2 commits into
mainfrom
chore/update-dependencies

Conversation

@timzatko

Copy link
Copy Markdown
Member

What

  • Ran npm update + npm audit fix to bump dev/build dependencies within the ranges already declared in package.json (no package.json changes needed). Known vulnerabilities in transitive dev dependencies went from 24 down to 5.
  • Fixed a build regression the dependency bump would otherwise have introduced (see below).

Why

Routine dependency maintenance ("chores").

The build fix

@rollup/plugin-typescript's default include glob (*.ts+(|x)) relies on picomatch's extglob support. Transitively bumping picomatch from 2.3.1 → 2.3.2 (picomatch's own fix for GHSA-3v7f-55p6-f55p) regressed that extglob so it no longer matches plain .ts files. That makes the TS plugin silently skip transforming every .ts file, so rollup falls through to parsing raw TypeScript as JavaScript and the build fails.

Fixed in rollup.config.js by spelling out the include patterns without the extglob syntax, so the build works regardless of the installed picomatch version. Verified this fix is backward-compatible with the pre-update lockfile too (commit ordered first so history stays green/bisectable).

Left alone (follow-up candidates, not in this PR)

5 remaining audit findings and a long tail of dev tools that are a major version or more behind (TypeScript 4→7, ESLint 8→10, Rollup 2→4, Prettier 2→3, Husky 8→9, etc.) need actual migration work, not a routine bump, so they're intentionally out of scope here.

Testing

  • npm run build and npm run build:dev — succeed (only the pre-existing, expected eval warning)
  • npm run tsc — clean
  • npm run lint (prettier + eslint) — clean
  • npm test — 25/25 passing

🤖 Generated with Claude Code

timzatko and others added 2 commits September 10, 2026 17:47
The plugin's default include glob (`*.ts+(|x)`) relies on picomatch's
extglob support. picomatch >=2.3.2 no longer matches that pattern
against plain .ts files (a regression from its fix for
GHSA-3v7f-55p6-f55p), so once picomatch gets bumped past 2.3.1 the
plugin silently stops transforming any .ts file and rollup falls
through to parsing raw TypeScript as JavaScript, breaking the build.

Spell out the include patterns without the extglob syntax so the
build keeps working regardless of the installed picomatch version.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Ran `npm update` followed by `npm audit fix`. Brings 24 known
vulnerabilities in transitive dev dependencies down to 5 (the
remaining ones need major bumps of lint-staged/rollup-plugin-terser
and are left for a follow-up). No package.json ranges changed.

Verified lint, tsc, the full test suite, and both the dev and prod
rollup builds still pass (see the preceding commit for a build
regression this update would otherwise have caused).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@timzatko
timzatko merged commit 2711ff8 into main Sep 10, 2026
5 checks passed
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