Skip to content

Make typescript a peerDependency#228

Merged
captbaritone merged 6 commits intomainfrom
typescript-peer-dep
Apr 3, 2026
Merged

Make typescript a peerDependency#228
captbaritone merged 6 commits intomainfrom
typescript-peer-dep

Conversation

@captbaritone
Copy link
Copy Markdown
Owner

Summary

  • Moves typescript from dependencies to peerDependencies (>=5.5), allowing consumers to use their own TypeScript version
  • Adds typescript to devDependencies so development continues to work
  • Adds a TypeScript version matrix to CI (build and test jobs), testing against TS 5.5, 5.7, and ~5.9

Based on #187 by @radiosilence. This addresses the concern raised in that PR about validating compatibility across multiple TypeScript versions before making the change.

Test plan

  • CI passes for all TypeScript versions in the matrix (5.5, 5.7, ~5.9)
  • CI passes for all Node.js versions (20.x, 22.x, 24.x)
  • Verify that pnpm install works correctly with the new peerDependency

captbaritone and others added 2 commits April 2, 2026 10:35
Co-authored-by: James Cleveland <james.cleveland@fresha.com>
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 2, 2026

Deploy Preview for grats ready!

Name Link
🔨 Latest commit d27ed60
🔍 Latest deploy log https://app.netlify.com/projects/grats/deploys/69d01b45d18f1b0008e0f922
😎 Deploy Preview https://deploy-preview-228--grats.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

captbaritone and others added 3 commits April 2, 2026 10:37
The build job's "assert no files changed" step checks generated
output against what's committed, which is version-specific. The TS
matrix belongs only on the test (unit test) job.
- Remove deprecated `downlevelIteration`, add explicit `types: ["node"]`
  for TS 6's stricter type resolution
- Fix catch clauses and implicit any for TS 6 compatibility
- Add TS 6.0.2 to CI matrix and pin all TS versions to exact patches
- Update changelog

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@captbaritone captbaritone marked this pull request as ready for review April 3, 2026 19:44
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@captbaritone captbaritone merged commit a2e5aab into main Apr 3, 2026
23 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