Skip to content

Commit 2ae2c09

Browse files
cm45t3rcm45t3r
authored and
cm45t3r
committed
release 0.0.7
1 parent 595c8b5 commit 2ae2c09

File tree

9 files changed

+914
-5364
lines changed

9 files changed

+914
-5364
lines changed

.eslintrc.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
{
22
"env": {
33
"browser": true,
4-
"node": true,
5-
"es2021": true,
6-
"mocha": true
4+
"commonjs": true,
5+
"es2021": true
76
},
8-
"extends": [
9-
"eslint:recommended",
10-
"google"
11-
],
7+
"extends": "google",
128
"parserOptions": {
13-
"ecmaVersion": 12,
14-
"sourceType": "module"
9+
"ecmaVersion": "latest"
1510
},
16-
"rules": {}
11+
"rules": {
12+
"object-curly-spacing": ["error", "always"]
13+
}
1714
}

HISTORY.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,16 @@
2121
* Add bullish and bearish hammers (inverted and non-inverted).
2222
* Add optional `ratio` param to hammers.
2323
* Fix kickers to exclude hammers.
24-
* Fix candle wrapping on engulfings.
24+
* Fix candle wrapping on engulfings.
25+
26+
# 0.0.6 / 2024-03-31
27+
* Remove optional param `ratio` from hammer functions causing bad results.
28+
* Fix `bullishHammer`, `bearishHammer`, `bullishInvertedHammer`, `bearishInvertedHammer`, and `hangingMan` functions.
29+
* Bugfix [#1](https://github.com/cm45t3r/candlestick/issues/1).
30+
31+
# 0.0.7 / 2024-04-02
32+
* Fix index.js copyright.
33+
* Remove useless properties in .eslintcr and add `object-curly-spacing` exception rule.
34+
* Fix linting errors.
35+
* Update package keywords and increment version.
36+
* Optimize private function `findPattern` to make it more performant.

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ npm install --save candlestick
5151
* `bullishKicker(dataArray)`
5252
* `bearishKicker(dataArray)`
5353

54-
`previous` and `current` are **OHLC** (Open, High, Low, Close) objects:
54+
`candlestick`, `previous` and `current` are **OHLC** (Open, High, Low, Close) objects:
5555

5656
``` js
5757
{
@@ -66,6 +66,13 @@ npm install --save candlestick
6666

6767
**Note:** OHLC objects can have more fields and does not affect the final result.
6868

69+
**=== :warning: BREAKING CHANGE WARNING ON VERSIONS `>= 0.0.6` ===**
70+
71+
**Before:** search pattern functions returned the *last* OHLC object conforming the pattern.
72+
**After:** they return the *first* **index** of the candle conforming the pattern. It helps
73+
locating candlestick in `dataArray` more easily. So before upgrading to version 0.0.6, please
74+
be aware of changing your code.
75+
6976

7077
## Examples
7178

SECURITY.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,14 @@
22

33
## Supported Versions
44

5-
Use this section to tell people about which versions of your project are
6-
currently being supported with security updates.
5+
Currently these versions are being supported with security updates.
76

87
| Version | Supported |
98
| ------- | ------------------ |
10-
| 5.1.x | :white_check_mark: |
11-
| 5.0.x | :x: |
12-
| 4.0.x | :white_check_mark: |
13-
| < 4.0 | :x: |
9+
| `<= 0.0.5` | :white_check_mark: |
1410

1511
## Reporting a Vulnerability
1612

17-
Use this section to tell people how to report a vulnerability.
13+
You can report a vulnerability at https://github.com/cm45t3r/candlestick/issues
1814

19-
Tell them where to go, how often they can expect to get an update on a
20-
reported vulnerability, what to expect if the vulnerability is accepted or
21-
declined, etc.
15+
Thank you!

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2016-Present Trendz.
2+
* Copyright (C) 2016-present cm45t3r.
33
* MIT Licence.
44
*/
55

0 commit comments

Comments
 (0)