Skip to content

v1.2.1 - Code refactoring to modernise codebase

Latest

Choose a tag to compare

@markSmurphy markSmurphy released this 06 Jan 12:51

Change Log

[1.2.1] - January 6th 2026

Changed

  • Added input validation for numeric parameter (0 < n <= 1000)
  • Modernised JavaScript:
    • Updated all var declarations to const/let
    • Converted CommonJS to ES Modules
  • Fixed process.exit() usage
  • Updated ESLint ecmaVersion to 2022
  • Added optional chaining, nullish coalescing, and template literals
  • Replaced getRandomInt() with randomRange()
  • Improved error handling in catch blocks
  • Extract magic numbers to named constants
  • Updated package.json engines.node and check bin value
  • Updated Dependencies

Full Changelog: v1.2.0...v1.2.1