Commit graph

1307 commits

Author SHA1 Message Date
dependabot[bot]
31c468dd65
Upgrade GraphiQL from 3.0.10 to 3.1.0 version (#1235)
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>
2024-01-08 19:33:00 +01:00
dependabot[bot]
d75f940625
Upgrade serial_test crate from 2.0 to 3.0 version (#1233)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-08 18:55:47 +01:00
tyranron
57e6c9813c
Fix codegen tests for 1.75.0 Rust 2024-01-02 16:03:49 +01:00
tyranron
df24749727
Update copyright notices to 2024 year 2024-01-02 15:59:19 +01:00
tyranron
dc1f3e0c79
Backport changes of 0.15.12 juniper release 2024-01-02 15:34:29 +01:00
tyranron
2a27a54160
Release juniper 0.15.12 2024-01-02 15:27:32 +01:00
tyranron
5dec22ad7b
Fix minimal version of fnv dependency crate 2024-01-02 15:26:13 +01:00
Kai Ren
9420f3c19e
Allow top-level #[graphql] attribute in attribute macros (#1232) 2023-12-11 20:31:04 +00:00
dependabot[bot]
c0e1b3eae3
Upgrade tokio-tungstenite crate from 0.20 to 0.21 version (#1231)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 19:59:11 +01:00
Zak
ace693585d
Improve validation errors for input values (#811, #693)
Co-authored-by: Kai Ren <tyranron@gmail.com>
2023-11-30 20:51:08 +00:00
Kai Ren
7c03f922e0
Implement Clone and PartialEq for GraphQLResponse (#1228, #103) 2023-11-28 16:54:50 +00:00
Kai Ren
f98bdf1a50
Allow disabling introspection (#1227, #456)
- implement `validation::rules::disable_introspection`
- add `RootNode::disable_introspection()` and `RootNode::enable_introspection()` methods
2023-11-28 16:49:26 +01:00
Kai Ren
58ae682f91
Upgrade axum crate from 0.6 to 0.7 version (#1224) 2023-11-27 13:14:02 +00:00
Kai Ren
bd8dc582a4
Fix handling GET request in juniper_rocket example (#1223, #1098)
- rework `rocket_server` example as `simple`
- provide example in `GraphQLRequest` API docs
- mention GET query format in  `GraphQLRequest` API docs and `simple` example

Additionally:
- fix `operationName` query parameter handling
- make `graphiql_source()` and `playground_source()` polymorphic over `subscriptions_endpoint_url` argument
- provide examples in `graphiql_source()` and `playground_source()` API docs
- move integration HTTP tests to a separate file
- test both sync and async `juniper_rocket` in integration HTTP tests
- polish `FromForm` unit tests
2023-11-24 17:51:32 +00:00
dependabot[bot]
add0e23c5f
Remove hyper for juniper_axum dependencies (#1219)
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>
2023-11-23 18:10:03 +00:00
Kai Ren
4ef8cf7de9
Fix Rejection handling in juniper_warp filters (#1222, #1177)
- rework `make_graphql_filter()` and `make_graphql_filter_sync()` to execute `context_extractor` only once
- handle all non-recoverable `Rejection`s in `make_graphql_filter()` and `make_graphql_filter_sync()`
- relax requirement for `context_extractor` to be a `BoxedFilter` only
- remove `JoinError` from public API
- provide example of fallible `context_extractor` in `make_graphql_filter()` API docs

Additionally:
- split  `juniper_warp` modules into separate files
- add @tyranron as `juniper_warp` co-author
2023-11-23 17:39:12 +00:00
dependabot[bot]
904d9cdbb6
Upgrade rocket crate to 0.5 version (#1220)
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>
2023-11-20 18:45:45 +01:00
dependabot[bot]
5b58b85a37
Upgrade GraphiQL from 3.0.9 to 3.0.10 version (#1221)
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>
2023-11-20 16:43:53 +00:00
tyranron
3645df27b6
Stop Clippy from enforcing # Errors and # Panics sections in GraphQL descriptions 2023-11-17 21:38:17 +01:00
dependabot[bot]
813c0d1210
Upgrade juniper_hyper to 1.0 hyper (#1217)
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>
2023-11-17 13:04:37 +00:00
tyranron
9f776fd0a1
Remove redundant juniper_actix dependencies 2023-11-16 21:15:30 +01:00
tyranron
a515d4b8b9
Fix codegen tests for 1.74 Rust 2023-11-16 21:14:50 +01:00
Kai Ren
316b1887b2
Provide anyhow crate integration (#1215, #988)
- implement `IntoFieldError` for `anyhow::Error`
- add `anyhow` and `backtrace` Cargo features
2023-11-15 19:29:59 +01:00
dependabot[bot]
2215cd0e0b
Upgrade itertools crate from 0.11 to 0.12 version (#1214)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-15 14:38:04 +00:00
Kai Ren
d7103e2ef2
Remove iron integration (#1210) 2023-11-09 23:52:24 -04:00
Audun Halland
e75cf26995
Add Span to meta::Arguments and LookAheadArguments (#1206, #1209) 2023-11-09 18:18:46 +01:00
Audun Halland
d0fc062892
Abstract Spanning::start and Spanning::end into Span (#1207, #1208) 2023-11-09 15:04:30 +01:00
Benno Tielen
761710205a
Provide axum integration (#1088, #986, #1184)
- create `juniper_axum` crate in Cargo workspace
- implement `graphql` default `axum` handler for processing GraphQL requests
- implement `extract::JuniperRequest` and `response::JuniperResponse` for custom processing GraphQL requests
- implement `subscriptions::graphql_transport_ws()` default `axum` handler for processing the new `graphql-transport-ws` GraphQL over WebSocket Protocol
- implement `subscriptions::graphql_ws()` default `axum` handler for processing the legacy `graphql-ws` GraphQL over WebSocket Protocol
- implement `subscriptions::serve_graphql_transport_ws()` function for custom processing the new `graphql-transport-ws` GraphQL over WebSocket Protocol
- implement `subscriptions::serve_graphql_ws()` function for custom processing the legacy `graphql-ws` GraphQL over WebSocket Protocol
- provide `examples/simple.rs` of default `juniper_axum` integration
- provide `examples/custom.rs` of custom `juniper_axum` integration

Additionally:
- fix `junper_actix` crate MSRV to 1.73
- add `test_post_with_variables()` case to integration `juniper::http::tests`

Co-authored-by: ilslv <ilya.solovyiov@gmail.com>
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
Co-authored-by: Kai Ren <tyranron@gmail.com>
2023-11-09 11:57:00 +01:00
dependabot[bot]
ba59c953a7
Upgrade rocket crate to 0.5.0-rc.4 version (#1205)
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>
2023-11-03 13:37:51 +01:00
dependabot[bot]
d0f50e73e0
Update GraphiQL from 3.0.8 to 3.0.9 version (#1204)
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>
2023-11-02 20:51:34 +00:00
Sören Meier
8b530ebc12
Return slice in LookAheadMethods::children() instead of Vec (#1200) 2023-11-02 13:55:38 +00:00
Sören Meier
da005fcb41
Add field_original_name and field_alias to LookAheadMethods (#1199)
Co-authored-by: Kai Ren <tyranron@gmail.com>
2023-11-02 12:57:00 +00:00
dependabot[bot]
e76b961534
Update GraphiQL from 3.0.7 to 3.0.8 version (#1203)
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>
2023-11-01 18:33:42 +00:00
dependabot[bot]
782eccba47
Upgrade syn crate to 2.0 version (#1157)
- replace `proc-macro-error` crate with simplified `common::diagnostic::pollyfill`
- migrate `juniper_codegen_tests` to stable Rust

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>
2023-11-01 19:00:05 +01:00
dependabot[bot]
2598045e89
Update GraphiQL from 3.0.6 to 3.0.7 version (#1201)
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>
2023-11-01 13:06:54 +00:00
Kian-Meng Ang
0fc95ddbff
Integrate codespell for Book (#1121)
- add `codespell` CI job
- add `book.codespell` Makefile command
- fix Book typos found by codespell

Co-authored-by: Kai Ren <tyranron@gmail.com>
2023-10-27 15:51:41 +00:00
Kai Ren
d11e351a49
Use actix-ws for juniper_actix subscriptions (#1197)
- fix panicking issues in `graphql-transport-ws` protocol implementation
- rework `graphql-ws` integration tests in `juniper::http`
- add `graphql-transport-ws` integration tests in `juniper::http`
2023-10-24 17:59:36 +00:00
tyranron
828d059b1b
Fix codegen tests for latest nightly 2023-10-24 18:23:04 +03:00
Kai Ren
aaf28e962d
Merge juniper_graphql_transport_ws and juniper_graphql_ws crates (#1196, #1022) 2023-10-17 16:12:20 +02:00
dependabot[bot]
f3a1a0c65d
Support 0.14 version of actix crate (#1189)
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>
2023-10-16 11:48:16 +00:00
tyranron
57628de864
Check std::prelude hygiene in codegen tests (#1195, #1194) 2023-10-13 21:01:43 +03:00
tyranron
a433a278cf
Fix bigdecimal crate surviving minimal versions check 2023-10-13 19:39:56 +03:00
tyranron
17a02fa766
Correct fully qualified paths in generated code (#1195, #1194) 2023-10-13 19:28:42 +03:00
Peter Holloway
801820a3b6
Use fully qualified paths in generated code (#1195)
If user code has a type alias (or custom type) called `Result` or
`Option` etc, this would be used instead of the intended standard
library types causing surprising compile errors from generated code.

Using the fully qualified path allows the generated code to be isolated
from user types.

Includes two basic regression tests covering `Result` and `Send`.

Fixes #1194
2023-10-06 11:59:00 -07:00
Kai Ren
9849736582
Improve WebSocket integration (#1191, #1022)
- consider `juniper_graphql_transport_ws` crate on CI
- implement auto-selection of protocol in `juniper_warp` crate
- support `graphql-transport-ws` protocol in  `juniper_actix` crate
- implement auto-selection of protocol in `juniper_actix` crate

Additionally:
- move `examples/warp_subscriptions` into `juniper_warp/examples/subscription.rs`
- move `examples/actix_subscriptions` into `juniper_actix/examples/subscription.rs`
- move `examples/basic_subscriptions` into `juniper_subscriptions/examples/basic.rs`
- bump up MSRV of `juniper_actix` crate to 1.68
2023-09-21 23:24:41 +02:00
dependabot[bot]
a74ea9ccb6
Update GraphiQL from 3.0.5 to 3.0.6 version (#1193)
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>
2023-09-20 14:30:04 +00:00
dependabot[bot]
cb26dee3b7
Upgrade actix-identity crate from 0.5 to 0.6 version (#1192)
Additionally:
- use `cargo check` for MSRV check of `juniper_actix` crate

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>
2023-09-20 13:32:24 +00:00
Kai Ren
7e886e8fab
Update GraphQL Playground to 1.7.28 version (#1190, #1069)
- track GraphQL Playground new versions via @dependabot
- automate GraphQL Playground integration glue adapting for new versions
2023-09-13 17:10:49 +00:00
Kai Ren
f9d90277bf
Upgrade GraphiQL to 3.0.5 version (#1188, #1069)
- track GraphiQL new version via @dependabot
- automate GraphiQL integration glue adapting for new versions
- rework `example/warp_subscriptions`  to support subscriptions in new GraphiQL
2023-09-13 17:34:44 +02:00
Kai Ren
f172be5656
Fix operation_name not being set in juniper_hyper (#1169, #1187) 2023-09-12 14:45:56 +02:00