next_version 0.1.0
next_version: ^0.1.0 copied to clipboard
A package that determines the next package version by analyzing conventional commits.
A Dart package for calculating the next semantic version based on conventional commits.
package:next_version analyzes commit messages that follow the
Conventional Commits specification and
determines the appropriate semantic version increment automatically.
It is designed for tooling, CI pipelines, and release automation.
Usage #
Compute the next version from a list of commit messages:
import 'package:next_version/next_version.dart';
void main() {
final currentVersion = Version.parse('1.2.3');
const commits = ['feat: add a new feature', 'fix: resolve an issue'];
final nextVersion = currentVersion.nextVersion(commits);
print('🚀 Next version: $nextVersion'); // 1.3.0
}