Releases: hyperledger-labs/cc-tools
Releases · hyperledger-labs/cc-tools
v1.0.1
Release Notes
This is a minor release.
New Features
- Assets now include the last transaction ID as a metadata represented by
@lastTxID
. This allows for users to easily retrieve the block that included that state change by transaction ID. A chaincode upgrade with the new version will start including the new metadata, but won't change the previous states already registered (as expected in a blockchain network).
Breaking Changes
- If your chaincode implements unit testing with the
MockStub
object, you'll need to include the new field in the expected response or remove it from verification altogether.
What's Changed
- Include last transaction ID as asset metadata by @samuelvenzi in #50
Full Changelog: v1.0.0...v1.0.1
v1.0.0
Release Notes
New Features
- Implement
->@asset
datatype: New datatype implementation by @andremacedopv. - Implement permissioning: Added permissioning functionality by @mikaellafs.
- Allow private assets to have different collection names: Enhanced private asset management by @mikaellafs.
Breaking Changes
- Change dependencies to new repository path: Updated dependencies to the new repository path by @andremacedopv.
- Bump Go version to 1.21: Updated Go version to 1.21, which may require changes in the development environment by @andremacedopv.
Bug Fixes
- Fix resolve history reference: Corrected history reference resolution by @mikaellafs in #39 and @mikaellafs in #42.
Improvements
- Refactor putRecursive: Optimized putRecursive to avoid getRecursive and updating unchanged assets by @mikaellafs.
- Update readme: Improved documentation by @AlineLermen.
- CODEOWNERS and MAINTAINERS: Added CODEOWNERS and MAINTAINERS file by @AlineLermen.
New Contributors
- @AlineLermen made their first contribution in #37.
- @mikaellafs made their first contribution in #39.
- @dependabot made their first contribution in #26.
Full Changelog: v0.9.0...v1.0.0
v0.9.0
New Features
- New built-in mechanism on CC-Tools to interact with the event functionality of Hyperledger Fabric
- New built-in transactions: RunEvent, ExecuteEvent, GetEvents
Breaking Changes
- No breaking changes! Just need to update using the following inside your chaincode folder:
$ go get -d github.com/goledgerdev/[email protected]
$ go mod vendor
Bug Fixes & Improvements
- New method
GetMany
which receives an array of keys and return an array with its respective assets - New method
History
which returns the history for an asset Referrers
methods now can optionally receive assetTypes to filter its results- Method
NewKey
now evaluates possible existing key, verifying if it indeed corresponds to the assetType in question, generating a new key if it doesn't
What's Changed
- Events funcionality by @andremacedopv in #24
Full Changelog: v0.8.1...v0.9.0
v0.8.1
What's Changed
- Send Dynamic asset property on
getSchema
#20
Breaking Changes
- No breaking changes! Just need to update using the following inside your chaincode folder:
$ go get -d github.com/goledgerdev/[email protected]
$ go mod vendor
Bug Fixes & Improvements
- Fix
getRecursive
panic error when reading a custom datatype prop which is an object #21
Full Changelog: v0.8.0...v0.8.1
v0.8.0: Dynamically defined assets
New Features
- Assets can now be defined dynamically without the need of upgrading a chaincode
- New built-in transactions: CreateAssetType, UpdateAssetTypes, DeleteAssetType
Breaking Changes
- No breaking changes! Just need to update using the following inside your chaincode folder:
$ go get -d github.com/goledgerdev/[email protected]
$ go mod vendor
Bug Fixes & Improvements
What's Changed
- Dynamic Asset Type funcionality by @andremacedopv in #17
New Contributors
- @andremacedopv made their first contribution in #16
Full Changelog: v0.7.6...v0.8.0
v0.7.6
What's Changed
- Update README.md by @samuelvenzi in #14
- Fix recursive search for
@object
properties by @samuelvenzi in #15
Full Changelog: v0.7.5...v0.7.6
v0.7.5
What's Changed
- Add generic object datatype by @lucas-campelo in #12
- Add support for generic JSON objects as asset property: @samuelvenzi in #13
Full Changelog: v0.7.4...v0.7.5
v0.7.4: Fix getRecursive when 2+ references of the same asset are subassets
New Features
- No new features
Breaking Changes
- No breaking changes! Just need to update using the following inside your chaincode folder:
$ go get -d github.com/goledgerdev/[email protected]
$ go mod vendor
Bug Fixes & Improvements
- GetRecursive now resolves 2+ subassets references in the same level
v0.7.3
New Features
- New method UpdateRecursive
Breaking Changes
- No breaking changes! Just need to update using the following inside your chaincode folder:
$ go get -d github.com/goledgerdev/[email protected]
$ go mod vendor
Bug Fixes & Improvements
- Check for duplicate arg tags in transactions during startup.
v0.7.2
New Features
- New method Referrers to obtain all assets pointing to a particular asset.
- Search is now available as a standalone method to make rich queries to CouchDB.
- Transaction request timestamp is now embedded in asset data as
@lastUpdated
. - CommitedInLedger method enables checking asset existence in actual ledger state.
Breaking Changes
- No breaking changes! Just need to update using the following inside your chaincode folder:
$ go get -d github.com/goledgerdev/[email protected]
$ go mod vendor
Bug Fixes & Improvements
- Check for duplicate arg tags in transactions during startup.