Skip to content

Commit

Permalink
apollo-parser@0.7.1 (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
lrlna authored Oct 10, 2023
1 parent da57a9d commit c4fc479
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion crates/apollo-parser/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,22 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
## Documentation -->

# [x.x.x] (unreleased) - 2022-mm-dd
# [0.7.1](https://crates.io/crates/apollo-parser/0.7.1) - 2023-10-10

## Features
- **`parse_field_set` parses a selection set with optional outer brackets - [lrlna], [pull/685] fixing [issue/681]**
This returns a `SyntaxTree<SelectionSet>` which instead of `.document() -> cst::Document`
has `.field_set() -> cst::SelectionSet`.
This is intended to parse string value of a [`FieldSet` custom scalar][fieldset]
used in some Apollo Federation directives.
```rust
let source = r#"a { a }"#;

let parser = Parser::new(source);
let cst: SyntaxTree<cst::SelectionSet> = parser.parse_selection_set();
let errors = cst.errors().collect::<Vec<_>>();
assert_eq!(errors.len(), 0);
```

[lrlna]: https://github.com/lrlna
[pull/685]: https://github.com/apollographql/apollo-rs/pull/685
Expand Down
2 changes: 1 addition & 1 deletion crates/apollo-parser/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "apollo-parser"
version = "0.7.0"
version = "0.7.1"
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-parser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Or add this to your `Cargo.toml` for a manual installation:
```toml
# Just an example, change to the necessary package version.
[dependencies]
apollo-parser = "0.6.2"
apollo-parser = "0.7.1"
```

## Rust versions
Expand Down

0 comments on commit c4fc479

Please sign in to comment.