Repository navigation
chore: verify packaging and supported versions - #136
Conversation
|
Warning Review limit reached
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 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 configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
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. Comment |
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.
de1b29b to
2a2576b
Compare
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.
check:packagescript, 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).packageManagerfield. pnpm 11 needs Node 22.13, so 20 cannot install here at all, and Node 20 left maintenance in April 2026.vitest.config.ts(statements 90, branches 82, functions 82, lines 92) that sit a little under the current numbers.No
enginesfield 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_TOKENsecret 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