Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop authored Jun 6, 2023
1 parent 32b617d commit 6c7c902
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
33 changes: 33 additions & 0 deletions crates/apollo-compiler/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion crates/apollo-compiler/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "apollo-compiler"
version = "0.9.3"
version = "0.9.4"
authors = ["Irina Shestak <[email protected]>"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/apollographql/apollo-rs"
Expand Down
2 changes: 1 addition & 1 deletion crates/apollo-compiler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c7c902

Please sign in to comment.