dart_bump 1.0.3
dart_bump: ^1.0.3 copied to clipboard
Automates Dart project version bumps using Git diffs and AI-generated CHANGELOG entries.
1.0.3 #
-
Added
dryRunmode toDartBump:dryRunflag disables all file writes while performing full computations and Git operations.- When enabled, version bumps and changelog generation are previewed without modifying files.
- Logs indicate skipped file writes for
pubspec.yaml,CHANGELOG.md, and extra files.
-
DartBump:- Added static
VERSIONfield. - Added
dryRunconstructor parameter and field. bumpPatchVersion: skips writingpubspec.yamlifdryRunis true.updateChangelog: skips writingCHANGELOG.mdifdryRunis true.updateExtraFiles: skips writing extra files ifdryRunis true.bump: logs dry run mode and adjusts logging for skipped writes.
- Added static
-
CLI (
bin/dart_bump.dart):- Added
-n, --dry-runoption to preview changes without modifying files.
- Added
-
Shell script
bump.sh:- Updated example to use
dart run bin/dart_bump.dartinstead of global activate.
- Updated example to use
1.0.2 #
-
dart_bump.dart:- Added
--diff-tagCLI option to specify a Git tag for generating diffs.
- Added
-
DartBump:- Added
gitDiffTagfield to specify the Git tag reference for diffs. - Updated
extractGitPatchto generate diffs fromgitDiffTagto HEAD if provided. - Added support for special
gitDiffTagvalueslastorlatestto automatically resolve the highest version Git tag. - Added
getGitTagsmethod to retrieve all Git tags sorted by version descending. - Added
getGitLastTagmethod to return the highest Git tag or null if none exist.
- Added
1.0.1 #
-
bin/dart_bump.dart:- Added
--diff-contextCLI option to specify number of context lines forgit diff(default 10). - Improved parsing of
--extra-fileoption to handle empty values gracefully. - Passed clamped
gitDiffLinesContext(2 to 100) toDartBumpconstructor.
- Added
-
DartBump:- Added
gitDiffLinesContextfield to control context lines ingit diff(default 10). - Modified
extractGitPatchto include-U<gitDiffLinesContext>argument ingit diffcommand.
- Added
1.0.0 #
-
Initial version.
-
args_simple: ^1.1.0