From c367840062e3fc555e696e4fc621651ed1929213 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Wed, 20 Apr 2022 22:09:29 +1000 Subject: [PATCH] fix: update car dependency for CARv2 read support (#4085) 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. --- packages/interface-ipfs-core/package.json | 2 +- packages/ipfs-core/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/interface-ipfs-core/package.json b/packages/interface-ipfs-core/package.json index cc9a9eb387..f3764daee9 100644 --- a/packages/interface-ipfs-core/package.json +++ b/packages/interface-ipfs-core/package.json @@ -60,7 +60,7 @@ ], "license": "MIT", "dependencies": { - "@ipld/car": "^3.1.6", + "@ipld/car": "^4.1.0", "@ipld/dag-cbor": "^7.0.0", "@ipld/dag-pb": "^2.1.3", "@types/pako": "^1.0.2", diff --git a/packages/ipfs-core/package.json b/packages/ipfs-core/package.json index 5fa1bfcd65..993b5b5a14 100644 --- a/packages/ipfs-core/package.json +++ b/packages/ipfs-core/package.json @@ -67,7 +67,7 @@ }, "dependencies": { "@chainsafe/libp2p-noise": "^5.0.0", - "@ipld/car": "^3.1.0", + "@ipld/car": "^4.1.0", "@ipld/dag-cbor": "^7.0.0", "@ipld/dag-json": "^8.0.1", "@ipld/dag-pb": "^2.1.3",