fix(deps): update module github.com/buger/jsonparser to v1.5.0 - #107
Merged
Conversation
|
➡️ Go test coverage stayed the same at 83.0% compared to c9e2eac
No change in coverage for any package. View coverage for all packages# Package Name | Coverage
+ github.com/Depado/gin-auth-example | 83.0% |
renovate
Bot
force-pushed
the
renovate/github.com-buger-jsonparser-1.x
branch
from
July 28, 2026 17:53
606995b to
b73b2d4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v1.3.0→v1.5.0Release Notes
buger/jsonparser (github.com/buger/jsonparser)
v1.5.0Compare Source
Covered by ReqProof — L3 Assurance
v1.5.0 extends the formal-verification coverage to 123 requirements (0 errors, 0 warnings) across all new APIs. Every new function is traced via source annotations, tested with MC/DC witnesses, and covered by the structure-aware fuzzer.
Config struct — opt-in lenient parsing (#160, #115)
AllowSingleQuotes— accept'key':'value'alongside"key":"value"(JavaScript/Python-style). The same escape rules apply inside single-quoted strings.AllowUnknownEscapes— pass through unknown escape sequences (\`,\x) literally instead of erroring.Get,GetString,Set,Delete,ArrayEach,ObjectEach.Streaming ReaderParser (#132, #257)
io.Reader— no need to load the entire document into memory.Get,GetString,ArrayEach.Name aliases (#66)
Canonical
EachXxxpattern added alongside existingXxxEachnames:EachArrayArrayEachEachObjectObjectEachEachArrayErrArrayEachErrEachArrayWildcardArrayEachWildcardEachKey,EachKeyErr,EachKeyWildcardalready matched the pattern. All old names remain functional.Proof
v1.4.0: — 9 new APIs, 20 issues resolvedCompare Source
New APIs (all backward-compatible)
Iteration with error/break control
ArrayEachErr— like ArrayEach but the callback returnserror. Returnio.EOFfor graceful stop, any other error to abort. Resolves #53, #129, #176, #230, #255, #262.EachKeyErr— same pattern for EachKey.Safe string handling
Escape(s string) []byte— RFC 8259 string escaping (inverse ofUnescape). Produces a quoted JSON string literal.SetString(data, val, keys...)—Setwith auto-quoted value. No more invalid JSON from forgetting quotes. Resolves #144, #158, #218, #270.Container accessors
GetArrayLen(data, keys...) (int, error)— count array elements without a callback. Resolves #175, #261.GetObjectLen(data, keys...) (int, error)— count object key-value pairs.GetUint64(data, keys...) (uint64, error)— uint64 variant ofGetInt. Resolves #271.Delete found signal
DeleteFound(data, keys...) ([]byte, bool)— returns whether the key was found. Resolves #229.Wildcard paths
EachKeyWildcard,ArrayEachWildcard,SetWildcard—[*]path component to iterate/set all elements. Resolves #112.JSONPath compiled paths
ParsePath("$.users[0].name")→[]string{"users", "[0]", "name"}CompilePath+CompiledPath— pre-compile and reuse with Get/Set/Delete/etc. Resolves #234, #251.Fixes
Proof coverage
Acknowledgments
Implemented by codex (gpt-5-codex) via
codex exec. Proof coverage by ReqProof.Full changelog: CHANGELOG.md
v1.3.1: — Bug fixes + proof strengtheningCompare Source
Bug fixes
Fix Set/Delete input-buffer aliasing (#209, #141) —
SetandDeleteno longer corrupt the caller's input[]bytewhen the slice has spare capacity. Theappend()call path was writing into the backing array beyond the returned slice. Now all mutation paths allocate a fresh buffer.Fix EachKey array-index inconsistency (#232) —
EachKeynow descends into terminal array-index paths (e.g."key", "[0]") consistently withGet. PreviouslyEachKeyreturned empty whereGetsucceeded on the same path.Fix benchmark measuring ffjson, not encoding/json (#126) — the benchmark payload types had ffjson-generated
MarshalJSON/UnmarshalJSONmethods, so the "10x faster than encoding/json" comparison was silently measuring ffjson. Now uses plain types with no generated methods.Proof strengthening (how these bugs escaped, and the gates that prevent recurrence)
no_input_mutation+assertInputUnchangedgate (snapshots input + backing-array capacity before every Set/Delete, verifies unchanged after)api_consistency+TestApiConsistencyEachKeyMatchesGetgate (random JSON + paths, asserts EachKey result == Get result)json.Marshaler/json.UnmarshalerContributed by codex (gpt-5-codex) via
codex exec.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.