Skip to content

v2.0.0

Compare
Choose a tag to compare
@okuryu okuryu released this 04 Sep 12:13
· 44 commits to master since this release
c65dd4a
  • 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}); // '{}'