Upgrade notes
Behavior changes
Hasnow reports keys whose value isnil.Map.Hasused to returnfalseboth for missing keys and for keys set tonil, so the two couldn't be told apart. It now returnstruewhenever the selector exists, including nested keys, bracket keys and slice indexes that holdnil. If you relied onHasto 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 https://github.com/stretchr/objx/pull/181
- Add a security policy by @hanzei in https://github.com/stretchr/objx/pull/182
- Add a contributing guide by @hanzei in https://github.com/stretchr/objx/pull/183
- Add bug report and feature request issue templates by @hanzei in https://github.com/stretchr/objx/pull/184
- Differentiate nil values from missing keys in Map.Has by @AdamMagued in https://github.com/stretchr/objx/pull/172
New Contributors
- @AdamMagued made their first contribution in https://github.com/stretchr/objx/pull/172
Full Changelog: https://github.com/stretchr/objx/compare/v0.6.0...v0.7.0