Skip to content

Releases: ipfs/go-cid

v0.4.1

04 Apr 04:08
Compare
Choose a tag to compare

What's Changed

  • CidFromReader should not wrap valid EOF return. by @gammazero in #151

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

v0.4.0

20 Mar 08:29
Compare
Choose a tag to compare

What's Changed

  • edit README.md example error by @susarlanikhilesh in #146
  • sync: update CI config files by @web3-bot in #147
  • build(deps): bump golang.org/x/sys from 0.0.0-20210309074719-68d13333faf2 to 0.1.0 by @dependabot in #148
  • build(deps): bump golang.org/x/crypto from 0.0.0-20210506145944-38f3c27a63bf to 0.1.0 by @dependabot in #149
  • feat: wrap parsing errors into ErrInvalidCid by @hacdias in #150

New Contributors

Full Changelog: v0.3.2...v0.4.0

v0.3.2

05 Sep 23:02
Compare
Choose a tag to compare

This release reverts v0.3.1, see #144.

What's Changed

Full Changelog: v0.3.1...v0.3.2

v0.3.1

04 Sep 11:05
Compare
Choose a tag to compare

What's Changed

  • sync: update CI config files by @web3-bot in #143
  • fix: bring back, but deprecate CodecToStr and Codecs by @rvagg in #142

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

v0.3.0

25 Aug 03:35
Compare
Choose a tag to compare

What's Changed

New Contributors

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

v0.2.0

21 Apr 20:41
b2064d7
Compare
Choose a tag to compare

What's Changed

BREAKING CHANGE

Converting code to string and vice versa will no longer be done with go-cid (#137), go-multicodec should be used instead.

NOTE: old mapping was invalid, and switching to go-multicodec will change the meaning of code 0x70 and 0x71 and strings cbor and protobuf:

  • protobuf string now correctly points at code 0x50 (was 0x70, which is dag-pb)
    • 0x70 code is mapped to dag-pb (was protobuf before)
  • cbor string now correctly points at code 0x51 (was 0x71, which is dag-cbor)
    • 0x71 code is now mapped to dag-cbor (was cbor before)

Refactor guide

Old way (go-cid < 0.2.0)

cid "github.com/ipfs/go-cid"

// string β†’ code
code := cid.Codecs["libp2p-key"]

// code β†’ string
string := cid.CodecToStr[code]

New way (with go-multicodec)

mc "github.com/multiformats/go-multicodec"

// string β†’ code
var mc.Code code 
code.Set("libp2p-key")

// code β†’ string
code.String()

New Contributors

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

Release v0.1.0

18 Aug 02:21
Compare
Choose a tag to compare
  • Updates multihash to the new registry system.
  • Adds CidFromReader to read a stream of CIDs from a reader.