Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Pass options into the constructor #161

Closed
vmx opened this issue Oct 9, 2018 · 1 comment
Closed

Pass options into the constructor #161

vmx opened this issue Oct 9, 2018 · 1 comment
Assignees

Comments

@vmx
Copy link
Member

vmx commented Oct 9, 2018

Currently the IPLD constructor is taking a BlockService object. Change the API to take it an options object (similar to what libp2p is doing).

This makes it possible to pass in the IPLD Formats that should be used. It will include ipld-dag-cbor and ipld-dag-pb by default and make others optional. This way the Browser bundle size will shrink a lot.

@vmx vmx self-assigned this Oct 9, 2018
@daviddias
Copy link
Member

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants