- add support for account aliases identity claim
- unpublished
- add unalias method for users and accounts
- fix signatures of API methods
- rename
EventtoUserEventflow types
- enhance the way
logsandfirehoseEventscan be captured - documentation updates
- fix missing flow types
- documentation adjustments
- adds experimental
logsArrayandfirehoseEventsArrayto additionally capture log lines and firehose events to separate arrays. CAUTION: this does change normal behaviour of the library (when those arrays are provided logs are not send out to stdout and firehose events are not sent out to the firehose endpoint) - fix retry callback errors
- BREAKING HullClient is a set of ES6 classes now, not a Function anymore - this means you cannot do
const hullClient = HullClient()anymore, you always neednewkeyword - BREAKING
asmethod is not available anymore, useasUser - BREAKING
utils.groupTraitsmethod is not available anymore, useutils.traits.group - BREAKING
traitsmethod second parameter acceptingsourceandsyncoption is not available anymore. Sync calls are not available at all, and if you need to applysourceto your traits you need to do it before passing payload totraitsmethod - BREAKING
hullClient.api.getmethods are not available anymore, usehullClient.getorhullClient.api(path, "get"), the same applies for all HTTP verbs - the client now comes with full set of Flow types in src/types.js file
import type { HullUserClaims } from "hull-client"; const userClaims: HullUserClaims = { wrong_claim: "bar" }; // this will throw flow check error since `wrong_claim` is not correct
- underlying HTTP library restler was replaced with superagent
- allow anonymous_id in Account claims
- render docs without a TOC so the Website can display them properly.
- documentation split into API reference in API.md and getting started and "how-tos" guides in README.md
- cleanup babeljs configuration and use native NodeJS v6 with single babeljs plugin (transform-object-rest-spread) to allow object spread syntax (remove import/export syntax)
- run circleci jobs on all supported nodejs versions
- upgrade of dependencies
- retry all 5xx errors
- add requestId in logger context
- fixes building and publishing process
- fixes how API rest client rejects after errors
- Add support for custom
scopesclaim in auth tokens
- logging api timeouts and failures
- filter out logged claims for users and accounts so one can pass
hull.asUser(user) - add
client.asalias and deprecation notice - adds identification claims mapping for logger. Since now we can use:
client.asUser({ id, email }).logger("incoming.user.success"); - adds
firehoseUrloption to the Hull API client - background firehose batcher respects
firehoseUrlparam, if not set defaults to${protocol}://firehose.${domain} - adds
Hull-Organizationheader to firehose calls - adds
ipandtimecontext param to traits call
- fix
client.utils.traits.groupand deprecatesclient.utils.groupTraits - improves code structure
- extract from
hull-node 0.11.4- Initial Commit