- 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
- Appveryor won’t build `5` or `4` it needs the minor number specified so we have to be specific
- Appveyor also wont build `4.4` for unknown reasons
- Node 6 isn't on nvm yet, so we can't easily test against it.
We had ambiguous behavior and documentation around these settings and functions, this preserves all of the previous behavior and defines it in documentation and tests. This is a step towards separating out and cleaning up user supplied options to the constructor.
The unix version breaks the while loop by returning on certain errors.
On Windows, the errors were being contained because the while loop was
never breaking. For example, pulling the USB cable out would raise
“Access Denied” errors but the while loop would run forever and contain
that error.
HUPCL is a TTY control flag, not an FCNTL flag. Remove its effect on
open(2), and instead apply it tcsetattr(3).
Signed-off-by: Peter A. Bigot <pab@pabigot.com>
- isOpen() now pays attention to if we're in the middle of closing
Our faux state machine for opening and closing consists for 4 states
- closed
- opening
- open
- closing
Currently we only really care about if we're in open or not because that's when all our operations can happen. `#open` and `#close` care if they're opening or closing.
- Installation now has more navigation links
- The `.list` function is now documented
- We now have more valid examples with consistent quotes
- Command line tools are now kinda documented
- Eliminates use of node-pre-gyp as an actual module dependency (just a package dependency, this might even be just a devDep now?)
- Reduces 5 blocking fs operations to 1
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
- Test for and stop the double opening of ports
- More tests around opening and disconnecting
- Fix mock darwin hardware to be async and hold off zalgo
- Fix broken tests that counted on non async darwin hardware
- Ports correctly respond to `isOpen` during a close event
- cleanup some assertions
- if a CI has a port to test with, open and close it
Bonus
- Appveyor seems to think if you have a `&` in your commit message you’re trying to run a command