Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ipfs/helia
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: helia-v4.1.2
Choose a base ref
...
head repository: ipfs/helia
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: helia-v4.2.0
Choose a head ref
  • 15 commits
  • 77 files changed
  • 1 contributor

Commits on Apr 22, 2024

  1. chore: add transfer benchmark (#90)

    Adds a benchmark suite for doing various size data transfers between helia and kubo.
    
    Closes #88
    achingbrain authored Apr 22, 2024
    Copy the full SHA
    52dbcf2 View commit details
  2. Copy the full SHA
    0ecb529 View commit details
  3. fix: use a short-lived AbortSignal for fetch operations (#511)

    Node's `undici` module appears to be adding listeners for the `"abort"` event on any passed AbortSignal but then not cleaning them up.
    
    This casues many `MaxListenersExceededWarning`s to appear in the console and likely causes a memory leak.
    
    To work around this, use a short-lived `AbortSignal` for each request that can be garbage collected along with the request itself.
    
    See https://github.com/nodejs/node/issues/52635 for more information.
    achingbrain authored Apr 22, 2024
    Copy the full SHA
    5e98950 View commit details
  4. feat: add metrics property to helia interface (#512)

    To allow collecting metrics about arbitrary parts of the Helia stack,
    add an optional `.metrics` property for stat collection.
    
    This can be used with implementations such as `@libp2p/prometheus-metrics`
    and/or others.
    achingbrain authored Apr 22, 2024
    Copy the full SHA
    f7f71bb View commit details

Commits on Apr 23, 2024

  1. fix: log peer id as string not object (#514)

    So we aren't logging buffers etc, log the peer id as a string when
    lookup fails.
    achingbrain authored Apr 23, 2024
    Copy the full SHA
    f6bcbd4 View commit details
  2. Copy the full SHA
    0a528bb View commit details

Commits on Apr 24, 2024

  1. fix: do not append peer ids to provider multiaddrs (#516)

    When a routing returns a set of multiaddrs, honour them as returned
    instead of appending the peer id to them.
    achingbrain authored Apr 24, 2024
    Copy the full SHA
    e4e67d0 View commit details
  2. chore: use KeyType for key types (#518)

    Instead of PeerIdType, use KeyType.
    achingbrain authored Apr 24, 2024
    Copy the full SHA
    361fbd3 View commit details

Commits on Apr 25, 2024

  1. feat: add static http gateway routing (#515)

    Adds a routing implementation that returns a static list of
    gateways as providers for CIDs.
    
    It's expected that these gateways are able to fetch content on our
    behalf.
    achingbrain authored Apr 25, 2024
    Copy the full SHA
    2d070b9 View commit details

Commits on Apr 26, 2024

  1. fix: http blockbroker loads gateways from routing (#519)

    Use the new http gateway block broker to load gateways from the routing.
    
    If we can find http gateways for a block we now use it, falling back to the default list of gateways if the routing is slow or it gives providers that fail to supply the block.
    
    One change here is that unless you are using sessions, trustless gateways become disposable so we can't sort them by reliability any more.
    achingbrain authored Apr 26, 2024
    Copy the full SHA
    6a62d1c View commit details
  2. deps: update it-glob (#520)

    Updates it-glob to use fast-glob for a speedup vs minimatch.
    achingbrain authored Apr 26, 2024
    Copy the full SHA
    36081e0 View commit details

Commits on Apr 29, 2024

  1. fix: remove rust bootstrapper (#523)

    It's unmaintained, unsupported and errors all the time.
    achingbrain authored Apr 29, 2024
    Copy the full SHA
    fa9bd4b View commit details

Commits on Apr 30, 2024

  1. fix: improve bitswap message merging (#522)

    When we send messages repeatedly to the same peer we spend most of
    our time `base64` encoding data to dedupe messages.
    
    This can happen when sending data to Kubo since it only sends us
    max 32x wants in one message, so for a large DAG we can receive
    many messages in quick succession.
    
    Instead, encode the keys for blocks/wants/presences in base64 at
    message creation time, then when we need to merge messages it's a
    simple string comparison instead.
    
    We need strings for comparison because JavaScript's `Map` type uses
    `===` to compare key values, if there was a `Comparator`-style
    interface we'd be able to use `Uint8Array`s for keys, but there
    isn't, so we can't.
    achingbrain authored Apr 30, 2024
    Copy the full SHA
    7419dfc View commit details

Commits on May 1, 2024

  1. chore: increase record ttl in ipns test (#525)

    Slow CI is slow so I think the TTL is expiring during the test.
    achingbrain authored May 1, 2024
    Copy the full SHA
    b0d50e9 View commit details
  2. Copy the full SHA
    251414d View commit details
Loading