Skip to content

Commit

Permalink
Prepare mpd_procol v1.0.0 and mpd_client v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
elomatreb committed Aug 27, 2022
1 parent 4c050ab commit 517b470
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 3 deletions.
25 changes: 25 additions & 0 deletions mpd_client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# 1.0.0 (2022-08-27)

- Redesign the `Command` and `CommandList` traits
- Remove trait seal, you can add your own impls now
- Remove the `Response` trait, response creation is now handled by a method on the respective trait
- Add public functions for constructing `TypedResponseError`s
- Reorganize crate modules
- Commands now live in their own top-level module
- Error types now live in the modules where they are used
- Make `chrono` dependency optional
- Rename `StateChanges` to `ConnectionEvents` and return an enum of possible events.
- Redesign commands to take references to their arguments where necessary instead of taking ownership.
- Add commands for managing song stickers ([#14](https://github.com/elomatreb/mpd_client/pull/14), thanks to JakeStanger).
- Add `Count` command (proposed by pborzenkov in [#15](https://github.com/elomatreb/mpd_client/pull/15)).
- Reimplement `List` command to support type-safe grouping.
- Bug fixes:
- Missing `CommandList` impl for tuples of size 4
- Missing argument rendering on `GetPlaylist` commnad
- Other API changes:
- Clean up crate reexports. Now simply reexports the entire `mpd_protocol` crate as `protocol`.
- Add `Client::is_connection_closed`
- `Status` response: Don't suppress the `default` partition name
- `AlbumArt` response: Expose returned raw data as `BytesMut`
- `Client::album_art`: Return loaded data as `BytesMut`

# 0.7.5

- Add `Ping` command.
Expand Down
4 changes: 2 additions & 2 deletions mpd_client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mpd_client"
version = "0.7.5"
version = "1.0.0"
edition = "2021"
description = "Asynchronous user-friendly MPD client"
repository = "https://github.com/elomatreb/mpd_client"
Expand All @@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
mpd_protocol = { version = "0.13.0", features = ["async"], path = "../mpd_protocol" }
mpd_protocol = { version = "1.0.0", features = ["async"], path = "../mpd_protocol" }
tokio = { version = "1.16.1", features = ["rt", "net", "time", "sync", "macros"] }
tracing = "0.1.35"
chrono = { version = "0.4.11", default-features = false, features = ["std"], optional = true }
Expand Down
9 changes: 9 additions & 0 deletions mpd_protocol/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# 1.0.0 (2022-08-27)

- Redesign and simplify the `Argument` trait
- Make `CommandError` type opaque
- API changes:
- Rename `Frame::get_binary` to `Frame::take_binary`
- Rename `Response::single_frame` to `Response::into_single_frame`
- Remove `Response` root reexport

# 0.13.0 (2021-12-09)

- Redesign connection interface.
Expand Down
2 changes: 1 addition & 1 deletion mpd_protocol/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mpd_protocol"
version = "0.13.0"
version = "1.0.0"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "Implementation of MPD client protocol"
Expand Down

0 comments on commit 517b470

Please sign in to comment.