Commit graph

176 commits

Author SHA1 Message Date
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
Francis Gulotta
22e2c643e8 Bump to beta 4 with new build instructions 2016-05-14 00:49:12 -04:00
Francis Gulotta
0d6a11227b bump beta version 2016-05-12 16:13:27 -04:00
Francis Gulotta
0b68db2c45 SpawnSync doesn't exist on node 0.10 2016-05-12 15:36:21 -04:00
Francis Gulotta
3ede1e252e Add some pre-publish hooks to help prevent bad releases 2016-05-12 14:01:55 -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
1400895eb7 Cleanup CI scripts
- Migrate appveryor to powershell
 - stop updating npm to latest
 - start using the versions of the packages in our package.json
 - stop download nodejs directly on travis
2016-05-11 21:10:35 -04:00
Francis Gulotta
e6502b569d Bump to Version 3.1.2-beta2
- Add back in the bundle dependency to support node 0.12 with npm3.
 - bug fix in listUnix where we weren't filtering out non block devices that are named like serial ports
 - Better unix error messages
2016-05-10 17:59:35 -04:00
Francis Gulotta
de9812cdb5 Adding back the bundle deps and a guard during publishing 2016-05-06 19:01:25 -04:00
Francis Gulotta
1ac4c35b6d Bump to 3.1.2-beta1 2016-05-06 14:04:16 -04:00
Francis Gulotta
4b34655a9b unbundle node-pre-gyp (#787) 2016-05-06 13:52:15 -04:00
Francis Gulotta
a11e443f4a Bump to v3.1.1
add instructions to fix issues with publishing when running a modern nodejs
2016-05-04 19:27:23 -04:00
Francis Gulotta
ec768ebd6d bump to 3.1.0 2016-05-04 14:48:33 -04:00
Francis Gulotta
7262e5ca19 bump the nan version (#783) 2016-05-04 14:00:02 -04:00
Francis Gulotta
7491b9b949 Merge pull request #778 from voodootikigod/upgrade-nan
Upgrade nan
2016-05-01 18:42:45 -04:00
Francis Gulotta
9f9693cb15 Update cli tools (#776)
- Better argument handling
 - Switch to commander as optimist is deprecated 
 - more output formats for serial port list
 - give serialportterm a list option
2016-05-01 18:19:54 -04:00
Francis Gulotta
528dd8afeb upgrade nan
Have to remove memwatch-next again because of build issues =(
2016-05-01 13:08:31 -04:00
Francis Gulotta
f319970edd Bump to 3.0.1 2016-04-30 21:37:08 -04:00
Francis Gulotta
98c79c98c5 rename the binary files per the usual conventions 2016-04-30 21:35:27 -04:00
Francis Gulotta
0e8c4d4c6a add memwatch-next to dev deps as it now builds on all platforms (#773) 2016-04-30 18:47:29 -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
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
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
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
a39d612517 Bump to version 2.1.0 2016-04-10 20:26:30 -04:00
Francis Gulotta
742779c66d 2.0.7-beta5 Release 2016-04-08 13:03:28 -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
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
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
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
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
Jacob Rosenthal
3469c1a013 Version 2.0.7-beta2 2016-03-28 23:12:30 -04:00
Linus Wallgren
090b26b58b Bugfixes around JS handling of file descriptors
This patch combines #586 and #686

 - A closed serialport now uses fd = null
 - Emulate a proper fd in mock hardware
 - Instead of using the device path as the file descriptor, use a generated
integer as the fd.

This have to use a starting fd of 1 as there are bugs when the fd is 0.
The open(2) manpage states that the file descriptor will be a small
nonnegative integer.

Checking if the fd is falsey leads to the incorrect classification of the
fd 0 as invalid. That is not the case, open(2) specifies the fd as "a
small, nonnegative integer".

This also adds tests for all the cases where the fd was previously
incorrectly considered invalid, which required adding three more methods
to the mock-hardware (update, set and drain).

This solves issue #472
2016-03-28 19:41:34 -04:00