Commit graph

563 commits

Author SHA1 Message Date
dependabot[bot]
9bdf8cf379
Update GraphiQL from 3.2.2 to 3.2.3 version (#1260)
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-06-05 11:10:03 +00:00
dependabot[bot]
29e30ea786
Update GraphiQL from 3.2.1 to 3.2.2 version (#1258)
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-05-13 20:20:53 +02:00
dependabot[bot]
f96a3f4baa
Update GraphiQL from 3.2.0 to 3.2.1 version (#1257)
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-05-09 09:46:41 +00:00
tyranron
2682ee1418
Make Clippy happy for 1.78 Rust 2024-05-02 18:03:27 +02:00
tyranron
6ffbb66719
Update time crate to 0.3.35 version 2024-04-10 15:28:54 +03:00
dependabot[bot]
e758ea0e91
Update GraphiQL from 3.1.2 to 3.2.0 version (#1253)
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-04-08 15:52:25 +00:00
dependabot[bot]
aade4c8c7c
Upgrade chrono-tz crate from 0.8 to 0.9 version (#1252)
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-04-08 15:16:30 +00:00
tyranron
9c4ea327f9
Prepare 0.16.1 release of juniper crate 2024-04-04 16:00:47 +03:00
Hofer-Julian
c674548e64
Fix sentence in introduction (#1250)
Co-authored-by: Kai Ren <tyranron@gmail.com>
2024-04-04 11:50:35 +00:00
dependabot[bot]
26c199f2f3
Upgrade GraphiQL from 3.1.1 to 3.1.2 version (#1251)
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-04-04 11:21:30 +00:00
tyranron
f0b63c4a63
Prepare 0.16.0 release of juniper crate (#1198) 2024-03-20 18:13:23 +02:00
tyranron
63f6f8fae4
Prepare 0.16.0 release of juniper_codegen crate (#1198) 2024-03-20 17:07:43 +02:00
Kai Ren
ec0d7d8097
Rework Book (#1230)
- rework and update existing chapters
- mention correct case transformation for GraphQL enums (#1029)
- document N+1 mitigation techniques and look-ahead features (#234, #444)
- mention all integration crates (#867)
- fix Book links (#679, #974, #1056)
- remove old version of Book (#1168)

Additionally:
- disable `bson`, `url`, `uuid` and `schema-language` Cargo features by default in `juniper` crate

Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2024-03-20 15:53:25 +01:00
tyranron
86b5319315
Fix unit tests for latest nightly 2024-03-12 16:53:09 +02:00
tyranron
2ce7dae298
Fix minimal-versions check for bson crate integration 2024-02-09 16:46:27 +02:00
tyranron
b9fe911d1f
Make Clippy happy for 1.76 Rust 2024-02-09 16:22:13 +02:00
dependabot[bot]
f33406f3ce
Upgrade GraphiQL from 3.1.0 to 3.1.1 version (#1246)
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-02-02 17:05:53 +01:00
Kien Dang
d6297f493a
Use production distribution of React in GraphiQL (#1243) 2024-01-31 13:03:16 +00:00
Audun Halland
8a69e14c8b
Avoid copying Span when evaluating validation rules (#1242) 2024-01-29 17:18:59 +01:00
Audun Halland
507a66a3bf
Replace futures-enum crate with auto_enums to ged rid of syn 1 (#1240) 2024-01-18 16:34:38 +01:00
Audun Halland
a1bc775e00
Sort order as "type-then-name" in introspection output (#1239, #1134) 2024-01-17 14:04:17 +00:00
Audun Halland
c54137f7b4
Rework look-ahead machinery as lazy-evaluated (#1212)
- make `LookAheadValue::List` to contain new iterable `LookAheadList` type
- make `LookAheadValue::Object` to contain new iterable `LookAheadObject` type
- remove `LookAheadMethods` trait and redundant `ConcreteLookAheadSelection` struct making all APIs accessible as inherent methods on `LookAheadSelection` and `LookAheadChildren` decoupled types
- move `LookAheadMethods::child_names()` to `LookAheadChildren::names()`
- move `LookAheadMethods::has_children()` to `LookAheadChildren::is_empty()`
- move `LookAheadMethods::select_child()` to `LookAheadChildren::select()`
- move `LookAheadSelection::for_explicit_type()` to `LookAheadSelection::children_for_explicit_type()`
- make `LookAheadSelection::arguments()` returning iterator over `LookAheadArgument`
- make `LookAheadSelection::children()` returning `LookAheadChildren`

Co-authored-by: Kai Ren <tyranron@gmail.com>
2024-01-16 19:17:07 +00:00
Kai Ren
e64287cfc8
Sort order as "type-then-name" in generated schema's SDL (#1237, #1134)
- rename `RootNode::as_schema_language()` method as `RootNode::as_sdl()`
- rename `RootNode::as_parser_document()` method as `RootNode::as_document()`
- merge `graphql-parser` and `schema-language` Cargo features

Co-authored-by: Michael Groble <mike@groble.me>
2024-01-15 17:26:12 +01:00
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
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
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
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
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
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]
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
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
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
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