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
}

Libraries

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