next_version 0.1.0 copy "next_version: ^0.1.0" to clipboard
next_version: ^0.1.0 copied to clipboard

A package that determines the next package version by analyzing conventional commits.

Package: next_version Publisher: halildurmus.dev Language: Dart License: BSD-3-Clause

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
}
1
likes
160
points
1.31k
downloads

Publisher

verified publisherhalildurmus.dev

Weekly Downloads

A package that determines the next package version by analyzing conventional commits.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

conventional_commit, version

More

Packages that depend on next_version