Skip to content

Commit c8f0343

Browse files
committed
Merge pull request #43 from node-modules/v2-fix
feat(hessian 2.0) implement hessian 2.0
2 parents 35ce1df + 523f2de commit c8f0343

80 files changed

Lines changed: 750 additions & 558 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ hessian.js
2525
[download-url]: https://npmjs.org/package/hessian.js
2626

2727
Hessian Serialization [1.0](http://hessian.caucho.com/doc/hessian-1.0-spec.xtp) and
28-
~~[2.0](http://hessian.caucho.com/doc/hessian-serialization.html)~~ (read the real java codes instead) written by pure JavaScript.
28+
[2.0](http://hessian.caucho.com/doc/hessian-serialization.html) (base on version [4.0.7](http://mvnrepository.com/artifact/com.caucho/hessian/4.0.7)) written by pure JavaScript.
2929
Support all kind of types in Java, with [high performance](benchmark/README.md).
3030

3131
## Install

benchmark/decode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var complexObject = {
5050
};
5151

5252
var complexObjectBuf1 = hessian.encode(complexObject, '1.0');
53-
var complexObjectBuf2 = hessian.encode(complexObject, '1.0');
53+
var complexObjectBuf2 = hessian.encode(complexObject, '2.0');
5454

5555
var number1Buf1 = hessian.encode(1, '1.0');
5656
var number1Buf2 = hessian.encode(1, '2.0');

0 commit comments

Comments
 (0)