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
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