app_version_manager 2.1.1
app_version_manager: ^2.1.1 copied to clipboard
A CLI tool to manage version numbers in Flutter apps. Supports major, minor, patch, build, smart auto-increment, and revert operations on pubspec.yaml.
Changelog #
All notable changes to this project will be documented in this file.
2.1.1 - 2026-03-30 #
Added #
- Contributors section in README with GitHub profile avatars, roles, and links.
2.1.0 - 2026-03-30 #
Added #
- Dartdoc comments on all public API elements (classes, methods, constructors, fields) for full pub.dev documentation score.
- Proper
example/example.dartfile demonstrating parsing, incrementing, reverting, and factory usage.
2.0.0 - 2026-03-27 #
Breaking Changes #
- Revert commands now decrement build number along with the target segment (e.g.,
major reverton2.3.4+5now gives1.3.4+4instead of1.3.4+5). This makes increment and revert symmetric inverse operations. - Smart auto-increment (
bump) now resets build to 1 on rollover instead of continuing to increment. For example,1.2.3+99now bumps to1.2.4+1instead of1.2.4+100. - Removed duplicate revert command classes. The factory now reuses the same command classes with the appropriate modifier strategy.
Fixed #
- CLI revert commands were completely broken — the CLI only read
args[0], soversion_bump major revertwas treated asversion_bump major(incrementing instead of reverting). Now all arguments are joined correctly. - Process exited with code 0 on errors —
FormatExceptionwas caught by a handler that did not callexit(1), causing the CLI to report success on failure. All errors now consistently exit with code 1. - Negative version numbers were accepted —
Version.parse("-1.2.3+4")andVersion(-1, 0, 0, 0)would silently create invalid versions. The constructor now validates that all fields are non-negative. - Fixed double-space typo in the invalid command error message.
- Error message now lists revert commands as valid options.
Improved #
- Simplified command architecture by removing 5 redundant revert command classes. The
VersionCommandFactorynow strips the "revert" suffix and delegates to the same command classes, since the modifier (Incrementor vs Revert) already determines the behavior. - Added
LICENSE(MIT) file for pub.dev compliance. - Added
CHANGELOG.mdfor version history tracking. - Renamed library file from
version_manager.darttoapp_version_manager.dartto match package name (pub.dev convention). - Added
repositoryfield topubspec.yaml. - Updated
pubspec.yamldescription for better pub.dev discoverability. - Added
analysis_options.yamlwith recommended lints.
1.0.0+2 2024 #
1.0.0 2024 #
Added #
- Initial release of App Version Manager.
- CLI tool (
version_bump) for managing Flutter app versions. - Supports
major,minor,patch,build, andbump(smart auto-increment) commands. - Reads and updates
pubspec.yamlversion field automatically. - SOLID architecture with Strategy, Command, and Factory patterns.
- Colorful terminal output via Logger utility.
- Comprehensive test suite for incrementor, revert, and command factory.
- Example usage file.