Skip to content

v1.4.0#2

Open
cheprasov wants to merge 5 commits intomasterfrom
v1-4-0
Open

v1.4.0#2
cheprasov wants to merge 5 commits intomasterfrom
v1-4-0

Conversation

@cheprasov
Copy link
Owner

Roadmap

v1.4.0 — Native bytes output (modern runtimes)

Goal: enable Uint8Array/Buffer output for WebSocket binary frames, Node streams, and zero-copy worker transfers.

  • Add JSBT.encodeToBytes(value): Uint8Array
  • Extend decode input support: JSBT.decode(input: string | Uint8Array | ArrayBuffer)
  • Keep JSBT.encode(value): string fully backward compatible
  • No format/spec changes (wire format remains the same)

Notes:

  • Old browsers without Uint8Array keep using the current string-based path.
  • Modern runtimes can opt into bytes output for better performance & interoperability.

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