Releases: hull/hull-client-node
Releases · hull/hull-client-node
Flow types and maintenance fixes
Release v2.0.0
- BREAKING HullClient is a set of ES6 classes now, not a Function anymore - this means you cannot do
const hullClient = HullClient()
anymore, you always neednew
keyword - BREAKING
as
method is not available anymore, useasUser
- BREAKING
utils.groupTraits
method is not available anymore, useutils.traits.group
- BREAKING
traits
method second parameter acceptingsource
andsync
option is not available anymore. Sync calls are not available at all, and if you need to applysource
to your traits you need to do it before passing payload totraits
method - BREAKING
hullClient.api.get
methods are not available anymore, usehullClient.get
orhullClient.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
Simplified babeljs configuration and documentation
- 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