Skip to content

Releases: yahoo/serialize-javascript

Add Space Option

31 May 21:55
Compare
Choose a tag to compare

This minor release adds a space option that passes through to JSON.stringify's space option.

serialize({foo: 'foo'}, 2);
{
  "foo": "foo"
}

Improve Safety with Generated UIDs

09 Sep 17:12
Compare
Choose a tag to compare

There are no known exploits in the wild, but this improves the safety of this package.

This release fixes #5 by using generated UIDs and generated RegExps which use those UIDs making the placeholder token pattern used for serializing functions and regular expressions dynamic and unguessable.


Note: v1.1.0 and v1.1.1 have been unpublished from npm and PR #4 has been reverted because it was a hack and caused more problems than good.

Initial Release

16 Sep 17:38
Compare
Choose a tag to compare

The code in this package began its life as an internal module to express-state. To expand its usefulness, it now lives as serialize-javascript — an independent package on npm.

npm install serialize-javascript