File tree 4 files changed +30
-3
lines changed
4 files changed +30
-3
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,33 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
17
17
## Maintenance
18
18
19
19
## 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
20
47
21
48
# [ 0.2.0] ( https://crates.io/crates/apollo-encoder/0.2.0 ) - 2021-02-11
22
49
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " apollo-encoder"
3
- version = " 0.2.0 "
3
+ version = " 0.2.1 "
4
4
authors = [
5
5
" Irina Shestak <[email protected] >" ,
6
6
" Benjamin Coenen <[email protected] >" ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Add this to your `Cargo.toml` to start using `apollo-encoder`:
24
24
``` toml
25
25
# Just an example, change to the necessary package version.
26
26
[dependencies ]
27
- apollo-encoder = " 0.2.0 "
27
+ apollo-encoder = " 0.2.1 "
28
28
```
29
29
30
30
Or using [ cargo-edit] :
Original file line number Diff line number Diff line change @@ -9,6 +9,6 @@ repository = "https://github.com/apollographql/apollo-rs"
9
9
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
10
10
11
11
[dependencies ]
12
- apollo-encoder = { path = " ../apollo-encoder" , version = " 0.2.0 " }
12
+ apollo-encoder = { path = " ../apollo-encoder" , version = " 0.2.1 " }
13
13
arbitrary = { version = " 1.0.3" , features = [" derive" ] }
14
14
once_cell = " 1.9.0"
You can’t perform that action at this time.
0 commit comments