fix(deps): update all non-major dependencies #162

Open
renovate-bot wants to merge 1 commit from renovate/all-minor-patch into main
Collaborator

This PR contains the following updates:

Package Change Age Confidence
github.com/cli/go-gh/v2 v2.16.2 → v2.17.0 age confidence
github.com/creativeprojects/go-selfupdate v1.6.0 → v1.7.1 age confidence
github.com/dlclark/regexp2/v2 v2.8.4 → v2.13.0 age confidence
github.com/goccy/go-json v0.10.6 → v0.12.0 age confidence

Release Notes

cli/go-gh (github.com/cli/go-gh/v2)

v2.17.0

Compare Source

⚠️ Breaking change

Packages pkg/markdown and pkg/x/markdown now use Glamour v2 (#​281), which fixes hyperlinks that wrap across lines. Glamour types are part of these packages' exported signatures, so code that references them alongside go-gh (for example glamour.TermRendererOption or ansi.StyleConfig) must update its imports from github.com/charmbracelet/glamour to charm.land/glamour/v2. No other changes should be needed.

This release also raises the minimum Go version to 1.26.7, as required by Glamour v2 and Lip Gloss v2.

What's Changed

Full Changelog: https://github.com/cli/go-gh/compare/v2.16.2...v2.17.0

creativeprojects/go-selfupdate (github.com/creativeprojects/go-selfupdate)

v1.7.1

Compare Source

v1.7.0

Compare Source

dlclark/regexp2 (github.com/dlclark/regexp2/v2)

v2.13.0

Compare Source

v2.12.0

Compare Source

v2.11.0

Compare Source

v2.10.1

Compare Source

v2.10.0

Compare Source

v2.9.1

Compare Source

v2.9.0

Compare Source

goccy/go-json (github.com/goccy/go-json)

v0.12.0

Compare Source

What's Changed

  • Encoder: call a pointer-receiver marshaler with the address of a pointer-sized value by @​goccy in #​692
  • Add github.com/goccy/go-json/jsontext, faster than encoding/json/jsontext by @​goccy in #​689
  • Share number, string and formatting code between v1 and jsontext, and fix v1 deviations by @​goccy in #​693
  • Look up a type the recent opcodes miss in the shared table without a call by @​goccy in #​674
  • Prepare the encoder and jsontext for github.com/goccy/go-json/v2 by @​goccy in #​695
  • Add the compile mode of the encoding/json/v2 semantics to the encoder by @​goccy in #​696
  • Add github.com/goccy/go-json/v2 with Marshal, MarshalWrite and MarshalEncode by @​goccy in #​698
  • Add MarshalOf and MarshalWriteOf to github.com/goccy/go-json/v2, and benchmark the v2 encoder by @​goccy in #​699
  • Report the coverage by octocov instead of Codecov by @​goccy in #​700
  • Decoder: follow an embedded pointer to an unexported struct which is set by @​minhnhathoang in #​697
  • Encoder: read maps by values of their own size, and detect cycles through map values by @​goccy in #​704
  • Encoder: fix crashes on maps of keys of no size and of values of an interface type with methods by @​goccy in #​705
  • Encoder: record the values of cycle detection by their types, and a pointer in an interface by itself by @​goccy in #​706
  • v2: fix panics on keys of an interface type with methods and on misuse of a method's encoder by @​goccy in #​707
  • jsontext: fail an attached encoder which ends the level it is attached in by @​goccy in #​708
  • v2: fail the value of a method when a call of MarshalEncode within it fails by @​goccy in #​709
  • v2: detect cycles through declined values and MarshalEncode called by methods by @​goccy in #​710
  • v2: write json.Number as a number and fail time.Duration map keys by @​goccy in #​711
  • v2: rewrite only raw values by the options which rewrite raw values by @​goccy in #​712
  • Encode json.Number and pointer map keys by their names by @​goccy in #​713
  • v2: give the string option of a field to its methods and functions by @​goccy in #​714
  • v2: name keys in interfaces and behind pointers by the functions of their values by @​goccy in #​715
  • v2: escape field names for JavaScript and keep the escapes of nested calls by @​goccy in #​716
  • Fail values nested deeper than 10000 levels by @​goccy in #​717
  • v2: keep nothing of the caller's output in the state of MarshalEncode by @​goccy in #​718
  • v2: count the depth of methods, nested calls and declined values in the whole output by @​goccy in #​719
  • v2: fix the names which methods write for map keys by @​goccy in #​720
  • Count the levels a type nests in its frame for the max depth by @​goccy in #​721
  • v2: give the functions of marshaling a pointer at the top level as its value by @​goccy in #​722
  • Fix the option ,string with Colorize and on a pointer to a pointer by @​goccy in #​723
  • Write a pointer to a nil value with omitempty as null by @​goccy in #​724
  • Fix small defects found by a review of the whole encoder by @​goccy in #​725
  • Choose and indent the fields of embedded structs as encoding/json does by @​goccy in #​726
  • Fail for a value of an unsupported type only when it is encoded by @​goccy in #​727
  • Add benchmarks of decoding a stream from a chunked reader by @​goccy in #​728
  • Decode the option ,string on pointers and keys of pointer types as encoding/json of Go 1.27 does by @​goccy in #​729
  • Add benchmarks of encoding maps under every condition by @​goccy in #​732
  • Decode the keys of maps as encoding/json does by @​goccy in #​733
  • Encode the values of a sorted map in the order of the names by @​goccy in #​730
  • Name a map key of pointers by what they lead to, and fail for a cycle by @​goccy in #​735
  • Decoder: bound the memory of a stream (supersedes #​734) by @​goccy in #​736
  • Add the sonic Decoder to the stream benchmarks which had none by @​goccy in #​737
  • Decoder: match encoding/json at the depth limit wherever the reads end by @​goccy in #​739
  • Decode as encoding/json of Go 1.27 on every version of Go by @​goccy in #​740
  • Encode a pointer type which is a value of itself through what it points to by @​goccy in #​738
  • README: describe decoding as Go 1.27's on every Go version, and the stream decoder by elements by @​goccy in #​741
  • Decode recursive slice, map and array types instead of overflowing the stack by @​goccy in #​742
  • Decode the fields of embedded structs as encoding/json chooses them by @​goccy in #​743
  • Compare benchmarks of identical code as identical in the gate by @​goccy in #​744
  • Add the issues directory: the known work on go-json, one item per file by @​goccy in #​745
  • v2: add Unmarshal of bools, numbers, strings, bytes, interfaces, slices, arrays and pointers by @​goccy in #​746
  • Count a benchmark which fails in the base as new in the gate by @​goccy in #​747
  • v2: add Unmarshal of structs and maps by @​goccy in #​748
  • v2: add Unmarshal by methods, functions and the time types by @​goccy in #​749
  • v2: add Unmarshal by UnmarshalJSONFrom and UnmarshalFromFunc by @​goccy in #​750
  • v2: add UnmarshalOf, and the decoding of v2 to the benchmark report by @​goccy in #​751
  • v2: add UnmarshalRead and UnmarshalReadOf, which stream with bounded memory by @​goccy in #​752
  • Bump github.com/klauspost/compress from 1.17.11 to 1.18.7 in /benchmarks by @​dependabot[bot] in #​753
  • v2: add UnmarshalDecode and UnmarshalDecodeOf by @​goccy in #​754
  • v2: find struct member names by their words, as v1 does by @​goccy in #​755
  • v2: decode strings, and the texts of methods and times, in one read by @​goccy in #​756
  • Name the identifiers by what they do instead of "check" by @​goccy in #​757
  • v2: match folded names without folding them again, and make boolean options without an allocation by @​goccy in #​758
  • v2: decode the names of no field and skip their values faster by @​goccy in #​759
  • v2: skip the values of no field in one scan, and keep the names of a call in one stack by @​goccy in #​760
  • v2: look the folded names up in a table of the names of the fields by @​goccy in #​761
  • v2: decode bools and numbers by v1's decoders alone, and match folded names by the field of each folded name by @​goccy in #​762
  • v2: decode folded names as they are read, skip scalars once, and decode held pointers in place by @​goccy in #​763
  • v2: keep the name "" in the places of values, and decode the scalars of streams in their buffer by @​goccy in #​764
  • v2: take v1's paths where v2 decodes as v1, and make the others fast: names twice by hashes, values skipped in one read by @​goccy in #​765
  • v2: decode structs, streams and UnmarshalDecode by v1's paths where v2 decodes as v1 by @​goccy in #​766
  • Prepare v0.12.0: describe v2 and jsontext in the README, and pass the tests on Go 1.23 by @​goccy in #​767
  • Follow encoding/json of Go 1.27.3, and pin CI to it by @​goccy in #​768
  • Add the options of encoding/json, applied by the engine of v2 by @​goccy in #​771
  • Call MarshalJSONTo and UnmarshalJSONFrom from the root package by @​goccy in #​769
  • Decode a float whose digits wrap the mantissa around to 0 (#​770) by @​goccy in #​772
  • issues: drop the parts which master fixed, and state the rest as master has it by @​goccy in #​773
  • Path: return errors instead of panics, and select by .. at any depth (#​774) by @​goccy in #​776
  • Decoded values keep alive no memory but their own (#​775) by @​goccy in #​777
  • Docs: decoded values keep only their own memory, and DecodeNoCopyString keeps the input (#​775) by @​goccy in #​778

New Contributors

Full Changelog: https://github.com/goccy/go-json/compare/v0.11.2...v0.12.0

v0.11.2

Compare Source

What's Changed

  • Trust the marshalers and the unmarshalers of the standard library by @​goccy in #​675
  • Encoder: escape and check strings faster by @​goccy in #​676
  • Encoder: range over larger map values as words, and write the entries of a sorted map directly by @​goccy in #​677
  • Encoder: write the digits of an integer where they go in the buffer by @​goccy in #​679
  • Look the methods of the marshalers up by their names as constants by @​goccy in #​680
  • Encoder: sort the keys of a map with the comparisons inlined by @​goccy in #​681
  • Encoder: write integers of up to sixteen digits by the lookups of their digits by @​goccy in #​682
  • Encoder: find the quotes of a marshaler output in memory order on big-endian machines by @​goccy in #​683
  • CI: run the tests on a big-endian machine (s390x under QEMU) by @​goccy in #​684
  • Encoder: look at a short string and write it in one pass by @​goccy in #​685
  • Encoder: escape strings of characters which are not ASCII faster when UTF-8 is normalized by @​goccy in #​686
  • Raise the Go version of the module to 1.23 by @​goccy in #​687

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

v0.11.1

Compare Source

What's Changed

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

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

v0.11.0

Compare Source

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
  • Add MarshalOf, which encodes a value without copying it to the heap by @​goccy in #​632
  • Speed up the encoder: a hash table for the cache of a type, a lighter VM and a faster AppendString by @​goccy in #​634
  • Encode a scalar held by an interface value without a frame by @​goccy in #​635
  • Scan a string for a byte to escape by SIMD by @​goccy in #​637
  • Call the method of a marshaler directly by its code by @​goccy in #​638
  • Copy the output of a marshaler as it is if it is compact and valid by @​goccy in #​639
  • Encoder: inline the helpers of the VM, and shorter paths for strings and maps by @​goccy in #​640
  • Write the key of a map of strings by the opcode of the map entry by @​goccy in #​641
  • Encoder: encode fields of the same kind in a row without a dispatch between them by @​goccy in #​643
  • Encode a list of values of a recursive type in one frame by @​goccy in #​645
  • Add the option to let the encoder order the fields of a struct by @​goccy in #​646
  • Read the entries of a map without a linkname of the runtime by @​goccy in #​647
  • Encoder: compare the keys of a map by their first bytes as a number first by @​goccy in #​649
  • Encoder: cheaper frames of interface values by @​goccy in #​650
  • Encoder: write the scalar entries of an unordered map of interface values as the map is read by @​goccy in #​651
  • Write null for an interface value which holds nothing without a call by @​goccy in #​652
  • Encoder: encode a field of interface{} by an opcode of its own by @​goccy in #​653
  • Test the cases of the reported issues of the encoder by @​goccy in #​655
Other fixes
Benchmarks, documents and CI
  • Fix CI failures on master caused by outdated Go versions by @​goccy in #​594
  • Add bench-check task to fail CI on performance degradation by @​goccy in #​623
  • Judge the benchmarks by the mean and by the fastest results by @​goccy in #​629
  • Benchmarks: add the benchmarks of sonic's encoder, with go-json beside it by @​goccy in #​648
  • Modernize the code: any, unsafe.Add, slices.Contains, min, max, bytes.Cut by @​goccy in #​654
  • Publish a benchmark report of the JSON libraries by category of behavior, describe the decoder as it is now in the README, and run no CI for documents alone by @​goccy in #​667
  • Benchmarks: color the bars of the summary by library by @​goccy in #​669

New Contributors

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


Configuration

📅 Schedule: (in timezone Europe/Berlin)

  • Branch creation
    • Between 12:00 AM and 05:59 AM, only on Monday (* 0-5 * * 1)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [github.com/cli/go-gh/v2](https://github.com/cli/go-gh) | `v2.16.2` → `v2.17.0` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fcli%2fgo-gh%2fv2/v2.17.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fcli%2fgo-gh%2fv2/v2.16.2/v2.17.0?slim=true) | | [github.com/creativeprojects/go-selfupdate](https://github.com/creativeprojects/go-selfupdate) | `v1.6.0` → `v1.7.1` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fcreativeprojects%2fgo-selfupdate/v1.7.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fcreativeprojects%2fgo-selfupdate/v1.6.0/v1.7.1?slim=true) | | [github.com/dlclark/regexp2/v2](https://github.com/dlclark/regexp2) | `v2.8.4` → `v2.13.0` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fdlclark%2fregexp2%2fv2/v2.13.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fdlclark%2fregexp2%2fv2/v2.8.4/v2.13.0?slim=true) | | [github.com/goccy/go-json](https://github.com/goccy/go-json) | `v0.10.6` → `v0.12.0` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgoccy%2fgo-json/v0.12.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fgoccy%2fgo-json/v0.10.6/v0.12.0?slim=true) | --- ### Release Notes <details> <summary>cli/go-gh (github.com/cli/go-gh/v2)</summary> ### [`v2.17.0`](https://github.com/cli/go-gh/releases/tag/v2.17.0) [Compare Source](https://github.com/cli/go-gh/compare/v2.16.2...v2.17.0) #### :warning: Breaking change Packages `pkg/markdown` and `pkg/x/markdown` now use Glamour v2 ([#&#8203;281](https://github.com/cli/go-gh/issues/281)), which fixes hyperlinks that wrap across lines. Glamour types are part of these packages' exported signatures, so code that references them alongside go-gh (for example `glamour.TermRendererOption` or `ansi.StyleConfig`) must update its imports from `github.com/charmbracelet/glamour` to `charm.land/glamour/v2`. No other changes should be needed. This release also raises the minimum Go version to 1.26.7, as required by Glamour v2 and Lip Gloss v2. #### What's Changed - chore(deps): Bump golang.org/x/sys from 0.47.0 to 0.49.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;313](https://github.com/cli/go-gh/pull/313) - Upgrade glamour to fix hyperlinks (OSC8) by [@&#8203;heaths](https://github.com/heaths) in [#&#8203;281](https://github.com/cli/go-gh/pull/281) - feat(config): add in-place Reload for refreshed reads by [@&#8203;babakks](https://github.com/babakks) in [#&#8203;298](https://github.com/cli/go-gh/pull/298) - chore(deps): Bump the codeql-actions group across 1 directory with 2 updates by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;318](https://github.com/cli/go-gh/pull/318) - chore(deps): Bump golang.org/x/term from 0.45.0 to 0.47.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;317](https://github.com/cli/go-gh/pull/317) - chore(deps): Bump golang.org/x/text from 0.41.0 to 0.43.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;315](https://github.com/cli/go-gh/pull/315) - chore(deps): Bump github.com/thlib/go-timezone-local from 0.0.8 to 0.0.9 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;316](https://github.com/cli/go-gh/pull/316) **Full Changelog**: <https://github.com/cli/go-gh/compare/v2.16.2...v2.17.0> </details> <details> <summary>creativeprojects/go-selfupdate (github.com/creativeprojects/go-selfupdate)</summary> ### [`v1.7.1`](https://github.com/creativeprojects/go-selfupdate/compare/v1.7.0...v1.7.1) [Compare Source](https://github.com/creativeprojects/go-selfupdate/compare/v1.7.0...v1.7.1) ### [`v1.7.0`](https://github.com/creativeprojects/go-selfupdate/compare/v1.6.0...v1.7.0) [Compare Source](https://github.com/creativeprojects/go-selfupdate/compare/v1.6.0...v1.7.0) </details> <details> <summary>dlclark/regexp2 (github.com/dlclark/regexp2/v2)</summary> ### [`v2.13.0`](https://github.com/dlclark/regexp2/compare/v2.12.0...v2.13.0) [Compare Source](https://github.com/dlclark/regexp2/compare/v2.12.0...v2.13.0) ### [`v2.12.0`](https://github.com/dlclark/regexp2/compare/v2.11.0...v2.12.0) [Compare Source](https://github.com/dlclark/regexp2/compare/v2.11.0...v2.12.0) ### [`v2.11.0`](https://github.com/dlclark/regexp2/compare/v2.10.1...v2.11.0) [Compare Source](https://github.com/dlclark/regexp2/compare/v2.10.1...v2.11.0) ### [`v2.10.1`](https://github.com/dlclark/regexp2/compare/v2.10.0...v2.10.1) [Compare Source](https://github.com/dlclark/regexp2/compare/v2.10.0...v2.10.1) ### [`v2.10.0`](https://github.com/dlclark/regexp2/compare/v2.9.1...v2.10.0) [Compare Source](https://github.com/dlclark/regexp2/compare/v2.9.1...v2.10.0) ### [`v2.9.1`](https://github.com/dlclark/regexp2/compare/v2.9.0...v2.9.1) [Compare Source](https://github.com/dlclark/regexp2/compare/v2.9.0...v2.9.1) ### [`v2.9.0`](https://github.com/dlclark/regexp2/compare/v2.8.4...v2.9.0) [Compare Source](https://github.com/dlclark/regexp2/compare/v2.8.4...v2.9.0) </details> <details> <summary>goccy/go-json (github.com/goccy/go-json)</summary> ### [`v0.12.0`](https://github.com/goccy/go-json/releases/tag/v0.12.0) [Compare Source](https://github.com/goccy/go-json/compare/v0.11.2...v0.12.0) #### What's Changed - Encoder: call a pointer-receiver marshaler with the address of a pointer-sized value by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;692](https://github.com/goccy/go-json/pull/692) - Add github.com/goccy/go-json/jsontext, faster than encoding/json/jsontext by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;689](https://github.com/goccy/go-json/pull/689) - Share number, string and formatting code between v1 and jsontext, and fix v1 deviations by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;693](https://github.com/goccy/go-json/pull/693) - Look up a type the recent opcodes miss in the shared table without a call by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;674](https://github.com/goccy/go-json/pull/674) - Prepare the encoder and jsontext for github.com/goccy/go-json/v2 by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;695](https://github.com/goccy/go-json/pull/695) - Add the compile mode of the encoding/json/v2 semantics to the encoder by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;696](https://github.com/goccy/go-json/pull/696) - Add github.com/goccy/go-json/v2 with Marshal, MarshalWrite and MarshalEncode by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;698](https://github.com/goccy/go-json/pull/698) - Add MarshalOf and MarshalWriteOf to github.com/goccy/go-json/v2, and benchmark the v2 encoder by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;699](https://github.com/goccy/go-json/pull/699) - Report the coverage by octocov instead of Codecov by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;700](https://github.com/goccy/go-json/pull/700) - Decoder: follow an embedded pointer to an unexported struct which is set by [@&#8203;minhnhathoang](https://github.com/minhnhathoang) in [#&#8203;697](https://github.com/goccy/go-json/pull/697) - Encoder: read maps by values of their own size, and detect cycles through map values by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;704](https://github.com/goccy/go-json/pull/704) - Encoder: fix crashes on maps of keys of no size and of values of an interface type with methods by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;705](https://github.com/goccy/go-json/pull/705) - Encoder: record the values of cycle detection by their types, and a pointer in an interface by itself by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;706](https://github.com/goccy/go-json/pull/706) - v2: fix panics on keys of an interface type with methods and on misuse of a method's encoder by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;707](https://github.com/goccy/go-json/pull/707) - jsontext: fail an attached encoder which ends the level it is attached in by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;708](https://github.com/goccy/go-json/pull/708) - v2: fail the value of a method when a call of MarshalEncode within it fails by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;709](https://github.com/goccy/go-json/pull/709) - v2: detect cycles through declined values and MarshalEncode called by methods by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;710](https://github.com/goccy/go-json/pull/710) - v2: write json.Number as a number and fail time.Duration map keys by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;711](https://github.com/goccy/go-json/pull/711) - v2: rewrite only raw values by the options which rewrite raw values by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;712](https://github.com/goccy/go-json/pull/712) - Encode json.Number and pointer map keys by their names by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;713](https://github.com/goccy/go-json/pull/713) - v2: give the string option of a field to its methods and functions by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;714](https://github.com/goccy/go-json/pull/714) - v2: name keys in interfaces and behind pointers by the functions of their values by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;715](https://github.com/goccy/go-json/pull/715) - v2: escape field names for JavaScript and keep the escapes of nested calls by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;716](https://github.com/goccy/go-json/pull/716) - Fail values nested deeper than 10000 levels by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;717](https://github.com/goccy/go-json/pull/717) - v2: keep nothing of the caller's output in the state of MarshalEncode by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;718](https://github.com/goccy/go-json/pull/718) - v2: count the depth of methods, nested calls and declined values in the whole output by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;719](https://github.com/goccy/go-json/pull/719) - v2: fix the names which methods write for map keys by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;720](https://github.com/goccy/go-json/pull/720) - Count the levels a type nests in its frame for the max depth by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;721](https://github.com/goccy/go-json/pull/721) - v2: give the functions of marshaling a pointer at the top level as its value by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;722](https://github.com/goccy/go-json/pull/722) - Fix the option ,string with Colorize and on a pointer to a pointer by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;723](https://github.com/goccy/go-json/pull/723) - Write a pointer to a nil value with omitempty as null by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;724](https://github.com/goccy/go-json/pull/724) - Fix small defects found by a review of the whole encoder by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;725](https://github.com/goccy/go-json/pull/725) - Choose and indent the fields of embedded structs as encoding/json does by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;726](https://github.com/goccy/go-json/pull/726) - Fail for a value of an unsupported type only when it is encoded by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;727](https://github.com/goccy/go-json/pull/727) - Add benchmarks of decoding a stream from a chunked reader by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;728](https://github.com/goccy/go-json/pull/728) - Decode the option ,string on pointers and keys of pointer types as encoding/json of Go 1.27 does by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;729](https://github.com/goccy/go-json/pull/729) - Add benchmarks of encoding maps under every condition by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;732](https://github.com/goccy/go-json/pull/732) - Decode the keys of maps as encoding/json does by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;733](https://github.com/goccy/go-json/pull/733) - Encode the values of a sorted map in the order of the names by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;730](https://github.com/goccy/go-json/pull/730) - Name a map key of pointers by what they lead to, and fail for a cycle by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;735](https://github.com/goccy/go-json/pull/735) - Decoder: bound the memory of a stream (supersedes [#&#8203;734](https://github.com/goccy/go-json/issues/734)) by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;736](https://github.com/goccy/go-json/pull/736) - Add the sonic Decoder to the stream benchmarks which had none by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;737](https://github.com/goccy/go-json/pull/737) - Decoder: match encoding/json at the depth limit wherever the reads end by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;739](https://github.com/goccy/go-json/pull/739) - Decode as encoding/json of Go 1.27 on every version of Go by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;740](https://github.com/goccy/go-json/pull/740) - Encode a pointer type which is a value of itself through what it points to by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;738](https://github.com/goccy/go-json/pull/738) - README: describe decoding as Go 1.27's on every Go version, and the stream decoder by elements by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;741](https://github.com/goccy/go-json/pull/741) - Decode recursive slice, map and array types instead of overflowing the stack by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;742](https://github.com/goccy/go-json/pull/742) - Decode the fields of embedded structs as encoding/json chooses them by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;743](https://github.com/goccy/go-json/pull/743) - Compare benchmarks of identical code as identical in the gate by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;744](https://github.com/goccy/go-json/pull/744) - Add the issues directory: the known work on go-json, one item per file by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;745](https://github.com/goccy/go-json/pull/745) - v2: add Unmarshal of bools, numbers, strings, bytes, interfaces, slices, arrays and pointers by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;746](https://github.com/goccy/go-json/pull/746) - Count a benchmark which fails in the base as new in the gate by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;747](https://github.com/goccy/go-json/pull/747) - v2: add Unmarshal of structs and maps by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;748](https://github.com/goccy/go-json/pull/748) - v2: add Unmarshal by methods, functions and the time types by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;749](https://github.com/goccy/go-json/pull/749) - v2: add Unmarshal by UnmarshalJSONFrom and UnmarshalFromFunc by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;750](https://github.com/goccy/go-json/pull/750) - v2: add UnmarshalOf, and the decoding of v2 to the benchmark report by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;751](https://github.com/goccy/go-json/pull/751) - v2: add UnmarshalRead and UnmarshalReadOf, which stream with bounded memory by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;752](https://github.com/goccy/go-json/pull/752) - Bump github.com/klauspost/compress from 1.17.11 to 1.18.7 in /benchmarks by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;753](https://github.com/goccy/go-json/pull/753) - v2: add UnmarshalDecode and UnmarshalDecodeOf by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;754](https://github.com/goccy/go-json/pull/754) - v2: find struct member names by their words, as v1 does by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;755](https://github.com/goccy/go-json/pull/755) - v2: decode strings, and the texts of methods and times, in one read by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;756](https://github.com/goccy/go-json/pull/756) - Name the identifiers by what they do instead of "check" by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;757](https://github.com/goccy/go-json/pull/757) - v2: match folded names without folding them again, and make boolean options without an allocation by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;758](https://github.com/goccy/go-json/pull/758) - v2: decode the names of no field and skip their values faster by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;759](https://github.com/goccy/go-json/pull/759) - v2: skip the values of no field in one scan, and keep the names of a call in one stack by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;760](https://github.com/goccy/go-json/pull/760) - v2: look the folded names up in a table of the names of the fields by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;761](https://github.com/goccy/go-json/pull/761) - v2: decode bools and numbers by v1's decoders alone, and match folded names by the field of each folded name by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;762](https://github.com/goccy/go-json/pull/762) - v2: decode folded names as they are read, skip scalars once, and decode held pointers in place by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;763](https://github.com/goccy/go-json/pull/763) - v2: keep the name "" in the places of values, and decode the scalars of streams in their buffer by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;764](https://github.com/goccy/go-json/pull/764) - v2: take v1's paths where v2 decodes as v1, and make the others fast: names twice by hashes, values skipped in one read by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;765](https://github.com/goccy/go-json/pull/765) - v2: decode structs, streams and UnmarshalDecode by v1's paths where v2 decodes as v1 by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;766](https://github.com/goccy/go-json/pull/766) - Prepare v0.12.0: describe v2 and jsontext in the README, and pass the tests on Go 1.23 by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;767](https://github.com/goccy/go-json/pull/767) - Follow encoding/json of Go 1.27.3, and pin CI to it by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;768](https://github.com/goccy/go-json/pull/768) - Add the options of encoding/json, applied by the engine of v2 by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;771](https://github.com/goccy/go-json/pull/771) - Call MarshalJSONTo and UnmarshalJSONFrom from the root package by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;769](https://github.com/goccy/go-json/pull/769) - Decode a float whose digits wrap the mantissa around to 0 ([#&#8203;770](https://github.com/goccy/go-json/issues/770)) by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;772](https://github.com/goccy/go-json/pull/772) - issues: drop the parts which master fixed, and state the rest as master has it by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;773](https://github.com/goccy/go-json/pull/773) - Path: return errors instead of panics, and select by .. at any depth ([#&#8203;774](https://github.com/goccy/go-json/issues/774)) by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;776](https://github.com/goccy/go-json/pull/776) - Decoded values keep alive no memory but their own ([#&#8203;775](https://github.com/goccy/go-json/issues/775)) by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;777](https://github.com/goccy/go-json/pull/777) - Docs: decoded values keep only their own memory, and DecodeNoCopyString keeps the input ([#&#8203;775](https://github.com/goccy/go-json/issues/775)) by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;778](https://github.com/goccy/go-json/pull/778) #### New Contributors - [@&#8203;minhnhathoang](https://github.com/minhnhathoang) made their first contribution in [#&#8203;697](https://github.com/goccy/go-json/pull/697) - [@&#8203;dependabot](https://github.com/dependabot)\[bot] made their first contribution in [#&#8203;753](https://github.com/goccy/go-json/pull/753) **Full Changelog**: <https://github.com/goccy/go-json/compare/v0.11.2...v0.12.0> ### [`v0.11.2`](https://github.com/goccy/go-json/releases/tag/v0.11.2) [Compare Source](https://github.com/goccy/go-json/compare/v0.11.1...v0.11.2) #### What's Changed - Trust the marshalers and the unmarshalers of the standard library by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;675](https://github.com/goccy/go-json/pull/675) - Encoder: escape and check strings faster by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;676](https://github.com/goccy/go-json/pull/676) - Encoder: range over larger map values as words, and write the entries of a sorted map directly by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;677](https://github.com/goccy/go-json/pull/677) - Encoder: write the digits of an integer where they go in the buffer by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;679](https://github.com/goccy/go-json/pull/679) - Look the methods of the marshalers up by their names as constants by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;680](https://github.com/goccy/go-json/pull/680) - Encoder: sort the keys of a map with the comparisons inlined by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;681](https://github.com/goccy/go-json/pull/681) - Encoder: write integers of up to sixteen digits by the lookups of their digits by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;682](https://github.com/goccy/go-json/pull/682) - Encoder: find the quotes of a marshaler output in memory order on big-endian machines by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;683](https://github.com/goccy/go-json/pull/683) - CI: run the tests on a big-endian machine (s390x under QEMU) by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;684](https://github.com/goccy/go-json/pull/684) - Encoder: look at a short string and write it in one pass by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;685](https://github.com/goccy/go-json/pull/685) - Encoder: escape strings of characters which are not ASCII faster when UTF-8 is normalized by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;686](https://github.com/goccy/go-json/pull/686) - Raise the Go version of the module to 1.23 by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;687](https://github.com/goccy/go-json/pull/687) **Full Changelog**: <https://github.com/goccy/go-json/compare/v0.11.1...v0.11.2> ### [`v0.11.1`](https://github.com/goccy/go-json/releases/tag/v0.11.1) [Compare Source](https://github.com/goccy/go-json/compare/v0.11.0...v0.11.1) #### What's Changed - Handle the reported pull requests: omitzero, nil TextMarshaler pointers, the generated-code marker and a godoc fix by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;671](https://github.com/goccy/go-json/pull/671) - Encoder: jump to one code of a large struct which is a value in many places by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;672](https://github.com/goccy/go-json/pull/672) **Full Changelog**: <https://github.com/goccy/go-json/compare/v0.11.0...v0.11.1> ### [`v0.11.0`](https://github.com/goccy/go-json/releases/tag/v0.11.0) [Compare Source](https://github.com/goccy/go-json/compare/v0.10.6...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 ( [#&#8203;632](https://github.com/goccy/go-json/issues/632) ). - `UnmarshalOf[T]`: decodes into a `*T` which may stay on the stack of the caller, without an allocation for the argument ( [#&#8203;658](https://github.com/goccy/go-json/issues/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 ( [#&#8203;646](https://github.com/goccy/go-json/issues/646) ). - `DecodeNoCopyString()`: lets the decoded strings refer to the input instead of copying them ( [#&#8203;658](https://github.com/goccy/go-json/issues/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` ( [#&#8203;664](https://github.com/goccy/go-json/issues/664) ). - Syntax errors and type errors are reported as `encoding/json` of the Go version reports them: their types, messages and offsets ( [#&#8203;661](https://github.com/goccy/go-json/issues/661), [#&#8203;664](https://github.com/goccy/go-json/issues/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 ( [#&#8203;658](https://github.com/goccy/go-json/issues/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 ( [#&#8203;666](https://github.com/goccy/go-json/issues/666) ). - `MarshalNoEscape` and `UnmarshalNoEscape` are deprecated: use `Marshal` and `UnmarshalOf` ( [#&#8203;631](https://github.com/goccy/go-json/issues/631), [#&#8203;658](https://github.com/goccy/go-json/issues/658) ). - `DecodeFieldPriorityFirstWin()` no longer allocates for each object, and is as fast as the default decode or faster ( [#&#8203;668](https://github.com/goccy/go-json/issues/668) ). #### What's Changed ##### Decoder - Decoder: decode a stream by the byte slice decoders, compare the decoder with sonic by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;656](https://github.com/goccy/go-json/issues/656) - Decoder: allocate and assign through reflect instead of go:linkname by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;657](https://github.com/goccy/go-json/issues/657) - Decoder: UnmarshalOf, copies of the decoded strings, recent decoders of a context by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;658](https://github.com/goccy/go-json/issues/658) - Decoder and encoder: struct keys by a table, numbers in one pass, strings by AVX2, benchmarks of real APIs by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;659](https://github.com/goccy/go-json/issues/659) - Decoder: allocate the value of a pointer by new of its kind by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;660](https://github.com/goccy/go-json/issues/660) - Decoder: report the type errors as encoding/json of the Go version does by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;661](https://github.com/goccy/go-json/issues/661) - Decoder: decode a value of interface{} without reflect by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;662](https://github.com/goccy/go-json/issues/662) - Decoder: decode the values held by interface values by their type, as encoding/json does by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;663](https://github.com/goccy/go-json/issues/663) - Decoder: fix the reported decoder issues, as encoding/json of the Go version decodes by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;664](https://github.com/goccy/go-json/issues/664) - Decoder: narrow the gaps to sonic on escaped strings, and compare with sonic as a real program runs by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;665](https://github.com/goccy/go-json/issues/665) - Decoder: narrow the gaps to sonic at its fastest: slices, maps, long escaped strings and interface values by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;666](https://github.com/goccy/go-json/issues/666) - Decoder: remember the decoded fields of DecodeFieldPriorityFirstWin in a bit set by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;668](https://github.com/goccy/go-json/issues/668) - Decoder: narrow the gap to sonic on interface{} values and string fields by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;670](https://github.com/goccy/go-json/issues/670) ##### Encoder - Remove go:linkname to reflect.(\*rtype) methods by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;624](https://github.com/goccy/go-json/issues/624) - Remove runtime.Type and go:linkname to reflect.ifaceIndir by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;625](https://github.com/goccy/go-json/issues/625) - Always give the address of the value to the encoder VM by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;626](https://github.com/goccy/go-json/issues/626) - Fix the encoding of recursive structs and omitempty with a pointer receiver marshaler by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;628](https://github.com/goccy/go-json/issues/628) - Fix the indent of deep recursive structs, marshalers of empty values and embedded structs by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;630](https://github.com/goccy/go-json/issues/630) - Carry the values of the encoder VM as unsafe.Pointer and remove KeepRefs by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;631](https://github.com/goccy/go-json/issues/631) - Add MarshalOf, which encodes a value without copying it to the heap by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;632](https://github.com/goccy/go-json/issues/632) - Speed up the encoder: a hash table for the cache of a type, a lighter VM and a faster AppendString by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;634](https://github.com/goccy/go-json/issues/634) - Encode a scalar held by an interface value without a frame by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;635](https://github.com/goccy/go-json/issues/635) - Scan a string for a byte to escape by SIMD by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;637](https://github.com/goccy/go-json/issues/637) - Call the method of a marshaler directly by its code by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;638](https://github.com/goccy/go-json/issues/638) - Copy the output of a marshaler as it is if it is compact and valid by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;639](https://github.com/goccy/go-json/issues/639) - Encoder: inline the helpers of the VM, and shorter paths for strings and maps by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;640](https://github.com/goccy/go-json/issues/640) - Write the key of a map of strings by the opcode of the map entry by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;641](https://github.com/goccy/go-json/issues/641) - Encoder: encode fields of the same kind in a row without a dispatch between them by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;643](https://github.com/goccy/go-json/issues/643) - Encode a list of values of a recursive type in one frame by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;645](https://github.com/goccy/go-json/issues/645) - Add the option to let the encoder order the fields of a struct by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;646](https://github.com/goccy/go-json/issues/646) - Read the entries of a map without a linkname of the runtime by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;647](https://github.com/goccy/go-json/issues/647) - Encoder: compare the keys of a map by their first bytes as a number first by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;649](https://github.com/goccy/go-json/issues/649) - Encoder: cheaper frames of interface values by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;650](https://github.com/goccy/go-json/issues/650) - Encoder: write the scalar entries of an unordered map of interface values as the map is read by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;651](https://github.com/goccy/go-json/issues/651) - Write null for an interface value which holds nothing without a call by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;652](https://github.com/goccy/go-json/issues/652) - Encoder: encode a field of interface{} by an opcode of its own by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;653](https://github.com/goccy/go-json/issues/653) - Test the cases of the reported issues of the encoder by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;655](https://github.com/goccy/go-json/issues/655) ##### Other fixes - Fix encode/decoder compile data race by [@&#8203;TelpeNight](https://github.com/TelpeNight) in [#&#8203;567](https://github.com/goccy/go-json/issues/567) ##### Benchmarks, documents and CI - Fix CI failures on master caused by outdated Go versions by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;594](https://github.com/goccy/go-json/issues/594) - Add bench-check task to fail CI on performance degradation by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;623](https://github.com/goccy/go-json/issues/623) - Judge the benchmarks by the mean and by the fastest results by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;629](https://github.com/goccy/go-json/issues/629) - Benchmarks: add the benchmarks of sonic's encoder, with go-json beside it by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;648](https://github.com/goccy/go-json/issues/648) - Modernize the code: any, unsafe.Add, slices.Contains, min, max, bytes.Cut by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;654](https://github.com/goccy/go-json/issues/654) - Publish a benchmark report of the JSON libraries by category of behavior, describe the decoder as it is now in the README, and run no CI for documents alone by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;667](https://github.com/goccy/go-json/issues/667) - Benchmarks: color the bars of the summary by library by [@&#8203;goccy](https://github.com/goccy) in [#&#8203;669](https://github.com/goccy/go-json/issues/669) #### New Contributors - [@&#8203;TelpeNight](https://github.com/TelpeNight) made their first contribution in [#&#8203;567](https://github.com/goccy/go-json/issues/567) **Full Changelog**: <https://github.com/goccy/go-json/compare/v0.10.6...v0.11.0> </details> --- ### Configuration 📅 **Schedule**: (in timezone Europe/Berlin) - Branch creation - Between 12:00 AM and 05:59 AM, only on Monday (`* 0-5 * * 1`) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjIuNSIsInVwZGF0ZWRJblZlciI6IjQ0LjIyMi41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJmaXgiLCJnbyIsIm1pbm9yIl19-->
fix(deps): update all non-major dependencies
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
a18cbaa30b
Author
Collaborator

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 10 additional dependencies were updated
  • The go directive was updated for compatibility reasons

Due to Go's usage of Minimal Version Selection (MVS), these packages have been updated to the minimum version available, so will still abide by minimumReleaseAge=3 days

Details:

Package Change
go 1.26.1 -> 1.26.7
code.gitea.io/sdk/gitea v0.23.2 -> v0.25.1
github.com/ProtonMail/go-crypto v1.3.0 -> v1.5.2
github.com/charmbracelet/colorprofile v0.3.2 -> v0.4.3
github.com/charmbracelet/x/ansi v0.10.1 -> v0.11.8
github.com/charmbracelet/x/term v0.2.1 -> v0.2.2
github.com/clipperhouse/uax29/v2 v2.3.0 -> v2.7.0
github.com/lucasb-eyer/go-colorful v1.3.0 -> v1.4.1
github.com/mattn/go-runewidth v0.0.19 -> v0.0.24
github.com/thlib/go-timezone-local v0.0.8 -> v0.0.9
github.com/ulikunitz/xz v0.5.15 -> v0.5.17
### ℹ️ Artifact update notice ##### File name: go.mod In order to perform the update(s) described in the table above, Renovate ran the `go get` command, which resulted in the following additional change(s): - 10 additional dependencies were updated - The `go` directive was updated for compatibility reasons Due to Go's usage of [Minimal Version Selection (MVS)](https://go.dev/ref/mod#minimal-version-selection), these packages have been updated to the minimum version available, so will still abide by `minimumReleaseAge=3 days` Details: | **Package** | **Change** | | :-------------------------------------- | :--------------------- | | `go` | `1.26.1` -> `1.26.7` | | `code.gitea.io/sdk/gitea` | `v0.23.2` -> `v0.25.1` | | `github.com/ProtonMail/go-crypto` | `v1.3.0` -> `v1.5.2` | | `github.com/charmbracelet/colorprofile` | `v0.3.2` -> `v0.4.3` | | `github.com/charmbracelet/x/ansi` | `v0.10.1` -> `v0.11.8` | | `github.com/charmbracelet/x/term` | `v0.2.1` -> `v0.2.2` | | `github.com/clipperhouse/uax29/v2` | `v2.3.0` -> `v2.7.0` | | `github.com/lucasb-eyer/go-colorful` | `v1.3.0` -> `v1.4.1` | | `github.com/mattn/go-runewidth` | `v0.0.19` -> `v0.0.24` | | `github.com/thlib/go-timezone-local` | `v0.0.8` -> `v0.0.9` | | `github.com/ulikunitz/xz` | `v0.5.15` -> `v0.5.17` |
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'renovate/all-minor-patch:renovate/all-minor-patch'
git switch 'renovate/all-minor-patch'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'renovate/all-minor-patch'
git switch 'renovate/all-minor-patch'
git rebase 'main'
git switch 'main'
git merge --ff-only 'renovate/all-minor-patch'
git switch 'renovate/all-minor-patch'
git rebase 'main'
git switch 'main'
git merge --no-ff 'renovate/all-minor-patch'
git switch 'main'
git merge --squash 'renovate/all-minor-patch'
git switch 'main'
git merge --ff-only 'renovate/all-minor-patch'
git switch 'main'
git merge 'renovate/all-minor-patch'
git push origin 'main'
Sign in to join this conversation.
No reviewers
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
dawid/gh-gr!162
No description provided.