Skip to content

Update all dependencies to their latest versions - #301

Merged
ffMathy merged 1 commit into
masterfrom
ccr-cf740864-05jl2f
Nov 23, 2026
Merged

ffMathy merged 1 commit into
masterfrom
ccr-cf740864-05jl2f

Conversation

@ffMathy

@ffMathy ffMathy commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Updated

Root: ava 4 → 8, @ava/typescript 3 → 7, @sinonjs/fake-timers 11 → 15, @types/sinonjs__fake-timers 8 → 15, TypeScript 5.9 → 6.0.3, @types/node 18.19.130 (latest 18.x)
compatibility-checks: Babel 7 → 8, ava 6 → 8, @types/node 22 → 26, TypeScript 6.0.3, rollup, vitest, webpack, ansi-regex
GitHub Actions: actions/checkout and actions/setup-node v5 → v7

Held back on purpose

  • TypeScript 7 (the native port) ships no JS compiler API. spec-docs/check.js, spec-types/TD-10.T32.jsdoc.js and a regression spec need that API, and ts-jest supports only TypeScript below 7. TypeScript 6.0.3 is the newest release that has it.
  • @types/node stays on 18.x in the root, because the type tests pin how @types/node 18 types event emitters, and those typings change from 25 on (see spec-types/R12FE-4…).
  • expect-jest29 stays on expect 29 because it exists to check jest 29's matchers.

Changes needed for the new versions

  • tsconfig: TypeScript 6 deprecates moduleResolution: node and baseUrl, needs an explicit rootDir, and no longer includes @types/* by default. The build now uses node16, and the built dist/ is byte-for-byte the same as before.
  • spec/: uses nodenext so the CommonJS specs can import ava 8, which is ESM-only. ThrowsExpectation now takes a type argument, and ava's CLI entry is now cli.js.
  • packaging tests: require('ava').default, and the node10 consumer checks pass --ignoreDeprecations 6.0.
  • compatibility-checks: ava 8 takes extensions as an array and loads test files with import(). The ava runner now uses tsx's ESM loader, and test-runners/ava is marked as an ES module directory.

Verified locally (Node 22)

npm test (636 passed), test:types, test:docs, test:types:min-ts (TS 3.6 and 4.3), and the compatibility checks (39/39).


Generated by Claude Code

Root: ava 8, @ava/typescript 7, @sinonjs/fake-timers 15,
@types/sinonjs__fake-timers 15, TypeScript 6.0.3.
compatibility-checks: Babel 8, ava 8, @types/node 26, TypeScript 6.0.3,
rollup, vitest, webpack, ansi-regex.
GitHub Actions: actions/checkout and actions/setup-node v7.

Held back on purpose:
- TypeScript 7 (the native port) has no JS compiler API, which
  spec-docs/check.js, spec-types/TD-10.T32.jsdoc.js and a regression spec
  use, and ts-jest supports only TypeScript < 7.
- @types/node stays on 18.x in the root: the type tests pin the event
  emitter typings of @types/node 18 (they change from 25 on).
- expect-jest29 stays on expect 29: it checks the matchers of jest 29.

Adjustments:
- tsconfig: TypeScript 6 deprecates moduleResolution node10 and baseUrl,
  needs an explicit rootDir and no longer includes @types by default.
  Uses node16 (the built dist/ is byte-for-byte the same).
- spec/: nodenext, so the CommonJS specs can import ESM-only ava 8;
  ThrowsExpectation now takes a type argument; ava's CLI is cli.js.
- packaging tests: ava is ESM (require('ava').default), and the node10
  consumer checks pass --ignoreDeprecations 6.0.
- compatibility-checks: ava 8 takes extensions as an array and imports
  test files, so the ava runner uses tsx's ESM loader with
  test-runners/ava marked as an ES module directory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KD7sVk38Ack98abHLgjp8K
@ffMathy
ffMathy merged commit a044ef6 into master Nov 23, 2026
17 checks passed
@ffMathy
ffMathy deleted the ccr-cf740864-05jl2f branch November 23, 2026 01:32
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.

2 participants