Commit graph

595 commits

Author SHA1 Message Date
Christoph Herzog
5c976ba60d (ci) Update Rust versions built on travis
Since Rust 1.23 was released, only build 1.22 and 1.21 now.
2018-01-13 10:43:21 +01:00
Christoph Herzog
40c946c81c 0.9.2 release
* Changelogs
* Update versions and dependency versions
2018-01-13 10:34:30 +01:00
Christoph Herzog
5670fc7eb1 add decode query params to 0.1.2 changelog. 2018-01-13 10:02:43 +01:00
Christian Legnitto
9362d6954c url_decode parameters in Rocket integration
Also as part of this change I fixed and enabled
the http integration tests for Rocket.

Fixes https://github.com/graphql-rust/juniper/issues/116.
2018-01-13 08:50:13 +00:00
Christoph Herzog
883dd0b2ee juniper_rocket 0.1.2 release
* Bump version
* fix up changelog
2018-01-13 09:42:01 +01:00
sagie gur ari
23cf596748 windows build 2018-01-13 08:36:08 +00:00
Christian Legnitto
5b439f3fc1 Add a master changelog
This makes it so people using git dependencies know what has changed. It also
gives a spot to make a running changelog so when we do a release we can just
copy and paste.
2018-01-13 08:22:23 +00:00
Josh Marlow
b1543f480a Fixed case where .unwrap was being called instead of the Option just being propagated up the call chain 2018-01-13 08:20:51 +00:00
Christian Legnitto
ff01738a60 Update rocket in juniper_rocket to work with latest nightlies
`juniper_rocket` now requires nightly >= 2018-01-12. See
https://github.com/SergioBenitez/Rocket/issues/513#issuecomment-357407524.

