Skip to content

Commit b734550

Browse files
goto-bus-stoplrlna
andauthored
* [email protected] * Fix name! Co-authored-by: Iryna Shestak <[email protected]> --------- Co-authored-by: Iryna Shestak <[email protected]>
1 parent e938f4d commit b734550

File tree

3 files changed

+45
-14
lines changed

3 files changed

+45
-14
lines changed

crates/apollo-compiler/CHANGELOG.md

Lines changed: 43 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,56 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1717
## Maintenance
1818
## Documentation-->
1919

20-
# [1.2x.x] (unreleased) - 2025-mm-dd
20+
# [1.28.0](https://crates.io/crates/apollo-compiler/1.28.0) - 2025-04-24
21+
22+
## Features
23+
24+
- **Reject `@skip`/`@include` on subscription root fields - [dariuszkuc] [SimonSapin] and [goto-bus-stop], [pull/963]**
25+
26+
This implements a [GraphQL spec RFC](https://github.com/graphql/graphql-spec/pull/860), rejecting
27+
subscriptions in validation that can be invalid during execution.
28+
29+
- **New shorthand methods for mutable directive argument access - [tninesling], [pull/967]**
30+
31+
Introduces new methods:
32+
- `DirectiveList::get_all_mut`
33+
- `DirectiveList::argument_by_name_mut`
34+
- `DirectiveList::specified_argument_by_name_mut`
35+
2136
## Fixes
2237

2338
- **Update `ariadne` trait implementations - [lrlna], [pull/960]**
24-
`[email protected]` release changed their type signature for `ariadne::Cache` trait, which required an update to `apollo-compiler`'s implementation of `ariadne::Cache<FileId>`.
2539

26-
This release also had a slight change to path formatting, so if you had any snapshots in your tests, you can expect a change from this:
27-
```
28-
Error: `typeFragment1` contains too much nesting
29-
╭─[overflow.graphql:11:11]
30-
```
40+
`[email protected]` release changed their type signature for `ariadne::Cache` trait, which required an
41+
update to `apollo-compiler`'s implementation of `ariadne::Cache<FileId>`.
3142

32-
to this (notice the extra white space around the file path):
33-
```
34-
Error: `typeFragment1` contains too much nesting
35-
╭─[ overflow.graphql:11:11 ]
36-
```
43+
This release also had a slight change to path formatting, so if you had any snapshots in your
44+
tests, you can expect a change from this:
45+
```
46+
Error: `typeFragment1` contains too much nesting
47+
╭─[overflow.graphql:11:11]
48+
```
49+
50+
to this (notice the extra white space around the file path):
51+
```
52+
Error: `typeFragment1` contains too much nesting
53+
╭─[ overflow.graphql:11:11 ]
54+
```
55+
56+
- **Harden stack overflow protection - [goto-bus-stop], [pull/966]**
57+
58+
Closes a theoretical gap in stack overflow protection when processing long fragment chains, and
59+
significantly improves validation performance on documents with thousands of fragment definitions.
3760

3861
[lrlna]: https://github.com/lrlna
62+
[dariuszkuc]: https://github.com/dariuszkuc
63+
[goto-bus-stop]: https://github.com/goto-bus-stop
64+
[SimonSapin]: https://github.com/SimonSapin
65+
[tninesling]: https://github.com/tninesling
66+
[pull/960]: https://github.com/apollographql/apollo-rs/pull/960
67+
[pull/963]: https://github.com/apollographql/apollo-rs/pull/963
68+
[pull/966]: https://github.com/apollographql/apollo-rs/pull/966
69+
[pull/967]: https://github.com/apollographql/apollo-rs/pull/967
3970

4071
# [1.27.0](https://crates.io/crates/apollo-compiler/1.26.0) - 2025-03-04
4172

crates/apollo-compiler/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "apollo-compiler"
3-
version = "1.27.0" # When bumping, also update README.md
3+
version = "1.28.0" # When bumping, also update README.md
44
authors = ["Irina Shestak <[email protected]>"]
55
license = "MIT OR Apache-2.0"
66
repository = "https://github.com/apollographql/apollo-rs"

crates/apollo-compiler/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Or add this to your `Cargo.toml` for a manual installation:
4141
```toml
4242
# Just an example, change to the necessary package version.
4343
[dependencies]
44-
apollo-compiler = "1.27.0"
44+
apollo-compiler = "1.28.0"
4545
```
4646

4747
## Rust versions

0 commit comments

Comments
 (0)