This is an automated email from the ASF dual-hosted git repository.
huxing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-js.git
The following commit(s) were added to refs/heads/master by this push:
new 403f0c1 refactor README, use npm Semantic Versioning
new 3bbff25 Merge pull request #108 from hufeng/master
403f0c1 is described below
commit 403f0c1921b01496b889b629a5081059c65193c1
Author: hufeng <[email protected]>
AuthorDate: Tue May 21 07:58:37 2019 +0800
refactor README, use npm Semantic Versioning
---
README.md | 24 ++++++++++++++++++------
1 file changed, 18 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index d078ecf..b526a17 100644
--- a/README.md
+++ b/README.md
@@ -47,19 +47,31 @@ When zookeper session expires, it causes the dubbo2.js's
zookeeper client to att
dubbo2.6.3:Support implicit delivery of attachments from provider to consumer,
[#889](https://github.com/apache/incubator-dubbo/issues/889)
[email protected] support the feature.
+```json
+{
+ "dependencies": {
+ "dubbo2.js": ">=2.3.7"
+ }
+}
+```
+
+support the feature.
+
+We synchronize upstream changes
# Getting Started
---
+
```
yarn add dubbo2.js
```
+
# How to Usage?
---
-## [email protected]+
+## >=2.0.4
```typescript
//=====================service.ts==================
@@ -93,7 +105,7 @@ const dubbo = new Dubbo<typeof service>({
({res, err} = await dubbo.service.DemoProvider.echo());
//print {err: null, res: 'pang'}
({res, err} = await dubbo.service.DemoProvider.getUserInfo());
- //status: 'ok', info: { id: '1', name: 'test' }
+ //print {status: 'ok', info: { id: '1', name: 'test' }, err: null}
})();
```
@@ -140,7 +152,7 @@ const dubbo = new Dubbo<typeof service>({
});
```
-##
[[email protected]](https://github.com/dubbo/dubbo2.js/blob/master/README.md#dubbo2js1xxx)
+## <2.0.4
```typescript
import {Dubbo, java, TDubboCallResult} from 'dubbo2.js';
@@ -172,7 +184,7 @@ const errorProvider = ErrorProvider(dubbo);
({res, err} = await demoProvider.echo());
//print {err: null, res: 'pang'}
({res, err} = await demoProvider.getUserInfo());
- //status: 'ok', info: { id: '1', name: 'test' }
+ //print {status: 'ok', info: { id: '1', name: 'test' }}
})();
```
@@ -188,7 +200,7 @@ brew services start zookeeper
yarn run test
#Full link log tracking
-DEBUG=dubbo\* yarn run test
+DEBUG=dubbo* yarn run test
```
# dubbo flow graph