From eddaaedfe9541ac99367a5b17d8ba53edeaa8b52 Mon Sep 17 00:00:00 2001 From: Martin Larralde Date: Fri, 2 Jul 2021 17:27:42 +0200 Subject: [PATCH] Release v0.3.0 --- .github/workflows/publish.yml | 3 +-- CHANGELOG.md | 33 ++++++++++++++++++++++++++++----- Cargo.toml | 2 +- 3 files changed, 30 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b185a44..7b62aa6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,11 +3,10 @@ name: Publish to Crates.io on: push: tags: - - v*.*.* + - "*.*.*" jobs: publish: - needs: publish-derive runs-on: ubuntu-latest environment: Crates.io name: Publish Rust crate diff --git a/CHANGELOG.md b/CHANGELOG.md index 34b9bec..e09f28c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,15 +5,38 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] +[Unreleased]: https://github.com/althonos/packageurl.rs/compare/0.3.0...HEAD + + +## [0.3.0] - 2021-07-02 +[0.3.0] https://github.com/althonos/packageurl.rs/compare/0.2.0...0.3.0 + +### Added +- Optional `Serialize` and `Deserialize` implementations when the `serde` feature is enabled. Closes [#3](https://github.com/althonos/packageurl.rs/issues/3). +- `Display` implementation for `PackageUrl`. Closes [#2](https://github.com/althonos/packageurl.rs/issues/2). +- `PartialEq` implementation for `PackageUrl`. +- `std::error::Error` trait implementation for the `packageurl::Error` type. + +### Changed +- `PackageUrl` does not provide direct access to its fields anymore, only through read-only getters. +- Some `PackageUrl` methods now return a result in case the argument fails to pass validation. + +### Fixed +- Qualifier keys are now properly validated and rejected when they contain invalid characters. + + +## [0.2.0] - 2018-06-14 +[0.2.0]: https://github.com/althonos/packageurl.rs/compare/0.1.0...0.2.0 + ### Fixed -- Update to the new specification with enforces the `pkg` scheme at the start - of every package. +- Update to the new specification with enforces the `pkg` scheme at the start of every package. ### Changed -- Replaced `scheme` field on `PackageUrl` with a field named `ty` (for type) - as scheme now has a constant value of `pkg`. +- Replaced `scheme` field on `PackageUrl` with a field named `ty` (for type) as scheme now has a constant value of `pkg`. + +## [0.1.0] - 2017-04-13 +[0.1.0]: https://github.com/althonos/packageurl.rs/compare/f61ab5c...0.1.0 -## 0.1.0 - 2017-04-13 ### Added - The `PackageUrl` struct with parsing and serializing methods - Test cases based on the PURL specification test suite. diff --git a/Cargo.toml b/Cargo.toml index a1706f0..e2bc1c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "packageurl" -version = "0.2.0" +version = "0.3.0" authors = ["Martin Larralde "] license = "MIT" description = "Rust implementation of the package url specification"