Skip to content

Commit 369b7ad

Browse files
author
AJ Keller
authored
Merge pull request #161 from aj-ptw/3.0.0
3.0.0
2 parents a552248 + 9c04bd0 commit 369b7ad

36 files changed

+612
-15124
lines changed

.travis.yml

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
11
language: node_js
22
node_js:
3-
- "4.0"
4-
- "4.1"
5-
- "4.2"
6-
- "4.3"
7-
- "4.4"
8-
- "4.5"
9-
- "4.6"
10-
- "5.11.0"
11-
- "6.0"
12-
- "6.1"
13-
- "6.2"
14-
- "6.3"
15-
- "6.4"
16-
- "6.5"
17-
- "6.6"
18-
- "6.7"
19-
- "6.8"
3+
- "4.8.4"
4+
- "6.11.1"
5+
- "7.10.1"
6+
- "8.1.4"
7+
env:
8+
- CXX=g++-4.8
9+
addons:
10+
apt:
11+
sources:
12+
- ubuntu-toolchain-r-test
13+
packages:
14+
- g++-4.8
2015
install:
2116
- npm install --all
2217
script:
23-
- npm run lint
24-
- npm run test-cov
18+
- npm run test-lint
19+
- npm run test-cov

changelog.md renamed to CHANGELOG.md

