Skip to content

Commit

Permalink
feat: add @helia/bitswap with sessions (#409)
Browse files Browse the repository at this point in the history
Adds a `@helia/bitswap` module with code ported from `ipfs-bitswap` and greatly simplified.

- Supports sessions
- Only supports bitswap 1.2.0
- Uses libp2p's metrics system instead of a custom version
- Uses Helia's routing instead of libp2p to take advantage of http delegated routers that return bitswap providers

---------

Co-authored-by: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com>
  • Loading branch information
achingbrain and SgtPooki authored Apr 4, 2024
1 parent 6ddefb0 commit e582c63
Show file tree
Hide file tree
Showing 35 changed files with 5,573 additions and 14 deletions.
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"packages/block-brokers": "2.0.3",
"packages/bitswap": "0.0.0",
"packages/car": "3.1.2",
"packages/dag-cbor": "3.0.2",
"packages/dag-json": "3.0.2",
Expand Down
1 change: 1 addition & 0 deletions .release-please.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
],
"packages": {
"packages/block-brokers": {},
"packages/bitswap": {},
"packages/car": {},
"packages/dag-cbor": {},
"packages/dag-json": {},
Expand Down
7 changes: 7 additions & 0 deletions packages/bitswap/.aegir.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

/** @type {import('aegir').PartialOptions} */
export default {
build: {
bundlesizeMax: '33KB'
}
}
Loading

0 comments on commit e582c63

Please sign in to comment.