dart_bump 1.0.7
dart_bump: ^1.0.7 copied to clipboard
Dart automation tool for safe, consistent version bumps with CHANGELOG generation and Git/OpenAI integration.
1.0.7 #
-
Added Git branch name suggestion feature:
- New abstract class
BranchNameGeneratorfor generating branch names from a CHANGELOG entry. - New implementation
OpenAIBranchNameGeneratorusing OpenAI Chat Completions API.
- New abstract class
-
DartBump:- Added support for
branchNameGeneratorandnoBranchesflags. - Added method
generateBranchNamesFromChangelogto generate branch names from a changelog entry. - Added method
resolveBranchNameSuggestionsto control branch name generation workflow. - Updated
bumpmethod to return generated branch names along with version, changelog, and extra files.
- Added support for
-
CLI (
bin/dart_bump.dart):- Added
--no-branchesoption to skip branch name generation. - Integrated branch name generation and printing of suggested branches in the CLI output.
- Added
-
Library exports:
- Exported
branch_name_generator.dartfromlib/dart_bump.dart.
- Exported
1.0.6 #
-
Updated
README.md:- Added a recommended project-standard
bump.shscript example for consistent version bumping across teams.
- Added a recommended project-standard
-
Updated
pubspec.yamldescription to better reflect functionality and integration features.
1.0.5 #
-
CLI (
bin/dart_bump.dart):- Added CLI options
--no-bump,--no-changelog, and--no-extrato control version bumping, changelog generation, and extra file updates respectively.
- Added CLI options
-
DartBumpclass (dart_bump_base.dart):- Added fields
noBump,noChangelog, andnoExtrato control skipping version bump, changelog generation, and extra file updates. bumpVersion:- Respects
noBumpflag to skip version increment and logs skip message. - Returns tuple
(oldVersion, newVersion?)wherenewVersionisnullif bump skipped.
- Respects
updateChangelog:- Respects
noChangelogflag to skip changelog update and logs skip message.
- Respects
updateExtraFiles:- Respects
noExtraflag to skip updating extra files and logs skip message.
- Respects
- Renamed
extractGitPatchtoextractGitDiff. - Added
resolveChangeLogEntrymethod to encapsulate changelog generation logic respectingnoChangelogflag. bumpmethod:- Uses
resolveChangeLogEntryfor changelog generation. - Uses
bumpVersionand handlesnoBumpcase gracefully. - Logs appropriate skip messages for all new flags.
- Uses
- Added fields
1.0.4 #
-
CLI (
bin/dart_bump.dart):- Added
--major,--minor, and--patchoptions to specify semantic version bump type. - Default bump type is
patch. - Parsed bump type flags and passed resolved
VersionBumpTypetoDartBump.
- Added
-
lib/src/dart_bump_base.dart:- Added
VersionBumpTypeenum to representmajor,minor, andpatchversion increments. - Added
versionBumpTypefield toDartBumpto control which semantic version component to bump. - Updated version bump logic in
bumpPubspecVersionto useversionBumpTypefor calculating new version.
- Added
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