UNPKG

21.4 kBMarkdownView Raw
1<a name="6.0.0"></a>
2# [6.0.0](https://github.com/EmergingTechnologyAdvisors/node-serialport/compare/5.0.0...v6.0.0) (2017-10-09)
3
4
5### Features
6
7* **open:** Throw on incorrect baudrate option ([#1347](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1347)) ([a3b8d35](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/a3b8d35))
8* **parsers:** Add cctalk parsers ([#1342](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1342)) ([bcb492f](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/bcb492f))
9* **test:** tone down codecov comments ([#1289](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1289)) ([749ffac](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/749ffac))
10* **windows:** Add ERROR_INVALID_PARAMETER to supported bindings errors ([#1354](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1354)) ([4ff9c67](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/4ff9c67))
11
12
13### Bug Fixes
14
15* **docs:** Add a note about windows support ([76b7191](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/76b7191)), closes [#1299](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1299)
16* **docs:** add missing parsers to properties list ([3faadac](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/3faadac))
17* **docs:** correct default highWaterMark to 65536 bytes ([e83ec4e](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/e83ec4e))
18* **docs:** Fixed typo in upgrade guide ([#1321](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1321)) ([bf251a9](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/bf251a9))
19* **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))
20* **package:** update debug to version 3.0.0 ([#1292](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1292)) ([4987750](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/4987750))
21* **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))
22* **windows:** Add option to disable RTS ([#1277](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1277)) ([5b8d163](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/5b8d163))
23* **windows:** Asynchronous callbacks for reading and writing ([#1328](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1328)) ([69de595](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/69de595)), closes [#1221](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1221)
24* **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)
25
26
27### Chores
28
29* **binaries:** Lets switch to prebuild! ([#1282](https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1282)) ([8c36e99](https://github.com/EmergingTechnologyAdvisors/node-serialport/commit/8c36e99))
30
31### BREAKING CHANGES
32
33* **binaries:** We switched 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.
34* **windows:** We previously hard coded to have RTS on for windows at all times it now default to off.
35
36
37Version 5.0.0 🎉
38-------------
39Nearly [a year in the making](https://github.com/EmergingTechnologyAdvisors/node-serialport/compare/4.0.7...5.0.0-beta9) Node SerialPort 5.0.0 is a major rewrite that improves stability, compatibility and performance. The api surface is similar to version 4 there have been a number of changes to ensure consistent error handling and operation of a serial port. Notably we are now a [`Stream`](https://nodejs.org/api/stream.html)! We can also introduce a bindings layer. A small low level api to provide access to underlying hardware. External bindings written in other languages or targeting other platforms can now be used.
40
41Some major cpu performance gains on unix platforms can be found and we're less buggy and better performing on Windows too.
42
43With this release we are now only supporting LTS nodejs platforms and we are dropping NodeJS 0.10, 0.12, 5 and 7 support. We loved directly supporting so many platforms but it was getting in the way making a solid library.
44
45See our [upgrade guide](./UPGRADE_GUIDE.md) for detail on what to change to upgrade your app to use `serialport@5.0.0`. It's not much!
46
47Thank you to the 25 people who committed code and documentation and every person who submitted bug reports and tested changes!
48
49Notable Changes
50- [all] Streams rewrite, node serialport is now a node stream! 🎉
51- [all] Drop NodeJS 0.10, 0.12, 5, and 7 support
52- [all] Add node 8 support (we now only support LTS node versions)
53- [all] Introduce a binding layer to provide a common low level interface to work with different platforms.
54- [unix] New read/write subsystem. Write CPU dropped from 100% to 0-2%. @reconbot (Thanks to @indutny for getting me unstuck many times!)
55- [windows] Rewrite reading so it's pausable thanks to @munyirik
56- [docs] An overhaul how we document the api leveraging JSDOC
57- [docs] An overhaul of the format and language in our docs thanks to @LappleApple
58
59Features
60- [all] `isOpen` is now a property #899
61- [all] `SerialPort.list` now has more consistent output across all platforms.
62- [all] `SerialPort.list` returns a promise if a callback is not provided thanks to @MikeKovarik for bug fixes
63- [all] A promise aware `serialport-repl` script for debugging and testing.
64- [all] add `#get` to retrieve modem status flags thanks to @jgillick!
65- [all] Add a `MockBinding` object for testing serialports in your project. Used internally too!
66- [all] Add electron precompiled binaries thanks to @Mike-Dax
67- [all] Add regex stream parser and tests @jessicaquynh
68- [all] Allow reopening after an open error #910
69- [all] calls to `.drain` now queue behind port open and in progress writes reported by and with lots of testing help from @tuna-f1sh
70- [all] Change parsers to be transform streams #922
71- [all] Change the default `highWaterMark` to 64k to match `fs.ReadStream`
72- [all] Conform to NodeJS error message formats
73- [all] Exposed mocking serialport via `require('serialport/test')`
74- [all] Have drain wait for pending JS write operations before calling system drain thanks to @digitalhack for reporting it
75- [all] port.path is now read only #898
76- [all] Refactor internals to make use of es6 and promises
77- [all] Remove lowercase options #898
78- [all] Remove the c++ write queue
79- [all] Remove unnecessary dependencies and polyfills thanks to @mscdex
80- [all] Remove v8 deprecation warnings thanks to @indutny again
81- [all] Removed the `disconnect` event. The `close` event now fires with a disconnect error object in the event of a disconnection.
82- [all] SerialPort can now be compressed with `uglify-es` thanks to @rwaldron
83- [all] update bindings to version 1.3.0
84- [all] Upgrade debug and node-pre-gyp
85- [all] Upgrade to non deprecated buffer methods
86- [docs] Add more installation notes on sudo, windows 10, electron and node 7
87- [docs] Add socketio example @jessicaquynh
88- [docs] Electron build docs #965 via @chalkers
89- [docs] Mark new features in 5.0.0 with the fact they started in 5.0.0
90- [docs] Update parser docs to be correct #970 via @jacobq
91- [linux] `SerialPort.list` is now faster and less resource intensive thanks to @akaJes!
92- [linux] Add the `ttyAP` subsystem to serialport list thanks to @fly19890211 for reporting it
93- [osx] `SerialPort.list` now returns the `tty` instead of the `cu` thanks to @kishinmanglani
94- [unix] Flush now gives errors and flushes tx and rx #900
95- [unix] Move setting up the baudrate to the end of the `open()` to better support custom baudrates
96- [windows] Refactoring of `.list` for Windows so it's significantly smaller thanks to @Zensey
97
98Fixes
99- [all] Fix baud rate parsing in `serialport-terminal` thanks to @radio-miskovice for reporting it!
100- [all] Fix memory leak during opening a port thanks to @indutny
101- [all] fixed a crash when pausing while reading thanks to @bminer and @baffo32 and others to debug and fix this
102- [all] Upgrade nan to fix compile issues on some platforms thanks to @thom-nic
103- [docs] fixed a typo thanks to @amilajack
104- [docs] Spelling fixes via @Awk34
105- [unix] fix a bug when poller errors would be unhandled thanks to @thiago-sylvain for reporting
106- [windows] Fix file handle leak during opens when errors occur thanks to @enami
107- [windows] Fix flush behavior using PurgeComm fixing #962 via @samisaham
108- [windows] Fix unhandled promise rejection when calling read on Windows
109- [windows] Remove read and write timeouts solving #781 via @giseburt
110
111We also had help testing, debugging, and designing from; @alaq @arve0 @techninja @noopkat @HipsterBrown and more!
112
113Version 4.0.7
114-------------
115- [all] Fix baud rate parsing in `serialport-terminal` thanks to @radio-miskovice for reporting it!
116- [windows] Refactor `SerialPort.list` to be a lot smaller and pickup vendorId, productId and locationId thanks to @zensey for #877!
117
118Version 4.0.6
119-------------
120- [all] Upgrade nan to fix compile issues on some platforms thanks to @thom-nic
121- [all] Upgrade debug and node-pre-gyp
122
123Version 4.0.5
124-------------
125- [windows] Fix file handle leak during opens when errors occur thanks to @enami
126- [all] Fix memory leak during opening a port thanks to @indutny
127
128Version 4.0.4
129-------------
130- Add precompiled binaries for node 7
131
132Version 4.0.3
133-------------
134- Switch to the lie promise library as it's smaller and mimics nodejs's promise closer
135- Fix a bug that prevented reopening a port after an open error
136
137Version 4.0.2
138-------------
139- [unix] Fix a bug when we'd crash when pausing during a read
140
141Version 4.0.1
142-------------
143- [linux] Do not replace the native Promise when it is available thanks to @zewish for the fix
144
145Version 4.0.0
146-------------
147- Requiring `serialport` now returns the SerialPort constructor function instead of a factory object. `SerialPort.SerialPort` is now deprecated.
148- `SerialPort` constructor now throws on argument errors immediately.
149- `.write(writeCallback)` now only calls it's callback once after the entire write operation, it used to be called for each write cycle and return the bytes written. This reduces the number of callbacks by hundreds of thousands over a megabyte at low bandwidth.
150- Disconnections now always attempt to close the port, and you'll always get a `close` event after a `disconnect` event
151- All callbacks are called in the context of the port, `this` now equals the port.
152- Removed `openImmediately` from the constructor's api, the functionality is now named `autoOpen` on the options object.
153- Removed extraneous flow control settings from the `flowControl` option, use the specific options to set these flags now.
154- Removed undocumented callbacks from the options object `disconnectedCallback` and `dataCallback`
155- Renamed `serialportlist` to `serialport-list`
156- Renamed `serialportterm` to `serialport-term`
157- Added a contributors guide
158- Added our first Arduino required integration tests
159- [unix] `.drain` and `.set` now properly report errors
160- [unix] Ports are now locked by default with the new `lock` options matches windows default behavior
161- [windows] `.update()` now supports windows for changing baud rates
162- [windows] Fixed a bug where we weren't properly opening ports (provides better support virtual com ports too) thanks to @RogerHardiman
163- [windows] known issue `lock: false` doesn't work (no change in behavior)
164
165Version 3.1.2
166-------------
167- Documentation around "Illegal Instruction" errors
168- Resolve some ambiguities around publishing that was causing some issues on some versions and platforms of npm and node
169- [linux] bug fix in `.list()` where we weren't filtering out non block devices that are named like serial ports
170- [unix] Better unix error messages
171- [unix] Refactor `setBaudrate` for Unix making it easier for custom baudRate support
172- [unix] Update now has less memory leaks, documentation and better error messages
173- [windows] Better error messages for opening ports
174
175Version 3.1.1
176-------------
177- fix an issue with bundled deps for node-pre-gyp on npm
178
179Version 3.1.0
180-------------
181- Upgrade nan and fix warnings for node 6.0
182- Update the cli tools. serialport-term can now list ports, serialport-list can now output in different formats
183
184Version 3.0.1
185-------------
186- Change from BlueBird to es6-promise to save 9.5MB from the package size (19M -> 9.5) and 130k bundle size (186.1kb -> 55.2kb)
187- Experimental node 6 support
188
189Version 3.0.0
190-------------
191- `close` and `disconnect` events no longer call `removeAllListeners` and removes your event listeners. This was particularly bad for the `error` event. This is the only change and if you didn't have a special code to deal with this behavior you should probably upgrade from v2.1.2
192
193Version 2.1.2
194-------------
195- Start bundling node-pre-gyp but upgrade it to the latest as the previous version doesn't install
196
197Version 2.1.1
198-------------
199- `.list` errors are consistent across platforms and no longer has blocking `statSync` calls
200- Stop bundling node-pre-gyp to prevent issues when it's already installed
201- Internal restructuring
202
203Version 2.1.0
204-------------
205- Major refactor, bug fixes and docs improvements thanks to @ecksun, @fivdi, @gfcittolin, @jacobrosenthal, @mhart, @nebrius, @pabigot, @paulkaplan, @reconbot, @rodovich, @rwaldron, @sayanee, @tigoe and everyone who reported and helped debug issues!
206- Fix binary paths to confirm with modern standards
207- Integration tests on CI's that support it or for the folks at home with an arduino handy
208- Upgrade to nan-2.2.1 for memory leak fixes and node 6 compatibility (still not supported)
209- Confirm nw.js and electron compatibility
210- Make the outpout of `.list` consistent between platforms and docs
211- Define ambiguous flow control flags and document them
212- Fix support systems who provide 0 as a valid file descriptor
213- Fix race conditions when opening and closing ports that led to errors while reading and writing while closing or opening the port.
214- [unix] Fix a double open bug on unix that would cause opening and closing ports repetitively to error.
215- [unix] Listing serialports on linux now include more ports (including bluetooth devices eg. `/dev/rfcommXX`) and have less bugs in the output
216- [windows] Remove deprecated BuildCommDCB for windows 10 support
217- [windows] Fix a memory leak on windows
218- [windows] Fix a 100% cpu and possible hang bug when ports were disconnected on windows.
219
220Version 2.0.6
221-------------
222- Add 5.x build to matrix, thanks @deadprogram
223- Re add nmpignore, thanks @rwaldron
224- Swap to upstream version of node-pre-gyp-github
225
226Version 2.0.5
227-------------
228- Fix linux port listing crash since 2.0.3 refactor, thanks @monkbroc
229
230Version 2.0.4
231-------------
232- Fix heap corruption issue affecting windows users since 2.0.0, thanks @kunalspathak
233
234Version 2.0.3
235-------------
236- Move node-pre-gyp binaries away from Amazon S3 to Github Releases page
237- Fix for missing node-pre-gyp binaries, especially for windows users, since the 2.0.0 refactor which forced windows users to build from source -- generally failing due to lack of dependencies
238- Unix port listing moved away from udev which was not available on all platforms, to whitelisting ttyS ttyACM ttyUSB ttyAMA devices, see #610
239
240Version 2.0.2
241-------------
242- Cleanup minor Unix gcc warnings, Thanks @rwaldron
243
244Version 2.0.1
245-------------
246- El Capitan Support, thanks @tmpvar
247
248Version 2.0.0
249-------------
250- Upgrade to NAN2 to support Node 4 support. Technically not api breaking, though NAN2 requires gcc 4.8 which for Pi Wheezy users at the very least, would be breaking. For those affected users looking to utilize serialport 2.x.x and Node 4 see https://github.com/fivdi/onoff/wiki/Node.js-v4-and-native-addons
251
252Version 1.7.4
253-------------
254- Fix OSX 10.10 build errors
255
256Version 1.7.3
257-------------
258- Fix OSX 10.10 build errors
259
260Version 1.7.2
261-------------
262- Fix OSX 10.10 build errors
263
264Version 1.7.1
265-------------
266- Fixed breaking issues in underlying code. (@voodootikigod)
267
268Version 1.7.0
269-------------
270- Fix for #518 and #498 If you pass to SerialPort function (constructor) the same object for argument "options", inside SerialPort will use it as internal object and adds handlers to it. That causes only one callback to work on different SerialPort instances. (@bullmastiffo)
271- Update README.md #515 (@arahlf)
272- Fix a memory leak in SerialportPoller::New (@jpilet)
273- unix support for update baudrate #502 (@jacobrosenthal)
274- set cloexec after open, possible fix for #468 (@jacobrosenthal)
275- Added hang up on close option to constructor. #495 (@jbendes)
276- Upgraded NAN to 1.8.4 due to complaints from io.js 2.x users. (@imyller)
277
278Version 1.6.1
279-------------
280- Upgraded to NAN 1.7.0
281- #476 adding break signal
282
283Version 1.6.0
284-------------
285- Long standing issue resolved thanks to @jacobrosenthal for adding control signals into the serialport. YAY!
286- Fix for #426
287- Ability to return from inside loop #453
288- Emits for close/disconnect. #452
289
290Version 1.5.0
291-------------
292- Fixed to work with io.js and node 0.11.x by upgrading to recent nan 1.6.2
293
294
295Version 1.4.8
296-------------
297- Simple bump for the binary.
298
299Version 1.4.7
300-------------
301- Fix for Issue #398 - Dropped sent characters on OSX and Linux
302- Fix for Issue #387 - added isOpen
303- removed a residual comment
304- Added osx control signalling
305- Fix for Issue #401
306- Fix for double write callbacks.
307- detect a serialport disconnect on linux.
308
309Version 1.4.6
310-------------
311- Emit error on serialport when explicit handler present. Fixes gh-369
312- Fix for windows and Node 0.11.13 (atom-shell)
313- Fix for broken Travis-CI build.
314
315Version 1.4.5
316-------------
317- Identified and report issue to node.js core about recent 0.11.x system.
318- Removed support for 0.8.x
319- Updated dependencies
320
321Version 1.4.4
322-------------
323- Fix for delete error.
324
325Version 1.3.0
326-------------
327- Merged NAN integration for Node 0.8->0.11+ compatibility (#270)
328
329Version 1.2.5
330-------------
331- Fixed an issue with pool handlers being global instead of instance isolation (Issue #252 and #255 thanks: foobarth !!! )
332
333
334Version 1.2.4
335-------------
336- Resolved parity error under linux as reported here: https://github.com/voodootikigod/node-serialport/issues/219
337
338
339Version 1.1.3
340-------------
341- Remove ATL dependency on Windows (added Visual Studio Pro requirement)
342- Update build instructions
343- Four small bugfixes
344
345Version 1.0.7
346-------------
347- Guaranteed in-order delivery of messages thanks to Jay Beavers and bnoordhuis
348
349Version 1.0.6
350-------------
351- Support higher baud rates in Mac OS X
352
353Version 1.0.5
354-------------
355- Added flush support.
356
357Version 1.0.4
358-------------
359- Fix for arduino firmata support on windows thanks to @jgautier.
360
361Version 1.0.3
362-------------
363- Fixed issue 65 - https://github.com/voodootikigod/node-serialport/issues/65
364- Added note in readme about what is required for the system to be able to compile module, should solve 90% of issues.
365
366Version 1.0.2
367-------------
368- Fixed issue 59 - https://github.com/voodootikigod/node-serialport/issues/59
369
370Version 1.0.1
371-------------
372- Fixed items from Firmata
373- Added flexibility for options (camelcase or all lower)
374
375Version 1.0.0
376-------------
377- Added Windows support thanks to Joe Ferner.
378- Merged in the various underlying changes from node-serialport2 complete thanks to Joe Ferner for that!
379- Verified against known installations.
380
381
382Version 0.6.5
383-------------
384- Added SetBaudRate, SetDTR; Custom Baud Rates
385- New "close" listener when device being disconnected
386
387Version 0.2.8
388-------------
389- BufferSize fix for readstream (thanks jgautier, you rock)
390
391Version 0.2.7
392-------------
393- Make no port available be an exception not error emitted - Ticket #12.
394
395Version 0.2.5 - Version 0.2.6
396-----------------------------
397- Debugging issue with IOWatcher not holding in the event loop in node.js.
398- Converted to ReadStream instead of IOWatcher.
399
400Version 0.2.4
401-------------
402- Integrated arduino tests (rwaldron)
403- Integrated options bug fix (w1nk)
404- Integrated hardware flow control for crazier serial port action (w1nk)
405
406Version 0.2.3
407-------------
408- Something amazing that has since been lost and forgotten.
409
410Version 0.2.2
411-------------
412- Integrated enhanced version of arduino/readline that actually buffers the data (epeli)
413
414Version 0.2.1
415-------------
416- Refactored the parsing code upon data receipt, now allows for dynamic specification of how incoming data is handled.
417- Revised creation interface to use named parameters as an object versions positional parameters.
418
419Version 0.2.0
420------------
421- Upgraded to node v. 0.4.X compatibility
422
423All other version are not recorded.