dart_bump 1.0.7 copy "dart_bump: ^1.0.7" to clipboard
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 BranchNameGenerator for generating branch names from a CHANGELOG entry.
    • New implementation OpenAIBranchNameGenerator using OpenAI Chat Completions API.
  • DartBump:

    • Added support for branchNameGenerator and noBranches flags.
    • Added method generateBranchNamesFromChangelog to generate branch names from a changelog entry.
    • Added method resolveBranchNameSuggestions to control branch name generation workflow.
    • Updated bump method to return generated branch names along with version, changelog, and extra files.
  • CLI (bin/dart_bump.dart):

    • Added --no-branches option to skip branch name generation.
    • Integrated branch name generation and printing of suggested branches in the CLI output.
  • Library exports:

    • Exported branch_name_generator.dart from lib/dart_bump.dart.

1.0.6 #

  • Updated README.md:

    • Added a recommended project-standard bump.sh script example for consistent version bumping across teams.
  • Updated pubspec.yaml description to better reflect functionality and integration features.

1.0.5 #

  • CLI (bin/dart_bump.dart):

    • Added CLI options --no-bump, --no-changelog, and --no-extra to control version bumping, changelog generation, and extra file updates respectively.
  • DartBump class (dart_bump_base.dart):

    • Added fields noBump, noChangelog, and noExtra to control skipping version bump, changelog generation, and extra file updates.
    • bumpVersion:
      • Respects noBump flag to skip version increment and logs skip message.
      • Returns tuple (oldVersion, newVersion?) where newVersion is null if bump skipped.
    • updateChangelog:
      • Respects noChangelog flag to skip changelog update and logs skip message.
    • updateExtraFiles:
      • Respects noExtra flag to skip updating extra files and logs skip message.
    • Renamed extractGitPatch to extractGitDiff.
    • Added resolveChangeLogEntry method to encapsulate changelog generation logic respecting noChangelog flag.
    • bump method:
      • Uses resolveChangeLogEntry for changelog generation.
      • Uses bumpVersion and handles noBump case gracefully.
      • Logs appropriate skip messages for all new flags.

1.0.4 #

  • CLI (bin/dart_bump.dart):

    • Added --major, --minor, and --patch options to specify semantic version bump type.
    • Default bump type is patch.
    • Parsed bump type flags and passed resolved VersionBumpType to DartBump.
  • lib/src/dart_bump_base.dart:

    • Added VersionBumpType enum to represent major, minor, and patch version increments.
    • Added versionBumpType field to DartBump to control which semantic version component to bump.
    • Updated version bump logic in bumpPubspecVersion to use versionBumpType for calculating new version.

1.0.3 #

  • Added dryRun mode to DartBump:

    • dryRun flag 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 VERSION field.
    • Added dryRun constructor parameter and field.
    • bumpPatchVersion: skips writing pubspec.yaml if dryRun is true.
    • updateChangelog: skips writing CHANGELOG.md if dryRun is true.
    • updateExtraFiles: skips writing extra files if dryRun is true.
    • bump: logs dry run mode and adjusts logging for skipped writes.
  • CLI (bin/dart_bump.dart):

    • Added -n, --dry-run option to preview changes without modifying files.
  • Shell script bump.sh:

    • Updated example to use dart run bin/dart_bump.dart instead of global activate.

1.0.2 #

  • dart_bump.dart:

    • Added --diff-tag CLI option to specify a Git tag for generating diffs.
  • DartBump:

    • Added gitDiffTag field to specify the Git tag reference for diffs.
    • Updated extractGitPatch to generate diffs from gitDiffTag to HEAD if provided.
    • Added support for special gitDiffTag values last or latest to automatically resolve the highest version Git tag.
    • Added getGitTags method to retrieve all Git tags sorted by version descending.
    • Added getGitLastTag method to return the highest Git tag or null if none exist.

1.0.1 #

  • bin/dart_bump.dart:

    • Added --diff-context CLI option to specify number of context lines for git diff (default 10).
    • Improved parsing of --extra-file option to handle empty values gracefully.
    • Passed clamped gitDiffLinesContext (2 to 100) to DartBump constructor.
  • DartBump:

    • Added gitDiffLinesContext field to control context lines in git diff (default 10).
    • Modified extractGitPatch to include -U<gitDiffLinesContext> argument in git diff command.

1.0.0 #

  • Initial version.

  • args_simple: ^1.1.0

1
likes
160
points
390
downloads

Publisher

unverified uploader

Weekly Downloads

Dart automation tool for safe, consistent version bumps with CHANGELOG generation and Git/OpenAI integration.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

args_simple, path

More

Packages that depend on dart_bump