You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(pinner): add CheckIfPinnedWithType for efficient checks with names (#1035)
* feat: add CheckIfPinnedWithType for efficient pin checks
adds CheckIfPinnedWithType method to Pinner interface that allows checking
specific pin types with optional name loading. this enables efficient
pin operations like 'ipfs pin ls <cid> --names' without loading all pins.
- CheckIfPinned now delegates to CheckIfPinnedWithType for consistency
necessary for ipfs/js-kubo-rpc-client#343
* docs: add changelog entry for CheckIfPinnedWithType
* test: add tests for CheckIfPinnedWithType
tests cover:
- type-specific pin checking (direct, recursive, indirect)
- pin name loading with includeNames flag
- multiple CIDs in single call
- edge cases (not pinned, internal mode, invalid mode)
- backward compatibility with CheckIfPinned
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,10 @@ The following emojis are used to highlight certain changes:
16
16
17
17
### Added
18
18
19
+
-`pinning/pinner`: Added `CheckIfPinnedWithType` method to `Pinner` interface for efficient type-specific pin checks with optional name loading ([#1035](https://github.com/ipfs/boxo/pull/1035))
20
+
- Enables checking specific pin types (recursive, direct, indirect) without loading all pins
21
+
- Optional `includeNames` parameter controls whether pin names are loaded from datastore
22
+
-`CheckIfPinned` now delegates to `CheckIfPinnedWithType` for consistency
19
23
-`gateway`: Enhanced error handling and UX for timeouts:
20
24
- Added retrieval state tracking for timeout diagnostics. When retrieval timeouts occur, the error messages now include detailed information about which phase failed (path resolution, provider discovery, connecting, or data retrieval) and provider statistics including failed peer IDs [#1015](https://github.com/ipfs/boxo/pull/1015)[#1023](https://github.com/ipfs/boxo/pull/1023)
21
25
- Added `Config.DiagnosticServiceURL` to configure a CID retrievability diagnostic service. When set, 504 Gateway Timeout errors show a "Check CID retrievability" button linking to the service with `?cid=<failed-cid>`[#1023](https://github.com/ipfs/boxo/pull/1023)
0 commit comments