|
2 | 2 |
|
3 | 3 | Github is used for code base management, issues should reported in the [FABCN](https://jira.hyperledger.org/projects/FABCN/issues/) component in JIRA.
|
4 | 4 |
|
5 |
| - |
6 | 5 | ## Summary of Compatibility
|
7 | 6 |
|
8 | 7 | This table shows the summary of the compatibility of the Node modules at versions 1.4 and 2.x, together with the Nodejs runtime they require and the Fabric Peer versions they can communicate with.
|
9 | 8 |
|
10 |
| -| | Peer Connectivity v1.4 | NodeJS | Peer Connectivity v2.x | |
11 |
| -| ------------------------------ | ---------------------- | ------ | ---------------------- | |
12 |
| -| Node modules **v1.4.5** | Yes | 8 | Yes | |
13 |
| -| Node modules **v2.2.x/v2.3.x** | Yes | 12 | Yes | |
14 |
| -| Node modules **v2.4.x** | Yes | 16 | Yes | |
| 9 | +| | Peer Connectivity v1.4 | Supported NodeJS | Peer Connectivity v2.x | |
| 10 | +| ------------------------------ | ---------------------- | ---------------- | ---------------------- | |
| 11 | +| Node modules **v1.4.5** | Yes | 8 | Yes | |
| 12 | +| Node modules **v2.2.x/v2.3.x** | Yes | 12 | Yes | |
| 13 | +| Node modules **v2.4.x** | Yes | 16 | Yes | |
15 | 14 |
|
16 | 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.
|
17 | 16 |
|
18 | 17 | 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.
|
19 | 18 |
|
20 | 19 | The Node modules will connect to the peer whilst running; this is referred to as 'Fabric Peer Connectivity' in the table. For example, whilst the Fabric Peer v1.4 will create a Nodejs 8 runtime, if a Nodejs 12 runtime was configured, the node modules at v2.x still function when connecting to the Fabric Peer v1.4.
|
21 | 20 |
|
| 21 | +### Version 1.4 compatibility with later Nodejs runtimes |
| 22 | + |
22 | 23 | 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.
|
23 | 24 |
|
| 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. |
| 26 | + |
24 | 27 | ## Compatibility
|
25 | 28 |
|
26 | 29 | The key elements are :
|
|
0 commit comments