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
Open
fix(deps): update module github.com/libp2p/go-libp2p-kad-dht to v0.42.1#15renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/github.com-libp2p-go-libp2p-kad-dht-0.x
branch
from
May 7, 2026 13:04
623b9f1 to
109cbdf
Compare
Contributor
Author
ℹ️ Artifact update noticeFile name: go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
renovate
Bot
force-pushed
the
renovate/github.com-libp2p-go-libp2p-kad-dht-0.x
branch
from
May 20, 2026 11:07
109cbdf to
8fae343
Compare
renovate
Bot
force-pushed
the
renovate/github.com-libp2p-go-libp2p-kad-dht-0.x
branch
from
July 1, 2026 20:41
8fae343 to
d90b971
Compare
renovate
Bot
force-pushed
the
renovate/github.com-libp2p-go-libp2p-kad-dht-0.x
branch
from
July 20, 2026 12:51
d90b971 to
fa71822
Compare
renovate
Bot
force-pushed
the
renovate/github.com-libp2p-go-libp2p-kad-dht-0.x
branch
from
July 21, 2026 03:53
fa71822 to
6b5a6a7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.39.0→v0.42.1Release Notes
libp2p/go-libp2p-kad-dht (github.com/libp2p/go-libp2p-kad-dht)
v0.42.1Compare Source
What's Changed
Full Changelog: libp2p/go-libp2p-kad-dht@v0.42.0...v0.42.1
v0.42.0Compare Source
Highlights
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.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.ProviderStoreoption removed (#1277 by @guillaumemichel)Custom
ProviderStoreimplementations can no longer be injected; the DHT always runs the built-in provider manager. Thedht.ProviderStore(...)option is replaced by datastore-level configuration:New options:
ValueDatastoreandProviderDatastoregive value and provider records their own physical datastores (both default to the datastore set withDatastore). Thedht.ProviderStore()getter onIpfsDHTremains 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.0Compare Source
What's Changed
TestBootStrapWhenRTIsEmptyby @guillaumemichel in #1264Full Changelog: libp2p/go-libp2p-kad-dht@v0.40.0...v0.41.0
v0.40.0Compare Source
Highlights
SweepingProvider.Stats()now takes acontext.Contextand 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
ADD_PROVIDERsends so a single slow peer can't stall a reprovide cycle. (#1252 by @guillaumemichel)batchReprovidenow holdscycleStatsLkfor the full defer, fixing a stats race. (#1255 by @guillaumemichel)ResettableKeystorereset is faster and no longer blocks the worker. (#1256 by @guillaumemichel)Other
Full Changelog: libp2p/go-libp2p-kad-dht@v0.39.2...v0.40.0
v0.39.2Compare Source
What's Changed
Full Changelog: libp2p/go-libp2p-kad-dht@v0.39.1...v0.39.2
v0.39.1Compare Source
What's Changed
Full Changelog: libp2p/go-libp2p-kad-dht@v0.39.0...v0.39.1
Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.