1.3.2 • Published 1 year ago

@sentry/release-parser v1.3.2

Weekly downloads
2,436
License
MIT
Repository
github
Last release
1 year ago

sentry-release-parser

This package implements a release name parser that is used by Sentry.

use sentry_release_parser::Release;

let release = Release::parse("org.example.FooApp@1.0rc1+20200101100").unwrap();
assert_eq!(release.package(), Some("org.example.FooApp"));
assert_eq!(release.version_raw(), "1.0rc1+20200101100");

let version = release.version().unwrap();
assert_eq!(version.major(), 1);
assert_eq!(version.minor(), 0);
assert_eq!(version.patch(), 0);
assert_eq!(version.triple(), (1, 0, 0));
assert_eq!(version.pre(), Some("rc1"));
assert_eq!(version.build_code(), Some("20200101100"));

Features

  • semver: if enabled the version object provides a method to convert it into a semver if it's compatible.
  • serde: turns on serde serialization.

License: Apache-2.0

1.3.2

1 year ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago