-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add @helia/bitswap with sessions #409
Commits on Feb 6, 2024
-
feat: add block session support to @helia/interface
There are no implementations yet but the usage pattern will be something like: ```javascript // unixfs cat command export async function * cat (cid: CID, blockstore: Blocks, options: Partial<CatOptions> = {}): AsyncIterable<Uint8Array> { // create a session for the CID if support is available const blocks = await (blockstore.createSession != null ? blockstore.createSession(cid) : blockstore) const opts: CatOptions = mergeOptions(defaultOptions, options) // resolve and export using the session, if created, otherwise fall back to regular blockstore access const resolved = await resolve(cid, opts.path, blocks, opts) const result = await exporter(resolved.cid, blocks, opts) if (result.type !== 'file' && result.type !== 'raw') { throw new NotAFileError() } if (result.content == null) { throw new NoContentError() } yield * result.content(opts) } ```
Configuration menu - View commit details
-
Copy full SHA for 546bf66 - Browse repository at this point
Copy the full SHA 546bf66View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5836dcd - Browse repository at this point
Copy the full SHA 5836dcdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d9cb49 - Browse repository at this point
Copy the full SHA 3d9cb49View commit details -
Configuration menu - View commit details
-
Copy full SHA for 39b6f7a - Browse repository at this point
Copy the full SHA 39b6f7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d1228b9 - Browse repository at this point
Copy the full SHA d1228b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32713ab - Browse repository at this point
Copy the full SHA 32713abView commit details -
feat: add @helia/bitswap with sessions
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
Configuration menu - View commit details
-
Copy full SHA for e485722 - Browse repository at this point
Copy the full SHA e485722View commit details -
Configuration menu - View commit details
-
Copy full SHA for 73ab5f9 - Browse repository at this point
Copy the full SHA 73ab5f9View commit details
Commits on Feb 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0c28d66 - Browse repository at this point
Copy the full SHA 0c28d66View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9bbbe6 - Browse repository at this point
Copy the full SHA e9bbbe6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1dca655 - Browse repository at this point
Copy the full SHA 1dca655View commit details -
Configuration menu - View commit details
-
Copy full SHA for c7e5de1 - Browse repository at this point
Copy the full SHA c7e5de1View commit details
Commits on Feb 9, 2024
-
chore: do not dedupe at the routing level as different impls return d…
…ifferent metadata
Configuration menu - View commit details
-
Copy full SHA for d0610c9 - Browse repository at this point
Copy the full SHA d0610c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9aeded1 - Browse repository at this point
Copy the full SHA 9aeded1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e6051a - Browse repository at this point
Copy the full SHA 8e6051aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7696bd9 - Browse repository at this point
Copy the full SHA 7696bd9View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca1c458 - Browse repository at this point
Copy the full SHA ca1c458View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8e5195 - Browse repository at this point
Copy the full SHA b8e5195View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cd06ce - Browse repository at this point
Copy the full SHA 8cd06ceView commit details
Commits on Feb 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9e54ac1 - Browse repository at this point
Copy the full SHA 9e54ac1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7eef3f1 - Browse repository at this point
Copy the full SHA 7eef3f1View commit details
Commits on Feb 22, 2024
-
chore: apply suggestions from code review
Co-authored-by: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for aabc0f4 - Browse repository at this point
Copy the full SHA aabc0f4View commit details
Commits on Mar 1, 2024
-
chore: apply suggestions from code review
Co-authored-by: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for d7d6334 - Browse repository at this point
Copy the full SHA d7d6334View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c42ec5 - Browse repository at this point
Copy the full SHA 8c42ec5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 891be37 - Browse repository at this point
Copy the full SHA 891be37View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0766e12 - Browse repository at this point
Copy the full SHA 0766e12View commit details -
Configuration menu - View commit details
-
Copy full SHA for cba358f - Browse repository at this point
Copy the full SHA cba358fView commit details -
Configuration menu - View commit details
-
Copy full SHA for bff5357 - Browse repository at this point
Copy the full SHA bff5357View commit details -
Configuration menu - View commit details
-
Copy full SHA for 532bf9f - Browse repository at this point
Copy the full SHA 532bf9fView commit details
Commits on Apr 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0b3377e - Browse repository at this point
Copy the full SHA 0b3377eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 89e5afe - Browse repository at this point
Copy the full SHA 89e5afeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 99cf454 - Browse repository at this point
Copy the full SHA 99cf454View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1330504 - Browse repository at this point
Copy the full SHA 1330504View commit details -
Configuration menu - View commit details
-
Copy full SHA for d576fad - Browse repository at this point
Copy the full SHA d576fadView commit details