From 3b4c9060c0988ae703559d6557726ee34df48665 Mon Sep 17 00:00:00 2001 From: johnmanjiro13 <28798279+johnmanjiro13@users.noreply.github.com> Date: Fri, 17 Nov 2023 14:52:29 +0900 Subject: [PATCH] docs: Add changelog about interface changes --- CHANGELOG.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 43fbd00..5123544 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,24 @@ ## [v0.5.0](https://github.com/johnmanjiro13/tokio-fluent/compare/v0.4.4...v0.5.0) - 2023-11-17 - !feat(client): uds support by @danielsig727 in https://github.com/johnmanjiro13/tokio-fluent/pull/47 +### Breaking Changes +- Removed `new` method from `Client` and added `new_tcp` and `new_unix` methods. + - Removed `addr` option from `Config`. + + +```rust +// Before +let client = Client::new(&Config { + addr: "127.0.0.1:24224".parse().unwrap(), + ..Default::default() +}) + +// After +let client = Client::new_tcp( + "127.0.0.1:24224".parse().unwrap(), + &Config {..Default::default()} +) +``` ## [v0.4.4](https://github.com/johnmanjiro13/tokio-fluent/compare/v0.4.3...v0.4.4) - 2023-10-29 - chore(deps): update actions/checkout action to v4 by @renovate in https://github.com/johnmanjiro13/tokio-fluent/pull/43