ipfs / helia

An implementation of IPFS in JavaScript
https://helia.io
Other
916 stars 95 forks source link

fix: use blockstore interface where possible #417

Closed achingbrain closed 7 months ago

achingbrain commented 8 months ago

Instead of depending on the Helia Blocks interface, depend on Blockstore as none of the extra methods are used.

This improves compatibility with other modules and allows reuse from non-Helia contexts.

achingbrain commented 7 months ago

future extensibility could be hindered by not having an abstraction layer?

Perhaps, but YAGNI and all that. We can re-evaluate if requirements change in the future.