From 312144e473d141d0a9cbc593ce4aa44546303c53 Mon Sep 17 00:00:00 2001 From: Surma Date: Mon, 18 Mar 2024 14:29:16 +0000 Subject: [PATCH 1/4] Prepare v0.14 --- CHANGELOG.md | 5 +++++ graphql_client/Cargo.toml | 4 ++-- graphql_client_cli/Cargo.toml | 6 +++--- graphql_client_codegen/Cargo.toml | 2 +- graphql_query_derive/Cargo.toml | 4 ++-- 5 files changed, 13 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 33d1cd02..e7216a4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## 0.14.0 - 2024-03-18 + +- Add support for GraphQL’s `extend type` directive +- Expose `generate_module_token_stream_from_string` to allow custom macro wrappers + ## 0.13.0 - 2023-05-25 - Add support for `@oneOf` diff --git a/graphql_client/Cargo.toml b/graphql_client/Cargo.toml index ab797f78..76a57b7f 100644 --- a/graphql_client/Cargo.toml +++ b/graphql_client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "graphql_client" -version = "0.13.0" +version = "0.14.0" authors = ["Tom Houlé "] description = "Typed GraphQL requests and responses" repository = "https://github.com/graphql-rust/graphql-client" @@ -19,7 +19,7 @@ serde = { version = "^1.0.78", features = ["derive"] } serde_json = "1.0" # Optional dependencies -graphql_query_derive = { path = "../graphql_query_derive", version = "0.13.0", optional = true } +graphql_query_derive = { path = "../graphql_query_derive", version = "0.14.0", optional = true } reqwest-crate = { package = "reqwest", version = "^0.11", features = ["json"], default-features = false, optional = true } [features] diff --git a/graphql_client_cli/Cargo.toml b/graphql_client_cli/Cargo.toml index 0f0800cd..caee4ffb 100644 --- a/graphql_client_cli/Cargo.toml +++ b/graphql_client_cli/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "graphql_client_cli" description = "The CLI for graphql-client" -version = "0.13.0" +version = "0.14.0" authors = ["Tom Houlé "] license = "Apache-2.0 OR MIT" repository = "https://github.com/graphql-rust/graphql-client" @@ -13,8 +13,8 @@ path = "src/main.rs" [dependencies] reqwest = { version = "^0.11", features = ["json", "blocking"] } -graphql_client = { version = "0.13.0", path = "../graphql_client", default-features = false, features = ["graphql_query_derive", "reqwest-blocking"] } -graphql_client_codegen = { path = "../graphql_client_codegen/", version = "0.13.0" } +graphql_client = { version = "0.14.0", path = "../graphql_client", default-features = false, features = ["graphql_query_derive", "reqwest-blocking"] } +graphql_client_codegen = { path = "../graphql_client_codegen/", version = "0.14.0" } clap = { version = "^3.0", features = ["derive"] } serde = { version = "^1.0", features = ["derive"] } serde_json = "^1.0" diff --git a/graphql_client_codegen/Cargo.toml b/graphql_client_codegen/Cargo.toml index 4e11cdd7..a8d03e77 100644 --- a/graphql_client_codegen/Cargo.toml +++ b/graphql_client_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "graphql_client_codegen" -version = "0.13.0" +version = "0.14.0" authors = ["Tom Houlé "] description = "Utility crate for graphql_client" license = "Apache-2.0 OR MIT" diff --git a/graphql_query_derive/Cargo.toml b/graphql_query_derive/Cargo.toml index 5e263899..11f6e6fd 100644 --- a/graphql_query_derive/Cargo.toml +++ b/graphql_query_derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "graphql_query_derive" -version = "0.13.0" +version = "0.14.0" authors = ["Tom Houlé "] description = "Utility crate for graphql_client" license = "Apache-2.0 OR MIT" @@ -13,4 +13,4 @@ proc-macro = true [dependencies] syn = { version = "^1.0", features = ["extra-traits"] } proc-macro2 = { version = "^1.0", features = [] } -graphql_client_codegen = { path = "../graphql_client_codegen/", version = "0.13.0" } +graphql_client_codegen = { path = "../graphql_client_codegen/", version = "0.14.0" } From 2360c48fbeb70fcdc99e62242679a46b779c42a8 Mon Sep 17 00:00:00 2001 From: Surma Date: Wed, 20 Mar 2024 15:27:36 +0000 Subject: [PATCH 2/4] Update CHANGELOG --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e7216a4f..62c4b27f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,9 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## 0.14.0 - 2024-03-18 +## 0.14.0 - 2024-03-20 - Add support for GraphQL’s `extend type` directive +- Add support for `graphqls://` schema - Expose `generate_module_token_stream_from_string` to allow custom macro wrappers ## 0.13.0 - 2023-05-25 From 3e92fe9c6b200ebfa4904e4ab8aa6da6309b7237 Mon Sep 17 00:00:00 2001 From: Surma Date: Tue, 26 Mar 2024 09:07:42 -0400 Subject: [PATCH 3/4] Update update date --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 62c4b27f..c12aff5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## 0.14.0 - 2024-03-20 +## 0.14.0 - 2024-03-26 - Add support for GraphQL’s `extend type` directive - Add support for `graphqls://` schema From b3bf6b5744d12dd0c8cc9eb1da51bc885a979ee7 Mon Sep 17 00:00:00 2001 From: Surma Date: Tue, 26 Mar 2024 09:17:05 -0400 Subject: [PATCH 4/4] Fix new clippy warning --- graphql_client_codegen/src/query.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/graphql_client_codegen/src/query.rs b/graphql_client_codegen/src/query.rs index cb6695ef..bb2b6318 100644 --- a/graphql_client_codegen/src/query.rs +++ b/graphql_client_codegen/src/query.rs @@ -56,6 +56,7 @@ impl OperationId { #[derive(Debug, Clone, Copy, Hash, PartialEq, Eq, PartialOrd, Ord)] pub(crate) struct ResolvedFragmentId(u32); +#[allow(dead_code)] #[derive(Debug, Clone, Copy)] pub(crate) struct VariableId(u32);