Commit graph

1171 commits

Author SHA1 Message Date
Will Tachau
474cd19d1a
Update README.md (#886) 2021-02-25 16:57:45 -10:00
Alexander van Ratingen
52483718ed
Support subscriptions for GraphiQL and Playground. (#859)
* Support subscriptions for GraphiQL and Playground.

Add support for subscriptions for GraphiQL and Playground in `juniper_rocket_async`.

* Update example.

Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2021-02-03 16:17:19 -10:00
wangcong
3b6c3f9c0f
Fix typo (#866)
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2021-01-27 23:46:20 -10:00
Christian Legnitto
19bfbf60fb Release juniper_actix 0.2.3 2021-01-27 21:35:55 -10:00
Christian Legnitto
71731c8cb2 Release juniper_warp 0.6.2 2021-01-27 20:56:46 -10:00
Christian Legnitto
3638e1e65e Release juniper_graphql_ws 0.2.3 2021-01-27 20:35:52 -10:00
Christian Legnitto
5490d25ee2 Release juniper_subscriptions 0.15.3 2021-01-27 20:32:22 -10:00
Christian Legnitto
d1c7e1d0b3 Release juniper_rocket 0.6.2 2021-01-27 20:30:22 -10:00
Christian Legnitto
2745e5ed9e Release juniper_iron 0.7.2 2021-01-27 19:09:08 -10:00
Christian Legnitto
e0a7796c83 Release juniper_hyper 0.6.3 2021-01-27 17:55:32 -10:00
Christian Legnitto
212f896e40 Release juniper 0.15.3 2021-01-27 17:54:00 -10:00
Christian Legnitto
fc1c7dfe63 Release juniper_codegen 0.15.3 2021-01-27 17:53:14 -10:00
Christian Legnitto
c4c115ca97
Update CHANGELOG.md 2021-01-27 04:26:28 -10:00
Christian Legnitto
dc902d7296
Update CHANGELOG.md 2021-01-27 04:25:08 -10:00
Erik
8d654a6b42
Fix Content-Type header parsing in 'juniper_actix' (#863, #860) 2021-01-26 22:07:39 +02:00
Graeme Coupar
824cd4081b
Update juniper_codegen for syn 1.0.60 (#861)
* Update juniper_codegen for syn 1.0.60

syn 1.0.60 has updated it's `Type::__Nonexhaustive` to
`Type::TestExhaustive`, breaking juniper.  This updates juniper to use
the recommended idiom for doing exhaustive matching on `Type`, which
fixes this.

Not entirely clear if we need exhaustive matching here or if we could
just use a fallback, but this fixes the build at least.

Also updated the minimum syn so users have to pull it in

* Update example to use relative deps

As otherwise CI fails on this branch
2021-01-26 07:41:03 -10:00
Matt Wilkinson
2c9c172252
Use working GraphQL Playground version (#856)
* Use working GraphQL Playground version

the linked file on jsDelivr doesn't work, as I detailed in this issue on the GraphQL Playground repo (https://github.com/graphql/graphql-playground/issues/1310). Going back to version 1.7.20 ensures the playground loads for now until they can publish a new version with a working middleware.js file.

* Add versions for css and favicon

* Update from 1.7.20 to 1.7.26

Using latest version that still works
2021-01-25 22:38:15 -10:00
Christian Legnitto
6f49085096 Release juniper_actix 0.2.2 2021-01-15 19:56:45 -10:00
Christian Legnitto
c6a9774b44 Release juniper_warp 0.6.1 2021-01-15 19:54:43 -10:00
Christian Legnitto
d4c97fdc77 Release juniper_graphql_ws 0.2.2 2021-01-15 19:53:42 -10:00
Christian Legnitto
5056a3c58f Release juniper_subscriptions 0.15.2 2021-01-15 19:52:18 -10:00
Christian Legnitto
aae97b246b Release juniper_rocket 0.6.1 2021-01-15 19:50:59 -10:00
Christian Legnitto
806a7b9abe Release juniper_iron 0.7.1 2021-01-15 19:49:40 -10:00
Christian Legnitto
389b78060a Release juniper_hyper 0.6.2 2021-01-15 19:47:37 -10:00
Christian Legnitto
186186a603 Release juniper 0.15.2 2021-01-15 19:46:23 -10:00
Christian Legnitto
948517b84f Release juniper_codegen 0.15.2 2021-01-15 19:44:23 -10:00
Christian Legnitto
329caad4cd
Update CHANGELOG.md 2021-01-15 19:41:27 -10:00
Christian Legnitto
2e24b55e99 Update GraphQL Playground
Version taken from https://www.jsdelivr.com/package/npm/graphql-playground-react.

Fixes https://github.com/graphql-rust/juniper/issues/830
2021-01-15 19:36:29 -10:00
EdorianDark
250e261204
Make the actix example self contained (#839)
A smaller example is esier to understand.
Fixes #804

Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2021-01-15 19:26:55 -10:00
Kai Ren
4682fe2f4e
Add missing marker trait impls for container types (#847) 2021-01-15 07:31:50 -10:00
Filip Gospodinov
516c720962
juniper_rocket_async: fix tokio dependency (#848) 2021-01-15 12:31:25 +02:00
dependabot-preview[bot]
4f3939075a
Update reqwest requirement from 0.10 to 0.11 (#842)
Updates the requirements on [reqwest](https://github.com/seanmonstar/reqwest) to permit the latest version.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.10.0...v0.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-05 22:44:11 -10:00
Nicolas Bonnet
4467b29153
Add missing use declaration in Quickstart (#838)
Seems like the example code in the quickstart guide is missing an use declaration. 

The code fails to compile: `error: cannot find macro `graphql_value` in this scope` with `rustc 1.48.0 (7eac88abb 2020-11-16)`
2020-12-28 07:45:40 -10:00
Christian Legnitto
509438a5be Release juniper_actix 0.2.1 2020-12-12 09:53:43 -10:00
Christian Legnitto
7da9f6fcd6 Release juniper_graphql_ws 0.2.1 2020-12-12 09:52:41 -10:00
Christian Legnitto
bd6c5c7525 Release juniper_subscriptions 0.15.1 2020-12-12 09:51:38 -10:00
Christian Legnitto
8ff0c325a5 Release juniper_hyper 0.6.1 2020-12-12 09:49:34 -10:00
Christian Legnitto
b2a3b097bd Release juniper 0.15.1 2020-12-12 09:48:31 -10:00
Christian Legnitto
f1f64446b5 Release juniper_codegen 0.15.1 2020-12-12 09:47:47 -10:00
Christian Legnitto
fcfb530a91 Remove space so replacements work in CI for
release tests
2020-12-12 09:47:12 -10:00
Christian Legnitto
7332065e60
Update CHANGELOG.md 2020-12-12 09:46:36 -10:00
Christian Legnitto
851918ec77
Update CHANGELOG.md 2020-12-12 09:44:00 -10:00
Christian Legnitto
0c83ffde2a
Fix release replacements. (#825)
Some crates need to rewrite values when they are released in other crates. It turns out, by default we use a general config _build/release.toml. So it turns out these local-to-the-crate release.tomls were not being used unless explicitly chosen in the local-to-the-crate Makefile.toml. This removes the dead release.tomls and overrides the ones that need to edit other crates on release.
2020-12-11 19:20:05 -10:00
Graeme Coupar
fe86dbb782
Mark Arc with IsInputType & IsOutputType. (#822)
* Mark `Arc` with `IsInputType` & `IsOutputType`.

We've just updated a service we work with to the latest release of
juniper (it's been on a fairly old master commit for some time).  In
this service we have some fields that are contained within `Arc`s, which
I added support for in #479.

Since then it seems the new marker traits of `IsInputType` &
`IsOutputType` have been added, but they do not support `Arc`, leading
to:

```
error[E0277]: the trait bound `Arc<menu::Menu>: IsOutputType<__S>` is not satisfied
  --> src/graphql.rs:36:1
   |
36 | #[juniper::graphql_object(Context=Context)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `Arc<menu::Menu>`
   |
   = note: required by `juniper::marker::IsOutputType::mark`
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
```

This commit adds support for those, mirroring the support for `Box`.

I'm not sure if there's a good place to add a test for this
functionality so that regressions can be avoided in the future?

* Add Arc tests & FromInputValue for Arc<T>
2020-12-11 16:30:41 -10:00
Christian Legnitto
6326acde33
Fix some clippy lints (#809) 2020-12-10 21:41:23 -10:00
Kunjan Dalal
b418869f95
Update actix and juniper_actix (#823) 2020-12-10 21:40:49 -10:00
Christian Legnitto
1c4497b66c Release juniper_actix 0.2.0 2020-12-09 20:11:02 -10:00
Christian Legnitto
0b6a8895e4 Fix juniper_actix releases 2020-12-09 20:09:35 -10:00
Christian Legnitto
9a8d98a0b1 Release juniper_warp 0.6.0 2020-12-09 20:06:03 -10:00
Christian Legnitto
270deb24dc Fix warp releases 2020-12-09 20:05:14 -10:00