obj-serialize

🐆 Simple utility for serializing objects. Lightweight alternative to 'superjson'. Super useful in Next.js Pages Router

MIT License

Downloads
15
Stars
7
Committers
1

Bot releases are hidden (Show)

obj-serialize - v2.1.0 Latest Release

Published by neg4n 8 months ago

What's Changed

[!NOTE]
The object traverse no longer depends on external flattie and nestie__ packages so the whole library is runtime dependency free 🚀

Full Changelog: https://github.com/neg4n/obj-serialize/compare/2.0.0...2.1.0

obj-serialize - v2.0.0

Published by neg4n 8 months ago

BREAKING CHANGE

From now on, the serialize (so also nextServerSideSerialize) does not support serializing Circular References

What else changed?

  • Removed lodash (see #1)
  • Migrated microbundle to tsup (#2)
  • Switched from flatten package to flattie and nestie
  • Fixed ESM and CJS library exports - see https://arethetypeswrong.github.io/?p=obj-serialize%402.0.0
  • Created unit tests for predefined serializers (using Next.js internal helpers for checking whether values are serializable or not)