Skip to content
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

fix(deps): update module github.com/libp2p/go-libp2p to v0.40.0 - autoclosed #860

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 17, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/libp2p/go-libp2p v0.39.1 -> v0.40.0 age adoption passing confidence

Release Notes

libp2p/go-libp2p (github.com/libp2p/go-libp2p)

v0.40.0

Compare Source

⚠ Breaking Change!

Introducing error codes mandated changing the error types returned by stream resets. All checks that depended on checking the error string or comparing equality with network.ErrReset, now need to use errors.Is(err, network.ErrReset). More details below in the error codes section.

🔦 Highlights

Error Codes

This releases introduces error codes for Stream Reset and Connection Close. This allows sending for more information to the peer about the error condition causing the abort. go-libp2p has already defined some error codes which are useful for many different use cases. You can find them in:
https://github.com/libp2p/go-libp2p/blob/master/core/network/mux.go#L46
and: https://github.com/libp2p/go-libp2p/blob/master/core/network/conn.go#L47
<TODO: Replace with pkg.go.dev link post release>

On streams, you can signal an error on reset by using:

str.ResetWithError(errCode)

On connections, you can signal an error on close by using:

conn.ResetWithError(errCode)

Not all transports support error codes. Most notably, WebTransport has no support for sending error codes at the moment. See the spec: https://github.com/libp2p/specs/pull/623 for more details.

If you want to define custom error codes for your application protocol, you can reserve a block for your application by opening a PR in the specs repo. The above mentioned spec has details on reserving error codes for applications. Until the spec is merged, you must open a PR targeting the spec's branch.

Breaking Change!

This introduces a breaking change for users who checked stream reset errors by testing for equality with network.ErrReset as err == network.ErrReset. These tests now need to use the errors.Is(err, network.ErrReset) test. Stream Resets now return either *network.StreamError if the stream was reset by remote, or *network.ConnError if the connection was closed by remote.

What's Changed

New Contributors

Full Changelog: libp2p/go-libp2p@v0.39.0...v0.40.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link
Contributor Author

renovate bot commented Feb 17, 2025

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 7 additional dependencies were updated

Details:

Package Change
github.com/google/pprof v0.0.0-20250202011525-fc3143867406 -> v0.0.0-20250208200701-d0013a598941
github.com/pion/webrtc/v4 v4.0.8 -> v4.0.9
golang.org/x/crypto v0.32.0 -> v0.33.0
golang.org/x/exp v0.0.0-20250128182459-e0ece0dbea4c -> v0.0.0-20250210185358-939b2ce775ac
golang.org/x/net v0.34.0 -> v0.35.0
golang.org/x/tools v0.29.0 -> v0.30.0
google.golang.org/protobuf v1.36.4 -> v1.36.5

@mudler mudler enabled auto-merge (squash) February 22, 2025 17:59
@renovate renovate bot changed the title fix(deps): update module github.com/libp2p/go-libp2p to v0.40.0 fix(deps): update module github.com/libp2p/go-libp2p to v0.40.0 - autoclosed Feb 22, 2025
@renovate renovate bot closed this Feb 22, 2025
auto-merge was automatically disabled February 22, 2025 18:00

Pull request was closed

@renovate renovate bot deleted the renovate/github.com-libp2p-go-libp2p-0.x branch February 22, 2025 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant