Repository navigation
chore(deps): update dependencies within existing semver ranges - #70
Merged
Merged
Conversation
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>
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.
What
npm update+npm audit fixto bump dev/build dependencies within the ranges already declared inpackage.json(nopackage.jsonchanges needed). Known vulnerabilities in transitive dev dependencies went from 24 down to 5.Why
Routine dependency maintenance ("chores").
The build fix
@rollup/plugin-typescript's defaultincludeglob (*.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.tsfiles. That makes the TS plugin silently skip transforming every.tsfile, so rollup falls through to parsing raw TypeScript as JavaScript and the build fails.Fixed in
rollup.config.jsby 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 buildandnpm run build:dev— succeed (only the pre-existing, expectedevalwarning)npm run tsc— cleannpm run lint(prettier + eslint) — cleannpm test— 25/25 passing🤖 Generated with Claude Code