Skip to content

Commit 801e1ce

Browse files
authored
Co-authored-by: Irina Shestak <[email protected]>
1 parent 103ee9c commit 801e1ce

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

crates/apollo-encoder/CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,23 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1717
## Maintenance
1818
1919
## Documentation -->
20+
# [0.3.2](https://crates.io/crates/apollo-encoder/0.3.1) - 2022-08-19
21+
22+
## Fixes
23+
- **trim double quotes in multilingual description encodings - [lrlna]**
24+
25+
Mutilingual descriptions failed to be encoded when containing block string
26+
characters. The encoder now works with block string multilingual descriptions
27+
such as:
28+
29+
```graphql
30+
"""
31+
котя любить дрімати в "кутку" з рослинами
32+
"""
33+
```
34+
35+
[lrlna]: https://github.com/lrlna
36+
2037
# [0.3.1](https://crates.io/crates/apollo-encoder/0.3.1) - 2022-04-29
2138

2239
## Fixes

crates/apollo-encoder/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-encoder"
3-
version = "0.3.1"
3+
version = "0.3.2"
44
authors = [
55
"Irina Shestak <[email protected]>",
66
"Benjamin Coenen <[email protected]>",

crates/apollo-encoder/README.md

Lines changed: 1 addition & 1 deletion
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.3.1"
27+
apollo-encoder = "0.3.2"
2828
```
2929

3030
Or using [cargo-edit]:

crates/apollo-encoder/src/string_value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fn trim_double_quotes(description: &str) -> String {
7070
return description.to_string();
7171
}
7272

73-
if !description.starts_with("\"") || !description.ends_with("\"") {
73+
if !description.starts_with('\"') || !description.ends_with('\"') {
7474
return description.to_string();
7575
}
7676

0 commit comments

Comments
 (0)