Skip to content

Commit

Permalink
FABN-1432 NodeSDK publish v2 beta.1
Browse files Browse the repository at this point in the history
Updates to publish the v2.0.0 beta

Signed-off-by: Bret Harrison <[email protected]>
  • Loading branch information
harrisob committed Dec 11, 2019
1 parent 11b5a55 commit 7bb78d3
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 13 deletions.
4 changes: 2 additions & 2 deletions fabric-ca-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"hyperledger",
"blockchain"
],
"version": "2.0.0-snapshot",
"tag": "unstable",
"version": "2.0.0-beta.1",
"tag": "beta",
"main": "index.js",
"scripts": {
"test": "nyc mocha --recursive -t 10000"
Expand Down
12 changes: 10 additions & 2 deletions fabric-client/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
## Hyperledger Fabric Client for Node.js
## Hyperledger Fabric Client for Node.js - DEPRECATED

The transactional API's of this package have been replaced by fabric-common.

The chaincode administrative API's of this package will be replaced by fabric-admin.

The channel based administrative API's of this package will not be replaced. Use the
Hyperledger Fabric command line feature for those actions.


[![NPM](https://nodei.co/npm/fabric-client.svg?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/fabric-fabric-client/)

SDK for writing node.js applications to interact with [Hyperledger Fabric](http://hyperledger-fabric.readthedocs.io/en/latest/).

This package encapsulates the APIs to interact with Peers and Orderers of the Fabric network to install and instantiate chaincodes, send transaction invocations and perform chaincode queries.
This package encapsulates the APIs to interact with Peers and Orderers of the Fabric network to install and instantiate chaincodes, send transaction invocations and perform chaincode queries.

Additional packages are also provided:
1. `fabric-ca-client`, to interact with the fabric-ca to manage user certificates.
Expand Down
4 changes: 2 additions & 2 deletions fabric-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"hyperledger",
"blockchain"
],
"version": "2.0.0-snapshot",
"tag": "unstable",
"version": "2.0.0-beta.1",
"tag": "beta",
"main": "index.js",
"scripts": {
"test": "nyc mocha --exclude 'test/data/**/*.js' --recursive -t 10000"
Expand Down
4 changes: 2 additions & 2 deletions fabric-common/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fabric-common",
"version": "2.0.0-snapshot",
"tag": "unstable",
"version": "2.0.0-beta.1",
"tag": "beta",
"description": "This package encapsulates the common code used by the `fabric-ca-client`, `fabric-client` packages.",
"keywords": [
"blockchain",
Expand Down
4 changes: 2 additions & 2 deletions fabric-network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"hyperledger",
"blockchain"
],
"version": "2.0.0-snapshot",
"tag": "unstable",
"version": "2.0.0-beta.1",
"tag": "beta",
"main": "index.js",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions fabric-protos/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fabric-protos",
"version": "2.0.0-snapshot",
"tag": "unstable",
"version": "2.0.0-beta.1",
"tag": "beta",
"description": "Protocol Buffer files and generated JavaScript classes for Hyperledger Fabric",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fabric-sdk-node",
"version": "2.0.0-snapshot",
"version": "2.0.0-beta.1",
"testFabricVersion": "master",
"testFabricThirdParty": "0.4.16",
"docsLatestVersion": "release-1.4",
Expand Down
46 changes: 46 additions & 0 deletions release_notes/v2.0.0-beta.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
Release Notes
-------------
The largest change you'll see is an improved lifecycle for managing chaincode
that supports both centralized and decentralized governance models.
The decentralized chaincode governance model enables organizations to come to
agreement on a chaincode before it is made available for interacting with the
ledger. Specifically, a sufficient number of organizations must approve the
definition of a chaincode before it becomes active, as defined by configurable
policies on a Fabric channel.
https://fabric-sdk-node.github.io/master/tutorial-chaincode-lifecycle.html


Bug fixes and documentation improvements.

Breaking Changes
---------------------

CR https://gerrit.hyperledger.org/r/#/c/29360/ delivers breaking changes to the key-value stores and Cryptosuite classes:
- Key-value stores no longer initialize the store within the constructor; there is a seperate (async) `initialize` method that contains the initialize logic.
- Cryptosuite interface is now strictly followed. The `generateKey` method within implementations no longer accepts `ephemeral: true` as an option; the `generateEphemeralKey` method should be used to retrive an ephemeral key.

The 'fabric-client' package transaction based API's will be replace by 'fabric-common'.
'fabric-network' will be refactored to use the new API's of fabric-common.
The 'fabric-client' package chaincode administrative based API's will be replaced by a new
package 'fabric-admin' to be published in the new future.
The 'fabric-client' package channel administrative based API's will not be replaced,
use the Hyperledger Fabric command line feature for those actions.

'fabric-client' package will be removed from v2 of the Fabric node.js SDK.

Known Vulnerabilities
---------------------
none


Resolved Vulnerabilities
------------------------
none


Known Issues & Workarounds
--------------------------


Change Log
----------

0 comments on commit 7bb78d3

Please sign in to comment.