Skip to content

Commit 0cc0915

Browse files
authored
Pre25 release (#357)
* Update dependencies Signed-off-by: Matthew B White <[email protected]> * Pre2.5 release Update the build to use the prerelease version of the main fabric 2.5 Signed-off-by: Matthew B White <[email protected]> Signed-off-by: Matthew B White <[email protected]>
1 parent bbd5b6f commit 0cc0915

File tree

31 files changed

+135
-69
lines changed

31 files changed

+135
-69
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## v2.5.0
2+
Thu Dec 8 09:19:10 GMT 2022
3+
4+
* [b8cb8d72](https://github.com/hyperledger/fabric-chaincode-node/commit/b8cb8d72) Update dependencies
5+
* [bbd5b6f6](https://github.com/hyperledger/fabric-chaincode-node/commit/bbd5b6f6) Update MAINTAINERS.md (#352)
6+
* [d03fc721](https://github.com/hyperledger/fabric-chaincode-node/commit/d03fc721) Move inactive maintainers to emeritus status
7+
* [37b4256b](https://github.com/hyperledger/fabric-chaincode-node/commit/37b4256b) updated tutorial (#350)
8+
* [78a02ada](https://github.com/hyperledger/fabric-chaincode-node/commit/78a02ada) Add fv test chaincode deploy logging
9+
* [341956d4](https://github.com/hyperledger/fabric-chaincode-node/commit/341956d4) Enabled GHA with template workflow (#343)
10+
* [c02ca323](https://github.com/hyperledger/fabric-chaincode-node/commit/c02ca323) Add in short version docker tag (#342)
11+
* [ffa075ed](https://github.com/hyperledger/fabric-chaincode-node/commit/ffa075ed) added purgePrivateData function with tests
12+
* [501af57a](https://github.com/hyperledger/fabric-chaincode-node/commit/501af57a) Bump version to 2.5.0 (#340)
13+
* [eee58335](https://github.com/hyperledger/fabric-chaincode-node/commit/eee58335) Swap to using the published fabric-protos libraries (#320)
14+
* [ebf16ead](https://github.com/hyperledger/fabric-chaincode-node/commit/ebf16ead) Update README.md
15+
* [838b02fd](https://github.com/hyperledger/fabric-chaincode-node/commit/838b02fd) Bump version to 2.4.2 (#332)
16+
117
## v2.4.2
218
Wed 4 May 2022 11:30:35 BST
319

COMPATIBILITY.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ This table shows the summary of the compatibility of the Node modules at version
1111
| Node modules **v1.4.5** | Yes | 8 | Yes |
1212
| Node modules **v2.2.x/v2.3.x** | Yes | 12 | Yes |
1313
| Node modules **v2.4.x** | Yes | 16 | Yes |
14+
| Node modules **v2.5.x** | Yes | 16 | Yes |
1415

15-
By default a Fabric Peer v1.4 will create a Nodejs v8 runtime, and a Fabric Peer v2.2/2.3 will create a Nodejs 12 runtime. The Fabric v2.4 will create a Nodejs 16 runtime. Whilst these are defaults, the docker image used to host the chaincode and contracts can be altered. Set the environment variable `CORE_CHAINCODE_NODE_RUNTIME` on the peer to the name of the docker image.
16+
17+
By default a Fabric Peer v1.4 will create a Nodejs v8 runtime, and a Fabric Peer v2.2/2.3 will create a Nodejs 12 runtime. The Fabric v2.5 will create a Nodejs 16 runtime. Whilst these are defaults, the docker image used to host the chaincode and contracts can be altered. Set the environment variable `CORE_CHAINCODE_NODE_RUNTIME` on the peer to the name of the docker image.
1618

1719
For example `CORE_CHAINCODE_NODE_RUNTIME=hyperledger/fabric-nodeenv:2.1` will allow the use of the latest Node 12 runtime to be used within a Peer v1.4.
1820

@@ -22,7 +24,7 @@ The Node modules will connect to the peer whilst running; this is referred to as
2224

2325
Note that the `fabric-contract-api` & `fabric-shim` node modules must be at v1.4.5 or greater to work with Node version 12. If you therefore use a contract originally written to work with Fabric 1.4, check the node modules before deploying on Fabric v2.
2426

25-
Also please note that that the v1.4 libraries WILL NOT work with Node16. Unless you configure a different node environment, any chaincode using the v1.4 libraries will need to move to v2.4 before being able to run with a Fabric v2.4 Peer.
27+
Also please note that that the v1.4 libraries WILL NOT work with Node16. Unless you configure a different node environment, any chaincode using the v1.4 libraries will need to move to v2.5 before being able to run with a Fabric v2.4 Peer.
2628

2729
## Compatibility
2830

TUTORIAL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ The dependencies of `fabric-contract-api` and `fabric-shim` will be required.
2828
"author": "",
2929
"license": "Apache-2.0",
3030
"dependencies": {
31-
"fabric-contract-api": "^2.5.0-unstable",
32-
"fabric-shim": "^2.5.0-unstable"
31+
"fabric-contract-api": "^2.5.0",
32+
"fabric-shim": "^2.5.0"
3333
}
3434
}
3535

apis/fabric-contract-api/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fabric-contract-api",
3-
"version": "2.5.0-unstable",
4-
"tag": "unstable",
3+
"version": "2.5.0",
4+
"tag": "latest",
55
"description": "A node.js implementation of Hyperledger Fabric chaincode shim, to allow endorsing peers and user-provided chaincodes to communicate with each other",
66
"main": "index.js",
77
"repository": {
@@ -46,7 +46,7 @@
4646
"lines": 100
4747
},
4848
"dependencies": {
49-
"fabric-shim-api": "2.5.0-unstable",
49+
"fabric-shim-api": "2.5.0",
5050
"class-transformer": "^0.4.0",
5151
"fast-safe-stringify": "^2.1.1",
5252
"get-params": "^0.1.2",

apis/fabric-shim-api/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fabric-shim-api",
3-
"version": "2.5.0-unstable",
4-
"tag": "unstable",
3+
"version": "2.5.0",
4+
"tag": "latest",
55
"description": "A node.js API of Hyperledger Fabric chaincode shim, to allow endorsing peers and user-provided chaincodes to communicate with each other",
66
"main": "index.js",
77
"repository": {

ci/azure-pipelines.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ schedules:
1313
displayName: 'Chaincode Node Nightly Driver'
1414
branches:
1515
include:
16-
- main
16+
- 'release-2.5'
1717

1818
# Trigger on the main branch
1919
# Standard Pull Request and Merge builds
2020
# Any git tag will also trigger a build that should do publishing
2121
trigger:
2222
branches:
2323
include:
24-
- 'main'
24+
- 'release-2.5'
2525
tags:
2626
include:
2727
- '*'
@@ -52,7 +52,7 @@ pool:
5252
#
5353
# Publish to NPM on release builds (they are the github tagged releases)
5454
# Publish to NPM on nightly builds when there is something to build
55-
# the ids will be of the format 2.5.0-unstable.{commitid}
55+
# the ids will be of the format 2.5.0.{commitid}
5656
#
5757
stages:
5858

common/config/rush/command-line.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"name": "start-fabric",
6161
"summary": "Starts local Fabric test network ",
6262
"description": "Run this command to start local Fabric network for testing",
63-
"shellCommand": "rm -rf ./fabric-samples && curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.4.5 1.5.5 -d && cd ./fabric-samples/test-network && ./network.sh down && ./network.sh up createChannel -ca -s couchdb && cd -"
63+
"shellCommand": "./tools/scripts/startFabric.sh"
6464
},
6565
{
6666
"commandKind": "global",

docker/fabric-nodeenv/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fabric-nodeenv",
3-
"version": "2.5.0-unstable",
3+
"version": "2.5.0",
44
"description": "",
55
"main": "docker.js",
66
"scripts": {
@@ -11,6 +11,6 @@
1111
"license": "Apache-2.0",
1212
"dependencies": {
1313
"git-rev-sync": "3.0.1",
14-
"toolchain": "2.5.0-unstable"
14+
"toolchain": "2.5.0"
1515
}
1616
}

docs/_jsdoc/tutorials/using-chaincodeinterface.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cd mycc
88
// create a new node project
99
npm init
1010
// install fabric-shim at main branch
11-
npm install [email protected]-unstable
11+
npm install [email protected]
1212
// or using the released version
1313
npm install fabric-shim
1414
touch mychaincode.js
@@ -68,7 +68,7 @@ Finally, update the "start" script in package.json to "node mychaincode.js":
6868
"engineStrict": true,
6969
"license": "Apache-2.0",
7070
"dependencies": {
71-
"fabric-shim": "2.5.0-unstable"
71+
"fabric-shim": "2.5.0"
7272
}
7373
}
7474
```

docs/_jsdoc/tutorials/using-contractinterface.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ The dependencies of `fabric-contract-api` and `fabric-shim` will be required.
2828
"author": "",
2929
"license": "Apache-2.0",
3030
"dependencies": {
31-
"fabric-contract-api": "^2.5.0-unstable",
32-
"fabric-shim": "^2.5.0-unstable"
31+
"fabric-contract-api": "^2.5.0",
32+
"fabric-shim": "^2.5.0"
3333
}
3434
}
3535

0 commit comments

Comments
 (0)