jykim
602793dcd0
Add null check code
2018-01-15 13:14:46 -05:00
greenkeeper[bot]
bc46149b27
chore(package): update prebuild to version 7.0.0
2017-12-09 15:42:35 -05:00
Francis Gulotta
f7eb2f0df4
feat(parsers): ByteLength is now more efficient ( #1402 )
...
And better documented
2017-11-16 12:50:48 -05:00
Francis Gulotta
dcd256d27a
docs(readyParser): correct the required parameters ( #1392 )
2017-11-04 23:48:09 -04:00
Francis Gulotta
f8f3ce59bb
fix(docs): Put gitter link back
2017-10-31 23:53:26 -04:00
Francis Gulotta
60fc047289
feat(docs): Switch to JSDOC docs not in the readme ( #1383 )
...
- Improve a few docs here and there
- Rename the repo
- Remove the authors field in the package.json
2017-10-31 23:42:59 -04:00
Francis Gulotta
22a36b195a
v6.0.4
2017-10-25 22:55:45 -04:00
kimushu
6f3afbe5a1
fix(windows): bad parameter for ReadThread (windows) ( #1377 )
2017-10-24 10:43:09 -04:00
Francis Gulotta
8f650c344e
fix(packages): just-extend isn't necessary anymore ( #1376 )
2017-10-23 20:44:06 -04:00
Francis Gulotta
4759689f2a
v6.0.3
2017-10-22 12:02:47 -04:00
Francis Gulotta
573ff55bed
chore(packages): Upgrade debug fix sinon ( #1372 )
...
- Added `just-extend` because it'a broken dep of a dep in sinon
2017-10-22 11:54:27 -04:00
Francis Gulotta
6405538efe
docs(README): change security scanner badge
2017-10-22 11:36:13 -04:00
Francis Gulotta
13621f3080
v6.0.2
2017-10-22 11:11:15 -04:00
Francis Gulotta
af32149c4d
Bump to 6.0.1 for testing
2017-10-19 22:29:14 -04:00
kimushu
c1d9d88aa6
fix(windows): Fix async handle leak ( #1367 )
...
Fixes event loop weirdness in #1363
2017-10-18 14:03:22 -04:00
kimushu
0e4b1f9fb4
fix(windows): Fix read & write bugs for windows ( #1364 )
...
* Fix OVERLAPPED initialization
* Fix buffer overrun for writing and reading
* Remove unsafe memset for non-POD structures
* Fix thread handle leak
2017-10-16 10:10:16 -04:00
Francis Gulotta
6ed7b3be38
docs(README): fix api links
2017-10-09 18:49:40 -04:00
Francis Gulotta
a972686079
docs: Collapse the beta changes in changelog and upgrade guide
2017-10-09 18:46:48 -04:00
Francis Gulotta
af97b0977e
Bump to v6.0.0
2017-10-09 18:33:27 -04:00
Evgeni Milev
4ff9c67dc4
feat(windows): Add ERROR_INVALID_PARAMETER to supported bindings errors ( #1354 )
...
Error message according the Microsoft documentation:
ERROR_INVALID_PARAMETER = 87 -> The parameter is incorrect.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx
2017-10-08 11:19:06 -04:00
Francis Gulotta
dffa9d5e00
Bump to 6.0.0-beta3
2017-10-07 09:37:30 -04:00
greenkeeper[bot]
530247ac32
chore(package): update sinon to version 4.0.0 ( #1348 )
2017-10-07 09:34:45 -04:00
greenkeeper[bot]
a5c01ffa1e
chore(package): update mocha to version 4.0.0 ( #1352 )
2017-10-07 09:34:15 -04:00
Frank Lemanschik
bcb492f386
feat(parsers): Add cctalk parsers ( #1342 )
...
* Added Working CCTalk Parser
* add basic tests
* compiled docs for cctalk parser
2017-10-01 17:03:38 -04:00
Francis Gulotta
a3b8d35597
feat(open): Throw on incorrect baudrate option ( #1347 )
...
This was causing a lot of issues, lets make it easier on people.
2017-09-24 17:14:58 -04:00
Francis Gulotta
c590021f62
chore(packages): upgrade eslint and sinon ( #1343 )
2017-09-22 09:41:44 -04:00
Francis Gulotta
48509012f5
Update publishing instructions
2017-09-07 00:24:36 -04:00
Francis Gulotta
3faadac88a
fix(docs): add missing parsers to properties list
2017-09-07 00:24:29 -04:00
Francis Gulotta
ad8abf6584
6.0.0-beta2
2017-09-06 22:15:27 -04:00
Dustin Long
69de5950a6
fix(windows): Asynchronous callbacks for reading and writing ( #1328 )
...
Instead of ReadFile and WriteFile, which block and transfer data synchronously, use ReadFileEx and WriteFileEx, which both allow async callbacks. In addition, change how timeouts are used for ReadFile*, using an unlimited timeout for the first byte, and no timeout for the rest of the data in the input buffer. This removes the need to poll entirely, while still retrieving all data available in the input buffer. In both cases, the I/O operations happen in their own threads, since Windows requires IOCompletion callbacks to wait for their calling thread to be in an "alertable wait state".
Fixes #1221
2017-09-06 22:10:03 -04:00
Francis Gulotta
c7a3be4164
Revert "fix(windows): Asynchronous callbacks for reading and writing on Windows" ( #1323 )
...
This reverts commit 2c2a8b688c .
2017-09-02 18:21:47 -04:00
Dustin Long
2c2a8b688c
fix(windows): Asynchronous callbacks for reading and writing on Windows ( #1313 )
...
Instead of ReadFile and WriteFile, which block and transfer data synchronously, use ReadFileEx and WriteFileEx, which both allow async callbacks. In addition, change how timeouts are used for ReadFile*, using an unlimited timeout for the first byte, and no timeout for the rest of the data in the input buffer. This removes the need to poll entirely, while still retrieving all data available in the input buffer. In both cases, the I/O operations happen in their own threads, since Windows requires IOCompletion callbacks to wait for their calling thread to be in an "alertable wait state".
Fixes #1221
2017-09-02 16:10:53 -04:00
Marcus Wittig
bf251a9703
fix: Fixed typo in upgrade guide ( #1321 )
...
see also http://www.dictionary.com/browse/per-say
2017-09-02 10:58:34 -04:00
Francis Gulotta
722d589630
chore(package): update eslint to version 4.5.0 ( #1315 )
2017-08-31 10:48:18 -04:00
Francis Gulotta
1ee4e5ad19
chore(package): update debug to version 3.0.1 ( #1314 )
2017-08-31 10:47:57 -04:00
Francis Gulotta
4e266e52ca
chore(package): update sinon to version 3.2.1 ( #1316 )
2017-08-30 13:26:23 -04:00
greenkeeper[bot]
4987750a18
fix(package): update debug to version 3.0.0 ( #1292 )
2017-08-20 10:57:32 -04:00
Francis Gulotta
76b71913f4
fix(docs): Add a note about windows support
...
Closes #1299
2017-08-11 19:24:22 -04:00
Francis Gulotta
e83ec4e585
fix(docs): correct default highWaterMark to 65536 bytes
2017-08-10 16:30:33 -04:00
Francis Gulotta
335ede97fa
6.0.0-beta1
...
### Bug Fixes
* **linux:** The productID should be a number not a description string ([#1279 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1279 )) ([bf46f68 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/bf46f68 ))
* **tests:** fixup for [#1279 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1279 ) ([#1285 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1285 )) ([56074f6 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/56074f6 ))
* **windows:** Add option to disable RTS ([#1277 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1277 )) ([5b8d163 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/5b8d163 ))
* **windows:** Parse more types of pnpIds ([#1288 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1288 )) ([0b554d7 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/0b554d7 )), closes [#1220 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1220 )
### Chores
* **binaries:** Lets switch to prebuild! ([#1282 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1282 )) ([8c36e99 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/8c36e99 ))
### Features
* **test:** tone down codecov comments ([#1289 ](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1289 )) ([749ffac ](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/749ffac ))
### BREAKING CHANGES
* **binaries:** I'm considering the switch to `prebuild` a breaking change because it's substantially changes our install processes. It's also possible the install flags to ensure downloading or building from source has changed slightly. That's not our api per say, but it's enough.
* **windows:** We previously hard coded to have RTS on for windows at all times it now default to off.
2017-08-07 18:38:00 -04:00
Francis Gulotta
749ffacd53
feat(test): tone down codecov comments ( #1289 )
2017-08-06 23:35:33 -04:00
Francis Gulotta
0b554d7368
fix(windows): Parse more types of pnpIds ( #1288 )
...
This should give us more serial numbers on windows.
fixes #1220
2017-08-06 23:21:37 -04:00
Francis Gulotta
5662df04b7
chore(changelog): Try out conventional-changelog ( #1287 )
...
Works great!
2017-08-06 22:22:52 -04:00
Francis Gulotta
902a62c8af
chore(docs): Update info about prebuild and contributing ( #1286 )
2017-08-06 21:37:25 -04:00
Francis Gulotta
56074f606f
fix(tests): fixup for #1279 ( #1285 )
2017-08-06 20:49:51 -04:00
Erik Kallen
bf46f682d4
fix(linux): The productID should be a number not a description string ( #1279 )
...
fix : #1278
2017-08-06 20:28:53 -04:00
greenkeeper[bot]
648a7f556a
chore(package): update sinon to version 3.0.0 ( #1280 )
2017-08-06 20:26:32 -04:00
Francis Gulotta
8c36e99694
chore(binaries): Lets switch to prebuild! ( #1282 )
...
- Build once on each platform (win32, win64, linux32, linux64, osx)
- upload to github
- Binaries for windows are megabytes smaller!
- Now 60 binaries per release!?!?!?!?
- Builds are much easier to manage
- Removes the bundled node-pre-gyp which was big `npm i --production` went from 11mb to 4.9Mb. `prebuild-install` is still larger than all our binaries but smaller than `node-pre-gyp` none the less.
BREAKING CHANGE: I'm considering this a breaking change because it's substantially changes our install processes. It's also possible the install flags to ensure downloading or building from source has changed slightly. That's not our api per say, but it's enough.
2017-08-06 20:26:19 -04:00
Joshua Shireman
5b8d163861
fix(windows): Add option to disable RTS ( #1277 )
...
* Add option to disable RTS on Windows
* Add support for XON / XOFF on Windows. This is probably not feature complete in terms of missing the XonChar, XoffChar, XonLim fields of DCB, but I am not as familiar with this aspect of serial comms.
BREAKING CHANGE:
We previously hard coded to have RTS On for windows at all times.
2017-08-06 14:57:33 -04:00
Francis Gulotta
92c7dd4bfd
docs: Fix missing new thanks to @patrykkalinowski
2017-07-31 23:05:40 -04:00