# pub_semver

> Version numbers and version constraints the way pub handles them, in Dart

Source: https://talira.ai/catalog/pub-semver-vry7fakj
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / semantic versioning](https://talira.ai/categories/libraries/semantic-versioning), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^3]

pub_semver is the Dart team's package for parsing and comparing version numbers and version constraints the way the pub package manager does. It follows Semantic Versioning closely, with a few deliberate differences: build suffixes count when ordering versions, pre-releases of a range's upper bound are excluded (so <2.0.0 doesn't allow 2.0.0-beta), and pre-release versions are avoided when a stable one fits. It has Version, VersionConstraint and VersionRange types with operations such as intersect and union. It lives in the dart-lang/tools repository and is under the BSD-3-Clause licence.

## Links

- GitHub: https://github.com/dart-lang/tools

## Problems it solves

- compare semantic version numbers in Dart
- check whether a version satisfies a constraint like ^1.2.0 in Dart
- resolve package version ranges the same way pub does

## Features

- parses semantic version numbers and constraints
- pub's ordering of build suffixes and pre-releases
- version ranges with intersection and union

## Limitations

- Follows pub's rules, which differ from the Semantic Versioning spec in a few corner cases such as build suffix ordering[^1]

## Trust

Overall: 0.63 out of 1.
Signals: maintenance 1.00, adoption 0.42, momentum 0.17, community 0.99, backing 0.55, extensibility 0.00.

- last commit 3 days ago
- 200 commits in the last 90 days
- latest release api_summary-v1.3.1 3 days ago
- 123 GitHub stars
- 302 contributors
- backed by Google
- funding: public company (NASDAQ:GOOGL)

## Alternatives

- [version (Dart)](https://talira.ai/catalog/version-dart-w7m7amk5.md): Parse, compare and increment semantic versions in Dart

## Sources

[^1]: https://github.com/dart-lang/tools/blob/main/pkgs/pub_semver/README.md (checked 27 Nov 2026)
[^2]: https://github.com/dart-lang/tools/blob/main/pkgs/pub_semver/LICENSE (checked 27 Nov 2026)
[^3]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
