Skip to content

chore(deps): update module github.com/libp2p/go-libp2p-kad-dht to v0.42.1 - #1948

Open
agntcy-automation[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-libp2p-go-libp2p-kad-dht-0.x
Open

chore(deps): update module github.com/libp2p/go-libp2p-kad-dht to v0.42.1#1948
agntcy-automation[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-libp2p-go-libp2p-kad-dht-0.x

Conversation

@agntcy-automation

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/libp2p/go-libp2p-kad-dht v0.41.0v0.42.1 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

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

v0.42.1

Compare Source

[!NOTE]
This release was brought to you by the Shipyard team.

What's Changed

Full Changelog: libp2p/go-libp2p-kad-dht@v0.42.0...v0.42.1

v0.42.0

Compare Source

[!NOTE]
This release was brought to you by the Shipyard team.

Highlights
⚠️ Breaking changes
Constructors no longer take a context.Context (#​1282)

The lifecycle context was removed from all constructors. The DHT now runs until Close() is called; cancelling a context no longer tears it down.

Before After
dht.New(ctx, h, opts...) dht.New(h, opts...)
dht.NewDHT(ctx, h, dstore) dht.NewDHT(h, dstore)
dht.NewDHTClient(ctx, h, dstore) dht.NewDHTClient(h, dstore)
dual.New(ctx, h, opts...) dual.New(h, opts...)
records.NewProviderManager(ctx, ...) records.NewProviderManager(...)
rtrefresh.NewRtRefreshManager(ctx, ...) rtrefresh.NewRtRefreshManager(...)

Migration: drop the context argument. If you relied on cancelling the constructor context to shut the DHT down, call Close() instead. Close() blocks until all long-lived components have stopped. Note that in-flight RPC handlers are owned by the libp2p host, so close the host before closing any datastore handed to the DHT.

ProviderStore option removed (#​1277 by @​guillaumemichel)

Custom ProviderStore implementations can no longer be injected; the DHT always runs the built-in provider manager. The dht.ProviderStore(...) option is replaced by datastore-level configuration:

// Before: inject a custom provider store
d, err := dht.New(ctx, h, dht.ProviderStore(customStore))

// After: configure the built-in provider manager
d, err := dht.New(h,
	dht.ProviderDatastore(dstore),          // dedicated datastore for provider records
	dht.ProviderManagerOpts(                // tune the built-in manager
		records.ProvideValidity(48*time.Hour),
		records.Cache(myLRU),
	),
)

New options: ValueDatastore and ProviderDatastore give value and provider records their own physical datastores (both default to the datastore set with Datastore). The dht.ProviderStore() getter on IpfsDHT remains available.

Value records are stored under namespaced datastore keys (#​1277)

Value records used to be stored at the datastore root as /<base32(key)>; they are now namespaced by record type: /<namespace>/<base32(key)> (e.g. /pk/..., /ipns/...). This keeps a shared datastore collision-free and enables per-namespace garbage collection.

Migration: there is no automatic key migration. On upgrade, value records persisted by earlier versions are simply not found under the new layout — nodes will re-store them as the network republishes (records expire after MaxRecordAge, 48h by default, anyway). If you persist the DHT datastore and want to reclaim space, you can delete leftover root-level base32 keys. Provider records are unaffected (already namespaced under /providers/).

What's Changed

Full Changelog: libp2p/go-libp2p-kad-dht@v0.41.0...v0.42.0

@agntcy-automation
agntcy-automation Bot requested a review from a team as a code owner July 31, 2026 07:02
@agntcy-automation agntcy-automation Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Jul 31, 2026
@github-actions github-actions Bot added the size/XS Denotes a PR that changes 0-49 lines label Jul 31, 2026
@agntcy-automation
agntcy-automation Bot force-pushed the renovate/github.com-libp2p-go-libp2p-kad-dht-0.x branch from e98494c to bb5d098 Compare July 31, 2026 12:45
@agntcy-automation

Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: cli/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):

  • 9 additional dependencies were updated

Details:

Package Change
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.43.0 -> v1.44.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.43.0 -> v1.44.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.43.0 -> v1.44.0
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.43.0 -> v1.44.0
github.com/ipfs/boxo v0.39.0 -> v0.41.0
github.com/ipld/go-ipld-prime v0.23.0 -> v0.24.0
github.com/libp2p/go-libp2p-kbucket v0.8.0 -> v0.9.0
github.com/polydawn/refmt v0.89.1-0.20231129105047-37766d95467a -> v0.90.0
golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f -> v0.0.0-20260603202125-055de637280b
File name: server/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):

  • 5 additional dependencies were updated

Details:

Package Change
github.com/ipfs/boxo v0.39.0 -> v0.41.0
github.com/ipld/go-ipld-prime v0.23.0 -> v0.24.0
github.com/libp2p/go-libp2p-kbucket v0.8.0 -> v0.9.0
github.com/polydawn/refmt v0.89.1-0.20231129105047-37766d95467a -> v0.90.0
golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f -> v0.0.0-20260603202125-055de637280b

@agntcy-automation
agntcy-automation Bot force-pushed the renovate/github.com-libp2p-go-libp2p-kad-dht-0.x branch 5 times, most recently from d2cb092 to 1520776 Compare August 5, 2026 18:40
@agntcy-automation
agntcy-automation Bot force-pushed the renovate/github.com-libp2p-go-libp2p-kad-dht-0.x branch from 1520776 to cc15d60 Compare August 7, 2026 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code size/XS Denotes a PR that changes 0-49 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants