Skip to content

Commit 7d4316b

Browse files
committed
Update README.md
1 parent bcb5c87 commit 7d4316b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# v0.4.9 - 2021/3/29
2+
3+
### Add debug mode
4+
5+
If you use `json.MarshalWithOption(v, json.Debug())` and `panic` occurred in `go-json`, produces debug information to console.
6+
7+
### Support a new feature to compatible with encoding/json
8+
9+
- invalid UTF-8 is coerced to valid UTF-8 ( without performance down )
10+
11+
### Fix encoder
12+
13+
- Fixed handling of MarshalJSON of function type
14+
15+
### Fix decoding of slice of pointer type
16+
17+
If there is a pointer value, go-json will use it. (This behavior is necessary to achieve the ability to prioritize pre-filled values). However, since slices are reused internally, there was a bug that referred to the previous pointer value. Therefore, it is not necessary to refer to the pointer value in advance for the slice element, so we explicitly initialize slice element by `nil`.
18+
119
# v0.4.8 - 2021/3/21
220

321
### Reduce memory usage at compile time

0 commit comments

Comments
 (0)