deps: bump the go-dependencies group with 2 updates
Bumps the go-dependencies group with 2 updates: github.com/itchyny/gojq and github.com/spf13/pflag.
Updates github.com/itchyny/gojq from 0.12.19 to 0.12.20
Release notes
Sourced from github.com/itchyny/gojq's releases.
Release v0.12.20
- implement
gojq.ToIntandgojq.ToFloat64for converting number values- fix destructuring alternative operator (
?//) to reset variables of later alternatives, and to propagatebreakandhalterrors- fix update-assignment operator against object with overlapping paths
- fix
delpathsfunction to delete ancestor paths before descendant paths- fix
getpathfunction against string input- fix indexing and slicing a number literal written after a unary operator
- fix slice indices of floating point numbers for jq compatibility
- fix date and time functions against fractional, non-finite, and out of range numbers
- fix
strptimefunction to accept the zero time instant- fix
match,test, andcapturefunctions to support array arguments- fix
matchfunction to report an empty match after a non-empty one- fix
split/1function against empty input string- fix math functions against large number literals like
1e1000- fix
jn/2andyn/2functions to avoid long recurrence on large orders- fix
absfunction against non-numbers for jq compatibility- fix
isnanfunction to return false for non-numbers for jq compatibility- fix
halt_errorfunction not to print a newline after non-string values- fix
--argjsonand--jsonargsoptions to reject empty and multiple JSON values- fix
--streamoption error message against unterminated input- fix JSON parse error message after a large value in non-seekable input like stdin
- fix offset of YAML parse error on multi-byte characters
- fix panic on continuing iteration after an invalid path error
- fix data race on input iterator when running code concurrently
- fix
addfunction to handle a nil map and slice as the first value- support destructuring alternative operator (
?//) inreduceandforeachsyntax- allow optional operator followed by alternative operator without spaces (
.a?//1)- improve performance of function calls by avoiding copies of scope values, and path tracking in
path,paths,|=, anddelby reducing allocations
Changelog
Sourced from github.com/itchyny/gojq's changelog.
v0.12.20 (2026-11-01)
- implement
gojq.ToIntandgojq.ToFloat64for converting number values- fix destructuring alternative operator (
?//) to reset variables of later alternatives, and to propagatebreakandhalterrors- fix update-assignment operator against object with overlapping paths
- fix
delpathsfunction to delete ancestor paths before descendant paths- fix
getpathfunction against string input- fix indexing and slicing a number literal written after a unary operator
- fix slice indices of floating point numbers for jq compatibility
- fix date and time functions against fractional, non-finite, and out of range numbers
- fix
strptimefunction to accept the zero time instant- fix
match,test, andcapturefunctions to support array arguments- fix
matchfunction to report an empty match after a non-empty one- fix
split/1function against empty input string- fix math functions against large number literals like
1e1000- fix
jn/2andyn/2functions to avoid long recurrence on large orders- fix
absfunction against non-numbers for jq compatibility- fix
isnanfunction to return false for non-numbers for jq compatibility- fix
halt_errorfunction not to print a newline after non-string values- fix
--argjsonand--jsonargsoptions to reject empty and multiple JSON values- fix
--streamoption error message against unterminated input- fix JSON parse error message after a large value in non-seekable input like stdin
- fix offset of YAML parse error on multi-byte characters
- fix panic on continuing iteration after an invalid path error
- fix data race on input iterator when running code concurrently
- fix
addfunction to handle a nil map and slice as the first value- support destructuring alternative operator (
?//) inreduceandforeachsyntax- allow optional operator followed by alternative operator without spaces (
.a?//1)- improve performance of function calls by avoiding copies of scope values, and path tracking in
path,paths,|=, anddelby reducing allocations
Commits
e7c14ecbump up version to 0.12.20b326bddupdate CHANGELOG.md for v0.12.20e8319c4use $(MAKE) instead of make in Makefilee169ed9fix strptime to accept the zero time instant (#333)806d7bdimprove test coverage of query string conversion045a452refactor format functions to avoid unnecessary interface conversionb984f98replace ncipollo/release-action with gh release create8b2f146update dependencies7c7e71afix JSON argument error to report the unexpected token after a valuee661b6afix --argjson and --jsonargs to reject empty and multiple JSON values (#332)- Additional commits viewable in compare view
Updates github.com/spf13/pflag from 1.0.10 to 1.1.0
Release notes
Sourced from github.com/spf13/pflag's releases.
v1.1.0
It's been long enough, and enough things have been fixed, that it might be time to release a new version, even if there isn't any particular big new issue to market as the reason for this release.
If you notice anything breaking, it is entirely un-intentional, but you might also have been relying on undocumented or buggy behavior. Please file an issue describing what you're doing, how it worked before this release and why it doesn't work anymore, and pin your projects to
v1.0.10(the latest release before this one) while we decide how to address your concerns.What's Changed
- README: update badges and minor linting fixes by
@thaJeztahin spf13/pflag#452- Show 'correct' explicit bool value syntax in help by
@alimpfardin spf13/pflag#453- Fix for Go 1.24 by
@pterjanin spf13/pflag#460- fix(map): ensure string-to-string flags maintain stable pointers by
@brandon1024in spf13/pflag#457- Fix getFlagType error message by
@wellitonscheerin spf13/pflag#462- update actions, and fix linting issues by
@thaJeztahin spf13/pflag#450- fix: README.md indicating the use of godoc(deprecated) by
@malklerain spf13/pflag#467- Fix broken link to POSIX argument conventions by
@tomasaschanin spf13/pflag#464- Replace raw stdlib parse errors in typed flag Set methods (#269) by
@reuvenharrisonin spf13/pflag#469- Extend
UnknownFlagstoUnknownFlagsHandlingand introducePassUnknownFlagToArgs(#337) by@ikedamin spf13/pflag#440- fix: allow nil default IP flags in GetIP by
@happysnakerin spf13/pflag#483- fix: allow hex input in UintSlice by
@happysnakerin spf13/pflag#484- fix: honor custom IsBoolFlag compatibility by
@happysnakerin spf13/pflag#487- docs: clarify SortFlags example with complete runnable program by
@happysnakerin spf13/pflag#488- docs: add release process documentation by
@happysnakerin spf13/pflag#490- fix: print to set destination, not hardcoded os.Stderr by
@quitein spf13/pflag#502- ci: bump golangci-lint to v2.13 for Go 1.27 by
@hdimerin spf13/pflag#508- Initialize the target map when a StringToString flag has a nil default by
@nikolauspschuetzin spf13/pflag#506- fix: honour deprecated ParseErrorsWhitelist.UnknownFlagsHandling by
@lenamonjin spf13/pflag#507- test: add StringSlice Append coverage by
@LY-19418in spf13/pflag#504- Keep wrapping after an unbreakable usage word by
@AzazelSenseiin spf13/pflag#503- Validate IP slice values before appending or replacing by
@agammannin spf13/pflag#513- fix(ci): Use the latest golangci-lint release by
@tomasaschanin spf13/pflag#525- Reject IPv6 addresses as IPv4 masks by
@yuefdevin spf13/pflag#524- Report the flag name as typed in deprecation warnings by
@hdimerin spf13/pflag#500- Document non-interspersed argument parsing by
@yuefdevin spf13/pflag#523- Preserve trailing whitespace in StringToString formatting by
@r4venrudyin spf13/pflag#522- Reject extra CSV records in StringToString arguments by
@Harshil-1603in spf13/pflag#521- Preserve current string values in CopyToGoFlagSet by
@adenzhou1350in spf13/pflag#520- Fix type identification and mismatch checks for text flags by
@dewanshshekharin spf13/pflag#526- fix: enforce native integer flag bounds on 32-bit platforms by
@gdpu11in spf13/pflag#534- fix: preserve count flag values when parsing fails by
@gdpu11in spf13/pflag#533New Contributors
@alimpfardmade their first contribution in spf13/pflag#453@pterjanmade their first contribution in spf13/pflag#460@brandon1024made their first contribution in spf13/pflag#457@wellitonscheermade their first contribution in spf13/pflag#462@malkleramade their first contribution in spf13/pflag#467@reuvenharrisonmade their first contribution in spf13/pflag#469@ikedammade their first contribution in spf13/pflag#440@happysnakermade their first contribution in spf13/pflag#483@quitemade their first contribution in spf13/pflag#502@hdimermade their first contribution in spf13/pflag#508
... (truncated)
Commits
f8a9906Merge pull request #533 from gdpu11/fix/count-preserve-value-on-errorf3a68a1Merge pull request #534 from gdpu11/fix/native-integer-ranges70f7745fix: reject native integer flag overflow on 32-bit systems2084408test: cover native integer flag bounds on 32-bit systems7d0f377fix: preserve count flag values when parsing failsd26a4dcMerge pull request #526 from dewanshshekhar/fix/text-flag-type-check2d401c7Fix type identification for text flagsfa584baMerge pull request #520 from adenzhou1350/codex/fix-copy-go-string-valuecc9e689Merge upstream master and retain its linter version70f284bMerge pull request #521 from Harshil-1603/fix/string-map-records- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill 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 versionwill 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
Summary by cubic
Bumps the Go dependencies group: github.com/itchyny/gojq to v0.12.20 and github.com/spf13/pflag to v1.1.0, along with several indirect dependency updates.
Dependencies
gojqv0.12.20 is a patch release with many bug fixes and performance improvements.pflagv1.1.0 is the first release since v1.0.10 and addsPassUnknownFlagToArgs; the maintainers note that undocumented or buggy flag-parsing behavior may have changed, so verify flag handling still behaves as expected.