From 3af31ee154417d0fae67f5b490cbb05626593453 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 30 Oct 2022 19:26:18 +0100 Subject: build: bump versions to 0.4.1 --- CHANGELOG.md | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 2 +- macros/Cargo.toml | 4 ++-- 3 files changed, 52 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f19774..799d342 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,54 @@ ## Unreleased +## v0.4.1 - 2022-10-30 +### Bug Fixes +- remove unused Rust feature flag + +### Build System/Dependency Changes +- bump versions to 0.4.1 + +### Code Refactoring +- add dependency history type +- improve injectable macro error messages +- add Debug implementations for castable factories +- rename DI container binding map to DI container storage +- reduce DI container coupling +- improve internals of macros & add unit tests +- reorganize DI containers +- remove relying on Rust nightly for better handling of features +- clarify binding builder to_factory signature +- improve management of feature specific items +- stop using the async_trait macro for AsyncInjectable +- shorten async binding builder trait bounds + +### Code Testing +- add binding configurator unit tests +- add castable factory unit tests +- add provider unit tests +- add binding builder unit tests +- add more unit tests +- fix the can bind to factory unit tests + +### Documentation Changes +- add sealed notices to DI container interfaces +- add coverage badge +- fix the example usage in the readme +- fix unresolved links to DI container types +- fix spelling mistakes in blocking & async DI containers +- add binding builder examples +- add async binding builder examples +- remove unnecessary feature notices + +### BREAKING CHANGE + +Binding builders & configurators now take dependency history type arguments, the DetectedCircular variant of InjectableError now contains a dependency history field & the injectable traits take dependency history instead of a Vec + +You now have to import the DI containers's interfaces to use the DI containers's methods + +DIContainer, AsyncDIContainer & the binding structs have been relocated + + ## v0.4.0 - 2022-10-01 ### Bug Fixes - prevent problems caused by non send + sync traits @@ -39,6 +87,7 @@ - move some factory function types to type aliases ### Documentation Changes +- add v0.4.0 to changelog - improve item links in the injectable macro - fix unresolved link to TransientPtr - make IFood in async example Send + Sync diff --git a/Cargo.toml b/Cargo.toml index 09ccb46..05d234b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "syrette" -version = "0.4.0" +version = "0.4.1" license = "MIT OR Apache-2.0" authors = ["HampusM "] description = "The convenient dependency injection framework" diff --git a/macros/Cargo.toml b/macros/Cargo.toml index d71971e..9601534 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "syrette_macros" -version = "0.4.0" +version = "0.4.1" license = "MIT OR Apache-2.0" authors = ["HampusM "] description = "Macros for Syrette, the convenient dependency injection framework" @@ -29,6 +29,6 @@ once_cell = "1.13.1" thiserror = "1.0.37" [dev_dependencies] -syrette = { version = "0.4.0", path = "..", features = ["factory"] } +syrette = { version = "0.4.1", path = "..", features = ["factory"] } mockall = "0.11.1" pretty_assertions = "1.3.0" -- cgit v1.2.3-18-g5258