Skip to content

Commit

Permalink
Update the changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
bkonkle committed Aug 28, 2024
1 parent 19d24b5 commit 969dc4d
Show file tree
Hide file tree
Showing 13 changed files with 71 additions and 48 deletions.
25 changes: 24 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.23.0]

Major pivot! Until now, Nakago has been aimed at growing into a full-scale API server framework. However, I've realized that the core value of Nakago is the Dependency Injection system, and that it can be used in a wide variety of contexts. This release is a pivot to focus on the DI system itself, and to make it more flexible and easier to use in a variety of contexts.

### Removed

- `nakago` - Removed `Application`, `Hooks`, the `lifecycle::EventType` and `lifecycle::Events` enums. The `config` utilities were moved to `nakago-figment`.
- `nakago-axum` - Removed `AxumApplication`, `Route`, and `Routes` in favor of a more generic approach. Use the new `Inject` extractor to access dependencies in your Axum handlers.
- `nakago-warp` - Removed `WarpApplication`, `Route`, and `Routes` in favor of a more generic approach. Use the `with_injection()` Filter to access dependencies in your Warp handlers.

### Changed

- `nakago` - The tag-based container operations were previously the default mode of working with `Inject`. This proved to be more verbose and than necessary in most cases, however. The new default mode is to use the type-based operations, which are more ergonomic and easier to use. The tag-based operations are still available, but they are now suffixed with `_tag` to make it clear that they are a different mode of operation. The type-based operations are no longer suffixed with `_type`, because they are now the default.
- `nakago` - The `inject` namespace has been promoted to the top level. Where `nakago::inject` was used before, `nakago` should now be the equivalent.
- `nakago` - The `config` utilities were moved to `nakago-figment`.
- `nakago-examples-simple`, `nakago-examples-async-graphql`, `nakago-examples-simple-warp` - Updated with the new approach. See these examples for more information about how to use the tools mentioned above.

### Added

- `nakago-axum` - Added a new `Inject` extractor to access dependencies in your Axum handlers. This is a much more idiomatic way to use Nakago with Axum, and it's more flexible than the previous approach. Use the provided Axum `State` to make the `Inject` container available to your handlers.
- `nakago-figment` - Generic config utilities extracted from the core `nakago` package.

## [0.22.0]

### Changed
Expand Down Expand Up @@ -362,7 +384,8 @@ Expect major changes to the Application and Lifecycle systems going forward, bui
- Injection Providers
- Documentation

[unreleased]: https://github.com/bkonkle/nakago/compare/0.22.0...HEAD
[unreleased]: https://github.com/bkonkle/nakago/compare/0.23.0...HEAD
[0.23.0]: https://github.com/bkonkle/nakago/compare/0.22.0...0.23.0
[0.22.0]: https://github.com/bkonkle/nakago/compare/0.21.0...0.22.0
[0.21.0]: https://github.com/bkonkle/nakago/compare/0.20.0...0.21.0
[0.20.0]: https://github.com/bkonkle/nakago/compare/0.19.1...0.20.0
Expand Down
16 changes: 8 additions & 8 deletions examples/async-graphql/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nakago-examples-async-graphql"
version = "0.30.0"
version = "0.23.0"
authors = ["Brandon Konkle <brandon@konkle.us>"]
edition = "2021"
description = "A lightweight Rust framework for sharp services 😎"
Expand Down Expand Up @@ -33,13 +33,13 @@ figment = { version = "0.10", features = ["env", "toml", "yaml", "json"] }
futures = "0.3"
hyper = "1.0"
log = "0.4"
nakago = "0.30"
nakago-async-graphql = "0.30"
nakago-axum = "0.30"
nakago-derive = "0.30"
nakago-figment = "0.30"
nakago-sea-orm = "0.30"
nakago-ws = "0.30"
nakago = "0.23"
nakago-async-graphql = "0.23"
nakago-axum = "0.23"
nakago-derive = "0.23"
nakago-figment = "0.23"
nakago-sea-orm = "0.23"
nakago-ws = "0.23"
oso = "0.27"
pico-args = "0.5.0"
pretty_env_logger = "0.5"
Expand Down
4 changes: 2 additions & 2 deletions examples/cqrs-es/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nakago-examples-cqrs-es"
version = "0.30.0"
version = "0.23.0"
authors = ["Brandon Konkle <brandon@konkle.us>"]
edition = "2021"
description = "A lightweight Rust framework for sharp services 😎"
Expand All @@ -17,7 +17,7 @@ pretty_env_logger = "0.5"
serde = { version = "1.0", features = ["derive"] }
serde_derive = "1.0"
serde_json = "1.0"
nakago = "0.30"
nakago = "0.23"

