Commit graph

215 commits

Author SHA1 Message Date
Francis Gulotta
39d0103937 Streams rewrite
This is a major change.  To reading, the poller and the bindings layer, there isn’t a great way to do this piecemeal. The goal here is to make bindings a plugin layer, our c++ bindings isolated and tested, and make Serialport a streams object.

- Move all bindings into platform specific modules DarwinBinding LinuxBinding, and WindowsBinding
- Separate out the bindings from the SerialPort class so it can be required by itself.
- Provide mock bindings as a tested first class bindings layer
- Mixin stream methods with `pushBindingWrap`, inspired from fs.readStream
- All integration tests now require an Arduino 
- Ditch sandboxed modules as we don't need to be that heavy handed to test anymore

TODO

- windows binding
- performance test
- memory leak test
- 🎉
2016-11-04 21:03:35 -04:00
Francis Gulotta
9f8a359a86 Test changes
- Increase code coverage of parsers 
- Ask mocha to fail fast
- Auto detect arduino for tests
2016-11-04 17:26:41 -04:00
Francis Gulotta
11c86495f5 Try out codecov.io 2016-11-01 15:34:33 -04:00
Brian White
d4b4d2f210 Remove unnecessary 'inherits' dependency 2016-10-30 19:08:57 -04:00
greenkeeperio-bot
4c9b9be436 chore(package): update eslint to version 3.9.0
https://greenkeeper.io/
2016-10-30 19:05:47 -04:00
Francis Gulotta
066dc1ead7 Update docs with 4.0.4 2016-10-30 18:57:57 -04:00
Francis Gulotta
dd911656ab Upgrade NAN for some bugfixes 2016-10-27 14:31:03 -04:00
Greenkeeper
7aee9cca9e chore(package): update node-pre-gyp to version 0.6.31 (#979)
https://greenkeeper.io/
2016-10-25 19:42:32 -07:00
Francis Gulotta
007aef6870 Version 5.0.0-beta2
- [all] fixed a crash when pausing while reading thanks to @bminer and @baffo32 and others to debug and fix this
- [all] ReadLineParser has been renamed to ReadlineParser to match worldwide convention
- [windows] Fix flush behavior using PurgeComm fixing #962 via @samisaham
- [windows] Remove read and write timeouts solving #781 via @giseburt
- [docs] Electron build docs #965 via @chalkers
- [docs] Spelling fixes via @Awk34
- [docs] Update parser docs to be correct #970 via @jacobq
- [notes] buffer-indexof is now completely compliant with latest node 6 buffer.indexOf because it's nice to have and we now use it on older nodes
- [notes] dropped node 5 support, should still work but you shouldn't use it
2016-10-20 17:06:34 -04:00
Greenkeeper
03f1fbed46 chore(package): update jsdoc-to-markdown to version 2.0.1 (#971)
https://greenkeeper.io/
2016-10-19 22:14:53 -04:00
Francis Gulotta
bd2ef3fbaa Add a warning not to edit the README.md file directly (#968) 2016-10-19 09:58:02 -04:00
Greenkeeper
20ffe24a0b chore(package): update mocha to version 3.1.1 (#960)
https://greenkeeper.io/
2016-10-10 14:41:42 -04:00
Greenkeeper
0a8ae4d03d chore(package): update eslint-plugin-promise to version 3.0.0 (#956)
https://greenkeeper.io/
2016-10-10 14:41:09 -04:00
Greenkeeper
5204d8b3fd chore(package): update jsdoc-to-markdown to version 2.0.0 (#959)
https://greenkeeper.io/
2016-10-10 14:19:13 -04:00
Greenkeeper
3c4f451239 chore(package): update eslint to version 3.7.1 (#951)
https://greenkeeper.io/
2016-10-03 20:59:31 -04:00
Greenkeeper
e4a1beee03 chore(package): update eslint-config-standard to version 6.2.0 (#946)
https://greenkeeper.io/
2016-09-29 16:12:37 -04:00
Greenkeeper
b78c888408 chore(package): update eslint-plugin-standard to version 2.0.1 (#944)
https://greenkeeper.io/
2016-09-28 00:05:06 -04:00
Francis Gulotta
1bdcf15af0 Upgrade buffer-indexof (#934) now completely compliant with node 6 buffer.indexOf 2016-09-16 15:25:33 -04:00
Francis Gulotta
0e758e8684 Bump to 5.0.0-beta1 2016-09-15 10:48:13 -04:00
Greenkeeper
18b0b806cf chore(package): update eslint to version 3.5.0 (#929)
https://greenkeeper.io/
2016-09-10 14:37:55 -04:00
Francis Gulotta
d2bb973382
Transform parsers into streams
Parsers are now transform streams! I'm not 100% convinced this is easier to use but it is more clear about the mechanics. I think that might make it worthwhile. It also opens up a clear example to how to make your own parser.
2016-09-08 19:18:36 -04:00
greenkeeperio-bot
3541b935d2 chore(package): update eslint-config-standard to version 6.0.0
https://greenkeeper.io/
2016-08-24 10:41:35 -04:00
Greenkeeper
aaa0613278 chore(package): update eslint to version 3.3.1 (#907)
https://greenkeeper.io/
2016-08-16 01:18:52 -04:00
Francis Gulotta
5616664ed6 Change isOpen() to a propterty (#899) 2016-08-06 21:51:56 -04:00
Francis Gulotta
3aafa77e2c Remove lowercase options and properly define .path (#898) 2016-08-06 20:26:49 -04:00
Greenkeeper
88d1bad66e chore(package): update dependencies (#893)
https://greenkeeper.io/
2016-08-02 21:18:30 -04:00
Francis Gulotta
73e0713861 Module level JSDocs (#892)
* Document parsers
* Customize how events are displayed
2016-07-29 21:46:30 -04:00
Francis Gulotta
0e1b533e51 switch to the lie promise library (#891)
- it’s smaller by a tiny bit
 - doesn’t have a buggy polyfill
 - mimics the nodejs promise behavior closer with `unhandledRejection` errors
2016-07-29 18:07:03 -04:00
Francis Gulotta
3d509b12b0 Use jsdoc to generate the api docs (#882)
This moves a lot of docs into JSDOC and provides a doc build system including throwing a CI error if the docs are out of date or if the wrong file was edited. Docs are put into the README for now but html docs are possible. Updated contributors guide to explain how to update the docs.

Todo: 
 - transition static methods and parsers into jsdoc
 - options objects and callbacks show as instance methods
2016-07-25 12:05:21 -04:00
Francis Gulotta
dcfe2ab4ee Switch up testing infrastructure (#881)
- npm test now runs everything but stress tests
 - TEST_PORT is optional but now requires an arduino, the travis provided OS X serial port wasn't worth it
 - do some improvements to coverage
 - Drop grunt for file size and complexity
 - Eslint has dropped 0.10

I don't think Istanbul can detect coverage on sandboxed modules like our mocked bindings. Moving to an isolated binding will improve this situation.

I also don't think coveralls is working on travis
2016-07-24 22:20:23 -04:00
Francis Gulotta
4c55b57ffb Drop Sinon Chai and refactor some tests (#868) 2016-07-13 00:42:56 -04:00
Francis Gulotta
bf7801c99b
Bump to 4.0.1 2016-07-08 17:11:05 -04:00
Francis Gulotta
333afbec0f Upgrade es6-promise and add note (#865) 2016-07-03 19:12:50 -04:00
Francis Gulotta
0017533279 Remove spawn-sync as we don't use it (#864) 2016-07-03 15:33:40 -04:00
Francis Gulotta
b5da11c0b3 Bump to 4.0.0 2016-07-02 12:01:05 -04:00
Francis Gulotta
59321cb405 Prep for 4.0 with upgrade guide and unified change log 2016-06-16 23:57:15 -04:00
Francis Gulotta
e7ad1c7c6d Rename our binaries (#858) 2016-06-16 23:51:41 -04:00
Francis Gulotta
921d97583e Upgrade nan (#857) 2016-06-16 23:47:46 -04:00
Francis Gulotta
fb76ef6d43 4.0.0-beta4 is ready for release 2016-06-16 00:30:03 -04:00
Francis Gulotta
f707fbbaef Add code coverage metrics 2016-06-01 13:53:23 -04:00
Francis Gulotta
398c9067d2 Bump to 4.0.0-beta3 2016-05-29 16:22:28 -04:00
Francis Gulotta
21c757fdfc bump to beta2 for the new github urls 2016-05-24 22:56:58 -04:00
Francis Gulotta
e551333c61 Bump to 4.0.0-beta1 2016-05-24 22:44:47 -04:00
Francis Gulotta
4b984e8995 write binding tests and cleanup (#808)
- Fix bug where write callback was being called multiple times when write operations blocked
 - [windows] refactored write code to be less complex
 - [unix] refactored write code to be less complex
 - added arduino required integration tests
2016-05-16 21:33:00 -04:00
Francis Gulotta
17b0133a52 add valgrind nam run command
`brew install valgrind`
2016-05-16 12:03:51 -04:00
Francis Gulotta
55a0c1e46d Bump to Version 3.1.2 2016-05-14 19:18:39 -04:00
Francis Gulotta
bd959f23ec npm2 makes having deps during install near impossible 2016-05-14 19:11:03 -04:00
Francis Gulotta
cf6ba3b439 test beta6 without semvar in the deps 2016-05-14 01:00:29 -04:00
Francis Gulotta
564ccd48ba npm 2 is annoying 2016-05-14 00:54:33 -04:00
Francis Gulotta
48ac68bd75 can't use prepublish scripts that depend on packages and npm2 2016-05-14 00:52:40 -04:00