https://github.com/f3ath/dart-version-manipulation
Extension on pub_semver
https://github.com/f3ath/dart-version-manipulation
dart flutter hacktoberfest semver
Last synced: about 1 year ago
JSON representation
Extension on pub_semver
- Host: GitHub
- URL: https://github.com/f3ath/dart-version-manipulation
- Owner: f3ath
- License: mit
- Created: 2020-07-18T06:56:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-27T02:47:23.000Z (over 2 years ago)
- Last Synced: 2025-04-17T10:26:26.099Z (about 1 year ago)
- Topics: dart, flutter, hacktoberfest, semver
- Language: Dart
- Homepage: https://pub.dev/packages/version_manipulation
- Size: 25.4 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Extension on pub_semver
## Setting a version part
```dart
print(Version.parse('0.1.3+foo.1').change(major: 2, build: ['moo'])); // 2.1.3+moo
```
## Bumping the build part
```dart
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
```