summaryrefslogtreecommitdiff
path: root/ReleaseNotes.md
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-02-25 20:42:37 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-02-25 20:42:37 -0700
commit0fa9f8b14f04f4b0099f038cc43e4cef57a155a1 (patch)
tree62a21db8d3241bcf264bcf0874df632c4ce9ba94 /ReleaseNotes.md
parent03778c094d995791f6c3df08afeeb792f33f35a5 (diff)
parent22edcf6a68a057ed04368d5f78c8ba3ddfee8d57 (diff)
Merge branch 'lukeshu/fuzz-err'
Diffstat (limited to 'ReleaseNotes.md')
-rw-r--r--ReleaseNotes.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/ReleaseNotes.md b/ReleaseNotes.md
index 48982e4..71973aa 100644
--- a/ReleaseNotes.md
+++ b/ReleaseNotes.md
@@ -14,6 +14,29 @@
then the first type error encountered is returned. This is
consistent with the behavior of `encoding/json`.
+ - Change: Several error strings have been reworded to match
+ `encoding/json`.
+
+ - Bugfix: Decoder: If there is a syntax error in a byte that
+ invalid UTF-8, include that byte value in the error message
+ rather than including the U+FFFD Unicode replacement character.
+
+ - Bugfix: Syntax errors on raw-bytes (for invalid UTF-8) no longer
+ show the raw byte as a `\u00XX` Unicode codepoint, but now as a
+ `\xXX` byte.
+
+ - Bugfix: compat/json: `io.EOF` is now correctly converted to
+ "unexpected end of JSON input", same as `io.ErrUnexpectedEOF`.
+
+ - Bugfix: ReEncoder: Don't count bytes already in the UTF-8 decode
+ buffer toward the number of bytes returned from `.Write` and
+ `.WriteString`. This only comes up if there is an I/O causing a
+ partial write.
+
+ - Bugfix: ReEncoder: The error messages for trailing partial UTF-8
+ now reflect the `InvalidUTF8` setting, rather than simply saying
+ "unflushed unicode garbage".
+
# v0.3.7 (2023-02-20)
Theme: Fixes from fuzzing (part 1?)