[dev-dependencies]
criterion = "0.5"
Expand Down
10 changes: 5 additions & 5 deletions examples/simple-warp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nakago-examples-simple-warp"
version = "0.30.0"
version = "0.23.0"
authors = ["Brandon Konkle <brandon@konkle.us>"]
edition = "2021"
description = "A lightweight Rust framework for sharp services 😎"
Expand All @@ -26,10 +26,10 @@ figment = { version = "0.10", features = ["env", "toml", "yaml", "json"] }
futures = "0.3"
hyper = "1.0"
log = "0.4"
nakago = "0.30"
nakago-figment = "0.30"
nakago-warp = "0.30"
nakago-derive = "0.30"
nakago = "0.23"
nakago-figment = "0.23"
nakago-warp = "0.23"
nakago-derive = "0.23"
pico-args = "0.5.0"
pretty_env_logger = "0.5"
rand = "0.8"
Expand Down
10 changes: 5 additions & 5 deletions examples/simple/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nakago-examples-simple"
version = "0.30.0"
version = "0.23.0"
authors = ["Brandon Konkle <brandon@konkle.us>"]
edition = "2021"
description = "A lightweight Rust framework for sharp services 😎"
Expand All @@ -27,10 +27,10 @@ figment = { version = "0.10", features = ["env", "toml", "yaml", "json"] }
futures = "0.3"
hyper = "1.0"
log = "0.4"
nakago = "0.30"
nakago-axum = "0.30"
nakago-derive = "0.30"
nakago-figment = "0.30"
nakago = "0.23"
nakago-axum = "0.23"
nakago-derive = "0.23"
nakago-figment = "0.23"
pico-args = "0.5.0"
pretty_env_logger = "0.5"
rand = "0.8"
Expand Down
4 changes: 2 additions & 2 deletions nakago/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nakago"
version = "0.30.0"
version = "0.23.0"
authors = ["Brandon Konkle <brandon@konkle.us>"]
edition = "2021"
description = "A lightweight Rust framework for sharp services 😎"
Expand All @@ -18,7 +18,7 @@ derive-new = "0.6"
fnv = "1.0.7"
futures = "0.3.28"
log = "0.4"
nakago-derive = "0.30"
nakago-derive = "0.23"
pretty_env_logger = "0.5"
rand = "0.8"
serde = { version = "1.0", features = ["derive"] }
Expand Down
10 changes: 5 additions & 5 deletions nakago_async_graphql/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nakago-async-graphql"
version = "0.30.0"
version = "0.23.0"
authors = ["Brandon Konkle <brandon@konkle.us>"]
edition = "2021"
description = "An Async-GraphQL integration for Nakago"
Expand Down Expand Up @@ -28,10 +28,10 @@ fake = { version = "2.9", features = [
figment = { version = "0.10", features = ["env"] }
hyper = "1.0"
log = "0.4"
nakago = "0.30"
nakago-axum = "0.30"
nakago-derive = "0.30"
nakago-figment = "0.30"
nakago = "0.23"
nakago-axum = "0.23"
nakago-derive = "0.23"
nakago-figment = "0.23"
pretty_env_logger = "0.5"
rand = "0.8"
reqwest = { version = "0.12", features = ["json"] }
Expand Down
8 changes: 4 additions & 4 deletions nakago_axum/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nakago-axum"
version = "0.30.0"
version = "0.23.0"
authors = ["Brandon Konkle <brandon@konkle.us>"]
edition = "2021"
description = "An Axum HTTP routes integration for Nakago"
Expand Down Expand Up @@ -32,9 +32,9 @@ futures-util = { version = "0.3", default-features = false, features = [
hyper = "1.0"
jsonwebtoken = "9.0"
log = "0.4"
nakago = "0.30"
nakago-derive = "0.30"
nakago-figment = "0.30"
nakago = "0.23"
nakago-derive = "0.23"
nakago-figment = "0.23"
pretty_env_logger = "0.5"
rand = "0.8"
reqwest = { version = "0.12", features = ["json"] }
Expand Down
2 changes: 1 addition & 1 deletion nakago_derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nakago-derive"
version = "0.30.0"
version = "0.23.0"
authors = ["Brandon Konkle <brandon@konkle.us>"]
edition = "2021"
description = "Macros for nakago"
Expand Down
6 changes: 3 additions & 3 deletions nakago_figment/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nakago-figment"
version = "0.30.0"
version = "0.23.0"
authors = ["Brandon Konkle <brandon@konkle.us>"]
edition = "2021"
description = "Figment config loading utils for Nakago"
Expand All @@ -20,8 +20,8 @@ fake = { version = "2.9", features = [
], git = "https://github.com/cksac/fake-rs.git" }
figment = { version = "0.10", features = ["env", "toml", "yaml", "json"] }
log = "0.4"
nakago = "0.30"
nakago-derive = "0.30"
nakago = "0.23"
nakago-derive = "0.23"
mockall = "0.12"
pretty_env_logger = "0.5"
rand = "0.8"
Expand Down
8 changes: 4 additions & 4 deletions nakago_sea_orm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nakago-sea-orm"
version = "0.30.0"
version = "0.23.0"
authors = ["Brandon Konkle <brandon@konkle.us>"]
edition = "2021"
description = "A SeaORM integration for Nakago"
Expand All @@ -16,9 +16,9 @@ axum = { version = "0.7", features = ["macros"] }
derive-new = "0.6"
figment = { version = "0.10", features = ["env"] }
log = "0.4"
nakago = "0.30"
nakago-derive = "0.30"
nakago-figment = "0.30"
nakago = "0.23"
nakago-derive = "0.23"
nakago-figment = "0.23"
pretty_env_logger = "0.5"
rand = "0.8"
sea-orm = { version = "0.12", features = [
Expand Down
8 changes: 4 additions & 4 deletions nakago_warp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nakago-warp"
version = "0.30.0"
version = "0.23.0"
authors = ["Brandon Konkle <brandon@konkle.us>"]
edition = "2021"
description = "A Warp HTTP routes integration for Nakago"
Expand Down Expand Up @@ -29,9 +29,9 @@ futures-util = { version = "0.3", default-features = false, features = [
hyper = "1.0"
jsonwebtoken = "9.0"
log = "0.4"
nakago = "0.30"
nakago-derive = "0.30"
nakago-figment = "0.30"
nakago = "0.23"
nakago-derive = "0.23"
nakago-figment = "0.23"
pretty_env_logger = "0.5"
rand = "0.8"
reqwest = { version = "0.12", features = ["json"] }
Expand Down
8 changes: 4 additions & 4 deletions nakago_ws/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nakago-ws"
version = "0.30.0"
version = "0.23.0"
authors = ["Brandon Konkle <brandon@konkle.us>"]
edition = "2021"
description = "Websocket utils for Nakago"
Expand All @@ -25,9 +25,9 @@ futures = "0.3"
hyper = "1.0"
jsonwebtoken = "9.0"
log = "0.4"
nakago = "0.30"
nakago-axum = "0.30"
nakago-derive = "0.30"
nakago = "0.23"
nakago-axum = "0.23"
nakago-derive = "0.23"
mockall = "0.12"
pretty_env_logger = "0.5"
rand = "0.8"
Expand Down

0 comments on commit 969dc4d

Please sign in to comment.