Skip to content

Commit 979a783

Browse files
authored
1 parent 3c7c8c2 commit 979a783

File tree

5 files changed

+31
-8
lines changed

5 files changed

+31
-8
lines changed

crates/apollo-encoder/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ categories = [
2020
edition = "2021"
2121

2222
[dependencies]
23-
apollo-parser = { path = "../apollo-parser", version = "0.3.0", optional = true }
23+
apollo-parser = { path = "../apollo-parser", version = "0.3.1", optional = true }
2424
thiserror = "1.0.37"
2525

2626
[features]

crates/apollo-parser/CHANGELOG.md

+24-3
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,22 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1818
1919
## Documentation -->
2020

21-
# [x.x.x] (unreleased) - 2021-mm-dd
21+
# [0.3.1](https://crates.io/crates/apollo-parser/0.3.1) - 2022-11-04
2222

2323
## Features
24+
- **streaming lexer - [Geal] + [goto-bus-stop], [pull/115]**
25+
26+
To help improve performance and memory usage in the lexer, we are now
27+
streaming all incoming tokens in the lexer implementation.
28+
29+
[goto-bus-stop]: https://github.com/goto-bus-stop
30+
[Geal]: https://github.com/Geal
31+
[pull/115]: https://github.com/apollographql/apollo-rs/pull/115
2432

2533
- **extend `ast::*Value` node conversions - [SimonSapin], [pull/344]**
2634

27-
These node types implement conversion to standard types, extracting their value:
35+
The following node types implement conversion to standard types, extracting
36+
their value:
2837

2938
- `StringValue``String`
3039
- `IntValue``i32`
@@ -47,7 +56,19 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
4756
[simonsapin]: https://github.com/SimonSapin
4857
[pull/344]: https://github.com/apollographql/apollo-rs/pull/344
4958

50-
# [0.3.0](https://crates.io/crates/apollo-parser/0.2.12) - 2022-10-31 💀
59+
## Documentation
60+
- **example of modifying queries with parser + encoder - [lrlna], [pull/346]**
61+
An addition to `apollo-parser`'s [example] directory encoding various parts of the AST using `apollo-encoder`'s new `TryFrom` implementation. Examples include:
62+
63+
- merging two queries
64+
- omitting certain fields in a query.
65+
66+
[lrlna]: https://github.com/lrlna
67+
[pull/346]: https://github.com/apollographql/apollo-rs/pull/346
68+
[example]: ./examples/modify_query_using_parser_and_encoder.rs
69+
70+
71+
# [0.3.0](https://crates.io/crates/apollo-parser/0.3.0) - 2022-10-31 💀
5172
## BREAKING
5273
- **remove the impl Display for generated nodes - [goto-bus-stop], [pull/330]**
5374

crates/apollo-parser/Cargo.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "apollo-parser"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
authors = ["Irina Shestak <[email protected]>"]
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/apollographql/apollo-rs"
@@ -21,7 +21,9 @@ rowan = "0.15.5"
2121

2222
[dev-dependencies]
2323
miette = { version = "3.2.0", features = ["fancy"] }
24-
apollo-encoder = { path = "../apollo-encoder", version = "0.3.3", features = ["apollo-parser"] }
24+
apollo-encoder = { path = "../apollo-encoder", version = "0.3.3", features = [
25+
"apollo-parser",
26+
] }
2527
anyhow = "1.0.66"
2628
thiserror = "1.0.30"
2729
pretty_assertions = "0.7.1"

crates/apollo-parser/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Add this to your `Cargo.toml` to start using `apollo-parser`:
2929
```toml
3030
# Just an example, change to the necessary package version.
3131
[dependencies]
32-
apollo-parser = "0.3.0"
32+
apollo-parser = "0.3.1"
3333
```
3434

3535
Or using [cargo-edit]:

crates/apollo-smith/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ categories = [
2525

2626
[dependencies]
2727
apollo-encoder = { path = "../apollo-encoder", version = "0.3.0" }
28-
apollo-parser = { path = "../apollo-parser", version = "0.3.0", optional = true }
28+
apollo-parser = { path = "../apollo-parser", version = "0.3.1", optional = true }
2929
arbitrary = { version = "1.0.3", features = ["derive"] }
3030
once_cell = "1.9.0"
3131

0 commit comments

Comments
 (0)