Skip to content

Commit c336fc9

Browse files
authored
Merge pull request #581 from ipfs/release-v0.18.0
Release v0.18.0
2 parents 8530184 + 4f5b2c0 commit c336fc9

32 files changed

+669
-560
lines changed

.github/workflows/gateway-conformance.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ jobs:
1616
steps:
1717
# 1. Download the gateway-conformance fixtures
1818
- name: Download gateway-conformance fixtures
19-
uses: ipfs/gateway-conformance/.github/actions/extract-fixtures@v0.4
19+
uses: ipfs/gateway-conformance/.github/actions/extract-fixtures@v0.5
2020
with:
2121
output: fixtures
2222
merged: true
2323

2424
# 2. Build the car-gateway
2525
- name: Setup Go
26-
uses: actions/setup-go@v3
26+
uses: actions/setup-go@v4
2727
with:
2828
go-version: 1.21.x
2929
- name: Checkout boxo
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3131
with:
3232
path: boxo
3333
- name: Build car-gateway
@@ -40,7 +40,7 @@ jobs:
4040

4141
# 4. Run the gateway-conformance tests
4242
- name: Run gateway-conformance tests
43-
uses: ipfs/gateway-conformance/.github/actions/test@v0.4
43+
uses: ipfs/gateway-conformance/.github/actions/test@v0.5
4444
with:
4545
gateway-url: http://127.0.0.1:8040
4646
json: output.json

CHANGELOG.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,25 @@ The following emojis are used to highlight certain changes:
2020

2121
### Removed
2222

23+
### Fixed
24+
2325
### Security
2426

27+
## [v0.18.0]
28+
29+
### Added
30+
31+
- `blockservice` now has `ContextWithSession` and `EmbedSessionInContext` functions, which allows to embed a session in a context. Future calls to `BlockGetter.GetBlock`, `BlockGetter.GetBlocks` and `NewSession` will use the session in the context.
32+
- `blockservice.NewWritethrough` deprecated function has been removed, instead you can do `blockservice.New(..., ..., WriteThrough())` like previously.
33+
- `gateway`: a new header configuration middleware has been added to replace the existing header configuration, which can be used more generically.
34+
- `namesys` now has a `WithMaxCacheTTL` option, which allows you to define a maximum TTL that will be used for caching IPNS entries.
35+
36+
### Fixed
37+
38+
- 🛠 `boxo/gateway`: when making a trustless CAR request with the "entity-bytes" parameter, using a negative index greater than the underlying entity length could trigger reading more data than intended
39+
- 🛠 `boxo/gateway`: the header configuration `Config.Headers` and `AddAccessControlHeaders` has been replaced by the new middleware provided by `NewHeaders`.
40+
- 🛠 `routing/http/client`: the default HTTP client is no longer a global singleton. Therefore, using `WithUserAgent` won't modify the user agent of existing routing clients. This will also prevent potential race conditions. In addition, incompatible options will now return errors instead of silently failing.
41+
2542
## [v0.17.0]
2643

2744
### Added
@@ -47,7 +64,7 @@ The following emojis are used to highlight certain changes:
4764
### Fixed
4865

4966
* `boxo/gateway`
50-
* a panic (which is recovered) could sporadically be triggered inside a CAR request, if the right [conditions were met](https://github.com/ipfs/boxo/pull/511).
67+
* a panic (which is recovered) could sporadically be triggered inside a CAR request, if the right [conditions were met](https://github.com/ipfs/boxo/pull/511).
5168
* no longer emits `http: superfluous response.WriteHeader` warnings when an error happens.
5269

5370
## [v0.15.0]
@@ -151,7 +168,7 @@ The following emojis are used to highlight certain changes:
151168

152169
* 🛠 The `routing/http` package experienced following removals:
153170
* Server and client no longer support the experimental `Provide` method.
154-
`ProvideBitswap` is still usable, but marked as deprecated. A protocol-agnostic
171+
`ProvideBitswap` is still usable, but marked as deprecated. A protocol-agnostic
155172
provide mechanism is being worked on in [IPIP-378](https://github.com/ipfs/specs/pull/378).
156173
* Server no longer exports `FindProvidersPath` and `ProvidePath`.
157174

0 commit comments

Comments
 (0)