lossless-json
Advanced tools
Changelog
2.0.6 (2023-02-15)
Changelog
2.0.3 (2022-12-01)
parse
not throwing an exception on illegal characters inside a string, like an unescaped new line.Changelog
2.0.2 (2022-11-17)
parse
throwing a duplicate key error when using built-in property name like toString
as key.Changelog
2.0.1 (2022-10-03)
exports
in package.json
to fix problems with Jest (#243).
Thanks @akphi.Changelog
2.0.0 (2022-09-28)
IMPORTANT: BREAKING CHANGES
Breaking changes:
parse
now throws an error when a duplicate key is encountered.LosslessNumber
class now only supports a string as argument. Use toLosslessNumber
to convert a number into a LosslessNumber in a safe way..type
on LosslessNumber
instances. Please use .isLosslessNumber
instead.Non-breaking changes:
parseNumber
and numberStringifiers
, making it easier to integrate with a BigNumber library, or to write your own logic to turn numeric values into bigint
when needed.bigint
.Date
(turned off by default), see reviveDate
.isInteger
, isNumber
, isSafeNumber
, toSafeNumberOrThrow
, getUnsafeNumberReason
, parseLosslessNumber
, parseNumberAndBigInt
, reviveDate
, isLosslessNumber
, toLosslessNumber
.parse
and stringify
has been improved a lot.Changelog
1.0.5 (2021-07-22)