Skip to content

Commit c500235

Browse files
committed
Update changelog.
1 parent 23f3f63 commit c500235

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

CHANGELOG-ELM-PACKAGE.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,35 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
99

1010
## [Unreleased]
1111

12+
## [5.0.10] - 2022-06-20
13+
14+
### Changed
15+
16+
- Hashes are now only included in the GraphQL query when they are needed to disambiguate between other sibling fields that would cause a name collision.
17+
These details aren't important if you don't depend on any internals, but they will reduce noise when inspecting requests for debugging purposes. Note that
18+
it's still important not to depend on any low-level details - be sure not to write code that depends on whether or not field aliases with hashes are used
19+
as `elm-graphql` abstracts away these details.
20+
21+
This change means that many fields will be unhashed now:
22+
23+
```diff
24+
query {
25+
- avatar2648687506: avatar(size: 1)
26+
+ avatar(size: 1)
27+
}
28+
```
29+
30+
However, a query like this will still have hashed field aliases because the hashes are needed to avoid a name collision when we query avatar twice at the same level within a selection set:
31+
32+
```graphql
33+
query {
34+
avatar0: avatar
35+
avatar2648687506: avatar(size: 1)
36+
}
37+
```
38+
39+
Thank you [@hariroshan](https://github.com/hariroshan) for thinking of this improvement and implementing it! See PR [#596](https://github.com/dillonkearns/elm-graphql/pull/596).
40+
1241
## [5.0.9] - 2022-01-21
1342

1443
### Fixed

0 commit comments

Comments
 (0)