Lines changed: 110 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,110 @@
1+
# 3.0.0
2+
3+
This adds ganglion, wifi, and cyton support to the `openbci` main library.
4+
5+
If you only need cyton over serial and so not want the additional support, please see [`openbci-cyton`](https://www.npmjs.com/package/openbci-cyton).
6+
7+
# 2.2.1
8+
9+
### Enhancements
10+
11+
* Bumped openbci-utilities to v0.2.0 for new accel data support
12+
13+
# 2.2.0
14+
15+
### Bug Fixes
16+
17+
* Calling sdStart and stop would change the writeOutDelay
18+
* Timeout for v1 was set to 10 ms instead of 50 ms.
19+
* Timeout for v2+ was set to 0 ms instead of 10 ms.
20+
21+
# 2.1.4
22+
23+
### Enhancements
24+
25+
* syncRegisterSettings now resolves channel setting object
26+
* Bumped openbci-utilities to v0.1.5
27+
28+
# 2.1.3
29+
30+
### Enhancements
31+
32+
* Can now sync the channel settings from the actual registers on the ADS! Call `.syncRegisterSettings()`
33+
* Bumped openbci-utilities to v0.1.4
34+
35+
# 2.1.2
36+
37+
### Enhancements
38+
39+
* Update openbci-utilities to v0.1.2 to patch for sendCounts.
40+
* Disconnect did not disconnect from serial port if the device was not streaming.
41+
42+
# 2.1.1
43+
44+
### Bug Fixes
45+
46+
* Closes forgot parentheses in `getBoardType()` #152 (thanks @nateGeorge)
47+
48+
### Enhancements
49+
50+
* Add support for v3 cyton firmware.
51+
52+
# 2.1.0
53+
54+
### Breaking changes
55+
56+
* Significantly reduce the properties in `this.info` object to only have firmware version and number of missed packets. Code dependent on this.info should switch to using `numberOfChannels()`, and `getBoardType()` and `sampleRate()` for accurate board info!
57+
58+
### Enhancements
59+
60+
* Fixes for daisy with new board, specifically hardSet.
61+
62+
# 2.0.1
63+
64+
### Bug Fixes
65+
66+
* Debug bytes was set to always print in processBytes
67+
68+
# 2.0.0
69+
70+
### New Features
71+
* `index.js` file allows for ES6 destructing
72+
73+
### Breaking Changes
74+
* Change name of `OpenBCIBoard` to `Cyton` to follow new naming convention.
75+
Simply change:
76+
```ecmascript 6
77+
const OpenBCIBoard = require('openbci').OpenBCIBoard;
78+
const ourBoard = new OpenBCIBoard();
79+
```
80+
```ecmascript 6
81+
const Cyton = require('openbci').Cyton;
82+
const ourBoard = new Cyton();
83+
```
84+
* Major change to how board is initialized with removal of `factory` paradigm.
85+
* New dependency called `openbci-utilities`.
86+
* Rejections are errors with messages, so check err.message for info on message, don't expect string.
87+
88+
### Bug Fixes
89+
* Documentation error with `testSignal` function.
90+
91+
### Enhancements
92+
* Add more tests for public API functions.
93+
94+
# 1.5.2
95+
96+
### Dependency Package Updates
97+
* `performance-now`: from `^0.2.0` to `2.1.0`
98+
* `serialport` - from `4.0.1` to `4.0.7`
99+
100+
### Development Dependency Package Updates
101+
* `bluebird`: from `3.4.6` to `3.5.0`
102+
* `chai-as-promised`: from `^5.2.0` to `^6.0.0`
103+
* `codecov`: from `^1.0.1` to `^2.1.0`
104+
* `semistandard`: from `^9.0.0` to `^10.0.0`
105+
* `sinon`: from `^1.17.2` to `^2.1.0`
106+
* `snazzy`: from `^5.0.0` to `^6.0.0`
107+
1108
# 1.5.1
2109
3110
### New Features
@@ -52,7 +159,7 @@
52159
53160
### Bug Fixes
54161
* Fixes bug where extra data after EOT (`$$$`) was dumped by preserving the poriton after the EOT for further decomposition.
55-
* Fixes bug where any calls to channel set would actually break the openBCISample code as the channelSettingsArray contained an undefined.
162+
* Fixes bug where any calls to channel set would actually break the openBCIUtilities code as the channelSettingsArray contained an undefined.
56163
* Writes promises resolve when they are actually sent over the serial port.
57164
58165
# 1.4.0
@@ -198,7 +305,7 @@ The second major release for the OpenBCI Node.js SDK brings major changes, impro
198305
199306
* NPM package is not called `openbci-sdk` anymore, now called `openbci`
200307
* Accelerometer data now goes into `.accelData` array instead of `.auxData` array.
201-
* In openBCISample.js
308+
* In openBCIUtilities.js
202309
* `parseRawPacket()` is now called `parseRawPacketStandard()`
203310
* `ready` event only triggered after soft reset. `eot` event emitted in all other conditions resulting in the board sending EOT ("$$$")
204311
* Must use camel case on the OpenBCISimulator object.
@@ -276,7 +383,7 @@ The second major release for the OpenBCI Node.js SDK brings major changes, impro
276383
### Bug Fixes
277384
278385
* updates to README.me and comments to change ntp to sntp, because the two are similar, but not the same and we do not want to be misleading
279-
* Extended [Stnp](https://www.npmjs.com/package/sntp) to main openBCIBoard.js
386+
* Extended [Stnp](https://www.npmjs.com/package/sntp) to main openBCICyton.js
280387
* Add `.sntpNow()` function to get ntp time.
281388
282389
# 0.3.1

CODE_OF_CONDUCT.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# OpenBCI NodeJS Code of Conduct
2+
3+
## Purpose
4+
5+
It is our hope that any one is able to contribute to OpenBCI NodeJS regardless of their background. Thus, we hope to provide a safe, welcoming, and warmly geeky environment for everybody, regardless of gender, sexual orientation, ability, ethnicity, socioeconomic status, and religion (or lack thereof).
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment
10+
include:
11+
12+
* Using welcoming and inclusive language
13+
* Being respectful of differing viewpoints and experiences
14+
* Gracefully accepting constructive criticism
15+
* Focusing on what is best for the community
16+
* Showing empathy towards other community members
17+
18+
Examples of unacceptable behavior by participants include:
19+
20+
* The use of sexualized language or imagery and unwelcome sexual attention or
21+
advances
22+
* Trolling, insulting/derogatory comments, and personal or political attacks
23+
* Public or private harassment
24+
* Publishing others' private information, such as a physical or electronic
25+
address, without explicit permission
26+
* Other conduct which could reasonably be considered inappropriate in a
27+
professional setting
28+
29+
## Our Responsibilities
30+
31+
Project maintainers are responsible for clarifying the standards of acceptable
32+
behavior and are expected to take appropriate and fair corrective action in
33+
response to any instances of unacceptable behavior.
34+
35+
Project maintainers have the right and responsibility to remove, edit, or
36+
reject comments, commits, code, wiki edits, issues, and other contributions
37+
that are not aligned to this Code of Conduct, or to ban temporarily or
38+
permanently any contributor for other behaviors that they deem inappropriate,
39+
threatening, offensive, or harmful.
40+
41+
## Scope
42+
43+
This Code of Conduct applies both within project spaces and in public spaces
44+
when an individual is representing the project or its community. Examples of
45+
representing a project or community include using an official project e-mail
46+
address, posting via an official social media account, or acting as an appointed
47+
representative at an online or offline event. Representation of a project may be
48+
further defined and clarified by project maintainers.
49+
50+
## Enforcement
51+
52+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
53+
reported by contacting the project team at [[email protected]](mailto:[email protected]). All
54+
complaints will be reviewed and investigated and will result in a response that
55+
is deemed necessary and appropriate to the circumstances. The project team is
56+
obligated to maintain confidentiality with regard to the reporter of an incident.
57+
Further details of specific enforcement policies may be posted separately.
58+
59+
Project maintainers who do not follow or enforce the Code of Conduct in good
60+
faith may face temporary or permanent repercussions as determined by other
61+
members of the project's leadership.
62+
63+
## Attribution
64+
65+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
66+
available at [http://contributor-covenant.org/version/1/4][version]
67+
68+
[homepage]: http://contributor-covenant.org
69+
[version]: http://contributor-covenant.org/version/1/4/

CONTRIBUTING.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Contributing
2+
3+
:tada::clinking_glasses: First off, thanks for taking the time to contribute! :tada::clinking_glasses:
4+
5+
Contributions are always welcome, no matter how small.
6+
7+
The following is a small set of guidelines for how to contribute to the project
8+
9+
## Where to start
10+
11+
### Code of Conduct
12+
This project adheres to the Contributor Covenant [Code of Conduct](CODE_OF_CONDUCT.md).
13+
By participating you are expected to adhere to these expectations. Please report unacceptable behaviour to [[email protected]](mailto:[email protected])
14+
15+
### Contributing on Github
16+
17+
If you're new to Git and want to learn how to fork this repo, make your own additions, and include those additions in the master version of this project, check out this [great tutorial](http://blog.davidecoppola.com/2016/11/howto-contribute-to-open-source-project-on-github/).
18+
19+
### Community
20+
21+
This project is maintained by the [OpenBCI](www.openbci.com) and [NeuroTechX](www.neurotechx.com) community. Join the NeuroTechX Slack to check out our #devices channel, where discussions about OpenBCI takes place.
22+
23+
## How can I contribute?
24+
25+
If there's a feature you'd be interested in building, go ahead and we'll support you as much as we can. When you're finished submit a pull request to the master branch referencing the specific issue you addressed.
26+
27+
If you find a bug, or have a suggestion on how to improve the project, just fill out a [Github issue](../../issues)

0 commit comments

Comments
 (0)