diff --git a/crates/apollo-compiler/CHANGELOG.md b/crates/apollo-compiler/CHANGELOG.md index 0a5e77b79..916ba3481 100644 --- a/crates/apollo-compiler/CHANGELOG.md +++ b/crates/apollo-compiler/CHANGELOG.md @@ -16,6 +16,39 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## Maintenance ## Documentation --> +# [0.9.4](https://crates.io/crates/apollo-compiler/0.9.4) - 2023-06-05 + +## Features +- accept any primitive value type for custom scalar validation, by [lrlna] in [pull/575] + + If you provide a value to a custom scalar in your GraphQL source text, apollo-compiler + now accepts any value type. Previously it was not possible to write values for custom + scalars into a query or schema because the value you wrote would never match the custom + scalar type. + + This now works: + ```graphql + scalar UserID @specifiedBy(url: "https://my-app.net/api-docs/users#id") + type Query { + username (id: UserID): String + } + ``` + ```graphql + { + username(id: 575) + } + ``` + +- add type name to the `UndefinedField` diagnostic data, by [goto-bus-stop] in [pull/577] + + When querying a field that does not exist, the type name that's being queried is stored on + the diagnostic, so you can use it when handling the error. + +[lrlna]: https://github.com/lrlna +[goto-bus-stop]: https://github.com/goto-bus-stop +[pull/575]: https://github.com/apollographql/apollo-rs/pull/575 +[pull/577]: https://github.com/apollographql/apollo-rs/pull/577 + # [0.9.3](https://crates.io/crates/apollo-compiler/0.9.3) - 2023-05-26 ## Fixes diff --git a/crates/apollo-compiler/Cargo.toml b/crates/apollo-compiler/Cargo.toml index 419be8816..b82ae93d5 100644 --- a/crates/apollo-compiler/Cargo.toml +++ b/crates/apollo-compiler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "apollo-compiler" -version = "0.9.3" +version = "0.9.4" authors = ["Irina Shestak "] license = "MIT OR Apache-2.0" repository = "https://github.com/apollographql/apollo-rs" diff --git a/crates/apollo-compiler/README.md b/crates/apollo-compiler/README.md index 686d5453c..3112bb128 100644 --- a/crates/apollo-compiler/README.md +++ b/crates/apollo-compiler/README.md @@ -33,7 +33,7 @@ Or add this to your `Cargo.toml` for a manual installation: ```toml # Just an example, change to the necessary package version. [dependencies] -apollo-compiler = "0.9.3" +apollo-compiler = "0.9.4" ``` ## Rust versions