Skip to content

Commit 265d4c5

Browse files
authored
Fix list input coercion rules (#1004)
Additionally: - fix WASM builds after 2.1 version of `bson`
1 parent 46be97a commit 265d4c5

File tree

4 files changed

+289
-32
lines changed

4 files changed

+289
-32
lines changed

juniper/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
- Allow spreading interface fragments on unions and other interfaces. ([#965](https://github.com/graphql-rust/juniper/pull/965), [#798](https://github.com/graphql-rust/juniper/issues/798))
2626
- Support expressions in `graphql_value!` macro. ([#996](https://github.com/graphql-rust/juniper/pull/996), [#503](https://github.com/graphql-rust/juniper/issues/503))
27+
- List coercion rules: `null` cannot be coerced to an `[Int!]!` or `[Int]!`. ([#1004](https://github.com/graphql-rust/juniper/pull/1004))
2728

2829
# [[0.15.7] 2021-07-08](https://github.com/graphql-rust/juniper/releases/tag/juniper-v0.15.7)
2930

juniper/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,13 @@ serde_json = { version = "1.0.2", default-features = false, optional = true }
4949
smartstring = "0.2.6"
5050
static_assertions = "1.1"
5151
url = { version = "2.0", optional = true }
52+
53+
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
5254
uuid = { version = "0.8", default-features = false, optional = true }
5355

5456
[target.'cfg(target_arch = "wasm32")'.dependencies]
5557
getrandom = { version = "0.2", features = ["js"] }
58+
uuid = { version = "0.8", default-features = false, features = ["wasm-bindgen"], optional = true }
5659

5760
[dev-dependencies]
5861
bencher = "0.1.2"

0 commit comments

Comments
 (0)