Skip to content

Releases: ipld/go-trustless-utils

v0.8.0

09 Feb 09:57
78410d6

Choose a tag to compare

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

14 Oct 05:38
70b371e

Choose a tag to compare

What's Changed

  • fix(http)!: ParseFilename should handle .bin for raw request by @rvagg in #59

Full Changelog: v0.6.0...v0.7.0

v0.6.0

11 Oct 03:32
4b1a5ae

Choose a tag to compare

What's Changed

  • feat: align with path & trustless gateway specs by @rvagg in #57

Full Changelog: v0.5.1...v0.6.0

v0.5.1

09 Oct 23:32
94d3e40

Choose a tag to compare

What's Changed

  • fix(http): honour format parameter with wildcard Accept headers by @rvagg in #55

Full Changelog: v0.5.0...v0.5.1

v0.5.0

09 Oct 22:52
81dbff8

Choose a tag to compare

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

12 Oct 03:22

Choose a tag to compare

What's Changed

  • fix: entity-bytes=0:0 fix for sharded files by @rvagg in #19

Full Changelog: v0.4.0...v0.4.1

v0.4.0

07 Oct 00:14

Choose a tag to compare

What's Changed

  • feat!: allow for application/vnd.ipld.raw accept and content-type by @rvagg in #17

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

03 Oct 03:29

Choose a tag to compare

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

Full Changelog: v0.3.0...v0.3.1

v0.3.0

19 Sep 09:38
478221b

Choose a tag to compare

What's Changed

  • fix: test and handle identity CIDs, expose more testutils by @rvagg in #10
  • feat: traversal.Config#OnBlockIn for ongoing block tracking by @rvagg in #8
  • fix: include original path in checkpath failure messages by @rvagg in #9

Full Changelog: v0.2.0...v0.3.0

v0.2.0

08 Sep 04:03

Choose a tag to compare

What's Changed

feat!: add ContentType, expanded Accept parsing by @rvagg in #6

  • ContentType was added to represent a full Trustless Gateway content type for use as Content-Type header and Accept header
  • CheckFormat(), ParseAccept() and ParseContentType() have all changed signatures to incorporate ContentType
  • ParseAccept() now returns an preferentially ordered list of compatible Trustless Gateway content types
  • ResponseContentTypeHeader() and RequestAcceptHeader() have been deprecated, prefer ContentType#String() instead, with DefaultContentType().WithDuplicates(duplicates).String() replicating the original behaviour of these two functions.

Full Changelog: v0.1.0...v0.2.0