You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0.6.1 (More Breaking Changes!)
Change `ASN` field of `IP` to a new type to support API changes. The new `ASN`
struct type is used instead of a `string`, it itself contains an `ASN` field
that is the same value as the old `IP.ASN` string value.
0.6.0 (Breaking Changes!)
- require API key, as anonymous usage was removed from ipdata.co API, adds error
value to `NewClient()`
- rename `Request()` to `RawLookup()`
- remove `DecodeIP` function as it's only a simple JSON unmarshaler
- remove support for RateLimit errors (API doesn't support 429s)
- export `Error` type, and give it a `Code() int` method for returning HTTP
status and API error message (`Error()`)
The decision was to try and have only one final API breaking release.
0.5.0
*Note*: this includes a breaking API change. The `RawIP` type and `RawXXX`
functions were removed, and the `IP` type was changed to be more like `RawIP`.
- update code to use new API authentication mechanism (query instead of header)
- update deserialization code to be simpler and to match new API version