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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ The following emojis are used to highlight certain changes:
18
18
19
19
*`boxo/gateway`:
20
20
* A new `WithResolver(...)` option can be used with `NewBlocksBackend(...)` allowing the user to pass their custom `Resolver` implementation.
21
+
* The gateway now sets a `Cache-Control` header for requests under the `/ipns/` namespace if the TTL for the corresponding IPNS Records or DNSLink entities is known.
21
22
*`boxo/bitswap/client`:
22
23
* A new `WithoutDuplicatedBlockStats()` option can be used with `bitswap.New` and `bsclient.New`. This disable accounting for duplicated blocks, which requires a `blockstore.Has()` lookup for every received block and thus, can impact performance.
23
24
@@ -41,6 +42,21 @@ The following emojis are used to highlight certain changes:
41
42
* 🛠 The signature of `CoreAPI.ResolvePath` in `coreiface` has changed to now return
42
43
the remainder segments as a second return value, matching the signature of `resolver.ResolveToLastNode`.
43
44
* 🛠 `routing/http/client.FindPeers` now returns `iter.ResultIter[types.PeerRecord]` instead of `iter.ResultIter[types.Record]`. The specification indicates that records for this method will always be Peer Records.
45
+
* 🛠 The `namesys` package has been refactored. The following are the largest modifications:
46
+
* The options in `coreiface/options/namesys` have been moved to `namesys` and their names
47
+
have been made more consistent.
48
+
* Many of the exported structs and functions have been renamed in order to be consistent with
49
+
the remaining packages.
50
+
*`namesys.Resolver.Resolve` now returns a TTL, in addition to the resolved path. If the
51
+
TTL is unknown, 0 is returned. `IPNSResolver` is able to resolve a TTL, while `DNSResolver`
52
+
is not.
53
+
*`namesys/resolver.ResolveIPNS` has been moved to `namesys.ResolveIPNS` and now returns a TTL
54
+
in addition to the resolved path.
55
+
* ✨ `boxo/ipns` record defaults follow recommendations from [IPNS Record Specification](https://specs.ipfs.tech/ipns/ipns-record/#ipns-record):
56
+
*`DefaultRecordTTL` is now set to `1h`
57
+
*`DefaultRecordLifetime` follows the increased expiration window of Amino DHT ([go-libp2p-kad-dht#793](https://github.com/libp2p/go-libp2p-kad-dht/pull/793)) and is set to `48h`
58
+
* 🛠 The `gateway`'s `IPFSBackend.ResolveMutable` is now expected to return a TTL in addition to
59
+
the resolved path. If the TTL is unknown, 0 should be returned.
0 commit comments