Skip to content

Releases: yahoo/serialize-javascript

v3.0.0

16 Feb 13:43
v3.0.0
f5957ee

Choose a tag to compare

  • Introduce support for Infinity (@vthibault, #72)
  • Bump mocha from 7.0.0 to 7.0.1 (#71)
  • Test on Node.js v12 (@okuryu, #70)
  • Bump mocha from 6.2.2 to 7.0.0 (#69)
  • Bump nyc from 14.1.1 to 15.0.0 (#68)

Behavior changes for Infinity

It serializes Infinity values as follows since this version. The result of serialization may be changed if you are passing Infinity values into the serialize-javascript.

v3.x

const serialize = require('serialize-javascript');

serialize({inf: Infinity}); // '{"inf":Infinity}'

v2.x

const serialize = require('serialize-javascript');

serialize({inf: Infinity}); // '{"inf":null}'

v2.1.2

09 Dec 09:20
v2.1.2
6c43b02

Choose a tag to compare

v2.1.1

09 Dec 09:15
v2.1.1
433fc9c

Choose a tag to compare

  • Fix regular expressions Cross-Site Scripting (XSS) vulnerability (see security advisory)
  • Migrate to nyc from istanbul

v2.1.0

04 Sep 12:35
v2.1.0
31c98ad

Choose a tag to compare

v2.0.0

04 Sep 12:13
c65dd4a

Choose a tag to compare

  • re-landed #54 with bump major version (see: #57)

Behavior changes for undefined

It serializes undefined values as follows since this version. The result of serialization may be changed if you are passing undefined values into the serialize-javascript.

v2.x

const serialize = require('serialize-javascript');

serialize({undef: undefined}); // '{"undef":undefined}'

v1.x

const serialize = require('serialize-javascript');

serialize({undef: undefined}); // '{}'

v1.9.1

04 Sep 12:11
9ee6b1c

Choose a tag to compare

  • Revert #54 for breaking changes (see: #57)
  • Bump mocha from 5.2.0 to 6.2.0 (#56)

v1.9.0

29 Aug 12:40
v1.9.0
84ad59b

Choose a tag to compare

  • support serialize undefined (@nqdy666, #54)
  • Update Node.js versions to tests

v1.8.0

20 Aug 12:53
v1.8.0
6eae833

Choose a tag to compare

v1.7.0

16 Apr 12:21
v1.7.0
423a382

Choose a tag to compare

  • Add support for serializing ES6 sets & maps (@pimterry, #45)

Please note that serialization for ES6 Sets & Maps requires support for Array.from (not available in IE or Node < 0.12), or an Array.from polyfill.

v1.6.1

28 Dec 07:36
v1.6.1
35f6480

Choose a tag to compare