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 #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
- @AdamMagued made their first contribution in #172
Full Changelog: v0.6.0...v0.7.0