Skip to content

Releases

v0.6.2

Choose a tag to compare

@github-actions github-actions released this 07 Jul 14:22
707ffd0

What's Changed

  • chore: modernize code and update dependencies in #184
    • update golang.org/x/crypto to v0.53.0
    • update golang.org/x/sys to v0.46.0
    • to marshal json, use fmt.Appendf instead of converting formatted string to []byte
  • update README in #185
  • use errors.New for error strings without formatting in #187
  • remove unneeded Makefile in #187

Full Changelog: v0.6.1...v0.6.2

v0.6.1

Choose a tag to compare

@github-actions github-actions released this 09 Apr 19:58
64ee0d4

What's Changed

Full Changelog: v0.6.0...v0.6.1

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 28 Oct 01:15
594b41a

What's Changed

  • Minimum Go version updated to 1.24
  • ci: uci/update-go by @web3-bot in #173
  • ci: uci/copy-templates by @web3-bot in #174
  • chore(deps): bump golang.org/x/crypto from 0.31.0 to 0.35.0 by @dependabot[bot] in #175
  • ci: uci/update-go by @web3-bot in #176
  • chore(deps): bump github.com/multiformats/go-varint from 0.0.7 to 0.1.0 by @dependabot[bot] in #177

Full Changelog: v0.5.0...v0.6.0

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 22 Jan 02:02
5cddba5

What's Changed

New Contributors

Full Changelog: v0.4.1...v0.5.0

v0.4.1

Choose a tag to compare

@github-actions github-actions released this 04 Apr 04:08

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

Choose a tag to compare

@github-actions github-actions released this 20 Mar 08:29

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

Choose a tag to compare

@Jorropo Jorropo released this 05 Sep 23:02

This release reverts v0.3.1, see #144.

What's Changed

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

v0.3.1

Choose a tag to compare

@Jorropo Jorropo released this 04 Sep 11:05

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

Choose a tag to compare

@Jorropo Jorropo released this 25 Aug 03:35

What's Changed

New Contributors

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

v0.2.0

Choose a tag to compare

@lidel lidel released this 21 Apr 20:41
b2064d7

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