* feat(add): add support for naming pinned CID Signed-off-by: kapil <kapilsareen584@gmail.com> * fix(add): no double pinning and simplify pin-name - modify PinRoot to accept name parameter, eliminating double pinning - remove automatic filename fallback logic for cleaner behavior - only create named pins when explicitly requested via --pin-name=value - replace NoPinName constant with idiomatic empty string literals - Update help text and tests to reflect explicit-only behavior * docs: changelog * chore: lint * test: negative case for empty pin-name * chore: gofmt --------- Signed-off-by: kapil <kapilsareen584@gmail.com> Co-authored-by: Marcin Rataj <lidel@lidel.org>
2.8 KiB
Kubo changelog v0.37
This release was brought to you by the Interplanetary Shipyard team.
v0.37.0
Overview
🔦 Highlights
Clear provide queue when reprovide strategy changes
Your content sharing strategy changes now take effect cleanly, without interference from previously queued items.
When you change Reprovider.Strategy and restart Kubo, the provide queue is automatically cleared. This ensures only content matching your new strategy will be announced to the network.
A new ipfs provide clear command also allows manual queue clearing for debugging purposes.
Note
Upgrading to Kubo 0.37 will automatically clear any preexisting provide queue. The next time
Reprovider.Intervalhits,Reprovider.Strategywill be executed on a clean slate, ensuring consistent behavior with your current configuration.
🧷 Named pins in ipfs add command
Added --pin-name flag to ipfs add for assigning names to pins.
$ ipfs add --pin-name=testname cat.jpg
added bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi cat.jpg
$ ipfs pin ls --names
bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi recursive testname
Removed unnecessary dependencies
Kubo has been cleaned up by removing unnecessary dependencies and packages:
- Removed
thirdparty/assert(replaced bygithub.com/stretchr/testify/require) - Removed
thirdparty/dir(replaced bymisc/fsutil) - Removed
thirdparty/notifier(unused) - Removed
goprocessdependency (replaced with native Gocontextpatterns)
These changes reduce the dependency footprint while improving code maintainability and following Go best practices.