You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
BREAKING HullClient is a set of ES6 classes now, not a Function anymore - this means you cannot do const hullClient = HullClient() anymore, you always need new keyword
BREAKINGas method is not available anymore, use asUser
BREAKINGutils.groupTraits method is not available anymore, use utils.traits.group
BREAKINGtraits method second parameter accepting source and sync option is not available anymore. Sync calls are not available at all, and if you need to apply source to your traits you need to do it before passing payload to traits method
BREAKINGhullClient.api.get methods are not available anymore, use hullClient.get or hullClient.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
importtype{HullUserClaims}from"hull-client";constuserClaims: HullUserClaims={wrong_claim: "bar"};// this will throw flow check error since `wrong_claim` is not correct
underlying HTTP library restler was replaced with superagent