diff --git a/CHANGELOG.md b/CHANGELOG.md index 23df8858..bbd0b410 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,20 @@ +## v2.2.1 +Wed 11 Nov 2020 15:13:14 GMT + +* [a3dafb7](https://github.com/hyperledger/fabric-chaincode-node/commit/a3dafb7) Update node versions +* [23f3ea8](https://github.com/hyperledger/fabric-chaincode-node/commit/23f3ea8) Set node version for jsdoc build +* [3720cb9](https://github.com/hyperledger/fabric-chaincode-node/commit/3720cb9) Publish 2.2 api docs +* [7ce3c34](https://github.com/hyperledger/fabric-chaincode-node/commit/7ce3c34) Update builds for new release-2.2 branch (#225) +* [f71eb0c](https://github.com/hyperledger/fabric-chaincode-node/commit/f71eb0c) [FABCN-432](https://jira.hyperledger.org/browse/FABCN-432) - Update class transformer dependency (#213) +* [fc32346](https://github.com/hyperledger/fabric-chaincode-node/commit/fc32346) [FABCN-430](https://jira.hyperledger.org/browse/FABCN-430) Fix type for timestamp.second (#194) (#209) +* [85188f5](https://github.com/hyperledger/fabric-chaincode-node/commit/85188f5) v2.x tutorials updated (#217) +* [05df03f](https://github.com/hyperledger/fabric-chaincode-node/commit/05df03f) [FABCN-435](https://jira.hyperledger.org/browse/FABCN-435) OOM on Large Arg Size (#207) +* [58387e8](https://github.com/hyperledger/fabric-chaincode-node/commit/58387e8) [FABCN-241](https://jira.hyperledger.org/browse/FABCN-241) Remove to.be.ok (#204) +* [c9a1f5d](https://github.com/hyperledger/fabric-chaincode-node/commit/c9a1f5d) [FABCN-433](https://jira.hyperledger.org/browse/FABCN-433) Update typescript and @types/node (#199) +* [eb39270](https://github.com/hyperledger/fabric-chaincode-node/commit/eb39270) [FABCN-422](https://jira.hyperledger.org/browse/FABCN-422) Add release guide (#187) +* [be2ef68](https://github.com/hyperledger/fabric-chaincode-node/commit/be2ef68) Fix: ChaincodeStub.getMspID should be in lowerCamelCASE +* [7de3c12](https://github.com/hyperledger/fabric-chaincode-node/commit/7de3c12) Bump version to 2.2.1 (#184) + ## v2.2.0 Thu 2 Jul 11:40:02 BST 2020 diff --git a/TUTORIAL.md b/TUTORIAL.md index 0e9a028f..3e0aaa1b 100644 --- a/TUTORIAL.md +++ b/TUTORIAL.md @@ -28,8 +28,8 @@ The dependencies of `fabric-contract-api` and `fabric-shim` will be required. "author": "", "license": "Apache-2.0", "dependencies": { - "fabric-contract-api": "^2.2.1-unstable", - "fabric-shim": "^2.2.1-unstable" + "fabric-contract-api": "^2.2.1", + "fabric-shim": "^2.2.1" } } diff --git a/apis/fabric-contract-api/package.json b/apis/fabric-contract-api/package.json index e36ac7d0..e0075de5 100644 --- a/apis/fabric-contract-api/package.json +++ b/apis/fabric-contract-api/package.json @@ -1,7 +1,7 @@ { "name": "fabric-contract-api", - "version": "2.2.1-unstable", - "tag": "unstable", + "version": "2.2.1", + "tag": "latest", "description": "A node.js implementation of Hyperledger Fabric chaincode shim, to allow endorsing peers and user-provided chaincodes to communicate with each other", "main": "index.js", "repository": { @@ -46,7 +46,7 @@ "lines": 100 }, "dependencies": { - "fabric-shim-api": "2.2.1-unstable", + "fabric-shim-api": "2.2.1", "class-transformer": "^0.3.1", "fast-safe-stringify": "^2.0.7", "get-params": "^0.1.2", diff --git a/apis/fabric-shim-api/package.json b/apis/fabric-shim-api/package.json index 52c6f01a..b562e12f 100644 --- a/apis/fabric-shim-api/package.json +++ b/apis/fabric-shim-api/package.json @@ -1,7 +1,7 @@ { "name": "fabric-shim-api", - "version": "2.2.1-unstable", - "tag": "unstable", + "version": "2.2.1", + "tag": "latest", "description": "A node.js API of Hyperledger Fabric chaincode shim, to allow endorsing peers and user-provided chaincodes to communicate with each other", "main": "index.js", "repository": { diff --git a/ci/azure-pipelines.yml b/ci/azure-pipelines.yml index 01a7378c..baaa0bec 100644 --- a/ci/azure-pipelines.yml +++ b/ci/azure-pipelines.yml @@ -296,7 +296,7 @@ stages: workingFile: '$(Agent.TempDirectory)/.npmrc' customEndpoint: 'fabric-chainode-node-npm' - script: | - find $(Pipeline.Workspace)/node-tgz/ -maxdepth 1 -type f -name 'fabric-*.tgz' -exec npm publish {} --tag unstable \; + find $(Pipeline.Workspace)/node-tgz/ -maxdepth 1 -type f -name 'fabric-*.tgz' -exec npm publish {} --tag latest \; displayName: 'npm publish' - job: dockerhub_publish steps: diff --git a/docs/_jsdoc/tutorials/using-chaincodeinterface.md b/docs/_jsdoc/tutorials/using-chaincodeinterface.md index fecca674..8e74ea17 100644 --- a/docs/_jsdoc/tutorials/using-chaincodeinterface.md +++ b/docs/_jsdoc/tutorials/using-chaincodeinterface.md @@ -8,7 +8,7 @@ cd mycc // create a new node project npm init // install fabric-shim at master branch -npm install fabric-shim@2.2.1-unstable +npm install fabric-shim@2.2.1 // or using the released version npm install fabric-shim touch mychaincode.js @@ -68,7 +68,7 @@ Finally, update the "start" script in package.json to "node mychaincode.js": "engineStrict": true, "license": "Apache-2.0", "dependencies": { - "fabric-shim": "2.2.1-unstable" + "fabric-shim": "2.2.1" } } ``` diff --git a/docs/_jsdoc/tutorials/using-contractinterface.md b/docs/_jsdoc/tutorials/using-contractinterface.md index 459fd63c..46ee9f18 100644 --- a/docs/_jsdoc/tutorials/using-contractinterface.md +++ b/docs/_jsdoc/tutorials/using-contractinterface.md @@ -28,8 +28,8 @@ The dependencies of `fabric-contract-api` and `fabric-shim` will be required. "author": "", "license": "Apache-2.0", "dependencies": { - "fabric-contract-api": "^2.2.1-unstable", - "fabric-shim": "^2.2.1-unstable" + "fabric-contract-api": "^2.2.1", + "fabric-shim": "^2.2.1" } } diff --git a/libraries/fabric-shim-crypto/package.json b/libraries/fabric-shim-crypto/package.json index 086243cd..28972e45 100644 --- a/libraries/fabric-shim-crypto/package.json +++ b/libraries/fabric-shim-crypto/package.json @@ -1,7 +1,7 @@ { "name": "fabric-shim-crypto", - "version": "2.2.1-unstable", - "tag": "unstable", + "version": "2.2.1", + "tag": "latest", "description": "A node.js implementation of encryption library for Hyperledger Fabric chaincode shim", "main": "index.js", "repository": { diff --git a/libraries/fabric-shim/package.json b/libraries/fabric-shim/package.json index aef87c7c..3f86864b 100644 --- a/libraries/fabric-shim/package.json +++ b/libraries/fabric-shim/package.json @@ -1,7 +1,7 @@ { "name": "fabric-shim", - "version": "2.2.1-unstable", - "tag": "unstable", + "version": "2.2.1", + "tag": "latest", "description": "A node.js implementation of Hyperledger Fabric chaincode shim, to allow endorsing peers and user-provided chaincodes to communicate with each other", "main": "index.js", "bin": { @@ -59,8 +59,8 @@ "@grpc/proto-loader": "^0.5.4", "@types/node": "^14.0.13", "ajv": "^6.12.2", - "fabric-contract-api": "2.2.1-unstable", - "fabric-shim-api": "2.2.1-unstable", + "fabric-contract-api": "2.2.1", + "fabric-shim-api": "2.2.1", "fs-extra": "^9.0.1", "reflect-metadata": "^0.1.13", "winston": "^3.3.2", diff --git a/package.json b/package.json index fce331c9..208ed311 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fabric-chaincode-node", - "version": "2.2.1-unstable", - "tag": "unstable", + "version": "2.2.1", + "tag": "latest", "description": "fabric-chaincode-node monorepo, built with rush", "testFabricVersion": "master", "testFabricCAVersion": "1.4.4", diff --git a/release_notes/v2.2.1.txt b/release_notes/v2.2.1.txt new file mode 100644 index 00000000..8bac9173 --- /dev/null +++ b/release_notes/v2.2.1.txt @@ -0,0 +1,16 @@ +v2.2.1 +------ + +Release Notes +------------- + +The v2.2.1 release is the LTS version of the fabric-chaincode-node + +- FABCN-430 Wrong type definition for timestamp +- FABCN-435 OutOfMemory with large message sizes + +See the change log for a full list of updates. + +Change Log +---------- +https://github.com/hyperledger/fabric-chaincode-node/blob/release-2.2/CHANGELOG.md#v2.2.1 diff --git a/test/chaincodes/annotations/package.json b/test/chaincodes/annotations/package.json index db86bef9..0a3170a6 100644 --- a/test/chaincodes/annotations/package.json +++ b/test/chaincodes/annotations/package.json @@ -19,8 +19,8 @@ "license": "APACHE-2.0", "dependencies": { "@types/node": "^14.6.4", - "fabric-contract-api": "2.2.1-unstable", - "fabric-shim": "2.2.1-unstable", + "fabric-contract-api": "2.2.1", + "fabric-shim": "2.2.1", "ts-node": "^3.3.0", "tslint": "^5.6.0", "typescript": "^4.0.2" diff --git a/test/chaincodes/clientidentity/package.json b/test/chaincodes/clientidentity/package.json index 6b23b7b1..7f17b955 100644 --- a/test/chaincodes/clientidentity/package.json +++ b/test/chaincodes/clientidentity/package.json @@ -15,7 +15,7 @@ "author": "", "license": "Apache-2.0", "dependencies": { - "fabric-shim": "2.2.1-unstable", - "fabric-contract-api": "2.2.1-unstable" + "fabric-shim": "2.2.1", + "fabric-contract-api": "2.2.1" } } diff --git a/test/chaincodes/crosschaincode/package.json b/test/chaincodes/crosschaincode/package.json index 9914b8fc..845f5b80 100644 --- a/test/chaincodes/crosschaincode/package.json +++ b/test/chaincodes/crosschaincode/package.json @@ -15,7 +15,7 @@ "author": "", "license": "Apache-2.0", "dependencies": { - "fabric-shim": "2.2.1-unstable", - "fabric-contract-api": "2.2.1-unstable" + "fabric-shim": "2.2.1", + "fabric-contract-api": "2.2.1" } } diff --git a/test/chaincodes/crosschaincode2/package.json b/test/chaincodes/crosschaincode2/package.json index 738aa991..8829bd92 100644 --- a/test/chaincodes/crosschaincode2/package.json +++ b/test/chaincodes/crosschaincode2/package.json @@ -15,7 +15,7 @@ "author": "", "license": "Apache-2.0", "dependencies": { - "fabric-shim": "2.2.1-unstable", - "fabric-contract-api": "2.2.1-unstable" + "fabric-shim": "2.2.1", + "fabric-contract-api": "2.2.1" } } diff --git a/test/chaincodes/crud/package.json b/test/chaincodes/crud/package.json index 5d9e6fe5..d3b300ae 100644 --- a/test/chaincodes/crud/package.json +++ b/test/chaincodes/crud/package.json @@ -15,7 +15,7 @@ "author": "", "license": "Apache-2.0", "dependencies": { - "fabric-shim": "2.2.1-unstable", - "fabric-contract-api": "2.2.1-unstable" + "fabric-shim": "2.2.1", + "fabric-contract-api": "2.2.1" } } diff --git a/test/chaincodes/encryption/package.json b/test/chaincodes/encryption/package.json index 27ff1334..3607ae69 100644 --- a/test/chaincodes/encryption/package.json +++ b/test/chaincodes/encryption/package.json @@ -15,8 +15,8 @@ "author": "", "license": "Apache-2.0", "dependencies": { - "fabric-shim": "2.2.1-unstable", - "fabric-contract-api": "2.2.1-unstable", - "fabric-shim-crypto": "2.2.1-unstable" + "fabric-shim": "2.2.1", + "fabric-contract-api": "2.2.1", + "fabric-shim-crypto": "2.2.1" } } diff --git a/test/chaincodes/events/package.json b/test/chaincodes/events/package.json index fe796d64..a043bb5d 100644 --- a/test/chaincodes/events/package.json +++ b/test/chaincodes/events/package.json @@ -15,7 +15,7 @@ "author": "", "license": "Apache-2.0", "dependencies": { - "fabric-shim": "2.2.1-unstable", - "fabric-contract-api": "2.2.1-unstable" + "fabric-shim": "2.2.1", + "fabric-contract-api": "2.2.1" } } diff --git a/test/chaincodes/query/package.json b/test/chaincodes/query/package.json index a4a49317..5c367b9b 100644 --- a/test/chaincodes/query/package.json +++ b/test/chaincodes/query/package.json @@ -15,7 +15,7 @@ "author": "", "license": "Apache-2.0", "dependencies": { - "fabric-shim": "2.2.1-unstable", - "fabric-contract-api": "2.2.1-unstable" + "fabric-shim": "2.2.1", + "fabric-contract-api": "2.2.1" } } diff --git a/test/chaincodes/scenario/package.json b/test/chaincodes/scenario/package.json index b5101881..7252a00c 100644 --- a/test/chaincodes/scenario/package.json +++ b/test/chaincodes/scenario/package.json @@ -15,7 +15,7 @@ "author": "", "license": "Apache-2.0", "dependencies": { - "fabric-shim": "2.2.1-unstable", - "fabric-contract-api": "2.2.1-unstable" + "fabric-shim": "2.2.1", + "fabric-contract-api": "2.2.1" } } diff --git a/test/chaincodes/server/package.json b/test/chaincodes/server/package.json index 40ab3f8b..80686c6e 100644 --- a/test/chaincodes/server/package.json +++ b/test/chaincodes/server/package.json @@ -15,7 +15,7 @@ "author": "", "license": "Apache-2.0", "dependencies": { - "fabric-shim": "2.2.1-unstable", - "fabric-contract-api": "2.2.1-unstable" + "fabric-shim": "2.2.1", + "fabric-contract-api": "2.2.1" } } diff --git a/test/fv/package.json b/test/fv/package.json index da6be1f9..b4a49327 100644 --- a/test/fv/package.json +++ b/test/fv/package.json @@ -1,6 +1,6 @@ { "name": "fvtests", - "version": "2.2.1-unstable", + "version": "2.2.1", "description": "fv tests", "testFabricVersion": "master", "testFabricThirdParty": "0.4.15", @@ -26,10 +26,10 @@ "del": "^3.0.0", "delay": "4.3.0", "eslint": "6.6.0", - "fabric-contract-api": "2.2.1-unstable", - "fabric-shim": "2.2.1-unstable", - "fabric-shim-api": "2.2.1-unstable", - "fabric-shim-crypto": "2.2.1-unstable", + "fabric-contract-api": "2.2.1", + "fabric-shim": "2.2.1", + "fabric-shim-api": "2.2.1", + "fabric-shim-crypto": "2.2.1", "fs-extra": "^9.0.1", "git-rev-sync": "1.12.0", "gulp": "^4.0.0", diff --git a/tools/toolchain/network/docker-compose/docker-compose-base.yaml b/tools/toolchain/network/docker-compose/docker-compose-base.yaml index db705892..5ec0250a 100644 --- a/tools/toolchain/network/docker-compose/docker-compose-base.yaml +++ b/tools/toolchain/network/docker-compose/docker-compose-base.yaml @@ -92,7 +92,7 @@ services: # # bridge network as the peers # # https://docs.docker.com/compose/networking/ - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=node_default - - CORE_CHAINCODE_NODE_RUNTIME=hyperledger/fabric-nodeenv:2.2.1-unstable + - CORE_CHAINCODE_NODE_RUNTIME=hyperledger/fabric-nodeenv:2.2.1 # Allow more time for chaincode container to build on install. - CORE_CHAINCODE_EXECUTETIMEOUT=300s