Version 4.1.1 - 2020-08-05
- bump dependencies
- test against Node.js v14
- replaced
request-ip
dependency with@supercharge/request-ip
improving request IP detection
Version 4.1.0 - 2020-04-05
- new plugin option:
authToken
- the
authToken
option represents the IPinfo API token to authenticate requests
- the
- bump dependencies
Version 4.0.0 - 2020-01-10
- require Node.js v12
- this change aligns with the hapi ecosystem requiring Node.js v12 with the release of hapi 19
Version 3.2.0 - 2019-10-17
- basic TypeScript declarations in
lib/index.d.ts
Version 3.1.5 - 2019-10-12
- bump dependencies
- minor refactorings
- increase test timeouts
- Readme: rename GitHub references
fs-opensource -> futurestudio
Version 3.1.4 - 2019-04-24
- update to hapi scoped dependencies
- bump dependencies
Version 3.1.3 - 2019-02-18
- bump dependencies
- fix badges in Readme
Version 3.1.2 - 2019-01-26
- Readme: rename GitHub references
fs-opensource -> futurestudio
Version 3.1.1 - 2019-01-22
- test plugin for hapi 18
- fix plugin subtitle in readme
- remove NSP badge from readme
- minor code changes
- bump dependencies
Version 3.1.0 - 2018-12-06
add
Node.js v11 as version in Travis CIupdate
refactor code to IP locator classupdate
dependencies:request-ip
now supports more ways to find the client’s IP addressupdate
tests: minor refactoringsremove
NPM’spackage-lock.json
from repository
Version 3.0.2 - 2018-08-21
add
keywords in package.jsonupdate
readme: reformat, quick navigation and logo size fix for small screensupdate
logo: minify file
update
code to be use async/await instead of promiseupdate
code examples in readme to async/awaitbump
dependencies
update
readme to show hapi v17 functionalityupdate
dependencies to newest versionsupdate
Node.js versions on travis to 8 and 9
update
hapi-geo-locate to support hapi v17update
library and tests to support new async/await structure
add
ESLint file.eslintrc.json
for hapi-style code formattingadd
option to lint code while testing (lab does that with the--lint
flag)add
required Node.js toengines
field inpackage.json
(To make sure that NPM follows the Node.js v4+ requirement)update
code formatting to hapi-styleupdate
dependencies
- use request-ip package to determine the external IP address (
request-ip
supports a lot more ways to get the IP 👌) update
dependenciesupdate
README and point out that all ways of determining the external IP address that are supported :)
add
route optionfakeIP
to use a defined IP address for geo location
update
route settings to listen onhapi-geo-locate
instead ofhapiGeoLocate
(breaking change)- add logo
- check your routes where your reference
hapiGeoLocate
and replace it with'hapi-geo-locate'
. With the new style, route options and plugin name match.
- add project badges for TravisCI, Snyk and NSP (both checking for dependency vulerabilities), NPM
fix
wrong import code in READMEadd
2017 to license
- change extension point from
onPreHandler
toonPreAuth
to determine the location before validation - improve tests for proxied requests and check explicitly for correct client IP address
- detect client IP if request goes through multiple proxies (thank you Anton!)
- add changelog to keep track of changes during releases
- provide client location at
request.location
in route handler - option to have the plugin
enabledByDefault
- detect client IP from
request.info.remoteAddress
- detect client IP through
x-forwared-for
header