Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lrlna authored Jun 10, 2022
1 parent b23e115 commit 71af407
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
19 changes: 17 additions & 2 deletions crates/apollo-parser/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,29 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
## Maintenance
## Documentation -->
# [0.2.8](https://crates.io/crates/apollo-parser/0.2.8) - 2022-06-10

## Fix
- **Use recursion limit both for selection set and field parsing - [garypen] and [lrlna], [pull/244]**

This properly unifies the limits around recursion for both:
- selection sets
- fields

The tests are expanded and properly exercise the various possible outcomes
with recursion limits.Fixes a bug with

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

# [0.2.7](https://crates.io/crates/apollo-parser/0.2.7) - 2022-06-08

## Features
- **Resource bound parsing execution - [garypen], [pull/239] closes [issue/225]**

Introduce recursion limit enforced during SelectionSet parsing.

There is now a default limit (4_096) applied to parsers during SelectionSet
parsing to help prevent stack overflows. This limit can be set manually when
creating a parser by using the new fn, `Parser::with_recursion_limit()`.
Expand All @@ -35,7 +51,6 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
[pull/239]: https://github.com/apollographql/apollo-rs/pull/239
[issue/225]: https://github.com/apollographql/apollo-rs/issues/225


# [0.2.6](https://crates.io/crates/apollo-parser/0.2.6) - 2022-05-24

## Fixes
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.2.7"
version = "0.2.8"
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-parser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Add this to your `Cargo.toml` to start using `apollo-parser`:
```toml
# Just an example, change to the necessary package version.
[dependencies]
apollo-parser = "0.2.7"
apollo-parser = "0.2.8"
```

Or using [cargo-edit]:
Expand Down

0 comments on commit 71af407

Please sign in to comment.