This is an automated email from the ASF dual-hosted git repository.
zeroshade pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-go.git
The following commit(s) were added to refs/heads/main by this push:
new 7056c5f5 chore: Bump github.com/goccy/go-json from 0.10.6 to 0.11.2
(#1357)
7056c5f5 is described below
commit 7056c5f50c5238540e4baffb7f075374157c4a96
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AuthorDate: Tue Oct 27 17:48:25 2026 +0000
chore: Bump github.com/goccy/go-json from 0.10.6 to 0.11.2 (#1357)
Bumps [github.com/goccy/go-json](https://github.com/goccy/go-json) from
0.10.6 to 0.11.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/goccy/go-json/releases">github.com/goccy/go-json's
releases</a>.</em></p>
<blockquote>
<h2>v0.11.2</h2>
<h2>What's Changed</h2>
<ul>
<li>Trust the marshalers and the unmarshalers of the standard library by
<a href="https://github.com/goccy"><code>@goccy</code></a> in <a
href="https://redirect.github.com/goccy/go-json/pull/675">goccy/go-json#675</a></li>
<li>Encoder: escape and check strings faster by <a
href="https://github.com/goccy"><code>@goccy</code></a> in <a
href="https://redirect.github.com/goccy/go-json/pull/676">goccy/go-json#676</a></li>
<li>Encoder: range over larger map values as words, and write the
entries of a sorted map directly by <a
href="https://github.com/goccy"><code>@goccy</code></a> in <a
href="https://redirect.github.com/goccy/go-json/pull/677">goccy/go-json#677</a></li>
<li>Encoder: write the digits of an integer where they go in the buffer
by <a href="https://github.com/goccy"><code>@goccy</code></a> in <a
href="https://redirect.github.com/goccy/go-json/pull/679">goccy/go-json#679</a></li>
<li>Look the methods of the marshalers up by their names as constants by
<a href="https://github.com/goccy"><code>@goccy</code></a> in <a
href="https://redirect.github.com/goccy/go-json/pull/680">goccy/go-json#680</a></li>
<li>Encoder: sort the keys of a map with the comparisons inlined by <a
href="https://github.com/goccy"><code>@goccy</code></a> in <a
href="https://redirect.github.com/goccy/go-json/pull/681">goccy/go-json#681</a></li>
<li>Encoder: write integers of up to sixteen digits by the lookups of
their digits by <a
href="https://github.com/goccy"><code>@goccy</code></a> in <a
href="https://redirect.github.com/goccy/go-json/pull/682">goccy/go-json#682</a></li>
<li>Encoder: find the quotes of a marshaler output in memory order on
big-endian machines by <a
href="https://github.com/goccy"><code>@goccy</code></a> in <a
href="https://redirect.github.com/goccy/go-json/pull/683">goccy/go-json#683</a></li>
<li>CI: run the tests on a big-endian machine (s390x under QEMU) by <a
href="https://github.com/goccy"><code>@goccy</code></a> in <a
href="https://redirect.github.com/goccy/go-json/pull/684">goccy/go-json#684</a></li>
<li>Encoder: look at a short string and write it in one pass by <a
href="https://github.com/goccy"><code>@goccy</code></a> in <a
href="https://redirect.github.com/goccy/go-json/pull/685">goccy/go-json#685</a></li>
<li>Encoder: escape strings of characters which are not ASCII faster
when UTF-8 is normalized by <a
href="https://github.com/goccy"><code>@goccy</code></a> in <a
href="https://redirect.github.com/goccy/go-json/pull/686">goccy/go-json#686</a></li>
<li>Raise the Go version of the module to 1.23 by <a
href="https://github.com/goccy"><code>@goccy</code></a> in <a
href="https://redirect.github.com/goccy/go-json/pull/687">goccy/go-json#687</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/goccy/go-json/compare/v0.11.1...v0.11.2">https://github.com/goccy/go-json/compare/v0.11.1...v0.11.2</a></p>
<h2>v0.11.1</h2>
<h2>What's Changed</h2>
<ul>
<li>Handle the reported pull requests: omitzero, nil TextMarshaler
pointers, the generated-code marker and a godoc fix by <a
href="https://github.com/goccy"><code>@goccy</code></a> in <a
href="https://redirect.github.com/goccy/go-json/pull/671">goccy/go-json#671</a></li>
<li>Encoder: jump to one code of a large struct which is a value in many
places by <a href="https://github.com/goccy"><code>@goccy</code></a> in
<a
href="https://redirect.github.com/goccy/go-json/pull/672">goccy/go-json#672</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/goccy/go-json/compare/v0.11.0...v0.11.1">https://github.com/goccy/go-json/compare/v0.11.0...v0.11.1</a></p>
<h2>v0.11.0</h2>
<h2>Highlights</h2>
<ul>
<li><strong>Compatible with encoding/json of the Go version in
use</strong>: values are decoded and encoded, and errors are reported
(their types, messages and offsets), as <code>encoding/json</code> does,
including Go 1.27, whose <code>encoding/json</code> is built on
<code>encoding/json/v2</code>. Many reported compatibility issues are
fixed.</li>
<li><strong>Much faster</strong>: with the same behavior as
<code>encoding/json</code> ( a live heap of 64 MB, geometric mean over
the payloads of the report ), go-json decodes about 4.2–4.4x and encodes
about 2.7–2.8x as fast as <code>encoding/json</code>, on amd64 and arm64
( the results of this release are at <a
href="https://goccy.github.io/go-json/">https://goccy.github.io/go-json/</a>
).</li>
<li><strong>A benchmark report of the JSON libraries of Go</strong>,
measured on GitHub Actions for every change and published at <a
href="https://goccy.github.io/go-json/">https://goccy.github.io/go-json/</a>:
the libraries are compared by category of behavior ( the behavior of
<code>encoding/json</code>, of <code>encoding/json/v2</code>, without
HTML escaping, key sorting and string copying, and every library at its
fastest ), which every run checks, and the result files are attested
with GitHub Artifact Attestations.</li>
<li><strong>No more <code>go:linkname</code></strong>: go-json no longer
links to the internals of the runtime or of <code>reflect</code>, so it
builds with the restrictions of newer Go versions on
<code>go:linkname</code>.</li>
</ul>
<h2>New APIs</h2>
<ul>
<li><code>MarshalOf[T]</code>: encodes a value of type <code>T</code>
without copying it to the heap ( <a
href="https://redirect.github.com/goccy/go-json/issues/632">#632</a>
).</li>
<li><code>UnmarshalOf[T]</code>: decodes into a <code>*T</code> which
may stay on the stack of the caller, without an allocation for the
argument ( <a
href="https://redirect.github.com/goccy/go-json/issues/658">#658</a>
).</li>
<li><code>OptimizeFieldOrder()</code>: lets the encoder order the fields
of a struct as it encodes them fastest, when the order of the keys
doesn't matter ( <a
href="https://redirect.github.com/goccy/go-json/issues/646">#646</a>
).</li>
<li><code>DecodeNoCopyString()</code>: lets the decoded strings refer to
the input instead of copying them ( <a
href="https://redirect.github.com/goccy/go-json/issues/658">#658</a>
).</li>
</ul>
<h2>Changes of behavior</h2>
<p>These follow <code>encoding/json</code>, and may change what a
program which relied on the previous behavior gets:</p>
<ul>
<li>The values of the keys which match no field are validated: invalid
JSON anywhere in the input is a syntax error, as with
<code>encoding/json</code> ( <a
href="https://redirect.github.com/goccy/go-json/issues/664">#664</a>
).</li>
<li>Syntax errors and type errors are reported as
<code>encoding/json</code> of the Go version reports them: their types,
messages and offsets ( <a
href="https://redirect.github.com/goccy/go-json/issues/661">#661</a>, <a
href="https://redirect.github.com/goccy/go-json/issues/664">#664</a>
).</li>
<li>A decoded string is a copy of its bytes, and doesn't keep the input
alive; short strings share buffers of up to 16 KB ( <a
href="https://redirect.github.com/goccy/go-json/issues/658">#658</a> ).
Use <code>DecodeNoCopyString()</code> to refer to the input
instead.</li>
<li>The elements of an array are decoded into the existing elements of a
slice, including the ones after its length within its capacity, as
<code>encoding/json</code> does ( <a
href="https://redirect.github.com/goccy/go-json/issues/666">#666</a>
).</li>
<li><code>MarshalNoEscape</code> and <code>UnmarshalNoEscape</code> are
deprecated: use <code>Marshal</code> and <code>UnmarshalOf</code> ( <a
href="https://redirect.github.com/goccy/go-json/issues/631">#631</a>, <a
href="https://redirect.github.com/goccy/go-json/issues/658">#658</a>
).</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/goccy/go-json/commit/3ce7333e2c03dcb8801817bf516c60545154a66c"><code>3ce7333</code></a>
Raise the Go version of the module to 1.23 (<a
href="https://redirect.github.com/goccy/go-json/issues/687">#687</a>)</li>
<li><a
href="https://github.com/goccy/go-json/commit/cfcddf0aa569354adb5b2bf65670dfc9a482d80e"><code>cfcddf0</code></a>
Encoder: escape strings of characters which are not ASCII faster when
UTF-8 i...</li>
<li><a
href="https://github.com/goccy/go-json/commit/054ed21b1a12809d9bcefe353dafc446c76604a1"><code>054ed21</code></a>
Encoder: look at a short string and write it in one pass (<a
href="https://redirect.github.com/goccy/go-json/issues/685">#685</a>)</li>
<li><a
href="https://github.com/goccy/go-json/commit/09cea77332bf1b4b9036a978b177950c9cf228d0"><code>09cea77</code></a>
CI: run the tests on a big-endian machine (s390x under QEMU) (<a
href="https://redirect.github.com/goccy/go-json/issues/684">#684</a>)</li>
<li><a
href="https://github.com/goccy/go-json/commit/2df131eb9077027fb514cd0b5149bed393cf8006"><code>2df131e</code></a>
Encoder: find the quotes of a marshaler output in memory order on
big-endian ...</li>
<li><a
href="https://github.com/goccy/go-json/commit/738c309f067d453e345c879978056f028a0340f3"><code>738c309</code></a>
Encoder: write integers of up to sixteen digits by the lookups of their
digit...</li>
<li><a
href="https://github.com/goccy/go-json/commit/d7bede4aba274b1c031c335927221f2632452b21"><code>d7bede4</code></a>
Encoder: sort the keys of a map with the comparisons inlined (<a
href="https://redirect.github.com/goccy/go-json/issues/681">#681</a>)</li>
<li><a
href="https://github.com/goccy/go-json/commit/c5f8edbb924e2a14bebf9c489a6963bb0f7fa70d"><code>c5f8edb</code></a>
Look the methods of the marshalers up by their names as constants (<a
href="https://redirect.github.com/goccy/go-json/issues/680">#680</a>)</li>
<li><a
href="https://github.com/goccy/go-json/commit/0f0a08fa72cde29c6dee33b29af2addc8beb9f1f"><code>0f0a08f</code></a>
Encoder: write the digits of an integer where they go in the buffer (<a
href="https://redirect.github.com/goccy/go-json/issues/679">#679</a>)</li>
<li><a
href="https://github.com/goccy/go-json/commit/d8cec748d970af20781584a4e8b12bc2265e9855"><code>d8cec74</code></a>
Encoder: range over larger map values as words, and write the entries of
a so...</li>
<li>Additional commits viewable in <a
href="https://github.com/goccy/go-json/compare/v0.10.6...v0.11.2">compare
view</a></li>
</ul>
</details>
<br />
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot]
<49699333+dependabot[bot]@users.noreply.github.com>
---
go.mod | 2 +-
go.sum | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/go.mod b/go.mod
index 6e35d6c9..8c9e2806 100644
--- a/go.mod
+++ b/go.mod
@@ -30,7 +30,7 @@ require (
github.com/andybalholm/brotli v1.2.7
github.com/apache/thrift v0.25.0
github.com/cespare/xxhash/v2 v2.3.0
- github.com/goccy/go-json v0.10.6
+ github.com/goccy/go-json v0.11.2
github.com/google/flatbuffers v25.12.19+incompatible
github.com/google/uuid v1.6.0
github.com/hamba/avro/v2 v2.31.0
diff --git a/go.sum b/go.sum
index d23fa7cc..842ca5b5 100644
--- a/go.sum
+++ b/go.sum
@@ -34,8 +34,8 @@ github.com/dustin/go-humanize v1.1.0
h1:dbKTrvD0klcbBV/h4AWJdMuZogJACoMlvWIWZ5b2
github.com/dustin/go-humanize v1.1.0/go.mod
h1:hc1CvRkJMsgxqjmjMQF3QNRAZBwY8AXBAzKYoSX9sFI=
github.com/go-viper/mapstructure/v2 v2.4.0
h1:EBsztssimR/CONLSZZ04E8qAkxNYq4Qp9LvH92wZUgs=
github.com/go-viper/mapstructure/v2 v2.4.0/go.mod
h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
-github.com/goccy/go-json v0.10.6
h1:p8HrPJzOakx/mn/bQtjgNjdTcN+/S6FcG2CTtQOrHVU=
-github.com/goccy/go-json v0.10.6/go.mod
h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M=
+github.com/goccy/go-json v0.11.2
h1:jdZv93Tt4ioR8yW1CoNsvSxrcZlCXAUU1aZXN7gpXUA=
+github.com/goccy/go-json v0.11.2/go.mod
h1:3NdmfEkZlB7YI5UFw/qdFKq8XN1aiWR0YyRPWZNQltY=
github.com/goccy/go-yaml v1.17.1
h1:LI34wktB2xEE3ONG/2Ar54+/HJVBriAGJ55PHls4YuY=
github.com/goccy/go-yaml v1.17.1/go.mod
h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA=
github.com/golang/protobuf v1.5.4
h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=