tyranron
f0b63c4a63
Prepare 0.16.0 release of juniper
crate ( #1198 )
2024-03-20 18:13:23 +02:00
Kai Ren
ec0d7d8097
Rework Book ( #1230 )
...
- rework and update existing chapters
- mention correct case transformation for GraphQL enums (#1029 )
- document N+1 mitigation techniques and look-ahead features (#234 , #444 )
- mention all integration crates (#867 )
- fix Book links (#679 , #974 , #1056 )
- remove old version of Book (#1168 )
Additionally:
- disable `bson`, `url`, `uuid` and `schema-language` Cargo features by default in `juniper` crate
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2024-03-20 15:53:25 +01:00
tyranron
df24749727
Update copyright notices to 2024 year
2024-01-02 15:59:19 +01:00
dependabot[bot]
813c0d1210
Upgrade juniper_hyper
to 1.0 hyper
( #1217 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kai Ren <tyranron@gmail.com>
2023-11-17 13:04:37 +00:00
dependabot[bot]
782eccba47
Upgrade syn
crate to 2.0 version ( #1157 )
...
- replace `proc-macro-error` crate with simplified `common::diagnostic::pollyfill`
- migrate `juniper_codegen_tests` to stable Rust
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kai Ren <tyranron@gmail.com>
2023-11-01 19:00:05 +01:00
Kai Ren
f172be5656
Fix operation_name
not being set in juniper_hyper
( #1169 , #1187 )
2023-09-12 14:45:56 +02:00
Christian Legnitto
108ccf2715
Clippy fixes ( #1181 )
2023-08-25 22:48:01 +00:00
dependabot[bot]
d7dcb3b2e5
Upgrade pretty_env_logger
crate to 0.5 version ( #1165 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-07 10:58:23 +00:00
tyranron
6aa6385437
Bump up MSRV to 1.65.0
2022-12-19 09:31:23 +01:00
tyranron
d21cc68933
Fix reqwest
features
2022-12-18 18:39:59 +01:00
Kai Ren
f3df70693c
Improve CI ( #1113 )
...
- switch to `dtolnay/rust-toolchain` GitHub action
- restore release Git tag format and correct `cargo-release` integration
- enable MSRV check
- integrate `cargo-careful`
2022-10-21 16:07:17 +00:00
Lukas Kalbertodt
e0ddeecf3c
Change body type of juniper_hyper
functions from Body
to String
( #1101 , #1096 )
2022-09-19 15:59:33 +00:00
tyranron
e9482c3f18
Fix codegen tests for latest nightly Rust
2022-08-29 17:10:40 +03:00
tyranron
ef7a7e8229
Upgrade to 2021 Rust edition
...
- set 1.62 Rust as MSRV
- use new fmt syntax where possible
- refactor `.to_owned()`, `.to_string()` and `.into()` usage
- rename `IntoResolvable::into()` as `IntoResolvable::into_resolvable()` to disambiguate with `Into::into()`
- use `#[derive(Default)]` for enums where possible
- use `bool::then_some()` where possible
2022-07-13 15:20:10 +02:00
Kai Ren
72ed45a77c
Rework CI and project toolchain ( #1043 )
...
- remove `cargo-make` integration
- rework CI pipeline more granular and precise
- rework releasing process
- tune up project layout
- fill up new CHANGELOGs
Additionally:
- fix latest nightly/stable Rust inconsistencies
2022-04-08 17:44:50 +03: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
589acb5a7b
Merge security fixes from 0.15 juniper
releases
2022-02-02 19:37:24 +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
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
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
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
Christian Legnitto
06bdf0bfad
Release juniper_hyper 0.8.0
2021-07-08 00:07:53 -07:00
Christian Legnitto
88b10fe009
Release juniper 0.15.7
2021-07-08 00:01:56 -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
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
tyranron
e998457c0e
Release juniper 0.15.5
2021-05-11 17:38:32 +03:00
Christian Legnitto
5225b9e06c
Release juniper_hyper 0.7.0
2021-04-03 15:54:19 -10:00
Christian Legnitto
178dc6cf94
Update CHANGELOG.md
2021-04-03 15:52:53 -10:00
Christian Legnitto
97d8b70ea0
Release juniper 0.15.4
2021-04-03 15:36:50 -10:00
Samuel Ainsworth
7a76be7407
Make juniper_hyper functions return Response<Body>
where applicable ( #889 )
...
* graphql, graphiql, playground return Response<Body>
* And don't forget about `graphql_sync`!
* fix juniper_hyper tests
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2021-04-01 18:08:01 -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
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
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
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
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
Christian Legnitto
6326acde33
Fix some clippy lints ( #809 )
2020-12-10 21:41:23 -10:00
Christian Legnitto
17523aebd4
Release juniper_hyper 0.6.0
2020-12-09 19:20:43 -10:00
Christian Legnitto
bfe627e573
Release juniper 0.15.0
2020-12-09 19:19:43 -10:00
Kai Ren
421b343398
Remove redundant extern crate
usages ( #790 )
...
Additionally:
- remove obsolete benches in benches/ dir
- restore benches in juniper/benches/ dir
2020-10-19 19:42:27 +03:00
Kai Ren
cbf16c5a33
Make interfaces great again! ( #682 )
...
* Bootstrap
* Upd
* Bootstrap macro
* Revert stuff
* Correct PoC to compile
* Bootstrap #[graphql_interface] expansion
* Bootstrap #[graphql_interface] meta parsing
* Bootstrap #[graphql_interface] very basic code generation [skip ci]
* Upd trait code generation and fix keywords usage [skip ci]
* Expand trait impls [skip ci]
* Tune up objects [skip ci]
* Finally! Complies at least... [skip ci]
* Parse meta for fields and its arguments [skip ci]
- also, refactor and bikeshed new macros code
* Impl filling fields meta and bootstrap field resolution [skip ci]
* Poking with fields resolution [skip ci]
* Solve Rust's teen async HRTB problems [skip ci]
* Start parsing trait methods [skip ci]
* Finish parsing fields from trait methods [skip ci]
* Autodetect trait asyncness and allow to specify it [skip ci]
* Allow to autogenerate trait object alias via attribute
* Support generics in trait definition and asyncify them correctly
* Temporary disable explicit async
* Cover arguments and custom names/descriptions in tests
* Re-enable tests with explicit async and fix the codegen to satisfy it
* Check implementers are registered in schema and vice versa
* Check argument camelCases
* Test argument defaults, and allow Into coercions for them
* Re-enable markers
* Re-enable markers and relax Sized requirement on IsInputType/IsOutputType marker traits
* Revert 'juniper_actix' fmt
* Fix missing marks for object
* Fix subscriptions marks
* Deduce result type correctly via traits
* Final fixes
* Fmt
* Restore marks checking
* Support custom ScalarValue
* Cover deprecations with tests
* Impl dowcasting via methods
* Impl dowcasting via external functions
* Support custom context, vol. 1
* Support custom context, vol. 2
* Cover fallible field with test
* Impl explicit generic ScalarValue, vol.1
* Impl explicit generic ScalarValue, vol.2
* Allow passing executor into methods
* Generating enum, vol.1
* Generating enum, vol.2
* Generating enum, vol.3
* Generating enum, vol.3
* Generating enum, vol.4
* Generating enum, vol.5
* Generating enum, vol.6
* Generating enum, vol.7
* Generating enum, vol.8
* Refactor juniper stuff
* Fix juniper tests, vol.1
* Fix juniper tests, vol.2
* Polish 'juniper' crate changes, vol.1
* Polish 'juniper' crate changes, vol.2
* Remove redundant stuf
* Polishing 'juniper_codegen', vol.1
* Polishing 'juniper_codegen', vol.2
* Polishing 'juniper_codegen', vol.3
* Polishing 'juniper_codegen', vol.4
* Polishing 'juniper_codegen', vol.5
* Polishing 'juniper_codegen', vol.6
* Polishing 'juniper_codegen', vol.7
* Polishing 'juniper_codegen', vol.8
* Polishing 'juniper_codegen', vol.9
* Fix other crates tests and make Clippy happier
* Fix examples
* Add codegen failure tests, vol. 1
* Add codegen failure tests, vol. 2
* Add codegen failure tests, vol.3
* Fix codegen failure tests accordingly to latest nightly Rust
* Fix codegen when interface has no implementers
* Fix warnings in book tests
* Describing new interfaces in Book, vol.1
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2020-10-05 21:21:01 -10:00
samuela
368ea6f96f
remove unnecessary moves ( #740 )
2020-08-19 19:09:43 -10:00
Mihai Dinculescu
45c16acc6e
Actix subscriptions tests ( #736 )
...
* Actix subscriptions tests
* Use LocalBoxFuture instead of async-trait
* expose-test-schema already includes serde_json
* Add anyhow to juniper dev-dependencies
* The HTTP test helpers are not needed for juniper tests
* juniper_actix does not need tokio in dev-dependencies
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2020-08-18 21:08:53 -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
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