Skip to content

Commit 0b9b757

Browse files
authored
1 parent af9033e commit 0b9b757

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

crates/apollo-encoder/CHANGELOG.md

+27
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,33 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1717
## Maintenance
1818
1919
## Documentation -->
20+
# [0.2.1](https://crates.io/crates/apollo-encoder/0.2.1) - 2021-02-17
21+
## Fixes
22+
23+
- **Remove leading and ending `"` in `BlockStringCharacter` encoding - [bnjjj], [pull/168]**
24+
This ensures that a StringValue of type BlockStringCharacter, like the one in
25+
the test example below, does not getting encoded with an additional `"` ending
26+
up with `""""` leading set of characters.
27+
28+
```rust
29+
let desc = StringValue::Top {
30+
source: Some(
31+
"\"Favourite nap spots include: plant corner, pile of clothes.\""
32+
.to_string(),
33+
),
34+
};
35+
36+
assert_eq!(
37+
desc.to_string(),
38+
r#""""
39+
Favourite nap spots include: plant corner, pile of clothes.
40+
"""
41+
"#
42+
);
43+
```
44+
45+
[bnjjj]: https://github.com/bnjjj
46+
[pull/168]: https://github.com/apollographql/apollo-rs/pull/168
2047

2148
# [0.2.0](https://crates.io/crates/apollo-encoder/0.2.0) - 2021-02-11
2249

crates/apollo-encoder/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "apollo-encoder"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
authors = [
55
"Irina Shestak <[email protected]>",
66
"Benjamin Coenen <[email protected]>",

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.0"
27+
apollo-encoder = "0.2.1"
2828
```
2929

3030
Or using [cargo-edit]:

crates/apollo-smith/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ repository = "https://github.com/apollographql/apollo-rs"
99
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1010

1111
[dependencies]
12-
apollo-encoder = { path = "../apollo-encoder", version = "0.2.0" }
12+
apollo-encoder = { path = "../apollo-encoder", version = "0.2.1" }
1313
arbitrary = { version = "1.0.3", features = ["derive"] }
1414
once_cell = "1.9.0"

0 commit comments

Comments
 (0)