From 358071bfa4c0cbf78c3575906ee4f71dbaa43776 Mon Sep 17 00:00:00 2001 From: Christoph Herzog Date: Sat, 16 Nov 2019 02:24:24 +0100 Subject: [PATCH] Remove deprecated ScalarValue derive This was renamed to GraphQLScalarValue and has been deprecated for a while --- juniper/CHANGELOG.md | 2 ++ juniper/src/lib.rs | 1 - juniper_codegen/src/lib.rs | 6 ------ 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/juniper/CHANGELOG.md b/juniper/CHANGELOG.md index c61c9734..70ba3183 100644 --- a/juniper/CHANGELOG.md +++ b/juniper/CHANGELOG.md @@ -6,6 +6,8 @@ ## Breaking Changes +- Remove deprecated `ScalarValue` custom derive (renamed to GraphQLScalarValue) + - `graphql_union!` macro removed, replaced by `#[graphql_union]` proc macro - ScalarRefValue trait removed diff --git a/juniper/src/lib.rs b/juniper/src/lib.rs index 9f06479b..9062c2a7 100644 --- a/juniper/src/lib.rs +++ b/juniper/src/lib.rs @@ -111,7 +111,6 @@ extern crate uuid; // functionality automatically. pub use juniper_codegen::{ graphql_union, object, GraphQLEnum, GraphQLInputObject, GraphQLObject, GraphQLScalarValue, - ScalarValue, }; // Internal macros are not exported, // but declared at the root to make them easier to use. diff --git a/juniper_codegen/src/lib.rs b/juniper_codegen/src/lib.rs index b2427f7f..f2036079 100644 --- a/juniper_codegen/src/lib.rs +++ b/juniper_codegen/src/lib.rs @@ -106,12 +106,6 @@ pub fn derive_scalar_value(input: TokenStream) -> TokenStream { gen.into() } -#[deprecated(note = "ScalarValue has been renamed to GraphQLScalarValue")] -#[proc_macro_derive(ScalarValue)] -pub fn derive_scalar_value_deprecated(input: TokenStream) -> TokenStream { - derive_scalar_value(input) -} - #[proc_macro_derive(GraphQLScalarValueInternal)] #[doc(hidden)] pub fn derive_scalar_value_internal(input: TokenStream) -> TokenStream {