Skip to content

0.10.0 release #236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions changelog/0.10.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# [0.10.0] 2018-09-13

## Changes

- Changed serialization of `NaiveDate` when using the optional `chronos` support.

**Note:** while this is not a Rust breaking change, if you relied on the serialization format (perhaps by storing serialized data in a database or making asumptions in your client code written in another language) it could be a breaking change for your application.

[#151](https://github.com/graphql-rust/juniper/pull/151)

- The `GraphQLObject`, `GraphQLInputObject`, and `GraphQLEnum` custom derives will reject
invalid [names](http://facebook.github.io/graphql/October2016/#Name) at compile time.

[#170](https://github.com/graphql-rust/juniper/pull/170)

- Large integers (> signed 32bit) are now deserialized as floats. Previously,
they produced the "integer out of range" error. For languages that do not
have distinction between integer and floating point types (including
javascript), this means large floating point values which do not have
fractional part could not be decoded (because they are represented without
a decimal part `.0`).

[#179](https://github.com/graphql-rust/juniper/pull/179)

- The `GraphQLObject`, `GraphQLInputObject`, and `GraphQLEnum` custom derives
now parse doc strings and use them as descriptions. This behavior can be
overridden by using an explicit GraphQL `description` annotation such as
`#[graphql(description = "my description")]`.

[#194](https://github.com/graphql-rust/juniper/issues/194)

- Introduced `IntoFieldError` trait to allow custom error handling
i.e. custom result type. The error type must implement this trait resolving
the errors into `FieldError`.

[#40](https://github.com/graphql-rust/juniper/issues/40)

- `GraphQLType` and `ToInputValue` are now implemented for Arc<T>

[#212](https://github.com/graphql-rust/juniper/pull/212)

- Error responses no longer have a _data_ field, instead, error details are stored in the _extensions_ field

**Note:** while this is a breaking change, it is a necessary one to better align with the latest [GraphQL June 2018](https://facebook.github.io/graphql/June2018/#sec-Errors) specification, which defines the reserved _extensions_ field for error details.

[#219](https://github.com/graphql-rust/juniper/pull/219)

* The `GraphQLObject` and `GraphQLInputObject` custom derives
now support lifetime annotations.

[#225](https://github.com/graphql-rust/juniper/issues/225)

* When using the `GraphQLObject` custom derive, fields now be omitted by annotating the field with `#[graphql(skip)]`.

[#220](https://github.com/graphql-rust/juniper/issues/220)

* Due to newer dependencies, the oldest Rust version supported is now 1.22.0

[#231](https://github.com/graphql-rust/juniper/pull/231)
57 changes: 0 additions & 57 deletions changelog/master.md
Original file line number Diff line number Diff line change
@@ -1,60 +1,3 @@
# [master] yyyy-mm-dd

## Changes

* Changed serialization of `NaiveDate` when using the optional `chronos` support.

**Note:** while this is not a Rust breaking change, if you relied on the serialization format (perhaps by storing serialized data in a database or making asumptions in your client code written in another language) it could be a breaking change for your application.

[#151](https://github.com/graphql-rust/juniper/pull/151)

* The `GraphQLObject`, `GraphQLInputObject`, and `GraphQLEnum` custom derives will reject
invalid [names](http://facebook.github.io/graphql/October2016/#Name) at compile time.

[#170](https://github.com/graphql-rust/juniper/pull/170)

* Large integers (> signed 32bit) are now deserialized as floats. Previously,
they produced the "integer out of range" error. For languages that do not
have distinction between integer and floating point types (including
javascript), this means large floating point values which do not have
fractional part could not be decoded (because they are represented without
a decimal part `.0`).

[#179](https://github.com/graphql-rust/juniper/pull/179)

* The `GraphQLObject`, `GraphQLInputObject`, and `GraphQLEnum` custom derives
now parse doc strings and use them as descriptions. This behavior can be
overridden by using an explicit GraphQL `description` annotation such as
`#[graphql(description = "my description")]`.

[#194](https://github.com/graphql-rust/juniper/issues/194)

* Introduced `IntoFieldError` trait to allow custom error handling
i.e. custom result type. The error type must implement this trait resolving
the errors into `FieldError`.

[#40](https://github.com/graphql-rust/juniper/issues/40)

* `GraphQLType` and `ToInputValue` are now implemented for Arc<T>

[#212](https://github.com/graphql-rust/juniper/pull/212)

* Error responses no longer have a *data* field, instead, error details are stored in the *extensions* field

**Note:** while this is a breaking change, it is a necessary one to better align with the latest [GraphQL June 2018](https://facebook.github.io/graphql/June2018/#sec-Errors) specification, which defines the reserved *extensions* field for error details.

[#219](https://github.com/graphql-rust/juniper/pull/219)


* The `GraphQLObject` and `GraphQLInputObject` custom derives
now support lifetime annotations.

[#225](https://github.com/graphql-rust/juniper/issues/225)

* When using the `GraphQLObject` custom derive, fields now be omitted by annotating the field with `#[graphql(skip)]`.

[#220](https://github.com/graphql-rust/juniper/issues/220)

* Due to newer dependencies, the oldest Rust version supported is now 1.22.0

[#231](https://github.com/graphql-rust/juniper/pull/231)
4 changes: 2 additions & 2 deletions juniper/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "juniper"
version = "0.9.2"
version = "0.10.0"
authors = [
"Magnus Hallin <[email protected]>",
"Christoph Herzog <[email protected]>",
Expand Down Expand Up @@ -32,7 +32,7 @@ default = [
]

[dependencies]
juniper_codegen = { version = "0.9.2", path = "../juniper_codegen" }
juniper_codegen = { version = "0.10.0", path = "../juniper_codegen" }

fnv = "1.0.3"
indexmap = { version = "1.0.0", features = ["serde-1"] }
Expand Down
2 changes: 1 addition & 1 deletion juniper_codegen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "juniper_codegen"
version = "0.9.2"
version = "0.10.0"
authors = [
"Magnus Hallin <[email protected]>",
"Christoph Herzog <[email protected]>",
Expand Down
4 changes: 2 additions & 2 deletions juniper_hyper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ serde = "1.0"
serde_json = "1.0"
serde_derive = "1.0"
url = "1.7"
juniper = { version = "0.9" , default-features = false, path = "../juniper"}
juniper = { version = ">=0.9, 0.10.0" , default-features = false, path = "../juniper"}

futures = "0.1"
futures-cpupool = "0.1"
Expand All @@ -24,6 +24,6 @@ tokio = "0.1.8"
reqwest = { git = "https://github.com/seanmonstar/reqwest" }

[dev-dependencies.juniper]
version = "0.9"
version = "0.10.0"
features = ["expose-test-schema", "serde_json"]
path = "../juniper"
9 changes: 5 additions & 4 deletions juniper_iron/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
## [0.2.0] - TBD
## [master]

## [0.2.0] - 2018-09-13

### Changed

* (**breaking**) `context_factory` now returns `IronResult<Context>` instead of `Context`.
- (**breaking**) `context_factory` now returns `IronResult<Context>` instead of `Context`.

## [0.1.2] - 2018-02-10

### Changed

* Extend iron support to 0.6

- Extend iron support to 0.6
6 changes: 3 additions & 3 deletions juniper_iron/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "juniper_iron"
version = "0.1.2"
version = "0.2.0"
authors = [
"Magnus Hallin <[email protected]>",
"Christoph Herzog <[email protected]>",
Expand All @@ -14,7 +14,7 @@ repository = "https://github.com/graphql-rust/juniper"
serde = { version = "1.0.2" }
serde_json = { version = "1.0.2" }
serde_derive = { version = "1.0.2" }
juniper = { version = "0.9.2", path = "../juniper" }
juniper = { version = ">=0.9, 0.10.0", path = "../juniper" }

urlencoded = { version = ">= 0.5, < 0.7" }
iron = ">= 0.5, < 0.7"
Expand All @@ -27,6 +27,6 @@ logger = "0.4"
url = "1.7.1"

[dev-dependencies.juniper]
version = "0.9.2"
version = "0.10.0"
features = ["expose-test-schema", "serde_json"]
path = "../juniper"
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# [master]

# juniper_rocket [0.1.3] 2018-09-13

- Add `juniper-0.10.0` compatibility.

# juniper_rocket [0.1.2] 2018-01-13

## Changes
Expand Down
6 changes: 3 additions & 3 deletions juniper_rocket/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "juniper_rocket"
version = "0.1.2"
version = "0.1.3"
authors = [
"Magnus Hallin <[email protected]>",
"Christoph Herzog <[email protected]>",
Expand All @@ -14,12 +14,12 @@ repository = "https://github.com/graphql-rust/juniper"
serde = { version = "1.0.2" }
serde_json = { version = "1.0.2" }
serde_derive = { version = "1.0.2" }
juniper = { version = "0.9.2" , default-features = false, path = "../juniper"}
juniper = { version = ">=0.9, 0.10.0" , default-features = false, path = "../juniper"}

rocket = { version = "0.3.9" }
rocket_codegen = { version = "0.3.9" }

[dev-dependencies.juniper]
version = "0.9.2"
version = "0.10.0"
features = ["expose-test-schema", "serde_json"]
path = "../juniper"
6 changes: 0 additions & 6 deletions juniper_rocket/changelog/master.md

This file was deleted.

2 changes: 1 addition & 1 deletion juniper_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "juniper_tests"
version = "0.1.0"

[dependencies]
juniper = { version = "0.9.2", path = "../juniper" }
juniper = { version = "0.10.0", path = "../juniper" }
serde_json = { version = "1" }

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions juniper_warp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repository = "https://github.com/graphql-rust/juniper"

[dependencies]
warp = "0.1.2"
juniper = { path = "../juniper", version = "0.9.2", default-features = false }
juniper = { path = "../juniper", version = ">=0.9, 0.10.0", default-features = false }
serde_json = "1.0.24"
serde_derive = "1.0.75"
failure = "0.1.2"
Expand All @@ -17,7 +17,7 @@ futures = "0.1.23"
serde = "1.0.75"

[dev-dependencies]
juniper = { path = "../juniper", version = "0.9.2", features = ["expose-test-schema", "serde_json"] }
juniper = { path = "../juniper", version = "0.10.0", features = ["expose-test-schema", "serde_json"] }
percent-encoding = "1.0"

[workspace]
Expand Down
2 changes: 1 addition & 1 deletion juniper_warp/examples/warp_server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ warp = "0.1.0"
juniper_warp = { path = "../.." }
env_logger = "0.5.11"
log = "0.4.3"
juniper = { path = "../../../juniper", version = "0.9.2", features = ["expose-test-schema", "serde_json"] }
juniper = { path = "../../../juniper", version = ">=0.9, 0.10.0", features = ["expose-test-schema", "serde_json"] }