Skip to content

Commit ce2b831

Browse files
committed
Release 2.3.1
1 parent 14bbbcc commit ce2b831

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

History.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
2.3.1 / 2017-07-25
3+
==================
4+
5+
* fix: skip regExp & Function property (#77)
6+
27
2.3.0 / 2017-07-25
38
==================
49

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hessian.js",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"description": "Hessian Serialization written by pure JavaScript, support all kind of types in Java.",
55
"main": "index.js",
66
"files": [

test/object.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ describe('object.test.js', function () {
736736
obj.set(key, 'hello');
737737
var buf = hessian.encode(obj);
738738
var rs = hessian.decode(buf);
739-
rs.should.eql({ 'KEY': 'hello' });
739+
assert.deepEqual(rs, { 'KEY': 'hello' });
740740
});
741741

742742
it('use obj when name property missing', function() {
@@ -750,7 +750,7 @@ describe('object.test.js', function () {
750750
obj.set(key, 'hello');
751751
var buf = hessian.encode(obj);
752752
var rs = hessian.decode(buf);
753-
rs.should.eql({ '[object Object]': 'hello' });
753+
assert.deepEqual(rs, { '[object Object]': 'hello' });
754754
});
755755

756756
it('enum should use name v2', function() {
@@ -764,7 +764,7 @@ describe('object.test.js', function () {
764764
obj.set(key, 'hello');
765765
var buf = hessian.encode(obj, '2.0');
766766
var rs = hessian.decode(buf, '2.0');
767-
rs.should.eql({ 'KEY': 'hello' });
767+
assert.deepEqual(rs, { 'KEY': 'hello' });
768768
});
769769

770770
});

0 commit comments

Comments
 (0)