Skip to content

Commit

Permalink
apollo-compiler@0.10.0 (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop authored Jun 20, 2023
1 parent 5d5ffd0 commit 80ba356
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
33 changes: 32 additions & 1 deletion crates/apollo-compiler/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,43 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
## Maintenance
## Documentation -->

# [x.x.x] (unreleased) - 2023-mm-dd
# [0.10.0](https://crates.io/crates/apollo-compiler/0.10.0) - 2023-06-20

## BREAKING
- `SelectionSet::merge` is renamed to `SelectionSet::concat` to clarify that it doesn't do field merging, by [goto-bus-stop] in [pull/570]
- `hir::InlineFragment::type_condition` now only returns `Some()` if a type condition was explicitly specified, by [goto-bus-stop] in [pull/586]

[goto-bus-stop]: https://github.com/goto-bus-stop
[pull/570]: https://github.com/apollographql/apollo-rs/pull/570
[pull/586]: https://github.com/apollographql/apollo-rs/pull/586

## Features
- add `root_operation_name(OperationType)` helper method on `hir::SchemaDefinition` by [SimonSapin] in [pull/579]
- add an `UndefinedDirective` diagnostic type, by [goto-bus-stop] in [pull/587]

This is used for directives instead of `UndefinedDefinition`.

[goto-bus-stop]: https://github.com/goto-bus-stop
[SimonSapin]: https://github.com/SimonSapin
[pull/579]: https://github.com/apollographql/apollo-rs/pull/579
[pull/587]: https://github.com/apollographql/apollo-rs/pull/587

## Fixes
- accept objects as values for custom scalars, by [goto-bus-stop] in [pull/585]

The GraphQL spec is not entirely clear on this, but this is used in the real world with things
like the `_Any` type in Apollo Federation.

[goto-bus-stop]: https://github.com/goto-bus-stop
[pull/585]: https://github.com/apollographql/apollo-rs/pull/585

## Maintenance
- update dependencies, by [goto-bus-stop] in [commit/daf918b]
- add a test for validation with `set_type_system_hir()`, by [goto-bus-stop] in [pull/583]

[goto-bus-stop]: https://github.com/goto-bus-stop
[commit/daf918b]: https://github.com/apollographql/apollo-rs/commit/daf918b62a19242bf1b8863dd598ac2912a7074e
[pull/583]: https://github.com/apollographql/apollo-rs/pull/583

# [0.9.4](https://crates.io/crates/apollo-compiler/0.9.4) - 2023-06-05

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.4"
version = "0.10.0"
authors = ["Irina Shestak <shestak.irina@gmail.com>"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/apollographql/apollo-rs"
Expand Down
2 changes: 1 addition & 1 deletion crates/apollo-encoder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ edition = "2021"

[dependencies]
apollo-parser = { path = "../apollo-parser", version = "0.5.0", optional = true }
apollo-compiler = { path = "../apollo-compiler", version = "0.9.0", optional = true }
apollo-compiler = { path = "../apollo-compiler", version = "0.10.0", optional = true }
thiserror = "1.0.37"

[features]
Expand Down

0 comments on commit 80ba356

Please sign in to comment.