v4.0.0
Changelog
Behavior changes for BigInt
It serializes BigInt
values as follows since this version. The result of serialization may be changed if you are passing BigInt
values into the serialize-javascript.
v4.x:
const serialize = require('serialize-javascript');
serialize({big: BigInt('10')}); // '{"big":BigInt("10")}'
v3.x:
const serialize = require('serialize-javascript');
serialize({big: BigInt('10')}); // throws error
Thank you @mum-never-proud for this release.