Skip to content

Release 1.0.0

Latest
Compare
Choose a tag to compare
@nickyout nickyout released this 15 Sep 22:38
· 4 commits to master since this release

Upgrade 0.2.0 to 1.0.0

Number and String instances are now turned into string literals instead of objects. Date instances now resolve to .toISOString(). Functions are now resolved to undefined. Instances with toJSON will now have toJSON called. Numeric values like NaN, Infinity and -Infinity are now resolved to 'null'. All of this is to more narrowly follow the JSON.stringify spec.

The library now uses native JSON.stringify, as it is consistently much faster and practically present in every javascript environment anyway - even in legacy browsers. Properties stringReg and stringReplace have been removed.