serialport
Advanced tools
Changelog
Version 5.0.0 🎉
Nearly a year in the making 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
! 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.
Some major cpu performance gains on unix platforms can be found and we're less buggy and better performing on Windows too.
With 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.
See our upgrade guide for detail on what to change to upgrade your app to use serialport@5.0.0
. It's not much!
Thank you to the 25 people who committed code and documentation and every person who submitted bug reports and tested changes!
Notable Changes
Features
isOpen
is now a property #899SerialPort.list
now has more consistent output across all platforms.SerialPort.list
returns a promise if a callback is not provided thanks to @MikeKovarik for bug fixesserialport-repl
script for debugging and testing.#get
to retrieve modem status flags thanks to @jgillick!MockBinding
object for testing serialports in your project. Used internally too!.drain
now queue behind port open and in progress writes reported by and with lots of testing help from @tuna-f1shhighWaterMark
to 64k to match fs.ReadStream
require('serialport/test')
disconnect
event. The close
event now fires with a disconnect error object in the event of a disconnection.uglify-es
thanks to @rwaldronSerialPort.list
is now faster and less resource intensive thanks to @akaJes!ttyAP
subsystem to serialport list thanks to @fly19890211 for reporting itSerialPort.list
now returns the tty
instead of the cu
thanks to @kishinmanglaniopen()
to better support custom baudrates.list
for Windows so it's significantly smaller thanks to @ZenseyFixes
serialport-terminal
thanks to @radio-miskovice for reporting it!We also had help testing, debugging, and designing from; @alaq @arve0 @techninja @noopkat @HipsterBrown and more!
Changelog
Version 4.0.7
serialport-terminal
thanks to @radio-miskovice for reporting it!SerialPort.list
to be a lot smaller and pickup vendorId, productId and locationId thanks to @zensey for #877!