Fixes https://github.com/graphql-rust/juniper/issues/125.
2018-01-13 07:50:33 +00:00
Christian Legnitto
d34b6a85ad Fix some warnings 2018-01-13 07:48:39 +00:00
theduke
0c15c99223
Fix test schema link in README 2017-12-26 08:03:40 +01:00
Christian Legnitto
5c3fb8e913 Update Rocket to latest version
Rocket requires nightly, but on nightly 2017-12-13 and after
the version of Rocket juniper's integration was using wouldn't
build. This is solved by updating Rocket to `0.3.4` which
according to the [changelog](https://github.com/SergioBenitez/Rocket/blob/v0.3.4/CHANGELOG.md#version-034-dec-14-2017):

"Codegen was updated for 2017-12-13 nightly."
2017-12-22 09:06:34 +01:00
Christian Legnitto
203af1ce98 Support __typename for unions
See http://graphql.org/learn/queries/#meta-fields.

Fixes https://github.com/graphql-rust/juniper/issues/112.
2017-12-06 11:26:31 +01:00
theduke
ca9d5c1c1a Bump to 0.9.1 and fix up Cargo.toml files 2017-12-03 18:48:38 +01:00
theduke
0f916f4aa6 Remove ResultExt and jtry! macro 2017-12-03 18:33:35 +01:00
theduke
eb70d29e04 Fix readme link in juniper crate 2017-12-03 17:17:41 +01:00
theduke
5af0e4a0a7 (ci) Fix deployment via travis
Deploy juniper and juniper_codegen on tags.
2017-12-03 17:00:39 +01:00
theduke
b46951717d
Merge pull request #114 from graphql-rust/v09
0.9 release
2017-12-03 15:32:13 +01:00
theduke
ed58f2671b Final readme and cargo.toml fixups 2017-12-03 15:14:23 +01:00
theduke
7344b53f57 Add changelog for 0.9.0 2017-12-03 15:05:20 +01:00
theduke
1d6645cc1c (ci) Drop 32bit builds on appveyor
Who uses 32bit anymore anyway?
This cuts appveyor build times in half.
2017-12-03 13:14:29 +01:00
theduke
e37b7cc77d Fix repository links in iron/rocket Cargo.toml 2017-12-03 13:12:45 +01:00
theduke
b6d9c337d0 Fix appveyor badge in README 2017-12-03 13:12:41 +01:00
theduke
e4cf21086c (ci) Stop using cargo-make on appveyor.
Neccessary due to failing builds...
2017-12-03 11:24:24 +01:00
Sagie Gur-Ari
9e424a8630 v09 build fix for windows (#115)
Fix cargo make makefiles for only running the juniper_rocket build on nightly.
2017-12-03 10:31:56 +01:00
theduke
00e80bbe88 (tests) Only build juniper_rocket on nightly 2017-12-03 00:40:49 +01:00
theduke
4d6a99fe4e Fix up Cargo.toml files and documentation. 2017-12-02 18:33:20 +01:00
theduke
b89712a887 Add juniper_rocket back to main repo
This is done for a lower maintainance burden and combined testing.
2017-12-02 15:59:23 +01:00
theduke
bec5295827 Move juniper_iron crate back into the main repo.
This is done for a lower maintainance burden and combined testing.
2017-12-02 15:56:52 +01:00
theduke
bdb1dd34af (ci) Make appveyor and travis run the same test command 2017-12-02 15:54:39 +01:00
theduke
0024e67dae Move enum introspection tests to executor_tests 2017-12-02 15:46:11 +01:00
theduke
0e3c9940c6 Exchange graphql_input_object! macro to custom derive
* Refactor all internal use to derive
* Remove macro
* Move tests to executor_tests
2017-12-02 15:43:41 +01:00
theduke
643875838d (codegen) improve derive for InputObject
* Implement hack to allow usage in juniper crate
* implement (default) attribute for Default::default()
* Improve tests
2017-12-02 15:43:41 +01:00
theduke
45859bf405 (ci) Only test latest 3 rust versions on travis 2017-12-02 15:43:41 +01:00
theduke
6ff3f1fba4 (codegen) Improve enum field name generation
Introduce a to_upper_snake_case() helper to properly convert enum names
to GraphQL compatible names.

Previously, "SomeEnum" would be converted to "SOMEENUM" and not
"SOME_ENUM".
2017-12-02 15:43:41 +01:00
theduke
f858f416b8 Remove graphql_enum! macro in favor of custom derive
* Extend derive for enums to allow deriving inside the juniper crate
  itself. Note: this is a rather ugly hack right now, FIXME is in the
  code
* Remove the graphql_enum! macro and replace all internal use with
  derive
* Refactor introspection tests to use derive
2017-12-02 15:43:22 +01:00
theduke
b1a62d68e9 (tests) Fix derive_enum test to actually test custom names 2017-12-02 05:00:20 +01:00
theduke
709231dc46 Make juniper_codegen dependency non-optional. 2017-12-02 03:55:14 +01:00
theduke
40d8f905e9 Move executor.rs in subfolder
Preparation for splitting up executor.rs
2017-12-02 03:51:28 +01:00
theduke
f3626c57c6 Move to_camel_case helper to util module. 2017-12-02 03:36:07 +01:00
theduke
a7b6056b37 (test) Add a nested object test for derive(GraphQLObject) 2017-12-02 03:12:47 +01:00
theduke
7b066ef1f9 (docs) Add short crate docs to codegen. 2017-12-02 02:35:08 +01:00
theduke
3750349e71 Bump version to 0.9.0 2017-12-02 02:31:56 +01:00
theduke
141292ad91 Export codegen from main juniper crate
Use a trick for re-exporting proc-macros to supply juniper_derive as a
dependency of juniper.

Users will now just have to depend on juniper directly.
2017-12-02 02:27:41 +01:00
Magnus Hallin
c4ded5781d Fix bug where non-null lists could contain null if errors were returned 2017-11-20 08:53:51 +01:00
Magnus Hallin
23105259de Add another test for null handling in lists 2017-11-20 08:53:32 +01:00
Magnus Hallin
d0e9202f41 Add tracking of the current type being resolved in the Executor
This is not 100% accurate - it will be set to the literal type of what
a field returns, so it might be wrapped in non-null/list when it
technically shouldn't.

For this use-case it's fine, but if we want to (officially) add it to
the public API surface, we should probably make it accurate.
2017-11-20 08:53:13 +01:00
Jacob Haslehurst
8cf2707faa add failing test for list of non-null items for issue #84 2017-11-20 11:44:11 +11:00
Magnus Hallin
bee88d4265 Add more supported Rust versions 2017-11-18 18:47:02 +01:00
Magnus Hallin
dca88b0fa4 Don't use global variable in test 2017-11-18 18:33:57 +01:00