Skip to content

Commit 0b7b4c5

Browse files
authored
Merge pull request #17 from hull/release/v2.0.0
Release/v2.0.0
2 parents d38e8ba + 5eedc2b commit 0b7b4c5

22 files changed

+7305
-622
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"plugins": ["transform-flow-comments", "transform-object-rest-spread"]
2+
"plugins": ["transform-flow-comments", ["transform-object-rest-spread", { "useBuiltIns": true }]]
33
}

.eslintrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
"eqeqeq": [1],
2020
"prefer-destructuring": [0],
2121
"class-methods-use-this": [0],
22-
"flowtype-errors/show-errors": 2
22+
"flowtype-errors/show-errors": 2,
23+
"spaced-comment": ["error", "always", { "markers": [":", "::"] }],
24+
"no-use-before-define": ["error", { "classes": false }]
2325
},
2426
"extends": [
2527
"airbnb-base",

.flowconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
[include]
77

88
[libs]
9+
flow-typed
910

1011
[lints]
1112
all=warn

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ node_modules
55
*tgz
66
npm-debug.log
77
yarn.lock
8+
yarn-error.log

API.md

Lines changed: 114 additions & 84 deletions
Large diffs are not rendered by default.

CHANGELOG.md

Lines changed: 40 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,59 @@
1-
# 1.2.2
2-
* Allow anonymous_id in Account claims
1+
# CHANGELOG
32

4-
# 1.2.1
3+
## 2.0.0-beta.3
4+
* fix missing flow types
5+
* documentation adjustments
6+
7+
## 2.0.0-beta.2
8+
* adds experimental `logsArray` and `firehoseEventsArray` to additionally capture log lines and firehose events to separate arrays.
9+
CAUTION: this does not disable normal behaviour of the libary
10+
* fix retry callback errors
11+
12+
## 2.0.0-beta.1
13+
* **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
14+
* **BREAKING** `as` method is not available anymore, use `asUser`
15+
* **BREAKING** `utils.groupTraits` method is not available anymore, use `utils.traits.group`
16+
* **BREAKING** `traits` 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
17+
* **BREAKING** `hullClient.api.get` methods are not available anymore, use `hullClient.get` or `hullClient.api(path, "get")`, the same applies for all HTTP verbs
18+
* the client now comes with full set of Flow types in src/types.js file
19+
```js
20+
import type { HullUserClaims } from "hull-client";
21+
22+
const userClaims: HullUserClaims = {
23+
wrong_claim: "bar"
24+
};
25+
// this will throw flow check error since `wrong_claim` is not correct
26+
```
27+
* underlying HTTP library restler was replaced with superagent
28+
29+
## 1.2.2
30+
* allow anonymous_id in Account claims
31+
32+
## 1.2.1
533
* render docs without a TOC so the Website can display them properly.
634

7-
# 1.2.0
35+
## 1.2.0
836
* documentation split into API reference in API.md and getting started and "how-tos" guides in README.md
937
* 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)
1038
* run circleci jobs on all supported nodejs versions
1139
* upgrade of dependencies
1240

13-
# 1.1.5
41+
## 1.1.5
1442
* retry all 5xx errors
1543

16-
# 1.1.4
44+
## 1.1.4
1745
* add requestId in logger context
1846

19-
# 1.1.3
47+
## 1.1.3
2048
* fixes building and publishing process
2149

22-
# 1.1.2
50+
## 1.1.2
2351
* fixes how API rest client rejects after errors
2452

25-
# 1.1.1
53+
## 1.1.1
2654
* Add support for custom `scopes` claim in auth tokens
2755

28-
# 1.1.0
56+
## 1.1.0
2957
* logging api timeouts and failures
3058
* filter out logged claims for users and accounts so one can pass `hull.asUser(user)`
3159
* add `client.as` alias and deprecation notice
@@ -35,9 +63,9 @@
3563
* adds `Hull-Organization` header to firehose calls
3664
* adds `ip` and `time` context param to traits call
3765

38-
# 1.0.6
66+
## 1.0.6
3967
* fix `client.utils.traits.group` and deprecates `client.utils.groupTraits`
4068
* improves code structure
4169

42-
# 1.0.0
70+
## 1.0.0
4371
* extract from `hull-node 0.11.4` - Initial Commit

documentation.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
toc:
2+
- HullClient
3+
- EntityScopedHullClient
4+
- UserScopedHullClient
5+
- AccountScopedHullClient
6+
- Api
7+
- Utils

0 commit comments

Comments
 (0)