Releases: sapics/geoip-country
Releases · sapics/geoip-country
v5.0.0 Less memory usage and Faster startup and Faster lookup
Breaking changes:
geoip.lookup
dose not returnrange
infomation any more- remove
geoip.pretty
andgeoip.cmp
method - database structure is different from v4
- need NodeJs version >= 10.20
- cli parameter name and environment variable name are changed (old name still work as alias)
New Features:
- add
geoip.clean
,geoip.reloadDatabase
,geoip.reloadDatabaseSync
which have the same functionality asgeoip-lite
- database size is smaller than v4, it makes less memory usage and faster startup and faster lookup.
- you can use ip-location-db database, after v4.2.126
geoip.lookup
return more information by using Countries database as
{
country: 'CN',
name: 'China',
native: '中国',
continent: 'AS',
continent_name: 'Asia',
phone: [ 86 ],
capital: 'Beijing',
currency: [ 'CNY' ],
languages: [ 'zh' ],
}
v4.0.0 New MaxMind GeoLite2 License version
The License of database is changed. If you use v4, please read carefully LICENSE and EULA files.
After this version, we will update geoip database weekly.
Thanks to @valeriansaliou (#4) and @GitSquared (/GitSquared/node-geolite2-redist).
The most of the parts of LICENSE and EULA file copy from /GitSquared/node-geolite2-redist.