Skip to content

refactor: replace goccy/go-json with encoding/json/v2 - #840

Merged
rustatian merged 3 commits into
masterfrom
dependabot/go_modules/github.com/goccy/go-json-0.11.2
Oct 8, 2026
Merged

rustatian merged 3 commits into
masterfrom
dependabot/go_modules/github.com/goccy/go-json-0.11.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Reason for This PR

Remove the github.com/goccy/go-json dependency and use the standard library encoding/json/v2.

Description of Changes

  • The protobuf codec uses encoding/json/v2 with encoding/json.DefaultOptionsV1(). The PHP SDK wire format depends on v1 semantics: durations as nanoseconds in the SDK option structs, case-insensitive field names and legacy omitempty.
  • Add codec tests that pin this wire format.

License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the MIT license.

PR Checklist

  • All commits in this PR are signed (git commit -s).
  • The reason for this PR is clearly provided (issue no. or explanation).
  • The description of changes is clear and encompassing.
  • Any required documentation changes (code and docs) are included in this PR.
  • Any user-facing changes are mentioned in CHANGELOG.md.
  • All added/changed functionality is tested.

Bumps [github.com/goccy/go-json](https://github.com/goccy/go-json) from 0.11.1 to 0.11.2.
- [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.11.1...v0.11.2)

---
updated-dependencies:
- dependency-name: github.com/goccy/go-json
  dependency-version: 0.11.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from rustatian as a code owner October 5, 2026 02:22
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Oct 5, 2026
The codec uses encoding/json/v2 with the v1 option set. The PHP SDK wire
format depends on v1 semantics: durations as nanoseconds in the SDK option
structs, case-insensitive field names and legacy omitempty.

Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
@rustatian rustatian changed the title chore(deps): bump github.com/goccy/go-json from 0.11.1 to 0.11.2 refactor: replace goccy/go-json with encoding/json/v2 Oct 8, 2026
…es/github.com/goccy/go-json-0.11.2

Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>

# Conflicts:
#	go.mod
#	go.sum
#	internal/codec/proto/proto.go
#	tests/go.mod
#	tests/go.sum
@rustatian
rustatian merged commit 741868a into master Oct 8, 2026
13 checks passed
@rustatian
rustatian deleted the dependabot/go_modules/github.com/goccy/go-json-0.11.2 branch October 8, 2026 21:03
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