Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,31 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog],
and this project adheres to [Semantic Versioning].

## [v0.10.0] - 2024-10-13

### Added

- `http`featureを追加
- `RequestParser::parse_request`を追加
- `http`featureを有効にすると使用可能になります
- エラー型の変更に伴って`Error`型, `ErrorKind`型, `Result`型エイリアスを追加

### Changed

- `RequestParser::parse`などで返されるエラー型を変更
- `ParseError`型から`Error`型へ
- axumを使用したexampleコードを, `http`featureを利用したものに変更

### Removed

- エラー型の変更に伴って`ParseError`型を削除

### For Developers

- GitHub ActionsからNixへの依存を削除
- dev-dependenciesに`futures`crateを追加
- GitHub Actions, Nix Flakesの依存関係を更新

## [v0.9.1] - 2024-09-14

### Added
Expand Down Expand Up @@ -37,6 +62,7 @@ and this project adheres to [Semantic Versioning].

### For Developers

- Cargoの依存関係をDependabotの管理対象から削除
- GitHub Actions, Nix Flakesの依存関係を更新

## [v0.8.3] - 2024-04-13
Expand Down Expand Up @@ -288,6 +314,7 @@ and this project adheres to [Semantic Versioning].
[semantic versioning]: https://semver.org/spec/v2.0.0.html

<!-- Versions -->
[v0.10.0]: https://github.com/H1rono/traq-bot-http-rs/compare/v0.9.1..v0.10.0
[v0.9.1]: https://github.com/H1rono/traq-bot-http-rs/compare/v0.9.0..v0.9.1
[v0.9.0]: https://github.com/H1rono/traq-bot-http-rs/compare/v0.8.3..v0.9.0
[v0.8.3]: https://github.com/H1rono/traq-bot-http-rs/compare/v0.8.2..v0.8.3
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["./.", "examples/*"]

[package]
name = "traq-bot-http"
version = "0.9.1"
version = "0.10.0"
authors = ["H1rono <[email protected]>"]
edition = "2021"
description = "Library to parse POST requests of traQ BOT event"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ traQ BOTのPOSTリクエストをパースするライブラリです。
http = "1.0"
axum = "0.7"
tokio = { version = "1", features = ["full"] }
traq-bot-http = { version = "HEAD", features = ["http"] }
traq-bot-http = { version = "0.10", features = ["http"] }
```

`main.rs`
Expand Down Expand Up @@ -73,7 +73,7 @@ feature | 機能 | バージョン
`uuid` | ペイロードのUUID値が[`uuid::Uuid`](https://docs.rs/uuid/latest/uuid/struct.Uuid.html)型に | [v0.4.0](https://github.com/H1rono/traq-bot-http-rs/releases/tag/v0.4.0)から
`time` | ペイロードのタイムスタンプ値([RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.6))が[`time::OffsetDateTime`](https://docs.rs/time/latest/time/struct.OffsetDateTime.html)型に | [v0.5.0](https://github.com/H1rono/traq-bot-http-rs/releases/tag/v0.5.0)から
`chrono` | ペイロードのタイムスタンプ値が[`chrono::DateTime<chrono::Utc>`](https://docs.rs/chrono/latest/chrono/struct.DateTime.html)型に | [v0.6.0](https://github.com/H1rono/traq-bot-http-rs/releases/tag/v0.6.0)から
`http` | [`http::Request`](https://docs.rs/http/latest/http/request/struct.Request.html)型のサポート | HEAD
`http` | [`http::Request`](https://docs.rs/http/latest/http/request/struct.Request.html)型のサポート | [v0.10.0](https://github.com/H1rono/traq-bot-http-rs/releases/tag/v0.10.0)

※`time`よりも`chrono`の方が優先されます

Expand Down