4.1.1 - 2020-08-17
- removed badge link in Readme
4.1.0 - 2020-08-17
-
request.ip()
method retrieving the client’s IP address -
add full TypeScript definitions for all request utility methods
-
add support to check multiple keys as separate strings without using an array on
only
,except
,has
,filled
,missing
- Example:
// before: use an array when checking multiple values request.has(['email', 'password']) // now: use array or individual strings, both are supported request.has('email', 'password') request.has(['email', 'password'])
- test Node.js v14
- bump dependencies
- move TypeScript definitions to
typings
directory
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
3.0.0 - 2019-11-15
request.missing(keys)
as the inverse ofrequest.has(keys)
to determine whether the request input contains all given keys- Use it like this:
request.missing('email')
orrequest.missing(['email', 'password'])
- Use it like this:
request.root()
: returns the requests’s root domain- For example, requesting
https://user:pass@sub.example.com/posts?filter=withVideo
returnshttps://sub.example.com
.
- For example, requesting
request.uri()
: returns the requests’s URL with path, without query strings- For example, requesting
https://user:pass@example.com/posts?filter=withVideo
returnshttps://example.com/posts
- I couldn’t use
request.url()
because hapi provides a getter forrequest.url
- For example, requesting
request.fullUrl()
(or aliasedrequest.fullUri()
): returns the requests’s full URL with query strings and hashes- For example, requesting
https://user:pass@example.com/posts?filter=withVideo
returnshttps://example.com/posts?filter=withVideo
.
- For example, requesting
- bump dependencies
- require hapi v18
- require hapi v18
This release requires hapi v18. Hapi migrated the request.url
property to a WHATWG URL in v18. The new methods in hapi-request-utilities
build on top of a WHATWG URL instance.
2.2.0 - 2019-10-17
- basic TypeScript declarations in
lib/index.d.ts
2.1.2 - 2019-10-12
- bump dependencies
2.1.1 - 2019-08-08
request.user
stores the authenticated credentials
2.1.0 - 2019-07-29
request.input('key')
to retrieve an input item from therequest
request.isAuthenticated()
is a shortcut forrequest.auth.isAuthenticated
. It returns a boolean whether the request is authenticated:true
: successfully authenticated the request via an auth strategyfalse
: unauthenticated request that hasn't passed an auth strategy
- bump dependencies
2.0.0 - 2019-04-24
request.user
returns the authenticated credentials, was previously a functionrequest.user()
- updating to the scoped hapi dependencies
- bump dependencies
1.3.0 - 2019-02-28
request.has(keys)
: determine whether the request includes the given inputkeys
request.filled(keys)
: determines whether the request includes a non-empty value for the inputkeys
1.2.1 - 2019-02-18
- bump dependencies
- fix badges in Readme
1.2.0 - 2019-01-26
request.user()
: returns the authenticated request credentials. It's a shortcut forrequest.auth.credentials
- Readme: rename GitHub references
futurestudio -> futurestudio
1.1.1 - 2019-01-22
- add Greenkeeper Badge to Readme
- test plugin for hapi 18
- Readme: link to detailed documentation in Boost docs
- bump dependencies
1.1.0 - 2018-11-23
bearerToken
method to get the bearer token from request headers
- Doc blocks on methods: added param and return types
- Dependencies
1.0.4 - 2018-11-07
- Readme: add logo
- Run tests for Node versions 8, 10, and 11
- Dependencies
1.0.3 - 2018-08-21
- Readme: quick navigation and fix logo size on small screens
1.0.2 - 2018-08-02
- add contributors
- update readme
1.0.1 - 2018-07-30
- move
husky
todevDependencies
(was accidentally installed independencies
)
1.0.0
release 🚀 🎉