Skip to content

Commit

Permalink
bump to 2.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
UmanShahzad committed Aug 22, 2022
1 parent 51d771c commit cab55ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 2.8.0

- Added an `IsEU` field to `Core`, which checks whether the IP geolocates to a
country within the European Union (EU).

# 2.7.0

- Made batch operations limit their concurrency to 8 batches by default, but
Expand Down
2 changes: 1 addition & 1 deletion ipinfo/asn.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (err *InvalidASNError) Error() string {

func (v *ASNDetails) setCountryName() {
if v.Country != "" {
v.CountryName = countriesMap[v.Country].Name
v.CountryName = countriesMap[v.Country]
}
}

Expand Down
2 changes: 1 addition & 1 deletion ipinfo/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

const (
defaultBaseURL = "https://ipinfo.io/"
defaultUserAgent = "IPinfoClient/Go/2.7.0"
defaultUserAgent = "IPinfoClient/Go/2.8.0"
)

// A Client is the main handler to communicate with the IPinfo API.
Expand Down

0 comments on commit cab55ef

Please sign in to comment.