Christian Legnitto
c80cecf61e
Rocket can now compile on stable ( #723 )
2020-07-28 16:03:31 -10:00
Chris
7b9cf4cb18
fix for warp content type filter ( #724 )
2020-07-28 16:03:07 -10:00
Christian Legnitto
a5be3a878c
Unbreak integration with latest rocket master ( #722 )
...
This commit changed where `Outcome` is exported:
adc79016cd
2020-07-28 10:00:41 -10:00
Christian Legnitto
fe6d622008
Update percent_encoding ( #715 )
...
Replaces https://github.com/graphql-rust/juniper/pull/702
2020-07-24 17:27:38 -10:00
Christian Legnitto
4647a32b33
Add examples to CI ( #714 )
2020-07-20 21:38:22 -10:00
Jerel Unruh
de8b2af0d7
Add clone() back to request_id to fix compiler error in juniper_warp ( #712 )
...
This is the last item required to close #705
2020-07-20 20:08:45 -10:00
Christian Legnitto
61bc35251f
Fix book tests ( #711 )
2020-07-18 15:24:33 -10:00
Christian Legnitto
de1b332792
Quickstart comments should mention subscriptions.
2020-07-18 13:29:48 -10:00
Christian Legnitto
29930b002b
Update compile fail tests for nightly Rust ( #710 )
...
* Update compile fail tests for latest Rust
The messages appear to have changed on nightly
* Fix tests depending on fixture data
* Fix more integration test paths
* Fix doc warnings
2020-07-18 13:19:50 -10:00
Chris
825a35c686
Fix juniper_warp subscriptions ( #707 )
...
* use anyhow::anyhow for subscriptions mod
* remove unnecessary Clone
* fix simultaneous subscriptions
* rm unnecessary .clone
2020-07-18 11:00:17 -10:00
Chris
f5839c034e
Fix subscriptions with custom scalars ( #706 )
2020-07-17 10:52:16 +03:00
dependabot-preview[bot]
e730f6b336
Update env_logger requirement from 0.5.11 to 0.7.1 ( #701 )
...
Updates the requirements on [env_logger](https://github.com/sebasmagri/env_logger ) to permit the latest version.
- [Release notes](https://github.com/sebasmagri/env_logger/releases )
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sebasmagri/env_logger/compare/v0.5.11...v0.7.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-16 20:06:39 -10:00
dependabot-preview[bot]
0c35033dc4
Update pretty_env_logger requirement from 0.2 to 0.4 ( #700 )
...
Updates the requirements on [pretty_env_logger](https://github.com/seanmonstar/pretty-env-logger ) to permit the latest version.
- [Release notes](https://github.com/seanmonstar/pretty-env-logger/releases )
- [Commits](https://github.com/seanmonstar/pretty-env-logger/compare/v0.2.0...v0.4.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-16 20:06:08 -10:00
Christian Legnitto
87883876bc
Fix some clippy issues ( #704 )
2020-07-16 07:41:09 -10:00
Christian Legnitto
3c79f6a2c5
Move starwars schema into fixture directory ( #694 )
...
Move starwars query into fixture directory
Also include the graphql schema definition file and a test
to make sure they match.
2020-07-15 21:46:37 -10:00
Christian Legnitto
c4319b6449
Update quickstart.md
2020-07-15 21:24:57 -10:00
Christian Legnitto
5ddd2d499f
Add heading for error handling and point to spec
...
Fixes https://github.com/graphql-rust/juniper/issues/695 .
2020-07-15 21:09:19 -10:00
Christian Legnitto
3616e36ece
Update to latest Rocket on master
( #699 )
...
The `async` branch has now landed on Rocket's `master`. The git
branch has been deleted.
2020-07-14 21:38:09 -10:00
Christian Legnitto
61a5a747f1
Update subscriptions.md
2020-07-14 21:02:30 -10:00
Christian Legnitto
8c3857d772
Update schemas_and_mutations.md
2020-07-14 20:45:42 -10:00
Christian Legnitto
480eda9846
Update schemas_and_mutations.md
2020-07-14 20:41:08 -10:00
Andres Rodriguez
f0ee2094d3
chore(docs): fix typo in complex fields section ( #698 )
2020-07-14 23:03:39 +03:00
Kunjan Dalal
0dcfb850e1
failure removed in favour of thiserror and anyhow ( #696 )
2020-07-10 22:02:32 -10:00
Christian Legnitto
61cb75969e
Move and enable public api integration tests ( #692 )
2020-07-08 16:40:34 -10:00
Christian Legnitto
de3a79a142
Update CHANGELOG.md
2020-07-05 19:54:08 -10:00
Kai Ren
4d77a1a9b9
Strip redundant Send/Sync bounds ( #688 )
...
Additionally:
- strip redundant type parameters for juniper::Context in some core definitions and reuse associated type
2020-06-30 18:13:15 +03:00
Kai Ren
7578175baf
Remove internal versions of proc macros ( #687 )
...
- generate always `::juniper::` crate path in proc macros and use `extern crate self` to make it work inside `juniper`
- add optional non-documented `internal` proc macro argument to proc macros, which allows double-underscored names and is used inside `juniper` only
2020-06-30 12:26:48 +03:00
Kai Ren
35b804c37b
Decouple object safe part from GraphQLType traits ( #685 )
...
- add object safe GraphQLValue, GraphQLValueAsync and GraphQLSubscriptionValue traits containing methods for value resolution
- refactor GraphQLType, GraphQLTypeAsync and GraphQLSubscriptionType traits to register and provide GraphQL type information only
2020-06-30 11:20:21 +03:00
Christian Legnitto
ed6b257e58
Small typo changes to CHANGELOG
2020-06-27 23:52:28 -10:00
Christian Legnitto
c7cc1daed2
Update CHANGELOG.md
2020-06-27 21:41:24 -10:00
Christian Legnitto
03844468f7
Fix minor CHANGELOG typos
2020-06-27 21:38:19 -10:00
Christian Legnitto
54860880d9
Reword changelog
2020-06-27 21:34:54 -10:00
Alexander Lyon
714d602fb9
Update to_camel_case to respect the rust convention of prefixing '_' for unused vars ( #684 )
2020-06-27 20:15:19 -10:00
imspace
37a37d462f
fix: endless poll on an errored ws stream ( #683 )
...
* fix: endless poll on an errored ws stream
2020-06-24 18:23:13 -10:00
Christian Legnitto
a08ce0760d
Add note about i64/u64 to the book
...
Fixes https://github.com/graphql-rust/juniper/issues/671
2020-06-23 22:41:09 -10:00
tyranron
563270d975
Fix 'juniper_rocket_async' crate up to latest upstream changes
2020-06-23 14:17:27 +03:00
tyranron
5b4f6fca39
Fix formatting of 'juniper_subscriptions' crate
2020-06-23 13:38:30 +03:00
tyranron
3cd4cbb0b8
Fix lifetime mismatch in 'juniper_subscriptions' crate
2020-06-23 13:31:33 +03:00
Joao Neves
f19d498254
Upgrade reqwest
to 0.10 version and use rustls
to remove transitive OpenSSL ( #677 )
...
- revive `warp_async` example (#659 )
Co-authored-by: Allan Calix <contact@allancalix.com>
Co-authored-by: Kai Ren <tyranron@gmail.com>
2020-06-14 16:29:08 +03:00
Chris
6dd6abbadc
Fix custom ScalarValue usage for unions ( #681 )
...
- make GraphQLUnion trait generic over ScalarValue
- generate generic over ScalarValue impls of GraphQLUnion trait
- add codegen tests with a custom ScalarValue for union macros
2020-06-14 14:12:53 +03:00
Kai Ren
5b9c6111f1
Relax redundant 'static lifetime bounds on ScalarValue in juniper_subscriptions::Coordinator ( #680 )
2020-06-10 21:27:58 -10:00
Nathan Wilson
7365b0fdd8
Upgrade bson crate to 1.0 ( #678 )
2020-06-10 12:34:56 +03:00
tyranron
5b7706e839
Fix codegen failure tests for the latest nightly Rust
2020-06-10 11:36:36 +03:00
Christian Legnitto
9167654a73
Add support for GraphQL Schema Language ( #676 )
...
Co-authored-by: Alexander Lyon <arlyon@me.com>
2020-06-05 17:43:11 -10:00
Jordão Rodrigues Oliveira Rosario
40ad17c540
Normalize subscriptions endpoint in graphiql_source
( #628 )
...
The objective here is to make the Playground and GraphiQL have the same behavior with the endpoint arguments.
2020-06-05 00:45:19 +03:00
Nathan Wilson
5cf21bf41b
Fix PR #662 's entry in CHANGELOG pointed to incorrect link ( #675 )
2020-06-04 23:46:14 +03:00
Nathan Wilson
02801ee981
Upgrade bson crate to 0.15.0 ( #674 )
2020-06-04 23:40:06 +03:00
Kai Ren
ddc1488195
Codegen reimplementation for GraphQL unions ( #666 )
...
- reimplement #[derive(GraphQLUnion)] macro to support:
- both structs and enums
- generics in type definition
- multiple #[graphql] attributes
- external resolver functions
- remove From trait impls generation for enum variants
- reimplement #[graphql_union] macro to support:
- traits
- generics in trait definition
- multiple attributes
- external resolver functions
- GraphQLType implemetation for a raw trait object
- GraphQLTypeAsync implemetation (#549 )
- add marker::GraphQLUnion trait
- rewrite "2.5 Unions" section in Book (Juniper user documentation)
- rewrite `codegen` and `codegen_fail` integration tests for GraphQL unions
Additionally:
- re-export `futures` crate in `juniper` for convenient reuse in the generated code without requiring library user to provide `futures` crate by himself (#663 )
- use unit type () as default context for EmptyMutation and EmptySubscriptions
- relax Sized trait bound on some GraphQLType and GraphQLTypeAsync definitions, implementations and usages
2020-06-04 11:19:01 +03:00
Teymour Aldridge
31d08888e4
Make some comments clearer. ( #665 )
2020-05-23 20:29:58 -10:00
Caio
2cb96d0fc4
impl GraphQLScalar for NaiveTime ( #657 )
...
* impl GraphQLScalar for NaiveTime
* Add feature
2020-05-20 22:13:31 -10:00