Skip to content

Commit

Permalink
ref(ipos): remove patch and revert v1 CID
Browse files Browse the repository at this point in the history
  • Loading branch information
hassnian committed Sep 27, 2024
1 parent b52f180 commit 74dbaee
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 28 deletions.
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,5 @@
"engines": {
"pnpm": ">=9",
"node": ">=20"
},
"pnpm": {
"patchedDependencies": {
"ipfs-car@0.9.2": "patches/ipfs-car@0.9.2.patch"
}
}
}
12 changes: 0 additions & 12 deletions patches/ipfs-car@0.9.2.patch

This file was deleted.

9 changes: 2 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/ipos/biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"enabled": true
},
"files": {
"ignore": ["node_modules", ".wrangler", ".papi", "patches"]
"ignore": ["node_modules", ".wrangler", ".papi"]
},
"linter": {
"enabled": true,
Expand Down
4 changes: 1 addition & 3 deletions services/ipos/src/utils/ipfs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Patch: `ipfs-car` library has been patched to work with CID v0 which is not supported by the original implementation.
// see `import { pack } from 'ipfs-car/pack'`
import { packToBlob } from 'ipfs-car/pack/blob'
import type { CID } from 'multiformats'

Expand All @@ -12,7 +10,7 @@ export default async function toCar(
})

return {
root: root as CID,
root: root as CID, // v1 CID
car: car as Blob,
}
}

0 comments on commit 74dbaee

Please sign in to comment.