Skip to content

updates - #1

Open
emensch wants to merge 3 commits into
mainfrom
finishing-touches
Open

updates#1
emensch wants to merge 3 commits into
mainfrom
finishing-touches

Conversation

@emensch

@emensch emensch commented Jun 5, 2026

Copy link
Copy Markdown
Owner

No description provided.

emensch and others added 3 commits June 4, 2026 17:02
- Tag all messages with __highgain__ so foreign library messages are
  rejected even if channelName coincidentally matches
- Use data?.[TAG] guard to safely handle null/non-object messages
- Replace if (error) check with explicit isError flag so falsy thrown
  values (0, "", null) correctly reject instead of resolve
- Return undefined from Proxy for "then" and symbol keys so tx is not
  mistaken for a thenable by frameworks inspecting it

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Upgrades Vite to v8 and adds Vitest + @vitest/browser-playwright so
tests run in a real Chromium instance, enabling genuine Worker and
Transferable coverage.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Tests run against real Workers in Chromium via Vitest browser mode.
Shared API definition in test/api.ts mirrors the intended library usage
pattern — channel() called once, createTx/rx imported separately in
each context. Covers round-trip resolution, concurrent call correlation,
error and falsy-error rejection, ArrayBuffer transfer, channel isolation,
and foreign message safety.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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