Search packages, repositories and app categories

Package detailsv0.3.0

version_manipulation

Extension on Dart `pub_semver` library. Provides `nextBuild`, `nextPreRelease` and `change`.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
38.6K
Likes
4
Pub points
160

Install package

flutter pub add version_manipulation

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Dart package that extends the `pub_semver` library with convenient methods for version management. It provides `nextBuild`, `nextPreRelease`, and `change` functions to easily increment build numbers, generate next pre-release versions, or modify version components programmatically. Ideal for automating versioning in CI/CD pipelines or build scripts. The package is lightweight and integrates seamlessly with Flutter projects across all major platforms.

Use cases

  • Automating version bumps in CI/CD workflows
  • Generating pre-release versions during development
  • Updating build numbers in app builds
  • Managing version changes in release scripts
  • Simplifying version logic in build tools

Key features

  • Extends pub_semver with useful version operations
  • Provides nextBuild for incrementing build numbers
  • Supports nextPreRelease for pre-release versioning
  • Offers change method to modify specific version parts
  • Lightweight and easy to integrate

Suitable for

  • Developers managing app versioning
  • CI/CD pipeline automation
  • Flutter projects requiring dynamic version handling
  • Teams using semantic versioning practices
  • Build script authors

Considerations

  • Requires pub_semver as a dependency
  • Limited to version string manipulation
  • Not intended for UI or runtime version display
  • Best used in build or script contexts
  • Does not handle version file persistence

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Extension on pub_semver

Setting a version part

print(Version.parse('0.1.3+foo.1').change(major: 2, build: ['moo'])); // 2.1.3+moo

Bumping the build part

print(Version.parse('1.2.3').nextBuild); // 1.2.3+1
print(Version.parse('1.2.3+foo42').nextBuild); // 1.2.3+foo42.1
print(Version.parse('1.2.3+foo.1.2.3.bar').nextBuild); // 1.2.3+foo.2.0.0.bar

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package