You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: juniper/CHANGELOG.md
+25-21Lines changed: 25 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,17 +71,18 @@ All user visible changes to `juniper` crate will be documented in this file. Thi
71
71
- Removed `as_float_value()`, `as_string_value()` and `as_scalar_value()` methods (use `as_scalar()` method and then `ScalarValue` methods instead).
72
72
-`InputValue` enum: ([#1327])
73
73
- Removed `as_float_value()`, `as_int_value()`, `as_string_value()` and `as_scalar_value()` methods (use `as_scalar()` method and then `ScalarValue` methods instead).
74
-
-`ScalarValue` trait: ([#1327])
75
-
- Switched from `From` conversions to `TryScalarValueTo` conversions.
76
-
- Made to require `TryScalarValueTo` conversions for `bool`, `f64`, `i32`, `String` and `&str` types (could be derived with `#[value(<conversion>)]` attributes of `#[derive(ScalarValue)]` macro).
77
-
- Made to require `TryInto<String>` conversion (could be derived with `derive_more::TryInto`).
78
-
- Made `is_type()` method required and to accept `Any` type.
79
-
- Renamed `as_bool()` method as `try_to_bool()` and made it defined by default as `TryScalarValueTo<bool>` alias.
80
-
- Renamed `as_float()` method as `try_to_float()` and made it defined by default as `TryScalarValueTo<f64>` alias.
81
-
- Renamed `as_int()` method as `try_to_int()` and made it defined by default as `TryScalarValueTo<i32>` alias.
82
-
- Renamed `as_string()` method as `try_to_string()` and made it defined by default as `TryScalarValueTo<String>` alias.
83
-
- Renamed `as_str()` method as `try_as_str()` and made it defined by default as `TryScalarValueTo<&str>` alias.
84
-
- Renamed `into_string()` method as `try_into_string()` and made it defined by default as `TryInto<String>` alias.
74
+
-`ScalarValue` trait:
75
+
- Switched from `From` conversions to `TryToPrimitive` and `FromScalarValue` conversions. ([#1327], [#1329])
76
+
- Made to require `TryToPrimitive` conversions for `bool`, `f64`, `i32`, `String` and `&str` types (could be derived with `#[value(<conversion>)]` attributes of `#[derive(ScalarValue)]` macro). ([#1327], [#1329])
77
+
- Made to require `TryInto<String>` conversion (could be derived with `derive_more::TryInto`). ([#1327])
78
+
- Made `is_type()` method required and to accept `Any` type. ([#1327])
79
+
- Renamed `as_bool()` method as `try_to_bool()` and made it defined by default as `TryToPrimitive<bool>` alias. ([#1327])
80
+
- Renamed `as_float()` method as `try_to_float()` and made it defined by default as `TryToPrimitive<f64>` alias. ([#1327])
81
+
- Renamed `as_int()` method as `try_to_int()` and made it defined by default as `TryToPrimitive<i32>` alias. ([#1327])
82
+
- Renamed `as_string()` method as `try_to_string()` and made it defined by default as `TryToPrimitive<String>` alias. ([#1327])
83
+
- Renamed `as_str()` method as `try_as_str()` and made it defined by default as `TryToPrimitive<&str>` alias. ([#1327])
84
+
- Renamed `into_string()` method as `try_into_string()` and made it defined by default as `TryInto<String>` alias. ([#1327])
85
+
- Required new `downcast_type::<T>()` method (could be derived with `#[derive(ScalarValue)]` macro). ([#1329])
85
86
-`#[derive(ScalarValue)]` macro: ([#1327])
86
87
- Renamed `#[value(as_bool)]` attribute as `#[value(to_bool)]`.
87
88
- Renamed `#[value(as_float)]` attribute as `#[value(to_float)]`.
@@ -90,9 +91,9 @@ All user visible changes to `juniper` crate will be documented in this file. Thi
90
91
- Removed `#[value(into_string)]` attribute.
91
92
- Removed `#[value(allow_missing_attributes)]` attribute (now attributes can always be omitted).
92
93
-`From` and `Display` implementations are not derived anymore (recommended way is to use [`derive_more` crate] for this).
93
-
-`#[derive(GraphQLScalar)]` and `#[graphql_scalar]` macros: ([#1327])
94
-
- Made provided `from_input()` function to accept `ScalarValue` (or anything `TryScalarValueTo`-convertible) directly instead of `InputValue`.
95
-
- Removed `LocalBoxFuture` usage from `http::tests::WsIntegration` trait. ([todo])
94
+
-`#[derive(GraphQLScalar)]` and `#[graphql_scalar]` macros:
95
+
- Made provided `from_input()` function to accept `ScalarValue` (or anything `FromScalarValue`-convertible) directly instead of `InputValue`. ([#1327])
96
+
- Removed `LocalBoxFuture` usage from `http::tests::WsIntegration` trait. ([4b14c015])
96
97
97
98
### Added
98
99
@@ -109,14 +110,16 @@ All user visible changes to `juniper` crate will be documented in this file. Thi
109
110
-`String` scalar implementation for `arcstr::ArcStr`. ([#1247])
110
111
-`String` scalar implementation for `compact_str::CompactString`. ([20609366])
111
112
-`IntoValue` and `IntoInputValue` conversion traits allowing to work around orphan rules with custom `ScalarValue`. ([#1324])
0 commit comments