Skip to content

Commit

Permalink
release 0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
cm45t3r authored and cm45t3r committed Apr 2, 2024
1 parent 595c8b5 commit 2ae2c09
Show file tree
Hide file tree
Showing 9 changed files with 914 additions and 5,364 deletions.
17 changes: 7 additions & 10 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
{
"env": {
"browser": true,
"node": true,
"es2021": true,
"mocha": true
"commonjs": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"google"
],
"extends": "google",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
"ecmaVersion": "latest"
},
"rules": {}
"rules": {
"object-curly-spacing": ["error", "always"]
}
}
14 changes: 13 additions & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,16 @@
* Add bullish and bearish hammers (inverted and non-inverted).
* Add optional `ratio` param to hammers.
* Fix kickers to exclude hammers.
* Fix candle wrapping on engulfings.
* Fix candle wrapping on engulfings.

# 0.0.6 / 2024-03-31
* Remove optional param `ratio` from hammer functions causing bad results.
* Fix `bullishHammer`, `bearishHammer`, `bullishInvertedHammer`, `bearishInvertedHammer`, and `hangingMan` functions.
* Bugfix [#1](https://github.com/cm45t3r/candlestick/issues/1).

# 0.0.7 / 2024-04-02
* Fix index.js copyright.
* Remove useless properties in .eslintcr and add `object-curly-spacing` exception rule.
* Fix linting errors.
* Update package keywords and increment version.
* Optimize private function `findPattern` to make it more performant.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ npm install --save candlestick
* `bullishKicker(dataArray)`
* `bearishKicker(dataArray)`

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

``` js
{
Expand All @@ -66,6 +66,13 @@ npm install --save candlestick

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

**=== :warning: BREAKING CHANGE WARNING ON VERSIONS `>= 0.0.6` ===**

**Before:** search pattern functions returned the *last* OHLC object conforming the pattern.
**After:** they return the *first* **index** of the candle conforming the pattern. It helps
locating candlestick in `dataArray` more easily. So before upgrading to version 0.0.6, please
be aware of changing your code.


## Examples

Expand Down
14 changes: 4 additions & 10 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,14 @@

## Supported Versions

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

| Version | Supported |
| ------- | ------------------ |
| 5.1.x | :white_check_mark: |
| 5.0.x | :x: |
| 4.0.x | :white_check_mark: |
| < 4.0 | :x: |
| `<= 0.0.5` | :white_check_mark: |

## Reporting a Vulnerability

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

Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.
Thank you!
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016-Present Trendz.
* Copyright (C) 2016-present cm45t3r.
* MIT Licence.
*/

Expand Down
Loading

0 comments on commit 2ae2c09

Please sign in to comment.