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!: remove .byteLength and .byteOffset properties from CID #210

Closed
wants to merge 1 commit into from

Conversation

achingbrain
Copy link
Member

From #203

I would like to also address byteOffset, byteLength fields. I don't think they were a bad idea, it's just I was not allowed to complete implementation of that idea.

Given that the feature is incomplete, untested and causes assertions elsewhere to fail, remove it for now and if it's required it can be implemented fully in the future.

Fixes #208

BREAKING CHANGE: The CID class no longer has .byteOffset and .byteLength properties - these can be accessed via the .bytes property instead

From #203

> I would like to also address byteOffset, byteLength fields. I don't think they were a bad idea, it's just I was not allowed to complete implementation of that idea.

Given that the feature is incomplete and untested, remove it for
now and if it's required it can be implemented fully in the future.

Fixes #208

BREAKING CHANGE: The CID class no longer has `.byteOffset` and `.byteLength` properties - these can be accessed via the `.bytes` property instead
@achingbrain
Copy link
Member Author

#211 could be merged instead of this.

@achingbrain achingbrain mentioned this pull request Oct 17, 2022
achingbrain added a commit that referenced this pull request Oct 17, 2022
Fixes #208 by converting `.byteOffset` and `.byteLength` properties
to getters.

Supersedes #210
@achingbrain
Copy link
Member Author

Closing in favour of #215 as it's less disruptive

@achingbrain achingbrain deleted the feat/remove-array-buffer-properties branch October 17, 2022 06:39
Gozala added a commit that referenced this pull request Oct 17, 2022
* fix: convert byteOffset and byteLength to getters

Fixes #208 by converting `.byteOffset` and `.byteLength` properties
to getters.

Supersedes #210

* Apply suggestions from code review

* Update test/test-cid.spec.js

Co-authored-by: Irakli Gozalishvili <contact@gozala.io>
github-actions bot pushed a commit that referenced this pull request Oct 17, 2022
## [10.0.1](v10.0.0...v10.0.1) (2022-10-17)

### Bug Fixes

* convert byteOffset and byteLength to getters ([#215](#215)) ([4e09490](4e09490)), closes [#208](#208) [#210](#210)
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.

CID equality
1 participant