Skip to content

chore(runtime): harden node/browser compatibility and release 4.14.0#91

Merged
javorosas merged 30 commits into
mainfrom
update/compat-runtime-hardening
Mar 30, 2026
Merged

chore(runtime): harden node/browser compatibility and release 4.14.0#91
javorosas merged 30 commits into
mainfrom
update/compat-runtime-hardening

Conversation

@javorosas
Copy link
Copy Markdown
Member

@javorosas javorosas commented Mar 30, 2026

Summary

  • harden cross-runtime behavior for Node and browser-like environments using feature detection (no legacy runtime sniffing)
  • switch SDK auth header to Bearer <apiKey> (API supports it)
  • remove legacy runtime polyfills (cross-fetch, formdata-node) and rely on native Web APIs in supported runtimes
  • normalize binary handling/types (BinaryDownload, BinaryInput, NodeLikeReadableStream) for Node/browser compatibility
  • add layered automated test strategy:
    • vitest Node runtime suite
    • vitest web-simulated (jsdom) suite
    • tsd public type-contract tests
    • playwright browser smoke tests
  • add CI workflow jobs for node runtime, web runtime, type checks, and browser smoke
  • bump package version to 4.14.0

Changelog

Validation

  • npm test
  • npm run test:browser

This comment was marked as resolved.

This comment was marked as resolved.

@javorosas javorosas force-pushed the update/compat-runtime-hardening branch from f572855 to 3967846 Compare March 30, 2026 09:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 28 out of 30 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/resources/organizations.ts Outdated
Comment thread src/utils/streamToBuffer.ts Outdated
Comment thread src/wrapper.ts Outdated
Comment thread test/node/runtime-compat.node.test.ts Outdated
Comment thread src/resources/organizations.ts Outdated
@javorosas javorosas merged commit 8804fa2 into main Mar 30, 2026
8 checks passed
@javorosas javorosas deleted the update/compat-runtime-hardening branch March 30, 2026 15:38
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.

3 participants