Commit graph

259 commits

Author SHA1 Message Date
Jesus
6de1d2bc28 call udevadm single time 2017-07-23 08:19:39 -07:00
Francis Gulotta
61cbcb39fe gussy up the docs and keywords describing uses 2017-07-22 17:46:27 -07:00
Francis Gulotta
6f3d5e1cae Bump to beta8 2017-07-17 09:28:24 -04:00
Francis Gulotta
61e23d0907 [all] Have drain wait for pending JS write operations before calling system drain
This should allow drain to be a lot easier to use.

Bonus:
- More logging!
- Bluebird in tests with it's great long stack traces!
2017-07-16 22:05:58 -04:00
Francis Gulotta
36510e5402 upgrade packages 2017-07-15 12:01:13 -04:00
Francis Gulotta
33d61b301b Bump to beta7 2017-07-10 15:33:12 -04:00
Francis Gulotta
2ed7b119d0 Test flushing data
- [unix] small changes to flushing data during port open and setup to prevent bad data
- [all] mock binding flush now works
- cleanup on mock-binding pending reads
- add `serialport-repl` as a bin and npm command
2017-07-09 21:25:02 -04:00
Francis Gulotta
14bab11c82 Bump 5.0.0-beta6 2017-07-05 09:33:57 -04:00
Francis Gulotta
6455ecbb51 [unix] New read/write subsystem (#1212)
This has always been the dream. Use `fs.read` and `fs.write` to do reading and writing. To make that happen I've created a cross platform `Poller` object that notifies us once on `readable` and `writable` states.

- Reduce large write cpu usage from 100% to 1-2%
- Replace ReadPoller with a multi purpose poller because you can only have a single uv_poll_t on a fd at a time because reasons
- Experimented with doing this all in c++, maybe there are gains to doing that but I'd never finish.
- Some unrelated eslint changes
- Arduino echo should just echo, writing random bytes was messing it up
- use a file to disable tests in envs
- read and write errors can trigger disconnects
- disconnect event only happens if there are listeners, otherwise error events will be triggered
- a disconnect during write will always have a write error too
- win32 bindings seem to only trigger disconnects on writes
2017-07-05 09:12:31 -04:00
Francis Gulotta
78b5876e45 Version 5.0.0-beta5
- [docs] An overhaul of the format and language in our docs thanks to @LappleApple
- [all] Remove the c++ write queue
- [all] Add node 8 support and drop node 7 support
2017-06-19 21:21:17 -04:00
greenkeeper[bot]
06543aa317 Update dependencies to enable Greenkeeper 🌴 (#1195)
* chore(package): update dependencies
* docs(readme): add Greenkeeper badge
* Ignore package-lock.json and fix linting
* Work around some issues with ci's
* fix windows coverage
2017-06-18 22:09:13 -04:00
Francis Gulotta
427ac6fca2 Upgrade packages and add an package-lock.json 2017-06-17 22:23:55 -04:00
Francis Gulotta
1be9519634 Version 5.0.0-beta4
- [all] add regex stream parser and tests
- [all] upgrade to non deprecated buffer methods
- [docs] Add socketio example
- [windows] Fix unhandled promise rejection when calling read on Windows
2017-06-17 12:43:35 -04:00
Francis Gulotta
5f53a45cae Buffer upgrades (#1168)
* upgrade to non deprecated buffer methods
* Don't lint on node 4 as it's now broken

I really wish packages would keep things working on LTS platforms.
2017-05-14 12:58:56 -04:00
greenkeeperio-bot
f356b3fb59 chore(package): update eslint-plugin-standard to version 3.0.1
https://greenkeeper.io/
2017-05-14 11:24:16 -04:00
greenkeeperio-bot
24181bc5fb chore(package): update nan to version 2.6.2
https://greenkeeper.io/
2017-05-14 11:23:48 -04:00
greenkeeperio-bot
a5d7bea659 chore(package): update eslint-config-standard to version 10.2.1
https://greenkeeper.io/
2017-05-14 11:23:03 -04:00
greenkeeperio-bot
f7fa60907d chore(package): update mocha to version 3.3.0
https://greenkeeper.io/
2017-05-14 11:22:51 -04:00
greenkeeperio-bot
7d0630b5ab chore(package): update eslint-plugin-require-path-exists to version 1.1.7
https://greenkeeper.io/
2017-05-14 11:21:59 -04:00
greenkeeperio-bot
e394233f75 chore(package): update sinon to version 2.2.0
https://greenkeeper.io/
2017-05-14 11:21:34 -04:00
greenkeeperio-bot
d0deddbd1e chore(package): update debug to version 2.6.6
https://greenkeeper.io/
2017-05-14 11:20:10 -04:00
greenkeeperio-bot
464813dadb chore(package): update eslint-plugin-standard to version 2.2.0
https://greenkeeper.io/
2017-05-14 11:19:16 -04:00
greenkeeperio-bot
f5828c5a6b chore(package): update eslint to version 3.19.0
https://greenkeeper.io/
2017-05-14 11:18:21 -04:00
Francis Gulotta
a049538270 Upgrade linters, edit for clarity 2017-03-16 22:24:53 -04:00
greenkeeperio-bot
3315b14c7e chore(package): update sinon to version 2.0.0
https://greenkeeper.io/
2017-03-16 20:00:37 -04:00
greenkeeperio-bot
4c75a1d4fb chore(package): update jsdoc-to-markdown to version 3.0.0
https://greenkeeper.io/
2017-03-16 19:58:59 -04:00
Francis Gulotta
4cf98ae619 bump binary path to 5.0.0-beta3 2017-01-12 01:09:19 -05:00
Francis Gulotta
5a57e5b9f0 Revert "package.json: udpate node-pre-gyp params host & remote_path for v5x" 2017-01-12 01:07:37 -05:00
Francis Gulotta
737c1e7790 Bump to 5.0.0-beta3 2017-01-11 00:41:33 -05:00
Thom Nichols
d170eab498 package.json: udpate node-pre-gyp params host & remote_path
to support overriding a host mirror for prebuilt downloads.

Fixes #1055
2017-01-10 23:25:51 -05:00
Francis Gulotta
a98e92c898 Switch to arrow functions when possible
- Rename the linux-list test
- restore the require cache after proxyquire
2017-01-07 18:29:55 -05:00
Francis Gulotta
c40c24972a Reorganize files for clarity
- Move Parsers into a directory
- Move Bindings into a directory
- Add a linter for require calls
2017-01-07 00:23:20 -05:00
Francis Gulotta
c15eb841cb linting for es6 (#1040)
* linting for es6
2016-12-21 21:09:43 -05:00
greenkeeperio-bot
9c960858db chore(package): update debug to version 2.4.5 2016-12-20 21:52:10 -05:00
Francis Gulotta
223d39ff3f Remove readable-stream
Streams3 are stable in node 4+ so we don't need readable-stream anymore
2016-12-13 23:55:42 -05:00
greenkeeperio-bot
01dddc0d71 chore(package): update eslint to version 3.12.1
https://greenkeeper.io/
2016-12-13 18:56:03 -05:00
Francis Gulotta
1643dd1c81 Remove Polyfills and upgrade node-pre-gyp
- Remove object.assign
- Remove buffer-indexof
- Remove lie
2016-12-12 22:26:47 -05:00
Francis Gulotta
d5b09aed6c Remove node 0.10 0.12 & bump electron to 1.4.12
Too many build issues with older versions of node. LTS has left them behind and alas so will we. serialport@4 will be the last version to support node 0.10 and 0.12.
2016-12-12 22:26:47 -05:00
Francis Gulotta
9ed782e8eb Auto generate authors file from git-extras 2016-12-10 14:11:17 -05:00
greenkeeperio-bot
8b52112004 chore(package): update eslint to version 3.10.0
https://greenkeeper.io/
2016-11-19 11:29:45 -05:00
greenkeeperio-bot
17f403e35f chore(package): update readable-stream to version 2.2.2
https://greenkeeper.io/
2016-11-14 08:10:04 -05:00
greenkeeperio-bot
67b506556f chore(package): update debug to version 2.3.2
https://greenkeeper.io/
2016-11-10 23:04:08 -05:00
greenkeeperio-bot
f10e7aacc4 chore(package): update debug to version 2.3.1
https://greenkeeper.io/
2016-11-10 00:36:57 -05:00
Francis Gulotta
5306b7f5e1 Give anonymous functions names for debugging
Also throw in some manual testing scripts.
2016-11-05 23:56:22 -04:00
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