github stretchr/objx v0.7.0

7 hours ago

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

  • Restrict the Go workflow token to read-only contents by @hanzei in #181
  • Add a security policy by @hanzei in #182
  • Add a contributing guide by @hanzei in #183
  • Add bug report and feature request issue templates by @hanzei in #184
  • Differentiate nil values from missing keys in Map.Has by @AdamMagued in #172

New Contributors

Full Changelog: v0.6.0...v0.7.0

Don't miss a new objx release

NewReleases is sending notifications on new releases.