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: libp2p/js-libp2p
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: fd4aea3
Choose a base ref
...
head repository: libp2p/js-libp2p
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 52ac523
Choose a head ref
  • 5 commits
  • 87 files changed
  • 5 contributors

Commits on Aug 9, 2024

  1. fix: remove CustomEvent polyfill (#2652)

    The EventTarget implementation of libp2p contained workarounds for incomplete runtime support for the feature. One of the workarounds was specifically marked to be removed once CustomEvent was implemented in NodeJS and the [upstream ticket](nodejs/node#40678) was closed. This has happened two years ago. The implementation of the standard event in Node18 and the subsequent removal of the experimental flag in Node19 broke the current workaround and causes tsc to error. Some of these were suppressed with @ts-ignore, others were not. This fix closes #2420.
    
    The fix removes the workaround as instructed by the source code and restores compatibility with recent versions of Node types.
    EliasOenal committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    0edbfe7 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2024

  1. Create funding.json

    dhuseby committed Aug 13, 2024
    1 Configuration menu
    Copy the full SHA
    c5dba70 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2024

  1. feat: add connection monitor (#2644)

    Adds a connection monitor that periodically ensures remote peers are
    still online and contactable by trying to send a single byte via the
    ping protocol, and sets the `.rtt` property of the connection to how
    long it took.
    
    If the ping protocol is not supported by the remote, it tries to infer
    the round trip time by how long it took to fail.
    
    If the remote is unresponsive or opening the stream fails for any
    other reason, the connection is aborted with the throw error.
    
    It's possible to configure the ping interval, how long we wait before
    considering a peer to be inactive and whether or not to close the
    connection on failure.
    
    Closes #2643
    
    ---------
    
    Co-authored-by: Chad Nehemiah <chad.nehemiah94@gmail.com>
    achingbrain and maschad committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    7939dbd View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2024

  1. feat: add WebSockets metrics (#2649)

    Creates two new metric counter groups for WebSockets: `libp2p_websockets_dialer_events_total` and `libp2p_websockets_listener_events_total`.
    
    ---------
    
    Co-authored-by: achingbrain <alex@achingbrain.net>
    SgtPooki and achingbrain committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    1dfb74e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    52ac523 View commit details
    Browse the repository at this point in the history
Loading