Releases: ipdata/go
Releases · ipdata/go
0.7.3
0.7.2
Added context support
0.7.1
0.7.0
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 toNewClient()
- rename
Request()
toRawLookup()
- 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 aCode() 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
0.4.1
0.4.0
0.3.0
This is a bugfix release containing the following fixes:
- Fix a
nil
pointer dereference that would happen if the HTTP request failed
to complete successfully. We were checking for errors, but were using an
incorrect variable in one of the error handling blocks. - Ensure that the client looks for API authentication errors using a 401 status
code and not a 403 status code.