Commit graph

969 commits

Author SHA1 Message Date
Jessica Quynh Tran
b8b77e725f Add socketio example (#1081)
* Add socketio example
* fix json in .eslintrc file
2017-02-19 19:39:54 -05:00
Francis Gulotta
b51991f8ca clarify docs and electron a little bit 2017-02-18 14:15:45 -05:00
enami tsugutomo
0b2a5e30df Fix unhandled promise rejection when calling read on Windows.
Without this change, following error is signaled:
(node:12996) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: First argument must be an int
2017-02-14 17:56:44 -05:00
Francis Gulotta
db88509f4f Soften the language a bit 2017-02-12 20:14:41 -05:00
Francis Gulotta
6578df6c56 Add a preclude new issues that links to the docs 2017-02-12 20:09:26 -05: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
414057c4dc Promised based bindings.
- Base bindings class to extend
- Move docs to base binding
- Make all bindings classes
- Ditch push bindings because it doesn't make anything cleaner
2017-01-10 23:02:51 -05:00
Francis Gulotta
e588e88fa7 Feature flags for disabling tests
Use feature flags instead of platform tags when disabling tests. This also preps us for virtual ports which don't support everything.
2017-01-07 19:05:35 -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
5b02ec869f Change the windows read timeouts for optimal reads
ReadIntervalTimeout

A value of MAXDWORD, combined with zero values for both the ReadTotalTimeoutConstant and ReadTotalTimeoutMultiplier members, specifies that the read operation is to return immediately with the bytes that have already been received, even if no bytes have been received.
2017-01-03 23:56:32 -05:00
Francis Gulotta
453a477944 Update the examples for 5x 2017-01-03 23:44:41 -05:00
Francis Gulotta
9ae132bae3 Add a bunch of since 5x items 2017-01-02 22:46:55 -05:00
Francis Gulotta
7d09f54d1b Update electron docs 2016-12-26 22:09:37 -05:00
Francis Gulotta
1cc455aff5 Test flush on parsers
More es6 cleanup
2016-12-25 17:54:19 -05:00
Francis Gulotta
a1636066bf Improve test coverage and small cleanup
- freeze default objects
- enforce and test required arguments
2016-12-25 16:59:46 -05:00
Francis Gulotta
8187218d4b Cover passing bad input to update and fix docs 2016-12-24 23:20:50 -05:00
Francis Gulotta
569bb58ea2 Fix canceling of read poller 2016-12-23 18:50:37 -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
efee0cd46f remove pre 4.0 stuff 2016-12-20 20:56:11 -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
cd6a065ec9 Add 4.0.7 info 2016-12-12 00:00:55 -05:00
Francis Gulotta
c2b840219d don't ship the changelog 2016-12-11 19:44:56 -05:00
Francis Gulotta
adccc6dfde [unix] Correct error messages on .set unix bindings 2016-12-11 18:48:43 -05:00
Francis Gulotta
61d44cd39d Fix baud rate parsing in serialport-terminal
Fixes #1023
2016-12-11 12:47:17 -05:00
Francis Gulotta
9ed782e8eb Auto generate authors file from git-extras 2016-12-10 14:11:17 -05:00
Francis Gulotta
b80025ea10 Merge pull request #1018 from munyirik/win32read
Adding WindowsBinding reading
2016-12-10 13:15:48 -05:00
Anton Litvinov
f24110b196
Refactoring of EIO_List for Windows: … (#1019)
* Refactoring of EIO_List for Windows:  …
1. use single API -- SetupAPI directly without COM-object
2. supply ResultItem with vendorId, productId and locationId (issue #877)
3. solve problem with pnpId not being returned on some systems
2016-11-27 22:09:24 -05:00
Munyiri Kamau
91d7f4a55c Remove space before function parentheses 2016-11-21 19:11:04 -08:00
Munyiri Kamau
72768179df Fix build and test issues + updates based on review feedback
- Fix CI failure to build
- Tests (including read) now pass locally
- Changes based on review feedback
2016-11-21 16:30:24 -08:00
greenkeeperio-bot
8b52112004 chore(package): update eslint to version 3.10.0
https://greenkeeper.io/
2016-11-19 11:29:45 -05:00
Francis Gulotta
ef709d7dd2 Merge pull request #1015 from Mike-Dax/electron-binaries
Electron binaries
2016-11-19 11:17:17 -05:00
Francis Gulotta
90ffa54905 Merge pull request #1017 from EmergingTechnologyAdvisors/greenkeeper-readable-stream-2.2.2
readable-stream@2.2.2 breaks build 🚨
2016-11-19 10:53:59 -05:00
Michael Orenstein
e442963e32 Added electron builds to travis and appveyor. 2016-11-18 20:54:30 +10:00
Munyiri Kamau
975b270ba3 Adding WindowsBinding reading 2016-11-16 19:30:47 -08: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
Francis Gulotta
908b75356e Add info for 4.0.6 release 2016-11-11 00:23:17 -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
d96010ad55 Add docs about error handling 2016-11-06 14:05:28 -05:00
Francis Gulotta
3ca8d5c0f9 fix codecov for appveyor 2016-11-06 02:05:50 -05:00
Francis Gulotta
777cd99619 Ensure we always call callbacks asynchronously
- Some code cleanup too
- docs on debugging + some more debugging
2016-11-06 01:46:34 -04:00
Francis Gulotta
27788ceae9 Stop autoOpening on next tick
This allows for catching TypeErrors when open gets called

 - Change MockBinding to properly throw and return errors on open
 - Enforce bindings throwing on empty string paths
2016-11-06 00:23:29 -04:00