Releases: ipld/go-trustless-utils
v0.8.0
What's Changed
- chore(deps): bump github.com/ipfs/go-cid from 0.5.0 to 0.6.0 by @dependabot[bot] in #60
- chore(deps): bump golang.org/x/crypto from 0.41.0 to 0.45.0 by @dependabot[bot] in #61
- feat(http)!: query params take precedence over Accept header (IPIP-523) by @rvagg in #62
Full Changelog: v0.7.0...v0.8.0
v0.7.0
What's Changed
Full Changelog: v0.6.0...v0.7.0
v0.6.0
What's Changed
Full Changelog: v0.5.1...v0.6.0
v0.5.1
What's Changed
Full Changelog: v0.5.0...v0.5.1
v0.5.0
What's Changed
- chore(deps): bump golang.org/x/crypto from 0.6.0 to 0.17.0 by @dependabot[bot] in #21
- chore(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 by @dependabot[bot] in #22
- ci: uci/update-go by @web3-bot in #23
- chore(deps): bump google.golang.org/protobuf from 1.28.1 to 1.33.0 by @dependabot[bot] in #24
- ci: uci/copy-templates by @web3-bot in #25
- ci: uci/update-go by @web3-bot in #26
- chore(deps): bump github.com/ipfs/go-unixfsnode from 1.9.0 to 1.9.1 by @dependabot[bot] in #27
- chore(deps): bump github.com/ipld/go-car/v2 from 2.13.1 to 2.14.1 by @dependabot[bot] in #29
- chore(deps): bump github.com/ipld/go-car/v2 from 2.14.1 to 2.14.2 by @dependabot[bot] in #30
- chore(deps): bump github.com/ipfs/go-unixfsnode from 1.9.1 to 1.9.2 by @dependabot[bot] in #31
- chore(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 by @dependabot[bot] in #32
- chore(deps): bump golang.org/x/crypto from 0.27.0 to 0.31.0 by @dependabot[bot] in #33
- chore(deps): bump github.com/ipfs/go-cid from 0.4.1 to 0.5.0 by @dependabot[bot] in #34
- ci: uci/update-go by @web3-bot in #35
- chore(deps): bump github.com/ipld/go-codec-dagpb from 1.6.0 to 1.7.0 by @dependabot[bot] in #36
- chore(deps): bump github.com/ipfs/go-unixfsnode from 1.9.2 to 1.10.0 by @dependabot[bot] in #37
- ci: uci/copy-templates by @web3-bot in #38
- chore(deps): bump golang.org/x/crypto from 0.31.0 to 0.35.0 by @dependabot[bot] in #39
- chore(deps): bump github.com/ipfs/go-unixfsnode from 1.10.0 to 1.10.1 by @dependabot[bot] in #43
- chore(deps): bump github.com/ipfs/go-ipld-format from 0.6.1 to 0.6.2 by @dependabot[bot] in #45
- chore(deps): bump github.com/ipfs/go-block-format from 0.2.1 to 0.2.2 by @dependabot[bot] in #44
- ci: uci/update-go by @web3-bot in #46
- chore(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.0 by @dependabot[bot] in #47
- chore(deps): bump github.com/ipld/go-car/v2 from 2.14.3 to 2.15.0 by @dependabot[bot] in #48
- chore(deps): bump github.com/stretchr/testify from 1.11.0 to 1.11.1 by @dependabot[bot] in #49
- chore(deps): bump github.com/ipfs/go-unixfsnode from 1.10.1 to 1.10.2 by @dependabot[bot] in #50
- chore(deps): bump github.com/ipfs/go-block-format from 0.2.2 to 0.2.3 by @dependabot[bot] in #52
- chore(deps): bump github.com/ipfs/go-ipld-format from 0.6.2 to 0.6.3 by @dependabot[bot] in #51
- chore(deps): update go-car by @rvagg in #53
New Contributors
Full Changelog: v0.4.1...v0.5.0
v0.4.1
What's Changed
Full Changelog: v0.4.0...v0.4.1
v0.4.0
What's Changed
This is a breaking change as the signature of CheckFormat() has changed from func(*net/http.Request) (ContentType, error) to func(*net/http.Request) ([]ContentType, error); i.e. it now returns a slice of ContentType object. This slice is priority ordered and only contains compatible content types for Trustless Gateway requests but they may be either requests for a CAR or a Raw block. The content types come from either the Accept request header or the format parameter. It should be safe for a caller to select the first supportable format from the list; i.e. if a caller can support both CAR and Raw responses, choose the first element of the slice (where there is no error, the slice will always be of length >= 1).
ContentType now has IsCar() bool and IsRaw() bool.
Full Changelog: v0.3.1...v0.4.0
v0.3.1
What's Changed
- chore(deps): bump github.com/ipfs/go-unixfsnode from 1.8.0 to 1.8.1 by @dependabot in #13
- chore(deps): bump github.com/ipfs/go-unixfsnode from 1.8.1 to 1.9.0 by @dependabot in #14
- fix(correctedmemstore): pass CID to ErrNotFound by @rvagg in #15
New Contributors
- @dependabot made their first contribution in #13
Full Changelog: v0.3.0...v0.3.1
v0.3.0
v0.2.0
What's Changed
feat!: add ContentType, expanded Accept parsing by @rvagg in #6
ContentTypewas added to represent a full Trustless Gateway content type for use asContent-Typeheader andAcceptheaderCheckFormat(),ParseAccept()andParseContentType()have all changed signatures to incorporateContentTypeParseAccept()now returns an preferentially ordered list of compatible Trustless Gateway content typesResponseContentTypeHeader()andRequestAcceptHeader()have been deprecated, preferContentType#String()instead, withDefaultContentType().WithDuplicates(duplicates).String()replicating the original behaviour of these two functions.
Full Changelog: v0.1.0...v0.2.0