From e5bc48cc4f78cd290dca7d5a8fa43e7b74714908 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 26 Aug 2025 03:24:15 +0000 Subject: [PATCH 1/3] Update bson requirement from 2.4 to 3.0 Updates the requirements on [bson](https://github.com/mongodb/bson-rust) to permit the latest version. - [Release notes](https://github.com/mongodb/bson-rust/releases) - [Commits](https://github.com/mongodb/bson-rust/compare/v2.4.0...v3.0.0) --- updated-dependencies: - dependency-name: bson dependency-version: 3.0.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- juniper/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/juniper/Cargo.toml b/juniper/Cargo.toml index e07013e20..017096706 100644 --- a/juniper/Cargo.toml +++ b/juniper/Cargo.toml @@ -47,7 +47,7 @@ arcstr = { version = "1.1", default-features = false } async-trait = "0.1.39" auto_enums = "0.8" bigdecimal = { version = "0.4", optional = true } -bson = { version = "2.4", optional = true } +bson = { version = "3.0", optional = true } chrono = { version = "0.4.30", features = ["alloc"], default-features = false, optional = true } chrono-tz = { version = "0.10", default-features = false, optional = true } compact_str = "0.9" From bf35e7afac346fcabf53b05a41df0bacb0307f30 Mon Sep 17 00:00:00 2001 From: tyranron Date: Wed, 27 Aug 2025 13:51:25 +0300 Subject: [PATCH 2/3] Upd --- juniper/CHANGELOG.md | 2 ++ juniper/Cargo.toml | 4 +--- juniper/src/integrations/bson.rs | 5 ----- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/juniper/CHANGELOG.md b/juniper/CHANGELOG.md index f8ecc3b79..1455ef83d 100644 --- a/juniper/CHANGELOG.md +++ b/juniper/CHANGELOG.md @@ -13,6 +13,7 @@ All user visible changes to `juniper` crate will be documented in this file. Thi ### BC Breaks - Upgraded [`chrono-tz` crate] integration to [0.10 version](https://github.com/chronotope/chrono-tz/releases/tag/v0.10.0). ([#1252], [#1284]) +- Upgraded [`bson` crate] integration to [3.0 version](https://github.com/mongodb/bson-rust/releases/tag/v3.0.0). ([#1346]) - Bumped up [MSRV] to 1.85. ([#1272], [1b1fc618]) - Corrected compliance with newer [graphql-scalars.dev] specs: ([#1275], [#1277]) - Switched `LocalDateTime` scalars to `yyyy-MM-ddTHH:mm:ss` format in types: @@ -157,6 +158,7 @@ All user visible changes to `juniper` crate will be documented in this file. Thi [#1329]: /../../pull/1329 [#1330]: /../../pull/1330 [#1339]: /../../pull/1339 +[#1346]: /../../pull/1346 [1b1fc618]: /../../commit/1b1fc61879ffdd640d741e187dc20678bf7ab295 [20609366]: /../../commit/2060936635609b0186d46d8fbd06eb30fce660e3 [4b14c015]: /../../commit/4b14c015018d31cb6df848efdee24d96416b76d9 diff --git a/juniper/Cargo.toml b/juniper/Cargo.toml index 017096706..74d2fe1c1 100644 --- a/juniper/Cargo.toml +++ b/juniper/Cargo.toml @@ -28,7 +28,7 @@ rustdoc-args = ["--cfg", "docsrs"] anyhow = ["dep:anyhow"] backtrace = ["anyhow?/backtrace"] bigdecimal = ["dep:bigdecimal", "dep:num-bigint", "dep:ryu"] -bson = ["dep:bson", "dep:tap"] +bson = ["dep:bson"] chrono = ["dep:chrono"] chrono-clock = ["chrono", "chrono/clock"] chrono-tz = ["dep:chrono-tz", "dep:regex"] @@ -74,8 +74,6 @@ uuid = { version = "1.3", default-features = false, optional = true } num-bigint = { version = "0.4.2", optional = true } # TODO: Try remove on upgrade of `chrono-tz` crate. regex = { version = "1.6", features = ["std"], default-features = false, optional = true } -# TODO: Try remove on upgrade of `bson` crate. -tap = { version = "1.0.1", optional = true } # TODO: Remove on upgrade to 0.4.1 version of `graphql-parser`. void = { version = "1.0.2", optional = true } diff --git a/juniper/src/integrations/bson.rs b/juniper/src/integrations/bson.rs index 54b27b518..204694f5e 100644 --- a/juniper/src/integrations/bson.rs +++ b/juniper/src/integrations/bson.rs @@ -15,11 +15,6 @@ use crate::graphql_scalar; -// TODO: Try remove on upgrade of `bson` crate. -mod for_minimal_versions_check_only { - use tap as _; -} - /// [BSON ObjectId][0] represented as a HEX string. /// /// [`ObjectID` scalar][1] compliant. From df870bf8dfd7b40c1d72503fff8e61c105c535ab Mon Sep 17 00:00:00 2001 From: tyranron Date: Wed, 27 Aug 2025 13:57:39 +0300 Subject: [PATCH 3/3] Revert `tap` --- juniper/Cargo.toml | 4 +++- juniper/src/integrations/bson.rs | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/juniper/Cargo.toml b/juniper/Cargo.toml index 74d2fe1c1..017096706 100644 --- a/juniper/Cargo.toml +++ b/juniper/Cargo.toml @@ -28,7 +28,7 @@ rustdoc-args = ["--cfg", "docsrs"] anyhow = ["dep:anyhow"] backtrace = ["anyhow?/backtrace"] bigdecimal = ["dep:bigdecimal", "dep:num-bigint", "dep:ryu"] -bson = ["dep:bson"] +bson = ["dep:bson", "dep:tap"] chrono = ["dep:chrono"] chrono-clock = ["chrono", "chrono/clock"] chrono-tz = ["dep:chrono-tz", "dep:regex"] @@ -74,6 +74,8 @@ uuid = { version = "1.3", default-features = false, optional = true } num-bigint = { version = "0.4.2", optional = true } # TODO: Try remove on upgrade of `chrono-tz` crate. regex = { version = "1.6", features = ["std"], default-features = false, optional = true } +# TODO: Try remove on upgrade of `bson` crate. +tap = { version = "1.0.1", optional = true } # TODO: Remove on upgrade to 0.4.1 version of `graphql-parser`. void = { version = "1.0.2", optional = true } diff --git a/juniper/src/integrations/bson.rs b/juniper/src/integrations/bson.rs index 204694f5e..54b27b518 100644 --- a/juniper/src/integrations/bson.rs +++ b/juniper/src/integrations/bson.rs @@ -15,6 +15,11 @@ use crate::graphql_scalar; +// TODO: Try remove on upgrade of `bson` crate. +mod for_minimal_versions_check_only { + use tap as _; +} + /// [BSON ObjectId][0] represented as a HEX string. /// /// [`ObjectID` scalar][1] compliant.