Skip to content

feat!: accept any Uint8Array for encoding - #203

Merged
achingbrain merged 7 commits into
mainfrom
feat/accept-any-uint8array
Sep 18, 2026
Merged

achingbrain merged 7 commits into
mainfrom
feat/accept-any-uint8array

Conversation

@achingbrain

@achingbrain achingbrain commented Sep 15, 2026

Copy link
Copy Markdown
Member

Split messages into decoder and encoder types - any Uint8Array fields will be accepted for encoding as Uint8Array but returned decoded as Uint8Array<ArrayBuffer> since this is what they are and they can then be passed to onwards APIs without conversion.

Array/Map fields are also optional in the encoder types.

BREAKING CHANGE: definitions will need to be regenerated

Split messages into decoder and encoder types - any `Uint8Array`
fields will be accepted for encoding as `Uint8Array` but returned
decoded as `Uint8Array<ArrayBuffer>` since this is what they are
and they can then be passed to onwards APIs without conversion.

BREAKING CHANGE: definitions will need to be regenerated
@achingbrain
achingbrain merged commit 6556bc4 into main Sep 18, 2026
26 checks passed
@achingbrain
achingbrain deleted the feat/accept-any-uint8array branch September 18, 2026 06:42
github-actions Bot pushed a commit that referenced this pull request Sep 18, 2026
## [protons-runtime-v8.0.0](protons-runtime-7.1.2...protons-runtime-8.0.0) (2026-09-18)

### ⚠ BREAKING CHANGES

* definitions will need to be regenerated

### Features

* accept any Uint8Array for encoding ([#203](#203)) ([6556bc4](6556bc4))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version protons-runtime-v8.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions Bot pushed a commit that referenced this pull request Sep 18, 2026
## [protons-v10.0.0](protons-9.1.2...protons-10.0.0) (2026-09-18)

### ⚠ BREAKING CHANGES

* non-string/byte scalar fields are now packed by default in proto3 or later files as per the protobuf spec - annotate fields with `[features.repeated_field_encoding=EXPANDED]` for the previous behavior
* definitions will need to be regenerated

### Features

* accept any Uint8Array for encoding ([#203](#203)) ([6556bc4](6556bc4))
* support packed fields ([#205](#205)) ([35bd501](35bd501)), closes [#24](#24)
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version protons-v10.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant