Skip to content

chore(deps): consolidate dependabot bumps (vitest, @types/node, typescript, codeql-action) - #34

Merged
safenestdev merged 1 commit into
mainfrom
chore/consolidated-dep-bumps
Aug 24, 2026
Merged

chore(deps): consolidate dependabot bumps (vitest, @types/node, typescript, codeql-action)#34
safenestdev merged 1 commit into
mainfrom
chore/consolidated-dep-bumps

Conversation

@safenestdev

Copy link
Copy Markdown
Contributor

Summary

Consolidates the 4 currently-open dependabot PRs into one tested change:

Closes #30, #31, #32, #33.

Why bundle these

#32 (typescript) was failing CI (lint + test 22.x). Root cause: TS 7 removed the node10 moduleResolution value outright (TS5108). tsconfig.cjs.json used "moduleResolution": "node10" for the CJS build, with "ignoreDeprecations": "6.0" silencing the prior deprecation warning — TS7 doesn't accept that escape hatch for an option it removed entirely, it's just a hard error now.

Fixed by switching to "moduleResolution": "Bundler" — TS's own default for a CommonJS module target when the base config's module isn't node16/node18/nodenext (tsconfig.json uses Node16 for the ESM build). This restores the previous effective resolution behavior rather than changing it; not a functional change to the emitted output.

The other three bumps had no code-visible impact.

Found and deliberately not touched here

dist/cjs/*.js has no dist/cjs/package.json declaring "type": "commonjs", so under the root package.json's "type": "module", a plain require() against dist/cjs/index.js fails at runtime. Confirmed this reproduces identically on typescript@6.0.3 before this bump — pre-existing, not something this PR causes or is blocked by. Worth its own fix since it means the CJS build is currently unusable via require(), but orthogonal to a dependency-version bump; flagging separately.

Test plan

  • npm run build clean (both ESM and CJS tsc passes)
  • npm test — 77/77 passing
  • npm audit --omit=dev — 0 vulnerabilities
  • CI (Node 20.x/22.x/24.x + lint + CodeQL)

…script, codeql-action

Bundles the 4 currently-open dependabot PRs (#30-#33) into one tested
change rather than merging them separately:
  - vitest 4.1.10 -> 4.1.11
  - @types/node 25.9.1 -> 26.2.0
  - typescript 6.0.3 -> 7.0.2
  - github/codeql-action 4.37.4 -> 4.37.8 (workflow-only)

The typescript bump (#32) was failing CI (lint + test 22.x) because
TS 7 removed the `node10` moduleResolution value outright (TS5108).
tsconfig.cjs.json used `"moduleResolution": "node10"` for the CJS
build with `"ignoreDeprecations": "6.0"` silencing the prior
deprecation warning -- TS7 doesn't accept the ignoreDeprecations
escape hatch for a removed option, it's just a hard error now.
Switched to `"moduleResolution": "Bundler"`, which is TS's own
default for a CommonJS module target when the base config's `module`
isn't node16/node18/nodenext (base tsconfig.json uses Node16 for the
ESM build), so this restores the previous effective resolution
behavior rather than changing it.

The other three bumps had no code-visible impact; build, full test
suite, and npm audit all pass unchanged.

Found and left alone (pre-existing, not caused by this bump, not
blocking): dist/cjs/*.js has no dist/cjs/package.json declaring
`"type": "commonjs"`, so under the root package.json's `"type":
"module"`, a plain `require()` against dist/cjs/index.js fails --
confirmed this reproduces identically on typescript@6.0.3 before this
bump. Worth its own fix; not touched here since it's orthogonal to a
dependency-version PR.
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