[PR #6706] [CLOSED] chore(deps): bump github.com/goccy/go-json from 0.10.6 to 0.11.1 #6423

Closed
opened 2026-11-02 04:08:39 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6706
Author: @dependabot[bot]
Created: 10/1/2026
Status: ❌ Closed

Base: main ← Head: dependabot/go_modules/github.com/goccy/go-json-0.11.1


📝 Commits (1)

  • 8a85d51 chore(deps): bump github.com/goccy/go-json from 0.10.6 to 0.11.1

📊 Changes

2 files changed (+3 additions, -3 deletions)

View changed files

📝 go.mod (+1 -1)
📝 go.sum (+2 -2)

📄 Description

Bumps github.com/goccy/go-json from 0.10.6 to 0.11.1.

Release notes

Sourced from github.com/goccy/go-json's releases.

v0.11.1

What's Changed

  • Handle the reported pull requests: omitzero, nil TextMarshaler pointers, the generated-code marker and a godoc fix by @​goccy in goccy/go-json#671
  • Encoder: jump to one code of a large struct which is a value in many places by @​goccy in goccy/go-json#672

Full Changelog: https://github.com/goccy/go-json/compare/v0.11.0...v0.11.1

v0.11.0

Highlights

  • Compatible with encoding/json of the Go version in use: values are decoded and encoded, and errors are reported (their types, messages and offsets), as encoding/json does, including Go 1.27, whose encoding/json is built on encoding/json/v2. Many reported compatibility issues are fixed.
  • Much faster: with the same behavior as encoding/json ( 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 encoding/json, on amd64 and arm64 ( the results of this release are at https://goccy.github.io/go-json/ ).
  • A benchmark report of the JSON libraries of Go, measured on GitHub Actions for every change and published at https://goccy.github.io/go-json/: the libraries are compared by category of behavior ( the behavior of encoding/json, of encoding/json/v2, 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.
  • No more go:linkname: go-json no longer links to the internals of the runtime or of reflect, so it builds with the restrictions of newer Go versions on go:linkname.

New APIs

  • MarshalOf[T]: encodes a value of type T without copying it to the heap ( #632 ).
  • UnmarshalOf[T]: decodes into a *T which may stay on the stack of the caller, without an allocation for the argument ( #658 ).
  • OptimizeFieldOrder(): lets the encoder order the fields of a struct as it encodes them fastest, when the order of the keys doesn't matter ( #646 ).
  • DecodeNoCopyString(): lets the decoded strings refer to the input instead of copying them ( #658 ).

Changes of behavior

These follow encoding/json, and may change what a program which relied on the previous behavior gets:

  • The values of the keys which match no field are validated: invalid JSON anywhere in the input is a syntax error, as with encoding/json ( #664 ).
  • Syntax errors and type errors are reported as encoding/json of the Go version reports them: their types, messages and offsets ( #661, #664 ).
  • 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 ( #658 ). Use DecodeNoCopyString() to refer to the input instead.
  • The elements of an array are decoded into the existing elements of a slice, including the ones after its length within its capacity, as encoding/json does ( #666 ).
  • MarshalNoEscape and UnmarshalNoEscape are deprecated: use Marshal and UnmarshalOf ( #631, #658 ).
  • DecodeFieldPriorityFirstWin() no longer allocates for each object, and is as fast as the default decode or faster ( #668 ).

What's Changed

Decoder

  • Decoder: decode a stream by the byte slice decoders, compare the decoder with sonic by @​goccy in #656
  • Decoder: allocate and assign through reflect instead of go:linkname by @​goccy in #657
  • Decoder: UnmarshalOf, copies of the decoded strings, recent decoders of a context by @​goccy in #658
  • Decoder and encoder: struct keys by a table, numbers in one pass, strings by AVX2, benchmarks of real APIs by @​goccy in #659
  • Decoder: allocate the value of a pointer by new of its kind by @​goccy in #660
  • Decoder: report the type errors as encoding/json of the Go version does by @​goccy in #661
  • Decoder: decode a value of interface{} without reflect by @​goccy in #662
  • Decoder: decode the values held by interface values by their type, as encoding/json does by @​goccy in #663
  • Decoder: fix the reported decoder issues, as encoding/json of the Go version decodes by @​goccy in #664
  • Decoder: narrow the gaps to sonic on escaped strings, and compare with sonic as a real program runs by @​goccy in #665
  • Decoder: narrow the gaps to sonic at its fastest: slices, maps, long escaped strings and interface values by @​goccy in #666
  • Decoder: remember the decoded fields of DecodeFieldPriorityFirstWin in a bit set by @​goccy in #668
  • Decoder: narrow the gap to sonic on interface{} values and string fields by @​goccy in #670

... (truncated)

Commits
  • 1e851d6 Encoder: jump to one code of a large struct which is a value in many places (...
  • 6b77857 Handle the reported pull requests: omitzero, nil TextMarshaler pointers, the ...
  • 1729491 Update README.md
  • 331b5ae Decoder: narrow the gap to sonic on interface{} values and string fields (#670)
  • 085ade1 Benchmarks: color the bars of the summary by library (#669)
  • b8e09e3 Decoder: remember the decoded fields of DecodeFieldPriorityFirstWin in a bit ...
  • c6e282d Publish a benchmark report of the JSON libraries by category of behavior, des...
  • 7835fc9 Decoder: narrow the gaps to sonic at its fastest: slices, maps, long escaped ...
  • 4dcf7d1 Decoder: narrow the gaps to sonic on escaped strings, and compare with sonic ...
  • 4d4f5ff Decoder: fix the reported decoder issues, as encoding/json of the Go version ...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/6706 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 10/1/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `dependabot/go_modules/github.com/goccy/go-json-0.11.1` --- ### 📝 Commits (1) - [`8a85d51`](https://github.com/MHSanaei/3x-ui/commit/8a85d5183dd461c68425b17898e05ae9c3268992) chore(deps): bump github.com/goccy/go-json from 0.10.6 to 0.11.1 ### 📊 Changes **2 files changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `go.mod` (+1 -1) 📝 `go.sum` (+2 -2) </details> ### 📄 Description Bumps [github.com/goccy/go-json](https://github.com/goccy/go-json) from 0.10.6 to 0.11.1. <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.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> <li><code>DecodeFieldPriorityFirstWin()</code> no longer allocates for each object, and is as fast as the default decode or faster ( <a href="https://redirect.github.com/goccy/go-json/issues/668">#668</a> ).</li> </ul> <h2>What's Changed</h2> <h3>Decoder</h3> <ul> <li>Decoder: decode a stream by the byte slice decoders, compare the decoder with sonic by <a href="https://github.com/goccy"><code>@​goccy</code></a> in <a href="https://redirect.github.com/goccy/go-json/issues/656">#656</a></li> <li>Decoder: allocate and assign through reflect instead of go:linkname by <a href="https://github.com/goccy"><code>@​goccy</code></a> in <a href="https://redirect.github.com/goccy/go-json/issues/657">#657</a></li> <li>Decoder: UnmarshalOf, copies of the decoded strings, recent decoders of a context by <a href="https://github.com/goccy"><code>@​goccy</code></a> in <a href="https://redirect.github.com/goccy/go-json/issues/658">#658</a></li> <li>Decoder and encoder: struct keys by a table, numbers in one pass, strings by AVX2, benchmarks of real APIs by <a href="https://github.com/goccy"><code>@​goccy</code></a> in <a href="https://redirect.github.com/goccy/go-json/issues/659">#659</a></li> <li>Decoder: allocate the value of a pointer by new of its kind by <a href="https://github.com/goccy"><code>@​goccy</code></a> in <a href="https://redirect.github.com/goccy/go-json/issues/660">#660</a></li> <li>Decoder: report the type errors as encoding/json of the Go version does by <a href="https://github.com/goccy"><code>@​goccy</code></a> in <a href="https://redirect.github.com/goccy/go-json/issues/661">#661</a></li> <li>Decoder: decode a value of interface{} without reflect by <a href="https://github.com/goccy"><code>@​goccy</code></a> in <a href="https://redirect.github.com/goccy/go-json/issues/662">#662</a></li> <li>Decoder: decode the values held by interface values by their type, as encoding/json does by <a href="https://github.com/goccy"><code>@​goccy</code></a> in <a href="https://redirect.github.com/goccy/go-json/issues/663">#663</a></li> <li>Decoder: fix the reported decoder issues, as encoding/json of the Go version decodes by <a href="https://github.com/goccy"><code>@​goccy</code></a> in <a href="https://redirect.github.com/goccy/go-json/issues/664">#664</a></li> <li>Decoder: narrow the gaps to sonic on escaped strings, and compare with sonic as a real program runs by <a href="https://github.com/goccy"><code>@​goccy</code></a> in <a href="https://redirect.github.com/goccy/go-json/issues/665">#665</a></li> <li>Decoder: narrow the gaps to sonic at its fastest: slices, maps, long escaped strings and interface values by <a href="https://github.com/goccy"><code>@​goccy</code></a> in <a href="https://redirect.github.com/goccy/go-json/issues/666">#666</a></li> <li>Decoder: remember the decoded fields of DecodeFieldPriorityFirstWin in a bit set by <a href="https://github.com/goccy"><code>@​goccy</code></a> in <a href="https://redirect.github.com/goccy/go-json/issues/668">#668</a></li> <li>Decoder: narrow the gap to sonic on interface{} values and string fields by <a href="https://github.com/goccy"><code>@​goccy</code></a> in <a href="https://redirect.github.com/goccy/go-json/issues/670">#670</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/1e851d67d62b2eb53bf7a472bb7603b5a9daa9fa"><code>1e851d6</code></a> Encoder: jump to one code of a large struct which is a value in many places (...</li> <li><a href="https://github.com/goccy/go-json/commit/6b77857a07569066b7fbc46d3d3cae49bccb2156"><code>6b77857</code></a> Handle the reported pull requests: omitzero, nil TextMarshaler pointers, the ...</li> <li><a href="https://github.com/goccy/go-json/commit/17294910d0d3fb07afe695568dc545c528d710e7"><code>1729491</code></a> Update README.md</li> <li><a href="https://github.com/goccy/go-json/commit/331b5ae53b0323377ab296570e5931a5f60b3a35"><code>331b5ae</code></a> Decoder: narrow the gap to sonic on interface{} values and string fields (<a href="https://redirect.github.com/goccy/go-json/issues/670">#670</a>)</li> <li><a href="https://github.com/goccy/go-json/commit/085ade150581f964bef811568f8107170fb26119"><code>085ade1</code></a> Benchmarks: color the bars of the summary by library (<a href="https://redirect.github.com/goccy/go-json/issues/669">#669</a>)</li> <li><a href="https://github.com/goccy/go-json/commit/b8e09e328f42f05b8e133181d62b25f8eb0573ea"><code>b8e09e3</code></a> Decoder: remember the decoded fields of DecodeFieldPriorityFirstWin in a bit ...</li> <li><a href="https://github.com/goccy/go-json/commit/c6e282dea81b2cb32e48bd3fc39463b0228a3e0e"><code>c6e282d</code></a> Publish a benchmark report of the JSON libraries by category of behavior, des...</li> <li><a href="https://github.com/goccy/go-json/commit/7835fc9ced0b51d1de5c4d05c2da43a2e812566a"><code>7835fc9</code></a> Decoder: narrow the gaps to sonic at its fastest: slices, maps, long escaped ...</li> <li><a href="https://github.com/goccy/go-json/commit/4dcf7d1cda58102fc7f68d1f242e81bde59d2ecb"><code>4dcf7d1</code></a> Decoder: narrow the gaps to sonic on escaped strings, and compare with sonic ...</li> <li><a href="https://github.com/goccy/go-json/commit/4d4f5ffa1097ddbf8b7acc3632411fd299a3f6fc"><code>4d4f5ff</code></a> Decoder: fix the reported decoder issues, as encoding/json of the Go version ...</li> <li>Additional commits viewable in <a href="https://github.com/goccy/go-json/compare/v0.10.6...v0.11.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/goccy/go-json&package-manager=go_modules&previous-version=0.10.6&new-version=0.11.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:08:39 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#6423
No description provided.