Update to 7.0.1
- New upstream release 7.0.1
- BREAKING CHANGE: Improvements to the HTTP download API
- The client now calls two new endpoints:
- '/geoip/updates/metadata', which is responsible for getting information
about a database edition
- '/geoip/databases/{edition-id}/download', which is responsible for
downloading the content of a database edition; this new endpoint
redirects downloads to R2 presigned URLs, so systems running
'geoipupdate' need to be able to reach
'mm-prod-geoip-databases.a2649acb697e2c09b632799562c076f2.r2.cloudflarestorage.com'
in addition to 'updates.maxmind.com'
- BREAKING CHANGE: The public package API has been redesigned
- The previous API was not easy to use and had become a maintenance burden
- We now expose a 'Client' at 'github.com/maxmind/geoipupdate/client' with
a 'Download()' method
- The intention is to expose less of the 'geoipupdate' internals and
provide a simpler and easier to use package; many previously exposed
methods and types are now either internal only or have been removed
- BREAKING CHANGE: If set, 'GEOIPUPDATE_VERBOSE' must either be '0' or '1'
- All other values will return an error
- Setting 'GEOIPUPDATE_VERBOSE' to '1' now works as expected; in the 6.0.0
and 6.1.0 releases, the flag was ignored (GH#298)
- 'geoipupdate' now supports retrying on more types of errors such as HTTP2
INTERNAL_ERROR
- Now 'geoipupdate' doesn't require the user to specify the config file if
all the other arguments are set via the environment variables (GH#284)