Skip to content

Commit e474721

Browse files
committed
Upd CHANGELOG
1 parent 3a9a4ed commit e474721

File tree

2 files changed

+33
-28
lines changed

2 files changed

+33
-28
lines changed

juniper/CHANGELOG.md

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,17 @@ All user visible changes to `juniper` crate will be documented in this file. Thi
7171
- Removed `as_float_value()`, `as_string_value()` and `as_scalar_value()` methods (use `as_scalar()` method and then `ScalarValue` methods instead).
7272
- `InputValue` enum: ([#1327])
7373
- 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])
8585
- `#[derive(ScalarValue)]` macro: ([#1327])
8686
- Renamed `#[value(as_bool)]` attribute as `#[value(to_bool)]`.
8787
- Renamed `#[value(as_float)]` attribute as `#[value(to_float)]`.
@@ -90,9 +90,9 @@ All user visible changes to `juniper` crate will be documented in this file. Thi
9090
- Removed `#[value(into_string)]` attribute.
9191
- Removed `#[value(allow_missing_attributes)]` attribute (now attributes can always be omitted).
9292
- `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])
93+
- `#[derive(GraphQLScalar)]` and `#[graphql_scalar]` macros:
94+
- Made provided `from_input()` function to accept `ScalarValue` (or anything `FromScalarValue`-convertible) directly instead of `InputValue`. ([#1327])
95+
- Removed `LocalBoxFuture` usage from `http::tests::WsIntegration` trait. ([4b14c015])
9696

9797
### Added
9898

@@ -109,14 +109,16 @@ All user visible changes to `juniper` crate will be documented in this file. Thi
109109
- `String` scalar implementation for `arcstr::ArcStr`. ([#1247])
110110
- `String` scalar implementation for `compact_str::CompactString`. ([20609366])
111111
- `IntoValue` and `IntoInputValue` conversion traits allowing to work around orphan rules with custom `ScalarValue`. ([#1324])
112+
- `FromScalarValue` conversion trait. ([#1329])
113+
- `TryToPrimitive` conversion trait aiding `ScalarValue` trait. ([#1327], [#1329])
112114
- `ScalarValue` trait:
113115
- `from_displayable()` method allowing to specialize `ScalarValue` conversion from custom string types. ([#1324], [#819])
114-
- `try_to::<T>()` method defined by default as `TryScalarValueTo<T>` alias. ([#1327])
115-
- `TryScalarValueTo` conversion trait aiding `ScalarValue` trait. ([#1327])
116-
- `#[derive(GraphQLScalar)]` and `#[graphql_scalar]` macros: ([#1327])
117-
- Support for specifying concrete types as input argument in provided `from_input()` function.
118-
- Support for non-`Result` return type in provided `from_input()` function.
119-
- `Scalar` transparent wrapper for aiding type inference in `from_input()` function when input argument is generic `ScalarValue`.
116+
- `try_to::<T>()` method defined by default as `FromScalarValue<T>` alias. ([#1327], [#1329])
117+
- `#[derive(GraphQLScalar)]` and `#[graphql_scalar]` macros:
118+
- Support for specifying concrete types as input argument in provided `from_input()` function. ([#1327])
119+
- Support for non-`Result` return type in provided `from_input()` function. ([#1327])
120+
- `Scalar` transparent wrapper for aiding type inference in `from_input()` function when input argument is generic `ScalarValue`. ([#1327])
121+
- Generating of `FromScalarValue` implementation. ([#1329])
120122

121123
### Changed
122124

@@ -144,9 +146,10 @@ All user visible changes to `juniper` crate will be documented in this file. Thi
144146
[#1324]: /../../pull/1324
145147
[#1326]: /../../pull/1326
146148
[#1327]: /../../pull/1327
149+
[#1329]: /../../pull/1329
147150
[1b1fc618]: /../../commit/1b1fc61879ffdd640d741e187dc20678bf7ab295
148151
[20609366]: /../../commit/2060936635609b0186d46d8fbd06eb30fce660e3
149-
[todo]: /../../commit/todo
152+
[4b14c015]: /../../commit/4b14c015018d31cb6df848efdee24d96416b76d9
150153

151154

152155

juniper_codegen/CHANGELOG.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,22 @@ All user visible changes to `juniper_codegen` crate will be documented in this f
1919
- Removed `#[value(into_string)]` attribute.
2020
- Removed `#[value(allow_missing_attributes)]` attribute.
2121
- `From` and `Display` implementations are not derived anymore.
22-
- `#[derive(GraphQLScalar)]` and `#[graphql_scalar]` macros: ([#1327])
23-
- Made provided `from_input()` function to accept `ScalarValue` directly instead of `InputValue`.
22+
- `#[derive(GraphQLScalar)]` and `#[graphql_scalar]` macros:
23+
- Made provided `from_input()` function to accept `ScalarValue` directly instead of `InputValue`. ([#1327])
2424

2525
### Added
2626

27-
- `#[derive(ScalarValue)]` macro: ([#1324])
28-
- Support of top-level `#[value(from_displayable_with = ...)]` attribute.
29-
- `#[derive(GraphQLScalar)]` and `#[graphql_scalar]` macros: ([#1327])
30-
- Support for specifying concrete types as input argument in provided `from_input()` function.
31-
- Support for non-`Result` return type in provided `from_input()` function.
27+
- `#[derive(ScalarValue)]` macro:
28+
- Support of top-level `#[value(from_displayable_with = ...)]` attribute. ([#1324])
29+
- `#[derive(GraphQLScalar)]` and `#[graphql_scalar]` macros:
30+
- Support for specifying concrete types as input argument in provided `from_input()` function. ([#1327])
31+
- Support for non-`Result` return type in provided `from_input()` function. ([#1327])
32+
- Generating of `FromScalarValue` implementation. ([#1329])
3233

3334
[#1272]: /../../pull/1272
3435
[#1324]: /../../pull/1324
3536
[#1327]: /../../pull/1327
37+
[#1329]: /../../pull/1329
3638
[1b1fc618]: /../../commit/1b1fc61879ffdd640d741e187dc20678bf7ab295
3739

3840

0 commit comments

Comments
 (0)