Commit graph

1155 commits

Author SHA1 Message Date
ilslv
63198cdfcb
Redesign #[graphql_scalar] macro (#1014, #1000)
- support generic scalars
- make it applicable to type aliases and struct/enums/unions
2022-02-24 17:12:17 +02:00
tyranron
3a70403aba
Temporary disable release automation check on CI 2022-02-02 20:25:06 +02:00
tyranron
77d4c90b23
Bump up juniper and juniper_codegen version to 0.16.0-dev to disambiguate release automation on CI 2022-02-02 20:08:41 +02:00
tyranron
47997d2cfb
Switch CI to 0.19.4 cargo-release 2022-02-02 19:52:28 +02:00
tyranron
589acb5a7b
Merge security fixes from 0.15 juniper releases 2022-02-02 19:37:24 +02:00
tyranron
82761736ce
Release juniper_iron 0.7.6 2022-02-02 18:37:23 +02:00
tyranron
6dbb5741c7
Release juniper_hyper 0.7.3 2022-02-02 18:36:00 +02:00
tyranron
855137cde6
Release juniper 0.15.9 2022-02-02 18:33:41 +02:00
tyranron
a0a566bc5b
Release juniper_codegen 0.15.9 2022-02-02 18:28:30 +02:00
tyranron
bb35c66448
Make validation execute in stages to avoid possible infinite recursion 2022-02-02 18:27:08 +02:00
Christian Legnitto
5304237d7c Release juniper_actix 0.3.1 2022-01-26 23:53:08 -08:00
Christian Legnitto
ad82364c5a Release juniper_warp 0.6.5 2022-01-26 23:51:58 -08:00
Christian Legnitto
bae27e8694 Release juniper_graphql_ws 0.2.6 2022-01-26 23:51:12 -08:00
Christian Legnitto
5fb222e66f Release juniper_subscriptions 0.15.6 2022-01-26 23:50:29 -08:00
Christian Legnitto
a64fdc3522 Release juniper_rocket 0.7.2 2022-01-26 23:48:27 -08:00
Christian Legnitto
b251de65fa Release juniper_iron 0.7.5 2022-01-26 23:47:25 -08:00
Christian Legnitto
12feeb0cd4 Release juniper_hyper 0.7.2 2022-01-26 23:46:19 -08:00
Christian Legnitto
3025ab0a4a Release juniper 0.15.8 2022-01-26 23:28:49 -08:00
Christian Legnitto
1fd518e72c Release juniper_codegen 0.15.8 2022-01-26 23:28:15 -08:00
Christian Legnitto
4b0aabe9f6 More breaking changes with cargo-release 0.19.0 2022-01-26 23:21:46 -08:00
Christian Legnitto
399a79056a Update key for newer cargo-release 2022-01-26 22:47:29 -08:00
Christian Legnitto
c28c77e458 Fix panic on malformed queries with recursive fragments.
This is a potential denial-of-service attack vector. Thanks to
[@quapka](https://github.com/quapka) for the detailed vulnerability report
and reproduction steps.
2022-01-26 22:31:10 -08:00
Christian Legnitto
17d474ed21 Fix panic on malformed queries with recursive fragments.
This is a potential denial-of-service attack vector. Thanks to
[@quapka](https://github.com/quapka) for the detailed vulnerability report
and reproduction steps.
2022-01-26 20:24:27 -10:00
ilslv
1aa1000c3b
Redesign #[graphql_interface] macro (#1009, #1000, #814)
- remove support for `#[graphql_interface(dyn)]`
- describe all interface trait methods with type's fields or impl block instead of `#[graphql_interface]` attribute on `impl Trait`
- forbid default impls on non-skipped trait methods
- support additional nullable arguments on implementer
- support returning sub-type on implementer
2022-01-26 20:58:53 +02:00
Drew
c866e091a4
Update versions referenced in server integration docs (#1013) 2022-01-03 12:47:53 +02:00
ilslv
eb83b60c9a
Support directives on variables definitions (#1005, #1000) 2021-12-21 19:14:34 +02:00
tyranron
18b10af9f3
Improve time crate integration (#1006)
- fix input/result coercions for `OffsetDateTime` according to spec
- use `@specifyByUrl` directive
- remove `time` from default features
2021-12-20 19:33:39 +01:00
ilslv
d9e209a19d
Add @deprecated directive (#1008) 2021-12-20 19:51:46 +02:00
ilslv
f504da6d15
Fix juniper_codegen_tests assertions (#1007) 2021-12-20 14:50:49 +02:00
ilslv
847d09fb5e
Support @specifiedBy(url: "...") directive via specified_by_url attribute argument in #[graphql_scalar] and #[derive(GraphQLScalarValue)] macros (#1003, #1000)
- support `isRepeatable` field on directives
- support `__Schema.description`, `__Type.specifiedByURL` and `__Directive.isRepeatable` fields in introspection
2021-12-20 13:36:27 +02:00
Scott Wilson
3e4d4ea76e
Support time crate types as GraphQL scalars (#1006)
Co-authored-by: Kai Ren <tyranron@gmail.com>
2021-12-16 22:43:15 +02:00
ilslv
265d4c5bb2
Fix list input coercion rules (#1004)
Additionally:
- fix WASM builds after 2.1 version of `bson`
2021-12-16 12:36:53 +02:00
Kai Ren
46be97ada4
Refactor FromInputValue to return Result instead of Option (#987)
- propagate `FromInputValue` conversion errors during validation
- replace panics with errors during resolving

Co-authored-by: ilslv <ilya.solovyiov@gmail.com>
2021-12-14 19:30:27 +02:00
ilslv
e264cf509d
Forbid __typename on subscription root (#1001, #1000) 2021-12-13 14:27:14 +02:00
ilslv
09da50b143
Upgrade actix-web to latest beta versions 2021-12-13 12:22:07 +01:00
talhaguy
7bc8a2b79d
Fix links to latest stable Book (#1002) 2021-12-09 18:07:46 +02:00
dependabot[bot]
811c90486d
Upgrade graphql-parser to 0.4 version (#998)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ilya Solovyiov <ilya.solovyiov@gmail.com>
2021-11-30 10:50:09 +02:00
Kai Ren
acde85a814
Implement graphql_input_value! and graphql_vars! macros (#996, #503)
- add `From` impls to `InputValue` mirroring `Value` impls to provide better support for `Option` handling
- support expressions in `graphql_value!` macro
- use `null` in addition to `None` to create `Value::Null` in `graphql_value!` macro to mirror `serde_json::json!`
- use macros for `InputValue` and `Variables` construction in tests

Co-authored-by: Ilya Solovyiov <ilya.solovyiov@gmail.com>
2021-11-26 18:53:56 +02:00
ilslv
bc66a2d898
Upgrade actix-web beta versions (#995) 2021-11-23 10:49:55 +02:00
Kai Ren
f66296d618
Replace ScalarValue::Visitor with DeserializeOwned requirement (#985)
- remove `Serialize` impl from `#[derive(GraphQLScalarValue)]` macro expansion
2021-10-11 21:53:04 +03:00
tyranron
168114fcf0
Use async Mutex in juniper_actix to fix latest nightly errors 2021-10-11 19:24:30 +03:00
dependabot[bot]
a8759b0a30 Update pretty_assertions requirement from 0.7.1 to 1.0.0
Updates the requirements on [pretty_assertions](https://github.com/colin-kiegel/rust-pretty-assertions) to permit the latest version.
- [Release notes](https://github.com/colin-kiegel/rust-pretty-assertions/releases)
- [Changelog](https://github.com/colin-kiegel/rust-pretty-assertions/blob/main/CHANGELOG.md)
- [Commits](https://github.com/colin-kiegel/rust-pretty-assertions/compare/v0.7.1...v1.0.0)

---
updated-dependencies:
- dependency-name: pretty_assertions
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-28 16:15:35 -10:00
jsus
7818173c86 Quickfix 2021-09-25 18:19:07 -10:00
jsus
13fc0dadeb Using newtype for context 2021-09-25 18:19:07 -10:00
jsus
6ba8ead1fd Using context for Database
For some this error is not uncovered during compile time
2021-09-25 18:19:07 -10:00
jsus
18c479e999 Fixes for async example 2021-09-25 18:19:07 -10:00
tyranron
dfda435bc7 Improve description and fix some test errors 2021-09-25 18:19:07 -10:00
jsus
9bd9727cb2 self.id fix in mutable context example 2021-09-25 18:19:07 -10:00
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