v3.0.0
- 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}'