Skip to content

build(deps): bump github.com/goccy/go-json from 0.10.6 to 0.11.0 in the go-minor-patch group - #349

Merged
strehle merged 1 commit into
masterfrom
dependabot/go_modules/go-minor-patch-ce20dfad4f
Sep 30, 2026
Merged

strehle merged 1 commit into
masterfrom
dependabot/go_modules/go-minor-patch-ce20dfad4f

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 30, 2026

Copy link
Copy Markdown
Contributor

Bumps the go-minor-patch group with 1 update: github.com/goccy/go-json.

Updates github.com/goccy/go-json from 0.10.6 to 0.11.0

Release notes

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

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

Encoder

  • Remove go:linkname to reflect.(*rtype) methods by @​goccy in #624
  • Remove runtime.Type and go:linkname to reflect.ifaceIndir by @​goccy in #625
  • Always give the address of the value to the encoder VM by @​goccy in #626
  • Fix the encoding of recursive structs and omitempty with a pointer receiver marshaler by @​goccy in #628
  • Fix the indent of deep recursive structs, marshalers of empty values and embedded structs by @​goccy in #630
  • Carry the values of the encoder VM as unsafe.Pointer and remove KeepRefs by @​goccy in #631

... (truncated)

Commits
  • 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 ...
  • efb8230 Decoder: decode the values held by interface values by their type, as encodin...
  • 938cc9e Decoder: decode a value of interface{} without reflect (#662)
  • e4f4463 Decoder: report the type errors as encoding/json of the Go version does (#661)
  • 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 <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the go-minor-patch group with 1 update: [github.com/goccy/go-json](https://github.com/goccy/go-json).


Updates `github.com/goccy/go-json` from 0.10.6 to 0.11.0
- [Release notes](https://github.com/goccy/go-json/releases)
- [Changelog](https://github.com/goccy/go-json/blob/master/CHANGELOG.md)
- [Commits](goccy/go-json@v0.10.6...v0.11.0)

---
updated-dependencies:
- dependency-name: github.com/goccy/go-json
  dependency-version: 0.11.0
  dependency-type: indirect
  update-type: version-update:semver-minor
  dependency-group: go-minor-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Sep 30, 2026
@strehle
strehle merged commit 0897479 into master Sep 30, 2026
7 checks passed
@strehle
strehle deleted the dependabot/go_modules/go-minor-patch-ce20dfad4f branch September 30, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant