Skip to content

Commit

Permalink
bump: 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jondot committed Oct 28, 2024
1 parent f4fbc7c commit 43ef503
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 19 deletions.
26 changes: 25 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
# Changelog

## Unreleased
## v0.12.0

This release have been primarily about cleanups and simplification.

Please update:

* `loco-rs`
* `loco-cli`

Changes:

* **generators (BREAKING)**: all prefixes in starters (e.g. `/api`) are now _local to each controller_, and generators will be prefix-aware (`--api` generator will add an `/api` prefix to controllers) [https://github.com/loco-rs/loco/pull/818](https://github.com/loco-rs/loco/pull/818)

To migrate, please move prefixes from `app.rs` to each controller you use in `controllers/`, for example in `notes` controller:

```rust
Routes::new()
.prefix("api/notes")
.add("/", get(list))
```

* **starters**: removed `.devcontainer` which can now be found in [loco-devcontainer](https://github.com/loco-rs/loco-devcontainer)
* **starters**: removed example `notes` scaffold (model, controllers, etc), and unified `user` and `auth` into a single file: `auth.rs`
* **generators**: `scaffold` generator will now generate a CRUD with `PUT` and `PATCH` semantics for updating an entity [https://github.com/loco-rs/loco/issues/896](https://github.com/loco-rs/loco/issues/896)
* **cleanup**: `loco-extras` was moved out of the repo, but we've incorporated `MultiDB` and `ExtraDB` from `extras` into `loco-rs` [https://github.com/loco-rs/loco/pull/917](https://github.com/loco-rs/loco/pull/917)

* `cargo loco doctor` now checks for minimal required SeaORM CLI version
* **BREAKING** Improved migration generator. If you have an existing migration project, add the following comment indicator to the top of the `vec` statement and right below the opening bracked like so in `migration/src/lib.rs`:
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "Apache-2.0"

[package]
name = "loco-rs"
version = "0.11.2"
version = "0.12.0"
description = "The one-person framework for Rust"
homepage = "https://loco.rs/"
documentation = "https://docs.rs/loco-rs"
Expand Down Expand Up @@ -39,7 +39,7 @@ bg_redis = ["dep:rusty-sidekiq", "dep:bb8"]
bg_pg = ["dep:sqlx", "dep:ulid"]

[dependencies]
loco-gen = { version = "0.11.2", path = "./loco-gen" }
loco-gen = { version = "0.12.0", path = "./loco-gen" }
backtrace_printer = { version = "1.3.0" }

# cli
Expand Down
2 changes: 1 addition & 1 deletion loco-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[package]
name = "loco-cli"
version = "0.2.10"
version = "0.12.0"
edition = "2021"
description = "loco cli website generator"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion loco-gen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "loco-gen"
version = "0.11.2"
version = "0.12.0"
description = "Loco generators"
license.workspace = true
edition.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions starters/lightweight-service/Cargo.lock

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

4 changes: 2 additions & 2 deletions starters/lightweight-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ default-run = "loco_starter_template-cli"

[dependencies]

loco-rs = { version = "0.11.2", default-features = false, features = ["cli"] }
loco-rs = { version = "0.12.0", default-features = false, features = ["cli"] }
serde = "1"
serde_json = "1"
tokio = { version = "1.33.0", default-features = false, features = [
Expand All @@ -35,7 +35,7 @@ required-features = []
[dev-dependencies]
serial_test = "3.1.1"
rstest = "0.21.0"
loco-rs = { version = "0.11.2", default-features = false, features = [
loco-rs = { version = "0.12.0", default-features = false, features = [
"testing",
"cli",
] }
Expand Down
4 changes: 2 additions & 2 deletions starters/rest-api/Cargo.lock

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

4 changes: 2 additions & 2 deletions starters/rest-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ default-run = "loco_starter_template-cli"

[dependencies]

loco-rs = { version = "0.11.2" }
loco-rs = { version = "0.12.0" }
migration = { path = "migration" }

serde = { version = "1", features = ["derive"] }
Expand Down Expand Up @@ -46,5 +46,5 @@ required-features = []
[dev-dependencies]
serial_test = "3.1.1"
rstest = "0.21.0"
loco-rs = { version = "0.11.2", features = ["testing"] }
loco-rs = { version = "0.12.0", features = ["testing"] }
insta = { version = "1.34.0", features = ["redactions", "yaml", "filters"] }
2 changes: 1 addition & 1 deletion starters/rest-api/migration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ path = "src/lib.rs"

[dependencies]
async-std = { version = "1", features = ["attributes", "tokio1"] }
loco-rs = { version = "0.11.2" }
loco-rs = { version = "0.12.0" }

[dependencies.sea-orm-migration]
version = "1.1.0"
Expand Down
4 changes: 2 additions & 2 deletions starters/saas/Cargo.lock

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

4 changes: 2 additions & 2 deletions starters/saas/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ default-run = "loco_starter_template-cli"

[dependencies]

loco-rs = { version = "0.11.2" }
loco-rs = { version = "0.12.0" }
migration = { path = "migration" }

serde = { version = "1", features = ["derive"] }
Expand Down Expand Up @@ -51,5 +51,5 @@ required-features = []
[dev-dependencies]
serial_test = "3.1.1"
rstest = "0.21.0"
loco-rs = { version = "0.11.2", features = ["testing"] }
loco-rs = { version = "0.12.0", features = ["testing"] }
insta = { version = "1.34.0", features = ["redactions", "yaml", "filters"] }
2 changes: 1 addition & 1 deletion starters/saas/migration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ path = "src/lib.rs"

[dependencies]
async-std = { version = "1", features = ["attributes", "tokio1"] }
loco-rs = { version = "0.11.2" }
loco-rs = { version = "0.12.0" }

[dependencies.sea-orm-migration]
version = "1.1.0"
Expand Down

0 comments on commit 43ef503

Please sign in to comment.