Skip to content

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

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

fix(deps): update module github.com/libp2p/go-libp2p-kad-dht to v0.42.1#15
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/github.com-libp2p-go-libp2p-kad-dht-0.x

Conversation

@renovate

@renovate renovate Bot commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

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

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

v0.41.0

Compare Source

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

What's Changed

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

v0.40.0

Compare Source

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

Highlights

⚠️ Breaking change
  • SweepingProvider.Stats() now takes a context.Context and returns (stats.Stats, error). Callers must pass a ctx with a deadline — the key count is fetched through the keystore worker and can stall behind a slow datastore op. (#​1251 by @​guillaumemichel)
Fixes
Other

Full Changelog: libp2p/go-libp2p-kad-dht@v0.39.2...v0.40.0

v0.39.2

Compare Source

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

What's Changed

Full Changelog: libp2p/go-libp2p-kad-dht@v0.39.1...v0.39.2

v0.39.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.39.0...v0.39.1


Configuration

📅 Schedule: (UTC)

  • 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.

@renovate renovate Bot changed the title fix(deps): update module github.com/libp2p/go-libp2p-kad-dht to v0.39.1 fix(deps): update module github.com/libp2p/go-libp2p-kad-dht to v0.39.2 May 7, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-libp2p-go-libp2p-kad-dht-0.x branch from 623b9f1 to 109cbdf Compare May 7, 2026 13:04
@renovate

renovate Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ 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):

  • 26 additional dependencies were updated

Details:

Package Change
github.com/ipfs/boxo v0.38.0 -> v0.41.0
github.com/ipfs/go-block-format v0.2.3 -> v0.2.4
github.com/ipfs/go-cid v0.6.1 -> v0.6.2
github.com/ipfs/go-datastore v0.9.1 -> v0.9.2
github.com/ipld/go-car/v2 v2.16.0 -> v2.17.0
github.com/ipfs/go-log/v2 v2.9.1 -> v2.9.2
github.com/ipfs/go-unixfsnode v1.10.3 -> v1.10.4
github.com/ipld/go-ipld-prime v0.22.0 -> v0.24.0
github.com/libp2p/go-libp2p-kbucket v0.8.0 -> v0.9.0
github.com/mattn/go-isatty v0.0.20 -> v0.0.22
github.com/polydawn/refmt v0.89.1-0.20231129105047-37766d95467a -> v0.90.0
github.com/quic-go/quic-go v0.59.0 -> v0.59.1
github.com/wlynxg/anet v0.0.5 -> v0.0.5
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.67.0 -> v0.68.0
go.opentelemetry.io/otel v1.42.0 -> v1.44.0
go.opentelemetry.io/otel/metric v1.42.0 -> v1.44.0
go.opentelemetry.io/otel/trace v1.42.0 -> v1.44.0
go.uber.org/zap v1.27.1 -> v1.28.0
golang.org/x/exp v0.0.0-20260312153236-7ab1446f8b90 -> v0.0.0-20260603202125-055de637280b
golang.org/x/mod v0.34.0 -> v0.36.0
golang.org/x/net v0.52.0 -> v0.55.0
golang.org/x/sync v0.20.0 -> v0.21.0
golang.org/x/sys v0.43.0 -> v0.46.0
golang.org/x/telemetry v0.0.0-20260311193753-579e4da9a98c -> v0.0.0-20260508192327-42602be52be6
golang.org/x/text v0.36.0 -> v0.38.0
golang.org/x/tools v0.43.0 -> v0.45.0

@renovate renovate Bot changed the title fix(deps): update module github.com/libp2p/go-libp2p-kad-dht to v0.39.2 fix(deps): update module github.com/libp2p/go-libp2p-kad-dht to v0.40.0 May 20, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-libp2p-go-libp2p-kad-dht-0.x branch from 109cbdf to 8fae343 Compare May 20, 2026 11:07
@renovate
renovate Bot force-pushed the renovate/github.com-libp2p-go-libp2p-kad-dht-0.x branch from 8fae343 to d90b971 Compare July 1, 2026 20:41
@renovate renovate Bot changed the title fix(deps): update module github.com/libp2p/go-libp2p-kad-dht to v0.40.0 fix(deps): update module github.com/libp2p/go-libp2p-kad-dht to v0.41.0 Jul 1, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-libp2p-go-libp2p-kad-dht-0.x branch from d90b971 to fa71822 Compare July 20, 2026 12:51
@renovate renovate Bot changed the title fix(deps): update module github.com/libp2p/go-libp2p-kad-dht to v0.41.0 fix(deps): update module github.com/libp2p/go-libp2p-kad-dht to v0.42.0 Jul 20, 2026
@renovate
renovate Bot force-pushed the renovate/github.com-libp2p-go-libp2p-kad-dht-0.x branch from fa71822 to 6b5a6a7 Compare July 21, 2026 03:53
@renovate renovate Bot changed the title fix(deps): update module github.com/libp2p/go-libp2p-kad-dht to v0.42.0 fix(deps): update module github.com/libp2p/go-libp2p-kad-dht to v0.42.1 Jul 21, 2026
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.

0 participants