From 7d7ea37c084f62f1d7d2a2272c942a8f28f09a4d Mon Sep 17 00:00:00 2001 From: Anton Zherdev Date: Fri, 6 Nov 2026 04:58:23 +0000 Subject: [PATCH] chore: prepare 0.24.0-alpha.2 release Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Q7zEtTUpmxtYWDkuq6uwpY --- CHANGELOG.md | 4 ++-- Cargo.lock | 8 ++++---- reflectapi-cli/Cargo.toml | 4 ++-- reflectapi-demo/clients/python/uv.lock | 2 +- reflectapi-demo/tests/rust/enum_compatibility/Cargo.lock | 6 +++--- reflectapi-demo/tests/rust/field_presence/Cargo.lock | 6 +++--- reflectapi-derive/Cargo.toml | 4 ++-- reflectapi-python-runtime/pyproject.toml | 2 +- .../src/reflectapi_runtime/__init__.py | 2 +- reflectapi-schema/Cargo.toml | 2 +- reflectapi/Cargo.toml | 6 +++--- 11 files changed, 23 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c5edff7b..59c5d9ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,10 @@ # Changelog -## Unreleased +## 0.24.0-alpha.2 ### Fixed -- A generated Rust client keeps the declared type of an optional field in a request-only type. 0.24.0-alpha.1 made such a field `Option` when its generated type has no `Default`, which broke code that sets it. The client only serializes request types, so the field's `#[serde(default)]` needs no `Default`. Fields of types the client deserializes, because they appear in responses or because the configured derives include `Deserialize`, still become `Option`. +- A generated Rust client keeps the declared type of an optional field in a request-only type. 0.24.0-alpha.1 made such a field `Option` when its generated type has no `Default`, which broke code that sets it. The client only serializes request types, so the field's `#[serde(default)]` needs no `Default`. Fields of types the client deserializes, because they appear in responses or because the configured derives include `Deserialize`, still become `Option`. ([#223](https://github.com/thepartly/reflectapi/pull/223)) ## 0.24.0-alpha.1 diff --git a/Cargo.lock b/Cargo.lock index 2f5abcf9..44b5ef25 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1653,7 +1653,7 @@ dependencies = [ [[package]] name = "reflectapi" -version = "0.24.0-alpha.1" +version = "0.24.0-alpha.2" dependencies = [ "anyhow", "axum", @@ -1682,7 +1682,7 @@ dependencies = [ [[package]] name = "reflectapi-cli" -version = "0.24.0-alpha.1" +version = "0.24.0-alpha.2" dependencies = [ "anyhow", "clap", @@ -1746,7 +1746,7 @@ dependencies = [ [[package]] name = "reflectapi-derive" -version = "0.24.0-alpha.1" +version = "0.24.0-alpha.2" dependencies = [ "proc-macro-error", "proc-macro2", @@ -1758,7 +1758,7 @@ dependencies = [ [[package]] name = "reflectapi-schema" -version = "0.24.0-alpha.1" +version = "0.24.0-alpha.2" dependencies = [ "glob", "serde", diff --git a/reflectapi-cli/Cargo.toml b/reflectapi-cli/Cargo.toml index d4242673..e2b7d9e1 100644 --- a/reflectapi-cli/Cargo.toml +++ b/reflectapi-cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "reflectapi-cli" -version = "0.24.0-alpha.1" +version = "0.24.0-alpha.2" edition = "2021" default-run = "reflectapi" @@ -23,7 +23,7 @@ doc = false workspace = true [dependencies] -reflectapi = { path = "../reflectapi", version = "0.24.0-alpha.1", features = ["codegen"] } +reflectapi = { path = "../reflectapi", version = "0.24.0-alpha.2", features = ["codegen"] } rouille = "3" clap = { version = "4.5.3", features = ["derive"] } diff --git a/reflectapi-demo/clients/python/uv.lock b/reflectapi-demo/clients/python/uv.lock index b824cc75..43bad81e 100644 --- a/reflectapi-demo/clients/python/uv.lock +++ b/reflectapi-demo/clients/python/uv.lock @@ -346,7 +346,7 @@ dev = [ [[package]] name = "reflectapi-runtime" -version = "0.24.0a1" +version = "0.24.0a2" source = { editable = "../../../reflectapi-python-runtime" } dependencies = [ { name = "anyio" }, diff --git a/reflectapi-demo/tests/rust/enum_compatibility/Cargo.lock b/reflectapi-demo/tests/rust/enum_compatibility/Cargo.lock index 34a2516a..793d31dd 100644 --- a/reflectapi-demo/tests/rust/enum_compatibility/Cargo.lock +++ b/reflectapi-demo/tests/rust/enum_compatibility/Cargo.lock @@ -348,7 +348,7 @@ dependencies = [ [[package]] name = "reflectapi" -version = "0.24.0-alpha.1" +version = "0.24.0-alpha.2" dependencies = [ "anyhow", "bytes", @@ -366,7 +366,7 @@ dependencies = [ [[package]] name = "reflectapi-derive" -version = "0.24.0-alpha.1" +version = "0.24.0-alpha.2" dependencies = [ "proc-macro-error", "proc-macro2", @@ -387,7 +387,7 @@ dependencies = [ [[package]] name = "reflectapi-schema" -version = "0.24.0-alpha.1" +version = "0.24.0-alpha.2" dependencies = [ "glob", "serde", diff --git a/reflectapi-demo/tests/rust/field_presence/Cargo.lock b/reflectapi-demo/tests/rust/field_presence/Cargo.lock index 90ec38b4..57314b42 100644 --- a/reflectapi-demo/tests/rust/field_presence/Cargo.lock +++ b/reflectapi-demo/tests/rust/field_presence/Cargo.lock @@ -312,7 +312,7 @@ dependencies = [ [[package]] name = "reflectapi" -version = "0.24.0-alpha.1" +version = "0.24.0-alpha.2" dependencies = [ "bytes", "futures-util", @@ -327,7 +327,7 @@ dependencies = [ [[package]] name = "reflectapi-derive" -version = "0.24.0-alpha.1" +version = "0.24.0-alpha.2" dependencies = [ "proc-macro-error", "proc-macro2", @@ -348,7 +348,7 @@ dependencies = [ [[package]] name = "reflectapi-schema" -version = "0.24.0-alpha.1" +version = "0.24.0-alpha.2" dependencies = [ "glob", "serde", diff --git a/reflectapi-derive/Cargo.toml b/reflectapi-derive/Cargo.toml index 5a161718..f7f64614 100644 --- a/reflectapi-derive/Cargo.toml +++ b/reflectapi-derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "reflectapi-derive" -version = "0.24.0-alpha.1" +version = "0.24.0-alpha.2" edition = "2021" license = "Apache-2.0" @@ -22,7 +22,7 @@ workspace = true proc-macro = true [dependencies] -reflectapi-schema = { path = '../reflectapi-schema', version = "0.24.0-alpha.1" } +reflectapi-schema = { path = '../reflectapi-schema', version = "0.24.0-alpha.2" } proc-macro2 = "1.0" quote = "1.0" diff --git a/reflectapi-python-runtime/pyproject.toml b/reflectapi-python-runtime/pyproject.toml index 6b3cde4a..52147cf4 100644 --- a/reflectapi-python-runtime/pyproject.toml +++ b/reflectapi-python-runtime/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "reflectapi-runtime" -version = "0.24.0a1" +version = "0.24.0a2" description = "Runtime library for ReflectAPI Python clients" readme = "README.md" requires-python = ">=3.12" diff --git a/reflectapi-python-runtime/src/reflectapi_runtime/__init__.py b/reflectapi-python-runtime/src/reflectapi_runtime/__init__.py index 1c9a46cf..b659ee03 100644 --- a/reflectapi-python-runtime/src/reflectapi_runtime/__init__.py +++ b/reflectapi-python-runtime/src/reflectapi_runtime/__init__.py @@ -58,7 +58,7 @@ ) from .types import BatchResult, ReflectapiEmpty, ReflectapiInfallible -__version__ = "0.24.0a1" +__version__ = "0.24.0a2" __all__ = [ # Authentication diff --git a/reflectapi-schema/Cargo.toml b/reflectapi-schema/Cargo.toml index b9dd2ef4..15152d5a 100644 --- a/reflectapi-schema/Cargo.toml +++ b/reflectapi-schema/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "reflectapi-schema" -version = "0.24.0-alpha.1" +version = "0.24.0-alpha.2" edition = "2021" license = "Apache-2.0" diff --git a/reflectapi/Cargo.toml b/reflectapi/Cargo.toml index 618c63f8..53988507 100644 --- a/reflectapi/Cargo.toml +++ b/reflectapi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "reflectapi" -version = "0.24.0-alpha.1" +version = "0.24.0-alpha.2" edition = "2021" license = "Apache-2.0" @@ -20,8 +20,8 @@ workspace = true [dependencies] # workspace dependencies -reflectapi-derive = { path = "../reflectapi-derive", version = "0.24.0-alpha.1" } -reflectapi-schema = { path = "../reflectapi-schema", version = "0.24.0-alpha.1", default-features = false } +reflectapi-derive = { path = "../reflectapi-derive", version = "0.24.0-alpha.2" } +reflectapi-schema = { path = "../reflectapi-schema", version = "0.24.0-alpha.2", default-features = false } # mandatory 3rd party dependencies serde = { version = "1.0.197", features = ["derive"] }