Commit graph

723 commits

Author SHA1 Message Date
Francis Gulotta
cab3589e53 Upgrade grunt to squash warnings and reduce packages (#766) 2016-04-25 11:32:00 -04:00
Francis Gulotta
2baab33a9f bump package.json to 3.0.0 2016-04-25 11:25:00 -04:00
Francis Gulotta
1f0c7bd82d another typo 2016-04-25 11:08:22 -04:00
Francis Gulotta
fda68c7d5d typo 2016-04-25 11:07:00 -04:00
Francis Gulotta
356b908ae2 bump to 3.0 2016-04-25 10:56:51 -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
ac82f855e5 Start bundling node-pre-gyp per #753 2016-04-24 23:59:37 -04:00
Francis Gulotta
a8df919971 Getting ready for the 2.1.1 release 2016-04-24 22:28:10 -04:00
Francis Gulotta
7b815fd6a4 Using clang and cpplint lint our c++ as much as I can (#762)
The `src/win/" vendor files are scary
2016-04-24 00:19:35 -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
73509e34b3 Stop bundling node-pre-gyp to allow for upgrades (#759)
- The latest and greatest recommendation from node-pre-gyp
- Stops issues when people have different node-pre-gyp’s installed already
2016-04-19 17:51:25 -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
aff6e99708 Give instructions to link to different versions of our docs as the api will be different with different major version (#756) 2016-04-15 23:53:23 -04:00
Francis Gulotta
a39d612517 Bump to version 2.1.0 2016-04-10 20:26:30 -04:00
Francis Gulotta
b9304d5225 Update README on opening ports and cleanup examples (#750) 2016-04-10 11:41:04 -04:00
Francis Gulotta
0f158bbff1 Code of Conduct 2016-04-10 00:12:42 -04:00
Francis Gulotta
3749b7376b Test on latest versions of node (#745)
- 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.
2016-04-08 18:45:06 -04:00
Francis Gulotta
742779c66d 2.0.7-beta5 Release 2016-04-08 13:03:28 -04:00
Francis Gulotta
8342d1725c Add support for bluetooth devices /dev/rfcomm (#742) 2016-04-08 12:50:56 -04:00
Francis Gulotta
156e405bbc Define, document, and test flow control and setting port flags (#726)
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.
2016-04-08 11:44:18 -04:00
Francis Gulotta
8bc3eeab32 Update .list docs to be up to date 2016-04-08 11:22:59 -04:00
Francis Gulotta
39946c4bc0 Make the output of .list undefined if it’s an empty string (#740)
Add some tests to start defining the bindings.
2016-04-08 11:18:37 -04:00
Francis Gulotta
f0d7319149 Put all builds in /build/{Release,Debug}/ (#737)
* Put all builds in /build/{Release,Debug}/

Closes #736

* cleanup npm and git ignore
2016-04-07 13:22:03 -04:00
Francis Gulotta
b20ed9cd8d Merge pull request #734 from fivdi/master
Fix typo
2016-04-06 18:33:15 -04:00
fivdi
e194b4cf82 Fix typo 2016-04-06 23:11:59 +02:00
Francis Gulotta
3ce0ea8f4c Fix pre-gyp's binding paths so bindings can find it when not built locally. 2016-04-06 01:08:24 -04:00
Francis Gulotta
4f5442a9cd Version 2.0.7-beta3 2016-04-05 23:59:02 -04:00
fivdi
b5a154f20c Upgrade to NAN v2.2.1 for Node.js v6.0.0-nightly compatability 2016-04-05 23:21:28 -04:00
Francis Gulotta
7ee1c1e98d Merge pull request #730 from voodootikigod/windows-error-handling
Fixes 100% cpu when serial ports disconnect on windows
2016-04-05 23:19:59 -04:00
Francis Gulotta
79ec1789e4 Fixes 100% cpu when serial ports disconnect on windows
- Fix a small memory leak
 - some linting for whitespace and indentation
2016-04-05 23:01:15 -04:00
Paul Kaplan
6d2e4b5fa7 Return after encountering errors in windows write
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.
2016-04-05 23:01:15 -04:00
Francis Gulotta
59f281f136 Merge pull request #728 from voodootikigod/osx-fd-leaks
Fix double open and times when we don't close file descriptors for unix
2016-04-05 22:57:48 -04:00
Francis Gulotta
8365e186c6 Fix double open and times when we don't close file descriptors for unix
- Close the fd if we have any errors during setup
 - Properly receive errors when setting a custom baud rate on OS X
2016-04-05 14:47:43 -04:00
Peter A. Bigot
ac2682319f correct application of hupcl option
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>
2016-04-05 14:47:43 -04:00
Guilherme Francescon
7151eb3fbf Fixes double open() call on unix 2016-04-05 14:47:43 -04:00
Francis Gulotta
5df5a779ee A release of grunt broke our builds
We’ll happily upgrade at some point but not today.
2016-04-05 14:46:50 -04:00
Francis Gulotta
540a96015c Add npm run stress to run stress tests
- Fixed the write memory leak test

 - failed attempt at a open close memory leak test



Closes #602
2016-04-03 21:21:26 -04:00
Francis Gulotta
a9a5d865f6 Test port open errors 2016-04-03 18:31:22 -04:00
Francis Gulotta
a49eebf791 Cleanup the output of serialDuplexTest 2016-04-03 17:18:54 -04:00
Francis Gulotta
abc3c19565 Test & Fix a race condition when closing a port & trying to do anything
- 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.
2016-04-03 01:05:41 -04:00
Francis Gulotta
ac464eb948 Make the fact we drop all event listeners very clear in close and disconnect 2016-04-03 00:59:58 -04:00
Francis Gulotta
a43a67d27a Add more details to the readme around many sections
- 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
2016-04-03 00:56:56 -04:00
Francis Gulotta
99adeee0a6 Free the function from the factory
- No longer make use of the serial port factory
2016-04-02 23:00:09 -04:00
Rick Waldron
a79ff28d88 Dependency cleanup (quick pass)
- 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>
2016-04-02 20:29:02 -04:00
Francis Gulotta
962c54a4f2 Superseded by test/serialport-integration.js 2016-04-02 19:01:32 -04:00
Francis Gulotta
836064abe3 Fix double open
- 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
2016-04-02 18:44:22 -04:00
Francis Gulotta
38d9ca91ce Merge pull request #713 from voodootikigod/open-close-open-close
Closing a port is better tested & correctly reports isOpen in it’s event
2016-03-31 19:02:43 -04:00
Francis Gulotta
77851e2e75 Closing a port is better tested & correctly reports isOpen in it’s event
- 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
2016-03-31 15:20:07 -04:00
Francis Gulotta
b5be6a0d16 Merge pull request #711 from voodootikigod/integration-tests
Integration Tests!
2016-03-31 11:44:27 -04:00