ipfs / js-ipfs

IPFS implementation in JavaScript
https://js.ipfs.tech
Other
7.44k stars 1.25k forks source link

fix: update car dependency for CARv2 read support #4085

Closed rvagg closed 2 years ago

rvagg commented 2 years ago

4.x adds basic CARv2 read support, so you could ipfs dag import a CARv2 with this; also with https://explore.ipld.io/ getting CAR support, this would allow importing and inspection of a CARv2 there.

The breakage was in the return type definition of CarReader#header() which I don't believe is touched in js-ipfs, which only cares about getRoots() in the header which remains the same.

achingbrain commented 2 years ago

Thanks!