Commit graph

1057 commits

Author SHA1 Message Date
jsus
8d27055561 Added async mutable context example 2021-09-25 18:19:07 -10:00
dependabot[bot]
7ba7585d75
Update chrono-tz requirement from 0.5 to 0.6 (#982)
Updates the requirements on [chrono-tz](https://github.com/chronotope/chrono-tz) to permit the latest version.
- [Release notes](https://github.com/chronotope/chrono-tz/releases)
- [Changelog](https://github.com/chronotope/chrono-tz/blob/main/CHANGELOG.md)
- [Commits](https://github.com/chronotope/chrono-tz/commits/v0.6.0)

---
updated-dependencies:
- dependency-name: chrono-tz
  dependency-type: direct:production
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-23 16:55:20 -07:00
nickelc
b9257ef7d4
Fix Clippy warnings (#980) 2021-09-12 20:38:41 +03:00
dependabot[bot]
6bb34b9b64
Upgrade 'bson' crate to 2.0 version (#932, #979)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kai Ren <tyranron@gmail.com>
Co-authored-by: Grant Perry <grant42perry@gmail.com>
2021-09-08 19:42:07 +03:00
nitnelave
4c76e93cfb
Fix endpoint name typo in juniper_actix example, vol.2 (#977, #976) 2021-08-26 10:38:16 +03:00
nitnelave
717c202ba9
Fix endpoint name typo in juniper_actix example (#976) 2021-08-26 10:15:35 +03:00
tyranron
74afe4c04a
Use graphql_value!() macro in tests asap 2021-08-13 02:12:01 +03:00
Kai Ren
a3fda7363d
Rework codegen for GraphQL objects and subscriptions (#971, #421)
- preserve and reuse defined impl blocks in #[graphql_object] and #[graphql_subscription] macros expansion
- allow renaming `ScalarValue` type parameter in expanded code via `scalar = S: ScalarValue` syntax

Additionally:
- rename `rename` attribute's argument to `rename_all`
- support `rename_all` in #[graphql_interface] macro
2021-08-11 17:41:49 +03:00
Kai Ren
39d1e43420
Allow using Rust arrays as GraphQL lists (#918) (#966)
* Provide impls for arrays

* Remove redundant Default bound

* Recheck other places of mem::transmute usage

* Fix missing marker impls

* Extend GraphQL list validation with optional expected size

* Improve input object codegen

* Cover arrays with tests

* Add CHANGELOG entry

* Consider panic safety in FromInputValue implementation for array

* Tune up codegen failure tests
2021-07-23 14:51:47 -10:00
tyranron
8a90f867d4
Expose GraphQLRequest fields (#750) 2021-07-21 20:45:01 +03:00
tyranron
d211f4a8ef
Ensure operation roots resolve their __typename (#372) 2021-07-21 19:14:13 +03:00
tyranron
ad64025572
Strip redundant fields in codegen producing warnings 2021-07-21 18:16:29 +03:00
Kai Ren
64fb83f5aa
Provide access to juniper::GraphQLBatchRequest from juniper_rocket::GraphQLRequest via AsRef/AsMut (#968, #930) 2021-07-21 17:33:11 +03:00
tyranron
5fbd751de2
Fix spelling in documentation for juniper::Object (#960) 2021-07-19 14:07:58 +03:00
Kai Ren
7597523720
Allow spreading interface fragments on unions and other interfaces (#965, #798) 2021-07-19 14:06:47 +03:00
dependabot[bot]
88a7571b30
Update env_logger requirement from 0.8.1 to 0.9.0 (#964)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: tyranron <tyranron@gmail.com>
2021-07-16 12:01:18 +03:00
Christian Legnitto
547e65e124
Update README.md 2021-07-08 00:25:31 -07:00
Christian Legnitto
439829b1f5 Release juniper_actix 0.4.0 2021-07-08 00:16:47 -07:00
Christian Legnitto
fd8c414f18 Release juniper_warp 0.7.0 2021-07-08 00:12:02 -07:00
Christian Legnitto
d4a5ed4b0e Release juniper_graphql_ws 0.3.0 2021-07-08 00:10:57 -07:00
Christian Legnitto
ac2c2e19a1 Release juniper_subscriptions 0.16.0 2021-07-08 00:09:19 -07:00
Christian Legnitto
06bdf0bfad Release juniper_hyper 0.8.0 2021-07-08 00:07:53 -07:00
Christian Legnitto
fe9c89c73c Release juniper_rocket 0.8.0 2021-07-08 00:04:03 -07:00
Christian Legnitto
88b10fe009 Release juniper 0.15.7 2021-07-08 00:01:56 -07:00
Christian Legnitto
f50ef5dfaa Release juniper_codegen 0.15.7 2021-07-08 00:00:55 -07:00
Christian Legnitto
28c116411d
Switch releasing commands from a blocklist to an allowlist (#956)
* Switch releasing commands from a blocklist to an allowlist

This is much better as we can hardocde the crates to filter out in
one place, can selectively release certain crates easily,
and only have one command instead of the "-some" hack

* get rid of workaround no longer needed

* More makefiles
2021-07-07 23:47:16 -07:00
Christian Legnitto
93deb2862a
Make juniper_rocket_async replace juniper_rocket (#955)
* Make juniper_rocket_async replace juniper_rocket

Now that rocket v0.5 is async and in rc, merge the two juniper projects.

Fixes https://github.com/graphql-rust/juniper/issues/947.

* Remove println
2021-07-07 09:26:22 -07:00
Christian Legnitto
bb55ad11cc
Update book.yml 2021-07-06 17:05:03 -07:00
Christian Legnitto
d8fb1da0a2
Update README.md 2021-07-06 16:33:30 -07:00
Christian Legnitto
1aa68ee440
Update CHANGELOG.md 2021-07-06 16:25:39 -07:00
Christian Legnitto
1146a01331
Use actix betas to allow publishing on crates.io (#954) 2021-07-06 16:23:41 -07:00
Jordão Rodrigues Oliveira Rosario
6ada6b09a9
Actix v4.0.0-beta.8 support (#952) 2021-07-06 15:41:42 -07:00
Jordão Rodrigues Oliveira Rosario
739cc3bfc2
Upgraded tokio, warp, hyper and actix (#912)
* Upgraded tokio, warp, hyper and actix

* Code formatting

* actix-web temporary version fix specification

* Error handling fix on juniper_rocket

Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2021-06-28 20:22:45 -10:00
Filip Gospodinov
de4c0e9088
juniper_codegen: macro hygiene for graphql_subscription (#948)
Fully qualify `std::result::Result` such that it doesn't
collide with locally defined type aliases for `Result`.
This improves macro hygiene.
2021-06-26 13:15:41 -10:00
Idan Mintz
d4fda786ba
Fixes panic when spreading untyped union fragment. (#946)
* Fixes panic when spreading untyped union fragment.

closes #945

* Fix ci breakage with explicit lifetime annotation in juniper_rocket_async
2021-06-14 00:52:41 -07:00
Filip Gospodinov
2241da7901
juniper_rocket_async: bump to 0.5.0-rc.1 (#944) 2021-06-13 18:59:34 -10:00
Christian Legnitto
ae199387fc Release juniper_actix 0.2.5 2021-06-07 19:43:43 -07:00
Christian Legnitto
261dc205d0 Release juniper_warp 0.6.4 2021-06-07 19:42:28 -07:00
Christian Legnitto
831211911b Release juniper_graphql_ws 0.2.5 2021-06-07 19:41:31 -07:00
Christian Legnitto
da85f01115 Release juniper_subscriptions 0.15.5 2021-06-07 19:40:35 -07:00
Christian Legnitto
5a8d4c053c Release juniper_rocket 0.7.1 2021-06-07 18:40:25 -07:00
Christian Legnitto
44f086b268 Release juniper_iron 0.7.4 2021-06-07 18:33:50 -07:00
Christian Legnitto
9f3fc0c83a Release juniper_hyper 0.7.1 2021-06-07 18:24:23 -07:00
Christian Legnitto
5dee177fb1 Release juniper 0.15.6 2021-06-07 18:23:16 -07:00
Christian Legnitto
3d57c8316d Release juniper_codegen 0.15.6 2021-06-07 18:22:09 -07:00
Christian Legnitto
d286ec781e Release juniper_rocket 0.7.0 2021-06-07 18:15:04 -07:00
Christian Legnitto
84a07c4a93
Re-record fixtures for latest nightly error messages (#941) 2021-06-06 15:57:14 -07:00
Sujay Jayakar
777b0d4349
Don't require () TypeInfo for schema language methods (#935)
* Don't require `()` TypeInfo for schema language methods

* Add PR to CHANGELOG.md

Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2021-06-06 15:35:23 -07:00
Christian Legnitto
2cb026fe53
Support latest rocket 0.4 (#940)
There was a regression:

https://github.com/SergioBenitez/Rocket/issues/1647

Fixes https://github.com/graphql-rust/juniper/issues/939.
2021-06-06 15:27:24 -07:00
ihor-rud
d3896bd33c
Fix using graphql_scalar proc macro inside a macro (#933) 2021-06-06 15:05:53 -07:00