Skip to content

Releases: ipld/go-trustless-utils

v0.4.1

12 Oct 03:22
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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

v0.1.0

07 Sep 01:27
Compare
Choose a tag to compare

What's Changed

  • chore: remove Accept-Ranges header, not necessary by @rvagg in #2
  • feat: fork graphsync/testutils components we need to avoid networking deps by @rvagg in #3
  • chore: update deps by @rvagg in #4

Full Changelog: v0.0.0...v0.1.0

v0.0.0

31 Aug 09:21
Compare
Choose a tag to compare