v0.110.0
Released on 1 July 2026 as v0.110.0, with one increment, v0.110.0. See Upgrading for what to change when you move to it.
| Version | Highlights |
|---|---|
| v0.110.0 | Bytes — a binary primitive, erased to Uint8Array, base64 on the wire (language/compiler; ADR 0142). The seventh base type, and the representation for arbitrary binary data that String (UTF-8 text) cannot hold without corruption — the shared prerequisite under every binary surface (R2 objects, binary HTTP bodies, Stream[Bytes] downloads), built alone; those consumers are named follow-ons. It is the first base type not erased to number: a Bytes lowers to a host Uint8Array (strip-only-clean, ADR 0136). No literal — constructed by Bytes.fromUtf8(s) (total), Bytes.fromBase64(s) -> Option[Bytes] (partial), Bytes.empty(); the surface is length(), toBase64() (total), and decodeUtf8() -> Option[String] (partial), with Option on the Int.parse/Float.parse precedent (ADR 0048). The one departure from the Float/Duration/Instant playbook: ==/!= compare by content (byte for byte), not host === — a Uint8Array compares by reference, so equality is real emitter codegen (__bynkBytesEqual); a record-over-Bytes gets correct equality via the ordinary hand-written field-comparator idiom (no auto-derived structural equality). Bytes is equatable but not orderable and not Map-keyable (bynk.types.unkeyable_map_key; key on toBase64() — the first equatable base type ADR 0038 excludes); no arithmetic/concat/slice/hex in v1 (deferred). On the wire it serialises as a base64 JSON string (base64-validated on read), so it round-trips through any record or store field and crosses a bundle context boundary — a fully ordinary serialisable value, the opposite of Stream/Connection. One current limit (ADR 0142 D8): the erased workers cross-context wire path does not base64-encode a bare Bytes, so that one position is diagnosed bynk.types.bytes_at_workers_boundary rather than silently mis-encoded — a Bytes inside a record crosses fine via the record’s typed codec. No parser/grammar/tree-sitter change; emission is tsc-clean. |