From aa7254179f082da96c141053fc7bb6cf98adaec8 Mon Sep 17 00:00:00 2001 From: Billy Chan <30400950+billy1624@users.noreply.github.com> Date: Fri, 31 Dec 2021 00:41:47 +0800 Subject: [PATCH] Prepare for 0.5.0-rc.1 (#404) * docs: edit changelog * test: update examples' sea-orm version * docs: edit changelog --- CHANGELOG.md | 12 +++++++++++- examples/actix4_example/Cargo.toml | 2 +- examples/actix_example/Cargo.toml | 2 +- examples/axum_example/Cargo.toml | 2 +- examples/rocket_example/Cargo.toml | 2 +- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 325c53d8..6bdedc1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## 0.5.0-rc.1 - 2021-12-25 ### Fixed Issues -(Please help fill in) +* Why insert, update, etc return a ActiveModel instead of Model? https://github.com/SeaQL/sea-orm/issues/289 +* Rework `ActiveValue` https://github.com/SeaQL/sea-orm/issues/321 +* Some missing ActiveEnum utilities https://github.com/SeaQL/sea-orm/issues/338 ### Merged PRs * First metric and tracing implementation by @nappa85 in https://github.com/SeaQL/sea-orm/pull/373 @@ -25,6 +27,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/). * PR without clippy warmings in file changed tab by @billy1624 in https://github.com/SeaQL/sea-orm/pull/401 * Rename `sea-strum` lib back to `strum` by @billy1624 in https://github.com/SeaQL/sea-orm/pull/361 +### Breaking Changes +* Insert or update return `Model` instead of `ActiveModel` +* Method `ActiveModelBehavior::after_save` takes `Model` as input instead of `ActiveModel` +* Rename method `sea_orm::unchanged_active_value_not_intended_for_public_use` to `sea_orm::Unchanged` +* Rename method `ActiveValue::unset` to `ActiveValue::not_set` +* Rename method `ActiveValue::is_unset` to `ActiveValue::is_not_set` +* `PartialEq` of `ActiveValue` will also check the equality of state instead of just checking the equality of value + **Full Changelog**: https://github.com/SeaQL/sea-orm/compare/0.4.2...0.5.0 ## 0.4.2 - 2021-12-12 diff --git a/examples/actix4_example/Cargo.toml b/examples/actix4_example/Cargo.toml index c7fea10a..54424550 100644 --- a/examples/actix4_example/Cargo.toml +++ b/examples/actix4_example/Cargo.toml @@ -22,7 +22,7 @@ tracing-subscriber = { version = "0.3", features = ["env-filter"] } [dependencies.sea-orm] path = "../../" # remove this line in your own project -version = "^0.4.0" +version = "^0.5.0-rc.1" features = ["macros", "runtime-actix-native-tls", "debug-print"] default-features = false diff --git a/examples/actix_example/Cargo.toml b/examples/actix_example/Cargo.toml index 36cbf842..1dd00bc8 100644 --- a/examples/actix_example/Cargo.toml +++ b/examples/actix_example/Cargo.toml @@ -22,7 +22,7 @@ tracing-subscriber = { version = "0.3", features = ["env-filter"] } [dependencies.sea-orm] path = "../../" # remove this line in your own project -version = "^0.4.0" +version = "^0.5.0-rc.1" features = ["macros", "runtime-async-std-native-tls", "debug-print"] default-features = false diff --git a/examples/axum_example/Cargo.toml b/examples/axum_example/Cargo.toml index 07994151..fd01563d 100644 --- a/examples/axum_example/Cargo.toml +++ b/examples/axum_example/Cargo.toml @@ -23,7 +23,7 @@ tracing-subscriber = { version = "0.3", features = ["env-filter"] } [dependencies.sea-orm] path = "../../" # remove this line in your own project -version = "^0.4.2" +version = "^0.5.0-rc.1" features = ["macros", "runtime-tokio-native-tls", "debug-print"] default-features = false diff --git a/examples/rocket_example/Cargo.toml b/examples/rocket_example/Cargo.toml index ffbb6af2..9b88017f 100644 --- a/examples/rocket_example/Cargo.toml +++ b/examples/rocket_example/Cargo.toml @@ -22,7 +22,7 @@ serde_json = { version = "^1" } [dependencies.sea-orm] path = "../../" # remove this line in your own project -version = "^0.4.0" +version = "^0.5.0-rc.1" features = ["macros", "runtime-tokio-native-tls"] default-features = false