Repository navigation
v0.2.0
Enhancements and Fixes
This release introduces several enhancements and fixes to the pinger project, focusing on command-line interface improvements, database handling, and overall code robustness.
Command-line interface improvements:
- Added the
commanderpackage to handle command-line options and arguments, providing a more user-friendly interface. - Updated the
mainfunction to parse and handle new command-line options such as--debug,--fresh,--exit,--version, and--load-count.
Database handling improvements:
- Modified the
Pingerconstructor and database initialization to use theloadCountoption for loading a specific number of results. - Updated the
DatabaseServiceto calculate statistics using all successful pings instead of a limited set, ensuring more accurate results.
Utility function addition:
- Added a new utility function
parseSizeto parse size values with optionalkormsuffixes, used for the--load-countoption.
Other improvements:
- Added a check for the
unzipdependency before installing Bun, ensuring all necessary tools are available. - Added the
commanderpackage to the project dependencies.
Commits Included in This Release
- Add commander dependency to package.json
- Add dependency check for unzip before installing Bun
- Implement command-line interface with options for target, debug, and result loading; add parseSize utility for size validation
- Refactor updateStats method to streamline latency handling and improve statistics calculation
- Refactor DatabaseService to enhance latency statistics calculation and improve maxResults accessibility
- Untested auto-update code
What's Changed
- Dev by @lerndmina in #10
- Enhance version bump workflow to explicitly checkout main branch by @lerndmina in #11
Full Changelog: v0.1.1...v0.2.1