- Breaking Internal webservice calls now use Node's built-in
fetch
instead ofhttp
. This will affect users who are on unsupported versions of Node, specifically Node 17 and below. - Two new error codes have been added:
NETWORK_TIMEOUT
andFETCH_ERROR
, second of which is returned when there's afetch
related error that could not be handled by other errors. - The
ip6addr
dependency has been removed.
- Breaking Drop node 16 support
- The
isAnycast
attribute was added toTraitsRecord
. This istrue
if the IP address belongs to an anycast network. This is available for the GeoIP2 Country, City Plus, and Insights web services and the GeoIP2 Country, City, and Enterprise databases. - The boolean attributes on the record models are no longer optional. We set missing values to false during construction.
- Added
Satellite
toConnectionType
type.
- Update dependencies. Fixes issue #911
- Breaking Drop Node 14 support
consumer_privacy_network
was added to the type union for theuserType
property in theTraitsRecord
interface.- Address lodash security vulnerability.
- Upgrade dependencies
- Support for mobile country code (MCC) and mobile network codes (MNC) was
added for the GeoIP2 ISP and Enterprise databases as well as the GeoIP2
City Plus and Insights web services.
mobileCountryCode
andmobileNetworkCode
attributes were added toIsp
for the GeoIP2 ISP database andTraitsRecord
for the Enterprise database and the GeoIP2 City Plus and Insights web services. We expect this data to be available by late January, 2022.
- Upgrade yarn dependencies
- Upgrade yarn dependencies
- Upgrade yarn dependencies
- Breaking Drop node 10 support
- Upgrade yarn dependencies
- The
staticIpScore
property was incorrectly spelledstaticIPScore
. This is now fixed. Reported by griffyn-showit. GitHub #402. - Upgrade yarn dependencies
- Upgrade yarn dependencies
- Upgrade yarn dependencies
- Upgrade yarn dependencies
- The
WebServiceClient
class now accepts an options object as the third parameter. The currently valid options aretimeout
andhost
. To use the GeoLite2 web service instead of GeoIP2 Precision, sethost
togeolite.info
. If you were previously passing the timeout as the third parameter, this is deprecated and you should transition to passing it in the options object.
country
andcity
values returnundefined
instead of{}
when empty.
- Add the
isResidentialProxy
property toAnonymousIP
andTraitsRecord
for use with the Anonymous IP database and GeoIP2 Precision Insights.
- Add
connection-type
to traits (Enterprise database) - Add API ts-doc documentation
- Drop support for Node 8.
- A
network
property has been added to the various response models. This represents the largest network where all the fields besides the IP address are the same. - Add the
userCount
property toTraitsRecord
. This is an integer which indicates the estimated number of users sharing the IP/network during the past 24 hours. This output is available from GeoIP2 Precision Insights. - Add the
staticIpScore
property toTraitsRecord
. This is a float which indicates how static or dynamic an IP address is. This output is available from GeoIP2 Precision Insights.
- Upgrade yarn dependencies
- Upgrade yarn dependencies
- Fix path to types. GitHub #53.
- Upgrade yarn dependencies
- Fix user-agent header in request
- Point package.json's main to dist/src/index.js
- Fix incorrect readerModel return type for country
- Update yarn.lock modules
- Update yarn.lock modules
- Drop support for Node 6.
- Fix export of models and record interfaces.
- Add web service API support.
- Fix Buffer documentation.
- Add ability to use Buffers instead of local db file.
- Fix release script.
- Initial release.