Releases: bittricky/jackpot-cli
Releases · bittricky/jackpot-cli
1.1.0
Added
- Type safety improvements with TypeScript interfaces and types
- Better error handling with specific error types
- Proper formatting for special lottery balls using brackets
- Input validation for case-insensitive lottery types
Changed
- Improved El Gordo lottery implementation with correct number ranges (1-54)
- Enhanced random number generation using cryptographically secure
node:crypto
module - Updated lottery number formatting to show special balls in brackets (e.g., "1 2 3 4 5 [6]")
- Refactored lottery configurations into a type-safe configuration object
- Improved test error handling with proper TypeScript type guards
Fixed
- El Gordo lottery number range (changed from 0-54 to 1-54)
- Type safety issues in test files
- Unnecessary README updates in GitHub workflow
- Various linting issues and code style improvements
Developer Experience
- Added proper type annotations throughout the codebase
- Improved error messages with more context
- Updated GitHub workflow to prevent unnecessary README updates
- Sorted lottery types and configurations alphabetically for better maintainability
Technical Improvements
- Replaced
Math.random()
with cryptographically securerandomInt
fromnode:crypto
- Added validation for number generation parameters
- Implemented proper type narrowing in error handling
- Organized lottery configurations using TypeScript Record type