talira

version (Dart)

Parse, compare and increment semantic versions in Dart

open sourceBSD-3-Clausefree

version is Matthew Barbour's Dart package with a Version class for parsing, comparing and incrementing version numbers that follows the Semantic Versioning spec strictly, including pre-release precedence, in contrast to pub_semver, which departs from the spec in a few places.

Problems it solves

  • compare two app version strings in Flutter to show an update prompt
  • parse a semantic version in Dart
  • bump a version number following semver in a Dart script

Features

  • parse semantic version strings
  • compare versions, including pre-release precedence
  • increment major, minor and patch numbers

Alternatives

The same job

These do what version (Dart) does.

  1. pub_semver Version numbers and version constraints the way pub handles them, in Dart

Compare version (Dart) with the top 3