summaryrefslogtreecommitdiff
path: root/ReleaseNotes.md
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-02-07 14:01:44 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-02-10 14:09:56 -0700
commit483bbdc970b26d774ace39edfde8420aba53b742 (patch)
treeee5fcacbba4d4eb7c44e4cb1f35fb950f11aee1d /ReleaseNotes.md
parent480ccfd05a13ac36516c536a71203280a31b4d28 (diff)
Sync borrowed code from Go 1.20
New tests mean encode.go and compat.go also need some bugfixes.
Diffstat (limited to 'ReleaseNotes.md')
-rw-r--r--ReleaseNotes.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/ReleaseNotes.md b/ReleaseNotes.md
index f71967c..493252a 100644
--- a/ReleaseNotes.md
+++ b/ReleaseNotes.md
@@ -9,6 +9,15 @@
poisons future Decodes. This is something that `encoding/json`
supports.
+ - Encoder: Fixes a bug where if an encode error is encountered, all
+ future Encode calls will fail. Reusing an Encoder is something
+ that `encoding/json` supports.
+
+ - compat/json.Encoder: Now buffers the output, to avoid partial
+ writes if an encode error is encountered. This matches the
+ behavior of `encoding/json`. For memory consumption reasons, the
+ native lowmemjson Encoder still does not buffer.
+
# v0.3.4 (2023-02-05)
Theme: Fix compilation with Go 1.20