Skip to content

v2.0.0

Compare
Choose a tag to compare
@pi0 pi0 released this 12 Jun 12:45
· 53 commits to main since this release

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