Releases: almasen/n-digit-token
Releases · almasen/n-digit-token
v2.2.2
v2.2.1
v2.2.0
2.2.0
What's Changed
- Bump jsdom from 16.4.0 to 16.7.0 by @dependabot in #11
- 2.2.0 by @almasen in #14
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 followingnode/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