Skip to content

Releases: unjs/destr

v2.0.3

20 Feb 09:44
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

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

🏡 Chore

❤️ Contributors

v2.0.2

24 Oct 21:34
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

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

❤️ Contributors

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

v2.0.1

02 Aug 22:03
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🔥 Performance

  • Avoid lowercasing long strings (#81) ~> Perf diff: eb60af1

📖 Documentation

  • Correct safeDestr example usage and tests (#75)

🏡 Chore

🎨 Styles

❤️ Contributors

v2.0.0

12 Jun 12:45
@pi0 pi0
Compare
Choose a tag to compare

compare changes

⭐ What is new

  • Destr is now typesafe by default
  • Supporting newly named export safeDestr to throw errors instead of silently ignoring them
  • Faster string handling with fast path
  • [Check The Docs]

Breaking Changes

  • Support generic type with unkown default (#68)
  • Use named destr export (#69)
-- import destr from 'destr'
++ import { destr } from 'destr'

-- const destr = require('destr')
++ const { destr } = require('destr')

🚀 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)

❤️ Contributors