Releases: yahoo/serialize-javascript
Releases · yahoo/serialize-javascript
Add Space Option
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
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
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