Skip to content

build(deps): bump github.com/stretchr/objx from 0.5.3 to 0.7.0 - #1990

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/go_modules/github.com/stretchr/objx-0.7.0
Closed

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/go_modules/github.com/stretchr/objx-0.7.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 16, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/stretchr/objx from 0.5.3 to 0.7.0.

Release notes

Sourced from github.com/stretchr/objx's releases.

v0.7.0

Upgrade notes

Behavior changes

  • Has now reports keys whose value is nil. Map.Has used to return false both for missing keys and for keys set to nil, so the two couldn't be told apart. It now returns true whenever the selector exists, including nested keys, bracket keys and slice indexes that hold nil. If you relied on Has to mean "set and not nil", use !m.Get(selector).IsNil() instead. (#172)

Other

  • Added a contributing guide (#183), a security policy (#182) and issue templates (#184).
  • The Go workflow token is now restricted to read-only contents (#181).

What's Changed

New Contributors

Full Changelog: stretchr/objx@v0.6.0...v0.7.0

v0.6.0

Upgrade notes

Go 1.25 or later is now required (previously Go 1.20). (#175)

Behavior changes

  • Where* now returns the items the decider selects. Previously every Where* method (WhereInt, WhereStr, WhereMSI, WhereObjxMap, …) returned the items for which the decider returned false, the opposite of what its documentation says. If you negated your decider to work around this, remove the negation. (#180)
  • Indexed Set updates the element instead of replacing the slice. Set("names[0]", "Mat") used to replace the whole names slice with "Mat"; it now sets only the first element. Indexing into a value that isn't a slice (e.g. Get("name[0]") on a string) now returns a missing value instead of the value itself. (#170)
  • Nil slices and maps stay null in JSON. objx.Map{"items": []any(nil)} now encodes as {"items":null} instead of {"items":[]}. Empty, non-nil containers still encode as [] / {}. (#171)
  • URLValues keeps every element of a slice of maps. With the [] and "" key suffixes, only the last element's values used to be kept. []any values (e.g. arrays decoded from JSON) are now encoded element by element instead of as a Go-syntax string. (#177)
  • The error returned by SetURLValuesSliceKeySuffix for an invalid suffix now reads objx: invalid URLValuesSliceKeySuffix provided. (#176)

Other

  • The API now uses any instead of interface{}. They are the same type, so this doesn't affect callers. (#175)
  • The type-specific accessors are now generated with go generate (#179), and CI runs golangci-lint (#176, #178).

What's Changed

... (truncated)

Commits
  • be9331c Differentiate nil values from missing keys in Map.Has (#172)
  • 939338e Add bug report and feature request issue templates (#184)
  • a3ac3e0 Add a contributing guide (#183)
  • e1a4a14 Add a security policy (#182)
  • 3a6632b Restrict the Go workflow token to read-only contents (#181)
  • 7c54053 Fix Where* returning the items the decider rejected (#180)
  • 7b27248 Replace the browser-based codegen with go generate (#179)
  • 308c40d Cover nested URL values and keep repeated map-slice entries (#177)
  • a7f2e34 Enable more linters and the gofumpt and goimports formatters (#178)
  • 9e89700 Add golangci-lint and run it in CI (#176)
  • 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 this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/stretchr/objx](https://github.com/stretchr/objx) from 0.5.3 to 0.7.0.
- [Release notes](https://github.com/stretchr/objx/releases)
- [Commits](stretchr/objx@v0.5.3...v0.7.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/objx
  dependency-version: 0.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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 Oct 16, 2026
@dependabot @github

dependabot Bot commented on behalf of github Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #1993.

@dependabot dependabot Bot closed this Oct 19, 2026
@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/stretchr/objx-0.7.0 branch October 19, 2026 11:52
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.

0 participants