diff --git a/CHANGELOG.md b/CHANGELOG.md index 41a8c9e8..1859d186 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,12 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Fixed +## [0.2.9] + +### Changed + +- Fix breaking change to mapstr type conversions during Clone(). #66 + ## [0.2.8] ### Changed diff --git a/mapstr/mapstr.go b/mapstr/mapstr.go index d8884c29..39b7fd3f 100644 --- a/mapstr/mapstr.go +++ b/mapstr/mapstr.go @@ -155,7 +155,7 @@ func (m M) Clone() M { result := make(M, len(m)) for k := range m { - if innerMap, ok := (m[k]).(M); ok { + if innerMap, ok := tryToMapStr(m[k]); ok { result[k] = innerMap.Clone() } else { result[k] = m[k]