Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support decoding ArrayBuffers #114

Merged
merged 3 commits into from
Feb 16, 2024

Conversation

achingbrain
Copy link
Member

Expands supported input types to include ArrayBuffers to make it easiser for users to use modules like fetch that don't return Uint8Arrays.

Expands supported input types to include `ArrayBuffer`s to make it
easiser for users to use modules like `fetch` that don't return
`Uint8Array`s.
@achingbrain
Copy link
Member Author

achingbrain commented Feb 15, 2024

@rvagg I'm not sure if you'd like a PR to cborg too?

test/test-basics.spec.js Outdated Show resolved Hide resolved
Copy link
Member

@rvagg rvagg left a comment

Choose a reason for hiding this comment

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

same concern as ipld/js-dag-json#127 (review) but not strong enough to reject

just needs that lint thing fixed and green CI

at this stage I think doing it here is appropriate, let's think about pushing it down further if the need arises.

achingbrain and others added 2 commits February 16, 2024 10:29
Co-authored-by: Rod Vagg <rod@vagg.org>
@achingbrain achingbrain merged commit a10269d into master Feb 16, 2024
18 checks passed
@achingbrain achingbrain deleted the feat/support-decoding-array-buffers branch February 16, 2024 11:02
github-actions bot pushed a commit that referenced this pull request Feb 16, 2024
## [9.2.0](v9.1.0...v9.2.0) (2024-02-16)

### Features

* support decoding ArrayBuffers ([#114](#114)) ([a10269d](a10269d))
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.

2 participants