ipfs / helia

An implementation of IPFS in TypeScript
https://helia.io
Other
957 stars 104 forks source link

fix: use blockstore interface where possible #417

Closed achingbrain closed 9 months ago

achingbrain commented 9 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 9 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.