Skip to content

Commit

Permalink
Upgrade chrono-tz crate from 0.8 to 0.9 version (#1252)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kai Ren <tyranron@gmail.com>
  • Loading branch information
dependabot[bot] and tyranron committed Apr 8, 2024
1 parent 9c4ea32 commit aade4c8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
14 changes: 14 additions & 0 deletions juniper/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ All user visible changes to `juniper` crate will be documented in this file. Thi



## [0.17.0] · 2024-04-?? (unreleased)
[0.17.0]: /../../tree/juniper-v0.17.0/juniper

[Diff](/../../compare/juniper-v0.16.1...juniper-v0.17.0) | [Milestone](/../../milestone/7)

### BC Breaks

- Upgraded [`chrono-tz` crate] integration to [0.9 version](https://github.com/chronotope/chrono-tz/releases/tag/v0.9.0). ([#1252])

[#1252]: /../../pull/1252




## [0.16.1] · 2024-04-04
[0.16.1]: /../../tree/juniper-v0.16.1/juniper

Expand Down
2 changes: 1 addition & 1 deletion juniper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ auto_enums = "0.8"
bigdecimal = { version = "0.4", optional = true }
bson = { version = "2.4", features = ["chrono-0_4"], optional = true }
chrono = { version = "0.4.30", features = ["alloc"], default-features = false, optional = true }
chrono-tz = { version = "0.8", default-features = false, optional = true }
chrono-tz = { version = "0.9", default-features = false, optional = true }
fnv = "1.0.5"
futures = { version = "0.3.22", features = ["alloc"], default-features = false }
graphql-parser = { version = "0.4", optional = true }
Expand Down
6 changes: 3 additions & 3 deletions juniper/src/integrations/chrono_tz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,23 @@ mod test {
fn forward_slash() {
tz_input_test(
"Abc/Xyz",
Err("Failed to parse `TimeZone`: received invalid timezone"),
Err("Failed to parse `TimeZone`: failed to parse timezone"),
);
}

#[test]
fn number() {
tz_input_test(
"8086",
Err("Failed to parse `TimeZone`: received invalid timezone"),
Err("Failed to parse `TimeZone`: failed to parse timezone"),
);
}

#[test]
fn no_forward_slash() {
tz_input_test(
"AbcXyz",
Err("Failed to parse `TimeZone`: received invalid timezone"),
Err("Failed to parse `TimeZone`: failed to parse timezone"),
);
}
}
Expand Down

0 comments on commit aade4c8

Please sign in to comment.