Skip to content

v2.2.0

Compare
Choose a tag to compare
@almasen almasen released this 03 Jan 23:06
· 15 commits to master since this release
4d5566b

2.2.0

What's Changed

Added

  • More robust type system with support for advanced options validation
  • Separate function signatures and JSDocs for different token return types
  • Dedicated test ensuring modulo-bias is avoided
  • New randomDigits alias following node/crypto naming convention
  • Refactor whole package to dedicated, loosely coupled modules
  • Further static tests to ensure type compatibility and safety
  • Upgrade development dependencies
  • Minor fixes and improvements

Changed

  • Exported function signatures to add support for conditional, more advanced type checking and documentation
  • Updated default examples in docs to TypeScript

Fixed

  • Default return type not being recognised as string

Full Changelog: v2.1.1...v2.2.0