From 40e499f0468572f6e78bb4872bb969f1939b9130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e?= Date: Tue, 13 Dec 2022 11:09:24 +0100 Subject: [PATCH] apollo-parser@0.4.1 (#383) --- crates/apollo-parser/CHANGELOG.md | 20 ++++++++++++++++++++ crates/apollo-parser/Cargo.toml | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/crates/apollo-parser/CHANGELOG.md b/crates/apollo-parser/CHANGELOG.md index 5a514c077..c964bfed0 100644 --- a/crates/apollo-parser/CHANGELOG.md +++ b/crates/apollo-parser/CHANGELOG.md @@ -18,6 +18,26 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## Documentation --> +# [0.4.1](https://crates.io/crates/apollo-parser/0.4.1) - 2022-12-13 +## Fixes +- **fix panics when parsing type names with syntax errors - [goto-bus-stop], [pull/381]** + + For example, `field: []` does not panic anymore. Instead it produces a syntax error and an incomplete List type. + +- **continue parsing after a syntax error in an object type field - [goto-bus-stop], [pull/381]** + + ```graphql + type A { + fieldA: [] # ← has error, missing item type + fieldB: Int + fieldC: Int + } + ``` + Previously fieldB and fieldC would not be parsed, now they are. + + [goto-bus-stop]: https://github.com/goto-bus-stop + [pull/381]: https://github.com/apollographql/apollo-rs/pull/381 + # [0.4.0](https://crates.io/crates/apollo-parser/0.4.0) - 2022-11-28 ## BREAKING - **make conversions from GraphQL Values to Rust types fallible - [goto-bus-stop], [pull/371] fixing [issue/358]** diff --git a/crates/apollo-parser/Cargo.toml b/crates/apollo-parser/Cargo.toml index 94386206e..66d3ddf82 100644 --- a/crates/apollo-parser/Cargo.toml +++ b/crates/apollo-parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "apollo-parser" -version = "0.4.0" +version = "0.4.1" authors = ["Irina Shestak "] license = "MIT OR Apache-2.0" repository = "https://github.com/apollographql/apollo-rs"