summaryrefslogtreecommitdiff
path: root/ReleaseNotes.md
diff options
context:
space:
mode:
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?)