Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.18.0 #581

Merged
merged 25 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
76d9292
Merge pull request #543 from ipfs/merge-release-v0.17.0
hacdias Jan 10, 2024
ba2f544
gateway: remove workaround for go bugs on ranges on empty files
Jorropo Jan 12, 2024
651402f
ipld/unixfs/trickle: add Parallel to tests
Jorropo Jan 12, 2024
922c66c
chunking: a t.Parallel on tests
Jorropo Jan 12, 2024
8109917
blockservice: add `NewSessionContext` and `EmbedSessionInContext`
Jorropo Jan 12, 2024
992c55c
gateway: add `WithContextHint` to `handler` and implement it on `Bloc…
Jorropo Jan 12, 2024
22fa8b1
blockservice: add `NewSessionContext` and `EmbedSessionInContext` (#549)
Jorropo Jan 12, 2024
bcb321c
gateway: add `WithContextHint` to `handler` and implement it on `Bloc…
Jorropo Jan 12, 2024
3154a46
gateway: implement passthrough `WithContextHint` on `ipfsBackendWithM…
Jorropo Jan 12, 2024
ea04c77
blockservice: make ContextWithSession shortcut grabSessionFromContext…
Jorropo Jan 12, 2024
2f67c04
blockservice: don't store allowlist in Session
Jorropo Jan 15, 2024
c7f33e6
blockservice: add compiletime guard for BoundedBlockService on the bl…
Jorropo Jan 15, 2024
d5be896
blockservice: optimize getBlocks filter by not rescanning the already…
Jorropo Jan 15, 2024
02c77b4
blockservice: fix symbol name in docs
Jorropo Jan 15, 2024
b8ac21b
blockservice: stop using deprecated NewWriteThrough in tests
Jorropo Jan 15, 2024
0536783
blockservice: remove deprecated NewWriteThrough function
Jorropo Jan 15, 2024
4c3a1f2
gateway: remove dead, unexported lazySeek
hacdias Jan 18, 2024
3d57bce
gateway: extract CORS to headers middleware
hacdias Jan 24, 2024
bf34cd0
fix(gw): entity-bytes with negative indexes beyond file size (#523)
hannahhoward Jan 25, 2024
fdfcfcc
namesys: add WithMaxCacheTTL
hacdias Jan 25, 2024
89bceff
chore: Update .github/workflows/stale.yml [skip ci]
web-flow Jan 31, 2024
79cb4e2
gateway: tests for simpler superfluous namespace handling (#572)
hacdias Feb 6, 2024
39f4588
routing/http/client: avoid race by not using global http.Client
hacdias Feb 19, 2024
28f1c40
docs: prepare changelog for v0.18.0
hacdias Feb 20, 2024
4f5b2c0
chore: bump version to v0.18.0
hacdias Feb 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/gateway-conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ jobs:
steps:
# 1. Download the gateway-conformance fixtures
- name: Download gateway-conformance fixtures
uses: ipfs/gateway-conformance/.github/actions/extract-fixtures@v0.4
uses: ipfs/gateway-conformance/.github/actions/extract-fixtures@v0.5
with:
output: fixtures
merged: true

# 2. Build the car-gateway
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.21.x
- name: Checkout boxo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: boxo
- name: Build car-gateway
Expand All @@ -40,7 +40,7 @@ jobs:

# 4. Run the gateway-conformance tests
- name: Run gateway-conformance tests
uses: ipfs/gateway-conformance/.github/actions/test@v0.4
uses: ipfs/gateway-conformance/.github/actions/test@v0.5
with:
gateway-url: http://127.0.0.1:8040
json: output.json
Expand Down
21 changes: 19 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,25 @@ The following emojis are used to highlight certain changes:

### Removed

### Fixed

### Security

## [v0.18.0]

### Added

- `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.
- `blockservice.NewWritethrough` deprecated function has been removed, instead you can do `blockservice.New(..., ..., WriteThrough())` like previously.
- `gateway`: a new header configuration middleware has been added to replace the existing header configuration, which can be used more generically.
- `namesys` now has a `WithMaxCacheTTL` option, which allows you to define a maximum TTL that will be used for caching IPNS entries.

### Fixed

- 🛠 `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
- 🛠 `boxo/gateway`: the header configuration `Config.Headers` and `AddAccessControlHeaders` has been replaced by the new middleware provided by `NewHeaders`.
- 🛠 `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.

## [v0.17.0]

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

* `boxo/gateway`
* 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).
* 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).
* no longer emits `http: superfluous response.WriteHeader` warnings when an error happens.

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

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

Expand Down
Loading
Loading