superjson

Safely serialize JavaScript expressions to a superset of JSON, which includes Dates, BigInts, and more.

MIT License

Stars
3.9K
Committers
33

Bot releases are hidden (Show)

superjson -

Published by Skn0tt about 3 years ago

  • Support serialization of typed arrays (#155)
superjson -

Published by Skn0tt about 3 years ago

  • Fix bug where null-prototype objects weren't serialised properly (#145)
  • added @PeterDekkers, @goleary as a contributor
  • dependency udpates
superjson -

Published by Skn0tt over 3 years ago

Meta:

  • docs: add ElMassimo as a contributor (#129)
  • docs: add Lxxyx as a contributor (#128)
superjson -

Published by Skn0tt over 3 years ago

  • Fix ESM build (#127, huge thanks to @Lxxyx and @ElMassimo)

Meta:

  • Udpate to husky v5
superjson -

Published by Skn0tt over 3 years ago

  • Revert removal of "debug". We needed it. (#122)
superjson -

Published by Skn0tt over 3 years ago

  • Remove dependency "debug" (#121)
superjson -

Published by Skn0tt over 3 years ago

This release trims down the package size by rewriting "plainer" and removing a whole lot of code along the way (#120).

One of the neccessary changes to do this was to change the representation of referentialEquality. This is not a breaking change, since SuperJSON's output is not considered a public API - but if you depend on it nonetheless, watch out.

This release also removes some schema checks that were performed before deserialisation. They are considererd unneccessary overhead.

superjson -

Published by Skn0tt over 3 years ago

  • Use debug() for warnings (#118)

  • Mention minifier issues in Error (#117)

superjson -

Published by Skn0tt over 3 years ago

  • Fixed accidental breaking change to API
superjson -

Published by Skn0tt over 3 years ago

  • Customize allowed attributes per class (#115)
  • make ambiguous class check a warning (#107)
  • Fix some es5 incompatbilities introduced in v1.5.2 (#110)
  • Exclude Error#stack by default (#111)
  • Fix bug where nested classes weren't transformed (#112)

Meta

  • Add @simonedelmann as contributor
  • Add @samtgarson as contributor
  • Add @markhughes as contributor
superjson -

Published by Skn0tt over 3 years ago

  • Fix a bug where a utility was broken (#100)

  • (meta) Update all deps (#101)

  • (meta) Run only PR CI, to save one run (#102)

superjson -

Published by Skn0tt over 3 years ago

  • Improve Performance by ~99% (#94)
  • Reduce Bundle size by removing lodash (#98)
  • Use TSC for building (#97)
  • Don't set meta if empty (#95)

Thanks to @simonedelmann and @KATT for their incredible help on this one!

superjson -

Published by Skn0tt over 3 years ago

  • Add allowErrorProp(...)(#92)
superjson -

Published by Skn0tt almost 4 years ago

  • Fix broken custom error serialization (#80)

Meta

  • docs: add hasparus as a contributor (#79)
superjson -

Published by Skn0tt almost 4 years ago

  • Added inbuilt support for serializing Error

Meta

  • Added a test for the unknown type (#76, thanks @ftonato)
  • Added @ftonato as a contributor (#77)
superjson -

Published by Skn0tt about 4 years ago

Improve performance by ~15% (#70) by speeding up type checks.
Implemented by @tomhooijenga 🙏

Add support for custom serialisers (#71), e.g. for mongodb's ObjectID.

superjson - v1.2.3

Published by flybayer about 4 years ago

Patches

  • Fix for TypeError: rule.isApplicable is not a function (#67) fb9681e
  • Fix crash when BigInt isn't available (#66) 6d72ddd

https://github.com/blitz-js/superjson/compare/v1.2.2...v1.2.3

superjson - v1.2.2

Published by flybayer about 4 years ago

Patches

  • Fix #62: Not ES5 Compatible (#63) 65f84ad
  • fix: allow undefined but check json property exist (#60) eee7028
  • Fix bug with existing prefixes in PathTree (#59) 0c21683
  • Transform undefined => null (#64) f2a40dd
  • Refactor Transformer to make rules more cohesive (#54) 39307cd

Meta

  • Also run CI on PRs b37581f
  • Update author / contributors (#53) 0e29583
  • docs: add jorisre as a contributor (#61) 6ad2757

https://github.com/blitz-js/superjson/compare/v1.2.1...v1.2.2

superjson - v1.2.1

Published by flybayer about 4 years ago

Patch

  • Fix export of serialize (#51) 6a1626c

https://github.com/blitz-js/superjson/compare/v1.2.0...v1.2.1

superjson - v1.2.0

Published by flybayer about 4 years ago

Minor

  • Add support for reviving symbols (#46) d8fe430
  • Revive classes (#36) fc932c9
  • Serialize Map using a list of pairs (#37) 8e4609a
  • Make return type of parse user-configurable (#44) e959b08
  • Improve documentation plus add section on using with Next.js (#42) d295129
  • Compress paths into tree (#47) f168d2e

Patch

  • Fix for Safari: Replace lookbehind regex with custom algorithm (#50) 6bc183f

Meta

  • Fix all-contributors Badge (#43) d862526

https://github.com/blitz-js/superjson/compare/v1.1.0...v1.2.0