Socket
Socket
Sign inDemoInstall

destr

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

destr - npm Package Versions

23

2.0.3

Diff

Changelog

Source

v2.0.3

compare changes

🩹 Fixes

  • Improve compatibility with runtimes not supporting String.prototype.at() (#102)

🏡 Chore

✅ Tests

❤️ Contributors

pi0
published 2.0.2 •

Changelog

Source

v2.0.2

compare changes

🩹 Fixes

  • Parsing decimals and scientific notation (#94)
  • Avoid fast path with possible escape chars (#89)

📖 Documentation

🏡 Chore

❤️ Contributors

  • Pooya Parsa (@pi0)
  • Kricsleo
  • Nobkd
  • Alexander Lichter (@manniL)
pi0
published 2.0.1 •

Changelog

Source

v2.0.1

compare changes

🔥 Performance

  • Avoid lowercasing long strings (#81)

📖 Documentation

  • Correct safeDestr example usage and tests (#75)

🏡 Chore

🎨 Styles

❤️ Contributors

pi0
published 2.0.0 •

Changelog

Source

v2.0.0

compare changes

🚀 Enhancements

  • ⚠️ Support generic type with unkown default (#68)
  • Show warning when dropping unsafe keys (#57)
  • Support minus infinity (#67)
  • Support safeDestr (#70)
  • Parse double-quoted string with fast path (#71)

🔥 Performance

  • Move common check earlier (5be5732)

💅 Refactors

  • ⚠️ Use named destr export (#69)

🏡 Chore

⚠️ Breaking Changes
  • ⚠️ Support generic type with unkown default (#68)
  • ⚠️ Use named destr export (#69)

❤️ Contributors

pi0
published 1.2.2 •

Changelog

Source

1.2.2 (2022-12-05)

Bug Fixes

  • only purge constructor.prototype keys (#26) (87918d5)
  • support surrounding whitespaces (resolves #21) (639a5df)
pi0
published 1.2.1 •

Changelog

Source

1.2.1 (2022-11-14)

pi0
published 1.2.0 •

Changelog

Source

1.2.0 (2022-10-19)

Features

  • add option strict that throws an error if the input is not valid JSON (#11) (36c7121)
pi0
published 1.1.1 •

Changelog

Source

1.1.1 (2022-04-07)

pi0
published 1.1.0 •

Changelog

Source

1.1.0 (2021-01-21)

Features

pi0
published 1.0.1 •

Changelog

Source

1.0.1 (2020-11-08)

Bug Fixes

  • don't parse numbers if potential to exceed 15 digits (bc8c596)
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc