Skip to content

chore: typecheck socket.io compatibility matrix - #202

Merged
electrohyun merged 1 commit into
mainfrom
chore/compat-typecheck
Aug 10, 2026
Merged

electrohyun merged 1 commit into
mainfrom
chore/compat-typecheck

Conversation

@electrohyun

Copy link
Copy Markdown
Owner

Context

The compatibility matrix already installs Socket.IO 4.7 and 4.8 in separate rows, but each row only runs the real-target runtime suite. The shared check job typechecks against the lockfile version, currently 4.8.3, so a contract that only satisfies the newer declarations can pass CI even when 4.7 remains in the supported matrix.

This gap surfaced while implementing server shutdown in #193: Socket.IO 4.7 declares Server.close() as returning void, while 4.8 declares Promise<void>. A callback-based runtime test can pass on both versions without proving that the shared contract compiles against both.

Changes

  • run pnpm typecheck in every Socket.IO compatibility row after that row pins its version;
  • keep pnpm test:real after the typecheck so each row still verifies runtime behavior independently;
  • name both steps with the matrix version so a failure identifies the affected oracle immediately.

The existing check job continues to own the single-version lint and formatting checks. The compatibility rows only duplicate the check whose input they change.

Verification

  • Socket.IO 4.7.5: pnpm typecheck
  • Socket.IO 4.7.5: pnpm test:real (200 tests)
  • Socket.IO 4.8.3: pnpm typecheck
  • Socket.IO 4.8.3: pnpm test:real (200 tests)
  • pnpm vitest run (400 tests across both targets)
  • pnpm lint
  • pnpm format:check

Closes #201

@github-actions github-actions Bot added the chore Tooling, CI, and dependencies label Aug 10, 2026
@coderabbitai

coderabbitai Bot commented Aug 10, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 70413fa9-ad52-46ca-a41a-3637ce53708c

📥 Commits

Reviewing files that changed from the base of the PR and between c7ec3cd and 08ef97c.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml

📝 Walkthrough

Walkthrough

The compat CI job now runs pnpm typecheck and pnpm test:real separately for each Socket.IO matrix version. Type checking runs after each version is installed.

Changes

Compatibility CI

Layer / File(s) Summary
Per-version compatibility validation
.github/workflows/ci.yml
Each compatibility matrix row runs pnpm typecheck before pnpm test:real, with both steps labeled for the selected Socket.IO version.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

  • electrohyun/smocket#174: Both PRs modify the CI workflow; this PR updates the compatibility matrix while PR #174 adds a Node-version job.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: adding typechecks for the Socket.IO compatibility matrix.
Description check ✅ Passed The description explains the compatibility typecheck gap, the CI changes, and the verification performed.
Linked Issues check ✅ Passed The CI changes satisfy issue #201 by typechecking and testing each pinned Socket.IO compatibility row.
Out of Scope Changes check ✅ Passed The changes are limited to the compatibility matrix and do not add unrelated checks or delivery behavior changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@electrohyun
electrohyun merged commit c6c8307 into main Aug 10, 2026
14 checks passed
@electrohyun
electrohyun deleted the chore/compat-typecheck branch August 10, 2026 05:32
@electrohyun electrohyun mentioned this pull request Aug 10, 2026
1 of 2 tasks
@electrohyun electrohyun added the 📏 xs Pull request changes fewer than 10 lines label Aug 11, 2026
@electrohyun electrohyun self-assigned this Aug 11, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in smocket Aug 27, 2026
@github-project-automation github-project-automation Bot moved this from Backlog to Done in smocket Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Tooling, CI, and dependencies 📏 xs Pull request changes fewer than 10 lines

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

chore: typecheck contracts across supported socket.io minors

1 participant