From c4d319cca55c42d6028792f6ffac08249d3771c9 Mon Sep 17 00:00:00 2001 From: Dominik Nakamura Date: Mon, 11 Jan 2021 17:42:17 +0900 Subject: [PATCH] Add a changelog --- CHANGELOG.md | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++ release.toml | 17 +++++++++++++- 2 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..07f1a41 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,62 @@ + + +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] - ReleaseDate + +### Added + +- Github actions added to run automated tests and lints on each commit. +- Unit tests for all custom (de)serializers ensuring the right in-/output. +- More integration tests, covering almost all requests now. +- Added `.editorconfig` file to allow consistent indenting and other common editor settings. +- Added a `Justfile` (similar to a `Makefile`) that allows to run common tasks and especially code + coverage conveniently. +- A new `connect_with_config` function that allows to customize the client behavior. +- Support for TLS connections. + +### Changed + +- Update readme to show the current code coverage. +- Upgraded to `tokio` **1.0** and all related dependencies. + +### Fixed + +- Corrected a few links in the API docs. +- A required tokio feature was missing as the dev dependencies added it. + +## [0.2.0] + +### Added + +- Most request types implement `Default` for easier request creation. +- Many integration tests. +- Basic usage details in the docs and readme. + +### Changed + +- Parse into more concrete types where possible. For example durations and timestamps are + represented as types from the `chrono` crate instead of strings and integers now. +- Errors are specific now, using `thiserror` instead of `anyhow` allowing to match against the error + and find out what exactly went wrong on a type level. + +### Fixed + +- Various small fixes in request and response types that were found while creating the integration + tests. +- Some links in the API docs were broken, pointing to private items. + +## [0.1.0] + +### Added + +- Initial release. + +[Unreleased]: https://github.com/dnaka91/obws/compare/v0.2.0...HEAD +[0.2.0]: https://github.com/dnaka91/obws/compare/v0.1.0...v0.2.0 +[0.1.0]: https://github.com/dnaka91/obws/releases/tag/v0.1.0 diff --git a/release.toml b/release.toml index 207b84f..5503ff3 100644 --- a/release.toml +++ b/release.toml @@ -8,4 +8,19 @@ no-dev-version = true [[pre-release-replacements]] file = "README.md" search = 'obws = "[a-z0-9\.-]+"' -replace = 'obws = "{{version}}"' \ No newline at end of file +replace = 'obws = "{{version}}"' + +[[pre-release-replacements]] +file = "CHANGELOG.md" +search = '##\s*\[Unreleased\]\s*-\s*ReleaseDate' +replace = ''' +## [Unreleased] - ReleaseDate + +## [{{version}}] - {{date}}''' + +[[pre-release-replacements]] +file = "CHANGELOG.md" +search = '\[Unreleased\]:.+HEAD' +replace = ''' +[Unreleased]: https://github.com/dnaka91/obws/compare/v{{version}}...HEAD +[{{version}}]: https://github.com/dnaka91/obws/compare/v{{prev_version}}...v{{version}}'''