Skip to content

Commit

Permalink
Upgrade jiff crate from 0.1.19 to 0.2 version (#1311)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kai Ren <[email protected]>
  • Loading branch information
dependabot[bot] and tyranron authored Feb 11, 2025
1 parent e7fff32 commit 66b19fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion juniper/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ All user visible changes to `juniper` crate will be documented in this file. Thi

### Added

- [`jiff` crate] integration behind `jiff` [Cargo feature]: ([#1271], [#1278], [#1270])
- [`jiff` crate] integration behind `jiff` [Cargo feature]: ([#1271], [#1278], [#1270], [#1311])
- `jiff::civil::Date` as `LocalDate` scalar.
- `jiff::civil::Time` as `LocalTime` scalar.
- `jiff::civil::DateTime` as `LocalDateTime` scalar. ([#1275])
Expand All @@ -58,6 +58,7 @@ All user visible changes to `juniper` crate will be documented in this file. Thi
[#1281]: /../../pull/1281
[#1284]: /../../pull/1284
[#1300]: /../../pull/1300
[#1311]: /../../pull/1311



Expand Down
4 changes: 2 additions & 2 deletions juniper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fnv = "1.0.5"
futures = { version = "0.3.22", features = ["alloc"], default-features = false }
graphql-parser = { version = "0.4", optional = true }
indexmap = { version = "2.0", features = ["serde"] }
jiff = { version = "0.1.19", features = ["std"], default-features = false, optional = true }
jiff = { version = "0.2", features = ["std"], default-features = false, optional = true }
juniper_codegen = { version = "0.16.0", path = "../juniper_codegen" }
rust_decimal = { version = "1.20", default-features = false, optional = true }
ryu = { version = "1.0", optional = true }
Expand All @@ -78,7 +78,7 @@ void = { version = "1.0.2", optional = true }
[dev-dependencies]
bencher = "0.1.2"
chrono = { version = "0.4.30", features = ["alloc"], default-features = false }
jiff = { version = "0.1.19", features = ["tzdb-bundle-always"], default-features = false }
jiff = { version = "0.2", features = ["tzdb-bundle-always"], default-features = false }
pretty_assertions = "1.0.0"
serde_json = "1.0.18"
serial_test = "3.0"
Expand Down
6 changes: 3 additions & 3 deletions juniper/src/integrations/jiff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ mod time_zone_or_utc_offset {
use super::*;

/// Format of a [`TimeZoneOrUtcOffset`] scalar.
const FORMAT: &str = "%:V";
const FORMAT: &str = "%:Q";

pub(super) fn to_output<S>(v: &TimeZoneOrUtcOffset) -> Value<S>
where
Expand Down Expand Up @@ -1159,7 +1159,7 @@ mod duration_test {
),
] {
let input: InputValue = graphql_input_value!((raw));
let parsed = Duration::from_input_value(&input);
let parsed = Duration::from_input_value(&input).map(Duration::fieldwise);

assert!(
parsed.is_ok(),
Expand Down Expand Up @@ -1234,7 +1234,7 @@ mod duration_test {
),
] {
let input: InputValue = graphql_input_value!((raw));
let parsed = Duration::from_input_value(&input);
let parsed = Duration::from_input_value(&input).map(Duration::fieldwise);

assert!(
parsed.is_ok(),
Expand Down

0 comments on commit 66b19fa

Please sign in to comment.