Socket
Socket
Sign inDemoInstall

json-dry

Package Overview
Dependencies
0
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
23Next

2.0.2

Diff

Changelog

Source

2.0.2 (2023-10-05)

  • Add BigInt support
skerit
published 2.0.1 •

Changelog

Source

2.0.1 (2023-01-23)

  • Optimize speed by always setting the root property
  • Optimize speed by removing the class member initializers
  • Optimize the clone methods
  • Store driers & undriers in a map instead of an object
skerit
published 2.0.0 •

Changelog

Source

2.0.0 (2023-01-14)

  • Rewrite serialization & parser logic
  • Store any value that is referred to more than once in a separate root property
skerit
published 1.1.1 •

Changelog

Source

1.1.1 (2022-08-25)

  • Make Dry.parse() add the current path being revived to possible errors
skerit
published 1.1.0 •

Changelog

Source

1.1.0 (2020-11-12)

  • Added whenDone function parameter to the unDry & unDryFunction function calls
  • Fixed infinite loop issue when using Dry.clone() that relies on unDry methods
skerit
published 1.0.12 •

Changelog

Source

1.0.12 (2019-11-22)

  • Simple version boost to fix NPM publish issue
skerit
published 1.0.11 •

Changelog

Source

1.0.11 (2019-11-22)

  • Split up dryReplacer function, added replaceObject function
  • Don't assign regenerated value if it's exactly the same, prevents HTMLCollection errors
  • Fix throwing an error when serializing an invalid date
skerit
published 1.0.10 •

Changelog

Source

1.0.10 (2019-01-31)

  • Add extra constructor checks before drying values with a Date or RegExp class name
  • Fix some recursive issues in the clone() method
  • Fix values not being undried when it's a child of another undried object
  • Fix retrieveFromPath throwing an error when the array contains a number
skerit
published 1.0.9 •

Changelog

Source

1.0.9 (2018-12-06)

  • Also export the walk function
  • Use Namespace.getClassForUndry() methods if available
skerit
published 1.0.8 •

Changelog

Source

1.0.8 (2018-11-09)

  • Fix reviving nested undried classes
  • The unDry static method will receive a second argument: false if used for regular unserializing or true/custom_method_name if used for cloning.
23Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc