Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lrlna authored Aug 16, 2022
1 parent 59c7299 commit 980d47a
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 3 deletions.
70 changes: 70 additions & 0 deletions crates/apollo-compiler/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,76 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
## Maintenance
## Documentation -->
# [0.2.0](https://crates.io/crates/apollo-compiler/0.2.0) - 2022-08-16

## Breaking
- **inline_fragment().type_condition() returns Option<&str> - [lrlna], [pull/282]**

Instead of returning `Option<&String>`, we now return `Option<&str>`

[lrlna]: https://github.com/lrlna
[pull/272]: https://github.com/apollographql/apollo-rs/pull/282

- **Value -> DefaultValue for default_value fields - [lrlna], [pull/276]**

default_value getters in Input Value Definitions and Variable Definitions now
return `DefaultValue` type. This is a type alias to Value, and makes it
consistent with the GraphQL spec.

[lrlna]: https://github.com/lrlna
[pull/276]: https://github.com/apollographql/apollo-rs/pull/276

## Fixes
- **add type information to inline fragments - [lrlna], [pull/282], [issue/280]**

Inline fragments were missing type correct type information. We now search for
applicable type's fields if a type condition exists, otherwise infer
information from the current type in scope ([as per spec](https://spec.graphql.org/October2021/#sel-GAFbfJABAB_F3kG ))
.Inline fragments

[lrlna]: https://github.com/lrlna
[pull/282]: https://github.com/apollographql/apollo-rs/pull/282
[issue/280]: https://github.com/apollographql/apollo-rs/issues/280

- **fix cycle error in fragment spreads referencing fragments - [lrlna], [pull/283], [issue/281]**

Because fragment definitions can have fragment spreads, we are running into a
self-referential cycle when searching for a fragment definition to get its id.
Instead, search for the fragment definition when getting a fragment in a
fragment spread in the wrapper API.

[lrlna]: https://github.com/lrlna
[pull/283]: https://github.com/apollographql/apollo-rs/pull/283
[issue/281]: https://github.com/apollographql/apollo-rs/issues/281

## Features
- **pub use ApolloDiagnostic - [EverlastingBugstopper], [pull/268]**

Exports ApolloDiagnostic to allow users to use it in other contexts.

[EverlastingBugstopper]: https://github.com/EverlastingBugstopper
[pull/268]: https://github.com/apollographql/apollo-rs/pull/268

- **default_value getter in input_value_definition - [lrlna], [pull/273]**

A getter for default values in input value definitions.

[lrlna]: https://github.com/lrlna
[pull/273]: https://github.com/apollographql/apollo-rs/pull/273

- **feat(compiler): add db.find_union_by_name() - [lrlna], [pull/272]**

Allows to query unions in the database.

[lrlna]: https://github.com/lrlna
[pull/272]: https://github.com/apollographql/apollo-rs/pull/272

- **adds inline_fragments getter to SelectionSet - [lrlna], [pull/282]**

Convenience method to get all inline fragments in the current selection set.

[lrlna]: https://github.com/lrlna
[pull/282]: https://github.com/apollographql/apollo-rs/pull/282

# [0.1.0](https://crates.io/crates/apollo-compiler/0.1.0) - 2022-07-27

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.1.0"
version = "0.2.0"
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 @@ -27,7 +27,7 @@ Add this to your `Cargo.toml` to start using `apollo-compiler`:
```toml
# Just an example, change to the necessary package version.
[dependencies]
apollo-compiler= "0.2.8"
apollo-compiler= "0.2.0"
```

Or using [cargo-edit]:
Expand Down
2 changes: 1 addition & 1 deletion crates/apollo-parser/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

# [0.2.9](https://crates.io/crates/apollo-parser/0.2.9) - 2022-07-27
## Features
- **Provide APIs for SyntaxNode and SyntaxNodePtr - [lrlna], [pull/251]
- **Provide APIs for SyntaxNode and SyntaxNodePtr - [lrlna], [pull/251]**

Export a wrapper around SyntaxNodePtr provided by `rowan`. This allows access to pointers of the AST created by `apollo-parser`.

Expand Down

0 comments on commit 980d47a

Please sign in to comment.