Skip to content

Commit 106ff37

Browse files
committed
Improve formatting of changelog
1 parent eca32ac commit 106ff37

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

CHANGELOG.md

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
# 2.0.1 - 2025-11-26
1+
# Changes
2+
3+
## 2.0.1 - 2025-11-26
24

35
- Upgraded `github.com/oschwald/geoip2-golang/v2` to 2.1.1, which fixes an
46
issue that prevented a unclosed memory-mapped file from being unmapped
57
when the reader was garbage collected.
68

7-
# 2.0.0 - 2025-10-19
9+
## 2.0.0 - 2025-10-19
810

911
- **BREAKING CHANGE**: Lookup methods now require `netip.Addr`, return typed
1012
`Names`, and provide `HasData()` helpers while always populating
@@ -20,20 +22,20 @@
2022
- **BREAKING CHANGE**: Removed deprecated `FromBytes` method. Use `OpenBytes`
2123
instead.
2224

23-
# 2.0.0-beta.4 - 2025-08-23
25+
## 2.0.0-beta.4 - 2025-08-23
2426

2527
- Updated maxminddb dependency to v2.0.0-beta.9.
2628
- Added `OpenBytes` method to match the API changes in maxminddb v2.0.0-beta.9.
2729
- Deprecated `FromBytes` method. Use `OpenBytes` instead. `FromBytes` will be
2830
removed in a future version.
2931

30-
# 2.0.0-beta.3 - 2025-07-07
32+
## 2.0.0-beta.3 - 2025-07-07
3133

32-
- Add support for `GeoIP-City-Redacted-US` and `GeoIP-Enterprise-Redacted-US`.
34+
- Added support for `GeoIP-City-Redacted-US` and `GeoIP-Enterprise-Redacted-US`.
3335
Requested by Tom Anderson. GitHub #134.
3436
- Upgrade `github.com/oschwald/maxminddb-golang/v2` to `v2.0.0-beta.7`.
3537

36-
# 2.0.0-beta.2 - 2025-06-28
38+
## 2.0.0-beta.2 - 2025-06-28
3739

3840
- **BREAKING CHANGE**: Replaced `IsZero()` methods with `HasData()` methods on
3941
all result structs (including Names). The new methods provide clearer
@@ -56,7 +58,7 @@
5658
incorrectly treated as "no data". Added `Location.HasCoordinates()` method
5759
for safe coordinate access. Reported by Nick Bruun. GitHub #5.
5860

59-
# 2.0.0-beta.1 - 2025-06-22
61+
## 2.0.0-beta.1 - 2025-06-22
6062

6163
- **BREAKING CHANGE**: Updated to use `maxminddb-golang/v2` which provides
6264
significant performance improvements and a more modern API.
@@ -99,7 +101,7 @@
99101
- Updated linting rules to support both v1 and v2 import paths during the
100102
transition period.
101103

102-
## Migration Guide
104+
### Migration Guide
103105

104106
To migrate from v1 to v2:
105107

@@ -177,7 +179,7 @@ To migrate from v1 to v2:
177179
}
178180
```
179181

180-
# 1.11.0 - 2024-06-03
182+
## 1.11.0 - 2024-06-03
181183

182184
- Go 1.21 or greater is now required.
183185
- The new `is_anycast` output is now supported on the GeoIP2 Country, City, and
@@ -186,31 +188,31 @@ To migrate from v1 to v2:
186188

187189
Note: 1.10.0 was accidentally skipped.
188190

189-
# 1.9.0 - 2023-06-18
191+
## 1.9.0 - 2023-06-18
190192

191193
- Rearrange fields in structs to reduce memory usage. Although this does reduce
192194
readability, these structs are often created at very rates, making the
193195
trade-off worth it.
194196

195-
# 1.8.0 - 2022-08-07
197+
## 1.8.0 - 2022-08-07
196198

197199
- Set Go version to 1.18 in go.mod.
198200

199-
# 1.7.0 - 2022-03-26
201+
## 1.7.0 - 2022-03-26
200202

201203
- Set the minimum Go version in the go.mod file to 1.17.
202204
- Updated dependencies.
203205

204-
# 1.6.1 - 2022-01-28
206+
## 1.6.1 - 2022-01-28
205207

206208
- This is a re-release with the changes that were supposed to be in 1.6.0.
207209

208-
# 1.6.0 - 2022-01-28
210+
## 1.6.0 - 2022-01-28
209211

210212
- Add support for new `mobile_country_code` and `mobile_network_code` outputs
211213
on GeoIP2 ISP and GeoIP2 Enterprise.
212214

213-
# 1.5.0 - 2021-02-20
215+
## 1.5.0 - 2021-02-20
214216

215217
- Add `StaticIPScore` field to Enterprise. Pull request by Pierre Bonzel.
216218
GitHub [#54](https://github.com/oschwald/geoip2-golang/issues/54).
@@ -219,7 +221,7 @@ Note: 1.10.0 was accidentally skipped.
219221
- Support DBIP-ASN-Lite database. Requested by Muhammad Hussein Fattahizadeh.
220222
GitHub [#69](https://github.com/oschwald/geoip2-golang/issues/69).
221223

222-
# 1.4.0 - 2019-12-25
224+
## 1.4.0 - 2019-12-25
223225

224226
- This module now uses Go modules. Requested by Axel Etcheverry. GitHub
225227
[#52](https://github.com/oschwald/geoip2-golang/issues/52).
@@ -231,15 +233,15 @@ Note: 1.10.0 was accidentally skipped.
231233
before using it. GitHub
232234
[#51](https://github.com/oschwald/geoip2-golang/issues/51).
233235

234-
# 1.3.0 - 2019-08-28
236+
## 1.3.0 - 2019-08-28
235237

236238
- Added support for the GeoIP2 Enterprise database.
237239

238-
# 1.2.1 - 2018-02-25
240+
## 1.2.1 - 2018-02-25
239241

240242
- HTTPS is now used for the test data submodule rather than the Git protocol
241243

242-
# 1.2.0 - 2018-02-19
244+
## 1.2.0 - 2018-02-19
243245

244246
- The country structs for `geoip2.City` and `geoip2.Country` now have an
245247
`IsInEuropeanUnion` boolean field. This is true when the associated country
@@ -248,13 +250,13 @@ Note: 1.10.0 was accidentally skipped.
248250
- Switch from Go Check to Testify. Closes
249251
[#27](https://github.com/oschwald/geoip2-golang/issues/27)
250252

251-
# 1.1.0 - 2017-04-23
253+
## 1.1.0 - 2017-04-23
252254

253255
- Add support for the GeoLite2 ASN database.
254256
- Add support for the GeoIP2 City by Continent databases. GitHub
255257
[#26](https://github.com/oschwald/geoip2-golang/issues/26).
256258

257-
# 1.0.0 - 2016-11-09
259+
## 1.0.0 - 2016-11-09
258260

259261
New release for those using tagged releases. Closes
260262
[#21](https://github.com/oschwald/geoip2-golang/issues/21).

0 commit comments

Comments
 (0)