Releases: hyperledger/fabric-contract-api-go
v2.0.0
v2 Release Notes
The v2 release is functionally equivalent to the v1 release. The primary difference is the use of the current Go API for protocol buffers in place of the original (deprecated) API. The v2 implementation retains wire-level compatibility with Fabric but does include the following breaking changes:
- Chaincode implementations that make direct use of
github.com/hyperledger/fabric-protos-go
will experience protocol buffer namespace conflicts (as described in https://protobuf.dev/reference/go/faq/). Any use of fabric-protos-go must be replaced bygithub.com/hyperledger/fabric-protos-go-apiv2
. - In order to avoid an indirect dependency on fabric-protos-go, chaincode implementations that make use of
github.com/hyperledger/fabric-chaincode-go
must instead usegithub.com/hyperledger/fabric-chaincode-go/v2
.
What's Changed
- Update dependencies to address GO-2024-2687 by @bestbeforetoday in #129
- v2 implementation based on fabric-chaincode-go/v2 by @bestbeforetoday in #137
New Contributors
Full Changelog: v1.2.2...v2.0.0
v1.2.2
What's Changed
- Update test chaincodes to fabric-contract-api-go v1.2.1 by @denyeart in #101
- Updated path to sample chaincode built using fabric contract api by @shashank-priyadarshi in #105
- Update dependencies to address GO-2023-2153 by @bestbeforetoday in #108
New Contributors
- @bestbeforetoday made their first contribution in #103
- @shashank-priyadarshi made their first contribution in #105
Full Changelog: v1.2.1...v1.2.2
fabric-contract-api-go v1.2.1
What's Changed
- Use latest Go patch level for vulnerability scan by @jt-nti in #77
- Enable dependabot by @jt-nti in #78
- Bump github.com/go-openapi/spec from 0.20.6 to 0.20.7 by @dependabot in #79
- Bump github.com/stretchr/testify from 1.8.0 to 1.8.1 by @dependabot in #80
- Update text dependency by @mbwhite in #82
- Update dependencies (Go 1.19, latest fabric-chaincode-go, etc) by @denyeart in #98
- Update Maintainers by @mbwhite in #99
- Remove changelog requirement for release. by @denyeart in #100
New Contributors
- @dependabot made their first contribution in #79
Full Changelog: v1.2.0...v1.2.1
Release 1.2.0
This release provides:
🐞 Fix for the metadata directory name
🐞 FABCAG-33 Fix to skip unexported fields in struct validation
🎉 Simplified support for running chaincode as a service
🐝 Go and dependency version updates
Release 1.1.1
This is a bug fix release:
🐞 FABCAG-31 Supplying additional valid data in json tag of struct property causes schema to fail
Release 1.1.0
This release provides:
- Testing to validate against Fabric 2.1
- Update to documentation to include support for Fabric 2.1
Release 1.0.0
This release is the first of the contractapi, metadata and serializer packages. These provide a way to write Go chaincode using the updated fabric programming model which was introduced to the Node and Java chaincode implementations in Fabric 1.4.
This release provides:
- the ability to get metadata describing a chaincode via the system chaincode
- tutorials on getting up and running with the packages
Using this release you can write Go chaincode without adding the boilerplate of:
- routing function calls via the invoke/init method
- converting the raw arguments passed in by Fabric for use in functions
- converting values to return from functions to bytes and then returning a fabric shim success response
- converting from error values to return a fabric shim error response
For more information on this, please review the JIRA epic this release concludes here -> https://jira.hyperledger.org/browse/FABCAG-1