Skip to content

feat: expose ws package entry points - #600

Merged
electrohyun merged 1 commit into
mainfrom
feat/ws-public-package
Nov 24, 2026
Merged

electrohyun merged 1 commit into
mainfrom
feat/ws-public-package

Conversation

@electrohyun

Copy link
Copy Markdown
Owner

Summary

Expose the selected ws constructors and types through smocket/ws in ESM and CommonJS. Bind the implementation to the public contract, including client URL and client-tracking inference. CommonJS uses require('smocket/ws').default.

Pass the release candidate's tarball to the independent ws consumers and exercise the packaged runtime through both loaders. Keep the built-in Buffer import confined to the Node ws entry and document the package boundary.

Related issue

Closes #562

Checklist

  • Tests added or updated
  • Behavior verified against real ws

@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
smocket Ready Ready Preview Nov 24, 2026 2:36pm UTC

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

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

Next included review available in 21 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between fc7f1f1 and 2d2bbe7.

Files selected for processing: 27

  • docs/README.md
  • docs/package-entry-points.md
  • docs/package-policy.md
  • docs/ws-client-tracking-review.md
  • docs/ws-contract.md
  • docs/ws-event-listeners-review.md
  • docs/ws-input-validation-review.md
  • docs/ws-package-review.md
  • docs/ws-payloads-review.md
  • docs/ws-runtime-review.md
  • package.json
  • scripts/README.md
  • scripts/assert-no-imports.js
  • scripts/check-release-candidate.mjs
  • scripts/check-ws-package.mjs
  • scripts/detect-external-imports.js
  • scripts/detect-external-imports.test.ts
  • scripts/fixtures/ws-package/runtime.mjs
  • src/ws.ts
  • src/ws/contracts.ts
  • src/ws/event-target.ts
  • src/ws/events.ts
  • src/ws/runtime.ts
  • src/ws/type-helpers.ts
  • test/ws/event-target.typecheck.ts
  • test/ws/setup-ws.ts
  • tsup.config.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@electrohyun

Copy link
Copy Markdown
Owner Author

@coderabbitai full review

@github-actions github-actions Bot added enhancement New feature or request 📏 l Pull request changes 200–999 lines labels Nov 24, 2026
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.


Your included review limit is currently reached under our Fair Usage Limits Policy. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 21 minutes.

@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@electrohyun
electrohyun merged commit 35570c6 into main Nov 24, 2026
18 checks passed
@electrohyun
electrohyun deleted the feat/ws-public-package branch November 24, 2026 14:41

This branch was successfully deployed

1 active deployment
Preview — 2d2bbe76 Deployed Nov 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request 📏 l Pull request changes 200–999 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add ws entry points and package consumer checks

1 participant