From 70ef410dcbf24e0d1b4bfff1d967c94f6509e86c Mon Sep 17 00:00:00 2001 From: tyranron Date: Mon, 2 Dec 2024 18:14:17 +0100 Subject: [PATCH] Add CHANGELOG --- .github/workflows/ci.yml | 18 +++++----- CHANGELOG.md | 78 ++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 2 +- 3 files changed, 89 insertions(+), 9 deletions(-) create mode 100644 CHANGELOG.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b44db09..8614615 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -161,7 +161,11 @@ jobs: release-github: name: release (GitHub) if: ${{ startsWith(github.ref, 'refs/tags/v') }} - needs: ["clippy", "msrv", "rustfmt", "test"] + needs: + - clippy + - msrv + - rustfmt + - test runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -175,11 +179,10 @@ jobs: test "${{ steps.release.outputs.version }}" \ == "$(grep -m1 -e '^version = "' Cargo.toml | cut -d'"' -f2)" - # TODO: Uncomment once CHANGELOG is added. - #- name: Parse CHANGELOG link - # id: changelog - # run: echo "link=${{ github.server_url }}/${{ github.repository }}/blob/v${{ steps.release.outputs.version }}/CHANGELOG.md#$(sed -n '/^## \[${{ steps.release.outputs.version }}\]/{s/^## \[\(.*\)\][^0-9]*\([0-9].*\)/\1--\2/;s/[^0-9a-z-]*//g;p;}' CHANGELOG.md)" - # >> $GITHUB_OUTPUT + - name: Parse CHANGELOG link + id: changelog + run: echo "link=${{ github.server_url }}/${{ github.repository }}/blob/v${{ steps.release.outputs.version }}/CHANGELOG.md#$(sed -n '/^## \[${{ steps.release.outputs.version }}\]/{s/^## \[\(.*\)\][^0-9]*\([0-9].*\)/\1--\2/;s/[^0-9a-z-]*//g;p;}' CHANGELOG.md)" + >> $GITHUB_OUTPUT - name: Create GitHub release uses: softprops/action-gh-release@v1 @@ -187,6 +190,5 @@ jobs: name: ${{ steps.release.outputs.version }} body: | [API docs](https://docs.rs/tigerbeetle-unofficial/${{ steps.release.outputs.version }}) - # TODO: Uncomment once CHANGELOG is added. - # [Changelog](${{ steps.changelog.outputs.link }}) + [Changelog](${{ steps.changelog.outputs.link }}) prerelease: ${{ contains(steps.release.outputs.version, '-') }} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..5f65211 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,78 @@ +`tigerbeetle-unofficial` changelog +================================== + +All user visible changes to `tigerbeetle-unofficial`, `tigerbeetle-unofficial-core` and `tigerbeetle-unofficial-sys` crates will be documented in this file. This project uses [Semantic Versioning 2.0.0]. + + + + +## [0.5.0+0.16.11] · 2024-12-02 +[0.5.0+0.16.11]: /../../tree/v0.5.0%2B0.16.11 + +[Diff](/../../compare/v0.4.1%2B0.15.3...v0.5.0%2B0.16.11) | [Milestone](/../../milestone/1) + +### BC Breaks + +- Upgraded [`tb_client` C library] to [0.16.1 version][tb-0.16.1]. ([#24], [#19], [#18]) +- Removed `concurrency_max` argument from `Client::new()`, `Client::with_callback()` and `Client::with_callback_unchecked()` methods. ([#24], [#19]) +- Replaced `Client::acquire()` and `ClientHandle::acquire()` methods with `Client::packet()` and `Packet::new()`. ([#24], [#19], [#34]) +- Removed `error::AcquirePacketError` type. ([#24], [#19]) + +### Added + +- `TIGERBEETLE_LOG_LEVEL` env var for setting `config-log-level` when building (default is `info`). ([#24], [#19]) +- `QueryFilter` and `query_filter::Raw` types. ([#26]) +- `Client::query_accounts()` and `Client::query_transfers()` methods. ([#26]) + +### Fixed + +- Broken builds inside environments without [Git] (like [Docker] image). ([#23], [#20]) + +[#18]: /../../issues/18 +[#19]: /../../pull/19 +[#20]: /../../issues/20 +[#23]: /../../pull/23 +[#24]: /../../pull/24 +[#26]: /../../pull/26 +[#34]: /../../pull/34 +[tb-0.16.1]: https://github.com/tigerbeetle/tigerbeetle/blob/0.16.11/CHANGELOG.md#tigerbeetle-01611 + + + + +## [0.4.1+0.15.3] · 2024-07-28 +[0.4.1+0.15.3]: /../../tree/v0.4.1%2B0.15.3 + +[Diff](/../../compare/v0.4.0%2B0.15.4...v0.4.1%2B0.15.3) + +See the [release notes][release-0.4.1+0.15.3]. + +[release-0.4.1+0.15.3]: /../../releases/tag/v0.4.1%2B0.15.3 + + + + +## [0.4.0+0.15.3] · 2024-07-13 +[0.4.0+0.15.3]: /../../tree/v0.4.0%2B0.15.4 + +[Diff](/../../compare/v0.3.0%2B0.13.133...v0.4.0%2B0.15.4) + +See the [release notes][release-0.4.0+0.15.3]. + +[release-0.4.0+0.15.3]: /../../releases/tag/v0.4.0%2B0.15.4 + + + + +## [0.3.0+0.13.133] and prior +[0.3.0+0.13.133]: /../../tree/v0.3.0%2B0.13.133 + +See [Git log](/../../compare/a4994b2da3914352b8d64adae0535189b4bc7b27...v0.3.0%2B0.13.133). + + + + +[`tb_client` C library]: https://github.com/tigerbeetle/tigerbeetle/tree/main/src/clients/c +[Docker]: https://www.docker.com +[Git]: https://git-scm.com +[Semantic Versioning 2.0.0]: https://semver.org diff --git a/Cargo.toml b/Cargo.toml index 913edae..e1799b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ description = "Safe high level async bindings to tigerbeetle client library." repository.workspace = true license.workspace = true categories = ["api-bindings", "asynchronous", "database", "finance"] -include = ["/src/**", "/examples/**", "/Cargo.toml", "/LICENSE-*", "README.md"] +include = ["/src/**", "/examples/**", "/Cargo.toml", "/LICENSE-*", "README.md", "CHANGELOG.md"] [features] tokio-rt-multi-thread = ["core/tokio-rt-multi-thread"]