Commit graph

15 commits

Author SHA1 Message Date
Francis Gulotta
e986563c75 Make sure .drain and .set error on all platforms. (#834) 2016-05-29 16:03:18 -04:00
Francis Gulotta
77c4ea37eb Remove the openImmediatly flag in favor of the autoOpen option (#830)
closes #809
2016-05-28 21:33:52 -04:00
Francis Gulotta
9a98ede77f Remove the serial port factory and throw errors on invalid arguments (#822)
- Constructor now throws errors when given invalid options
 - The Constructor’s callback is given to `.open()` if `openImmediately` is set
 - Depreciation warning when using the old style SerialPort.SerialPort
2016-05-26 11:40:58 -04:00
Francis Gulotta
079777b694 Flowcontrol (#821)
Remove the extra flow control settings
2016-05-23 23:45:11 -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
77b1cbc2f7 Tighten up the graphics on level 4
I mean the linter rules, whitespace only.
2016-05-14 19:12:52 -04:00
Francis Gulotta
0063e13364 Make update cross platform for baud rates (#763)
- Errors should always be an error or null
 - bindings.close doesn't throw with proper args so why are we catching?
 - throw on update if given bad options
 - support and test updating and opening with custom baud rates
2016-05-12 13:03:59 -04:00
Francis Gulotta
8d95d6f532 Fix an error in listUnix where we were filtering improperly (#792) 2016-05-08 22:16:04 -04:00
Francis Gulotta
92ae904c51 Drop some dependencies for a smaller bundle size (#767)
- Drop `bluebird` 168kb for `es6-promise` 37.1kb (vs 18.1kb library code) bundled sizes
 - Move `node-pre-gyp-github` to dev deps so it's not always installed (5.8MB package size)
 - Stop bundling `node-pre-gyp-github` as it's only needed during publishing
2016-04-26 14:18:08 -04:00
Francis Gulotta
edfa5e72bf Remove the last bit of references to self (#765)
- Sometimes we didn’t need it, sometimes a bind was cleaner
2016-04-25 10:56:30 -04:00
Francis Gulotta
555136f36b Stop removing all event listeners on close and disconnect (#764) 2016-04-25 10:02:24 -04:00
Francis Gulotta
1bd3e06c58 SerialportList updates (#761)
- Errors are now consistent across platforms
 - List is now completely async and promise ready
 - Test the bindings abstraction not the bindings itself
2016-04-23 12:43:31 -04:00
Francis Gulotta
6945217c0b Isolate the bindings (#755)
- Test requiring the library as part of the build processes on all platforms
 - move all js code into ./lib
 - move all the easy stuff into ./lib/bindings the rest will bring breaking changes probably
2016-04-15 23:54:58 -04:00
Francis Gulotta
8342d1725c Add support for bluetooth devices /dev/rfcomm (#742) 2016-04-08 12:50:56 -04:00
Francis Gulotta
c93fb3b81f Move listUnix to its own module
- Refactor to fix bugs 
 - Remove the path behind `udevadm` as it’s not always in the same place but it’s so far it is always in the path
 - Tests listUnix, (`pnpId` assumes a lot about `udevadm` =( )
 - Adds `ttyMDF` to the list of serial ports for “High Speed UART device of Intel Medfield platform”
 - turn down the verboseness on appveyor nam installs
 - upgrade sandboxed-module for windows support

Fixes #650,  #651, #634, #697 and #621
2016-03-30 18:51:47 -04:00