Skip to content

Commit ec36606

Browse files
authored
1 parent ac5e247 commit ec36606

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

crates/apollo-encoder/CHANGELOG.md

+31-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to `apollo-encoder` will be documented in this file.
44

55
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
<!-- # [x.x.x] (unreleased) - 2021-mm-dd
7+
<!-- # [x.x.x] (unreleased) - 2022-mm-dd
88
99
> Important: X breaking changes below, indicated by **BREAKING**
1010
@@ -18,17 +18,45 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1818
1919
## Documentation -->
2020

21+
# [0.2.3](https://crates.io/crates/apollo-encoder/0.2.3) - 2022-04-01
22+
23+
> Important: 1 breaking change below, indicated by **BREAKING**
24+
25+
## BREAKING
26+
27+
- **GraphQL Int Value is an i32 - [bnjjj], [pull/197]**
28+
We previously represented Int Values as i64, which is not compliant with the spec. This is now rectified.
29+
30+
[bnjjj]: https://github.com/bnjjj
31+
[pull/197]: https://github.com/apollographql/apollo-rs/pull/197
32+
33+
## Features
34+
35+
- **Support 'alias' on fields - [bnjjj], [pull/191]**
36+
37+
```rust
38+
// results in "smallImage: displayImage" encoding
39+
let mut aliased_field = Field::new(String::from("displayImage"));
40+
aliased_field.alias(Some(String::from("smallImage")));
41+
```
42+
43+
[bnjjj]: https://github.com/bnjjj
44+
[pull/191]: https://github.com/apollographql/apollo-rs/pull/191
45+
46+
2147
# [0.2.2](https://crates.io/crates/apollo-encoder/0.2.2) - 2022-02-28
48+
49+
> Important: 2 breaking changes below, indicated by **BREAKING**
2250
## BREAKING
2351
- **Rename `InputValueDef` into `InputValueDefinition` for consistency - [bnjjj], [pull/182]**
2452

2553
[bnjjj]: https://github.com/bnjjj
26-
[pull/168]: https://github.com/apollographql/apollo-rs/pull/182
54+
[pull/182]: https://github.com/apollographql/apollo-rs/pull/182
2755

2856
- **Rename `input_object_` method into `input_object` on `Document` - [bnjjj], [pull/182]**
2957

3058
[bnjjj]: https://github.com/bnjjj
31-
[pull/168]: https://github.com/apollographql/apollo-rs/pull/182
59+
[pull/182]: https://github.com/apollographql/apollo-rs/pull/182
3260

3361
## Fixes
3462
- **Remove leading and ending `"` in `BlockStringCharacter` encoding only when it starts and end with a `"` - [bnjjj], [pull/182]**

crates/apollo-encoder/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Add this to your `Cargo.toml` to start using `apollo-encoder`:
2424
```toml
2525
# Just an example, change to the necessary package version.
2626
[dependencies]
27-
apollo-encoder = "0.2.2"
27+
apollo-encoder = "0.2.3"
2828
```
2929

3030
Or using [cargo-edit]:

0 commit comments

Comments
 (0)