From 02801ee981f757a42a742d2b6f58eb75c7667e55 Mon Sep 17 00:00:00 2001 From: Nathan Wilson <wilnathan@gmail.com> Date: Thu, 4 Jun 2020 16:40:06 -0400 Subject: [PATCH] Upgrade bson crate to 0.15.0 (#674) --- juniper/CHANGELOG.md | 2 ++ juniper/Cargo.toml | 2 +- juniper/src/integrations/bson.rs | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/juniper/CHANGELOG.md b/juniper/CHANGELOG.md index 154c06d0..569154f2 100644 --- a/juniper/CHANGELOG.md +++ b/juniper/CHANGELOG.md @@ -45,6 +45,8 @@ See [#618](https://github.com/graphql-rust/juniper/pull/618). - Improved lookahead visibility for aliased fields (see [#662](https://github.com/graphql-rust/juniper/pull/631)) +- Bumped bson crate's version to 0.15.0 (see [#674](https://github.com/graphql-rust/juniper/pull/674)) + ## Breaking Changes - `juniper::graphiql` has moved to `juniper::http::graphiql` diff --git a/juniper/Cargo.toml b/juniper/Cargo.toml index a8bd7b46..d41af35c 100644 --- a/juniper/Cargo.toml +++ b/juniper/Cargo.toml @@ -36,7 +36,7 @@ scalar-naivetime = [] [dependencies] juniper_codegen = { version = "0.14.2", path = "../juniper_codegen" } -bson = { version = "0.14.0", optional = true } +bson = { version = "0.15.0", optional = true } chrono = { version = "0.4.0", optional = true } fnv = "1.0.3" futures = "0.3.1" diff --git a/juniper/src/integrations/bson.rs b/juniper/src/integrations/bson.rs index 34f99f1e..1c41bcc8 100644 --- a/juniper/src/integrations/bson.rs +++ b/juniper/src/integrations/bson.rs @@ -1,4 +1,4 @@ -use bson::{oid::ObjectId, UtcDateTime}; +use bson::{oid::ObjectId, DateTime as UtcDateTime}; use chrono::prelude::*; use crate::{ @@ -57,7 +57,7 @@ where #[cfg(test)] mod test { use crate::{value::DefaultScalarValue, InputValue}; - use bson::{oid::ObjectId, UtcDateTime}; + use bson::{oid::ObjectId, DateTime as UtcDateTime}; use chrono::prelude::*; #[test]