From 4750be6aab2e839edba8b97a18d7e2f8c1ee04fe Mon Sep 17 00:00:00 2001 From: harrisob Date: Wed, 9 Dec 2020 08:41:14 -0500 Subject: [PATCH] FABN-1677 Publish v2.2.4 (#393) Publish v2.2.4 from release-2.2 Signed-off-by: Bret Harrison --- CHANGELOG.md | 16 ++++++++ fabric-ca-client/package.json | 2 +- fabric-common/package.json | 2 +- fabric-network/package.json | 2 +- fabric-protos/package.json | 2 +- package.json | 4 +- release_notes/v2.2.4.txt | 73 +++++++++++++++++++++++++++++++++++ 7 files changed, 95 insertions(+), 6 deletions(-) create mode 100644 release_notes/v2.2.4.txt diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e12586d35..7972638240 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +## v2.2.4 +Mon Dec 7 11:59:39 EST 2020 + +* [cfbfd246](https://github.com/hyperledger/fabric-sdk-node/commit/cfbfd246) [FABN-1666](https://jira.hyperledger.org/browse/FABN-1666) Allow HSM identity to be stored (#377) (#392) +* [9d74b641](https://github.com/hyperledger/fabric-sdk-node/commit/9d74b641) [FABN-1667](https://jira.hyperledger.org/browse/FABN-1667) Return payload on chaincode error (#385) (#390) +* [acccd943](https://github.com/hyperledger/fabric-sdk-node/commit/acccd943) [[FABN-1674](https://jira.hyperledger.org/browse/FABN-1674)] Fix wrong type definitions on Discovery Service (#383) (#388) +* [436adbea](https://github.com/hyperledger/fabric-sdk-node/commit/436adbea) [[FABN-1672](https://jira.hyperledger.org/browse/FABN-1672)] Fix wrong type and field names (#381) (#387) +* [2f3a93f9](https://github.com/hyperledger/fabric-sdk-node/commit/2f3a93f9) [[FABN-1670](https://jira.hyperledger.org/browse/FABN-1670)] Fix type definition for DiscoveryResults (#375) (#386) +* [893a8d0c](https://github.com/hyperledger/fabric-sdk-node/commit/893a8d0c) Fix some wrong descriptions in the documents (#376) (#389) +* [34a23347](https://github.com/hyperledger/fabric-sdk-node/commit/34a23347) [[FABN-1669](https://jira.hyperledger.org/browse/FABN-1669)] Fix connection.yaml example in document (#384) +* [c9b0f1cb](https://github.com/hyperledger/fabric-sdk-node/commit/c9b0f1cb) [[FABN-1671](https://jira.hyperledger.org/browse/FABN-1671)] fix target endorser set when service discovery is disabled (#379) (#382) +* [9e5268e7](https://github.com/hyperledger/fabric-sdk-node/commit/9e5268e7) [FABN-1663](https://jira.hyperledger.org/browse/FABN-1663) Allow system chaincodes (#372) (#378) +* [9b0cd48c](https://github.com/hyperledger/fabric-sdk-node/commit/9b0cd48c) [FABN-1660](https://jira.hyperledger.org/browse/FABN-1660) Throw error on missing peers (#366) (#370) +* [173a6f02](https://github.com/hyperledger/fabric-sdk-node/commit/173a6f02) [[FABN-1658](https://jira.hyperledger.org/browse/FABN-1658)] Run builds on ubuntu 20.04 (#371) +* [a5e45dde](https://github.com/hyperledger/fabric-sdk-node/commit/a5e45dde) [[FABN-1662]-](https://jira.hyperledger.org/browse/FABN-1662]-)More informative message (#369) + ## v2.2.3 Thu Oct 22 10:45:24 EDT 2020 diff --git a/fabric-ca-client/package.json b/fabric-ca-client/package.json index 36b4feacb8..3a4ccef8fb 100644 --- a/fabric-ca-client/package.json +++ b/fabric-ca-client/package.json @@ -5,7 +5,7 @@ "hyperledger", "blockchain" ], - "version": "2.2.4-snapshot", + "version": "2.2", "main": "index.js", "scripts": { "test": "nyc mocha --recursive -t 10000" diff --git a/fabric-common/package.json b/fabric-common/package.json index 62eeffafd8..f6cf66c7d8 100644 --- a/fabric-common/package.json +++ b/fabric-common/package.json @@ -1,6 +1,6 @@ { "name": "fabric-common", - "version": "2.2.4-snapshot", + "version": "2.2", "description": "This package encapsulates the common code used by the `fabric-ca-client`, `fabric-network` packages.", "keywords": [ "blockchain", diff --git a/fabric-network/package.json b/fabric-network/package.json index 6144ee2f33..0b8ff32edc 100644 --- a/fabric-network/package.json +++ b/fabric-network/package.json @@ -5,7 +5,7 @@ "hyperledger", "blockchain" ], - "version": "2.2.4-snapshot", + "version": "2.2", "main": "index.js", "repository": { "type": "git", diff --git a/fabric-protos/package.json b/fabric-protos/package.json index c922202900..b8f5b3d6cc 100644 --- a/fabric-protos/package.json +++ b/fabric-protos/package.json @@ -1,6 +1,6 @@ { "name": "fabric-protos", - "version": "2.2.4-snapshot", + "version": "2.2", "description": "Protocol Buffer files and generated JavaScript classes for Hyperledger Fabric", "main": "index.js", "scripts": { diff --git a/package.json b/package.json index a3adf697ec..97268252a0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fabric-sdk-node", - "version": "2.2.4-snapshot", - "tag": "unstable-2.2", + "version": "2.2.4", + "tag": "latest", "main": "index.js", "private": true, "repository": { diff --git a/release_notes/v2.2.4.txt b/release_notes/v2.2.4.txt new file mode 100644 index 0000000000..04170f4bb4 --- /dev/null +++ b/release_notes/v2.2.4.txt @@ -0,0 +1,73 @@ +Release Notes +------------- +This v2.2.4 version is the latest of the v2.2 long-term support (LTS) release +of the fabric-node-sdk packages that support Fabric 2.x, and supersedes previous +v2.x releases. Please see the Fabric LTS release strategy document for more +information on LTS releases: + +https://github.com/hyperledger/fabric-rfcs/blob/master/text/0005-lts-release-strategy.md + +If migrating a client application from an earlier version of the API, consult +the migration tutorial for details of potentially breaking changes and recommended actions: + +https://hyperledger.github.io/fabric-sdk-node/master/tutorial-migration.html + +Changes in v2.2.4: + +- The fabric-network HSM wallet provider will now save HSM private key + handles to provide access to HSM identities across sessions. The PKCS11 key + implementation has been updated to return the string representation of the + HSM private key handle when requesting the private key. + To save an HSM identity: + // enroll as usual + const enrollmentResults = await hsmCAClient.enroll(options); + // from the enrollment results get the info to save + const identity: HsmX509Identity = { + credentials: { + certificate: enrollmentResults.certificate, + privateKey: enrollmentResults.key.toBytes() + }, + mspId: 'org1', + type: 'HSM-X.509', + }; + await wallet.put('bob', identity); + +- The fabric-network query handlers will now include the chaincode result (payload) + in the error object when a chaincode query fails (`transaction.evaluate()`) and + the non "200" success status of the chaincode response includes a payload. + To see the payload: + try { + const results = transaction.evaluate(arg1); + } catch(error) { + console.log('Chaincode results:' + error.payload.toString()); + } + +- Fabric system chaincodes may now be used when the gateway is connected using + the discovery service. The performance enhancement to seed endorsements and + queries only to peers that the discovery service has indicated are running the + requested chaincode will not apply to system chaincodes 'cscc', 'lscc', and 'qscc'. + The discovery service does not show these legacy system chaincodes because they + do not have endorsement policies. + +Major changes from v1.4: + +- The fabric-client package has been removed. Client applications should use + the Fabric Programming Model APIs from the fabric-network package. + +- The underlying APIs that interface with the gRPC layer have been + reimplemented in the fabric-common package and should not be used directly + by client applications. + +- Simplified wallet management, which is portable across SDK languages and + with pluggable persistent storage. More information can be found here: + + https://hyperledger.github.io/fabric-sdk-node/master/tutorial-wallet.html + +- New eventing implementation in fabric-network. Client application code can + listen for block events using Network.addBlockListener(), and listen for + contract events using Contract.addContractListener(). The Network object + also provides capability to listen for transaction commit events, + specifically to support the implementation of custom event handlers. More + information can be found here: + + https://hyperledger.github.io/fabric-sdk-node/master/tutorial-transaction-commit-events.html