Skip to content

chore: verify packaging and supported versions - #136

Merged
electrohyun merged 1 commit into
mainfrom
chore/verify-packaging
Aug 5, 2026
Merged

electrohyun merged 1 commit into
mainfrom
chore/verify-packaging

Conversation

@electrohyun

@electrohyun electrohyun commented Aug 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

The substitution path depends on module resolution, so a bad entry point or a mismatched type declaration would surface in a consumer's build rather than in this repo's tests. This adds packaging and version checks to CI.

  • publint and arethetypeswrong on the built package through a check:package script, covering that the entry points and their type declarations resolve for both ESM and CJS. Both pass clean on the current build (attw green on node10, node16 CJS and ESM, and bundler).
  • A Node matrix of 22 and 24 running both targets, plus a packageManager field. pnpm 11 needs Node 22.13, so 20 cannot install here at all, and Node 20 left maintenance in April 2026.
  • A socket.io matrix of 4.7 and 4.8 for the real target, so the oracle is exercised across its range rather than one pinned version.
  • Coverage now runs the mock target, the only one that exercises smocket's own code, and gates on thresholds in vitest.config.ts (statements 90, branches 82, functions 82, lines 92) that sit a little under the current numbers.
  • CI is split into per-concern jobs. Lint with typecheck and format, the Node matrix, the socket.io matrix, coverage, and packaging.

No engines field is declared. #104 planned to follow socket.io's floor of 10.2.0, and the built output rules that out, since it carries .at() from an ES2022 target. What the package supports is settled separately, and #104 carries the note.

Two things need a maintainer step and neither blocks this PR. The Codecov upload needs a CODECOV_TOKEN secret even on a public repository, so it logs a rejection and the job stays green until that exists, and the README badge waits on the same. The matrix results are the data for the compatibility table, which is a separate issue.

Related issue

Closes #104

Checklist

  • Tests added or updated. Verification and tooling only, no source change.
  • Behavior verified against real socket.io. The real suite passes on socket.io 4.7 and 4.8.

@electrohyun electrohyun added this to the v0.4.0 milestone Aug 5, 2026
@coderabbitai

coderabbitai Bot commented Aug 5, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@electrohyun, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 23 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 91fc36c8-bf2c-4ce6-8e83-d1398cdf2258

📥 Commits

Reviewing files that changed from the base of the PR and between 39c4f2e and 2a2576b.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml, !pnpm-lock.yaml
📒 Files selected for processing (3)
  • .github/workflows/ci.yml
  • package.json
  • vitest.config.ts

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.

Add the checks this repo's own tests cannot reach. The substitution path depends
on module resolution, so a bad entry point or a mismatched type declaration would
surface in a consumer's build rather than here.

publint and arethetypeswrong run on the built package through a check:package
script, covering that the entry points and their type declarations resolve for
both ESM and CJS. Both pass clean on the current build.

CI is split into per-concern jobs. Lint, typecheck and format stay together. The
suite runs on a Node matrix of 22 and 24, both targets on each. pnpm 11, pinned
by the new packageManager field, needs Node 22.13, so 20 cannot install here at
all, and Node 20 left maintenance in April 2026. A socket.io matrix of 4.7 and
4.8 runs the real target, so the oracle is exercised across its range rather than
one pinned version. Coverage runs the mock target, the only one that exercises
smocket's own code, and gates on thresholds in vitest.config.ts set a little
under the current numbers.

No engines field is declared. #104 planned to follow socket.io's floor of 10.2.0,
and the built output rules that out, since it carries .at() from an ES2022
target. What the package supports is settled separately, and #104 carries the
note.

The Codecov upload feeds the report and badge only. It needs a CODECOV_TOKEN
secret even on a public repository, so until that secret exists it logs the
rejection and the job stays green.
@electrohyun
electrohyun force-pushed the chore/verify-packaging branch from de1b29b to 2a2576b Compare August 5, 2026 14:17
@electrohyun
electrohyun merged commit 3a94cb1 into main Aug 5, 2026
7 checks passed
@electrohyun
electrohyun deleted the chore/verify-packaging branch August 5, 2026 14:28
@electrohyun electrohyun added the chore Tooling, CI, and dependencies label Aug 5, 2026
@electrohyun electrohyun self-assigned this Aug 5, 2026
@electrohyun electrohyun removed this from the v0.4.0 milestone Aug 5, 2026
@github-project-automation github-project-automation Bot moved this to Done in smocket Aug 6, 2026
@electrohyun electrohyun added the 📏 l Pull request changes 200–999 lines label Aug 11, 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 📏 l Pull request changes 200–999 lines

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

chore: verify packaging and supported versions

1 participant