Libraries, LTS support and a large enough amount of users have all dropped node 4. As part of this years [J5 summit](https://github.com/rwaldron/johnny-five/issues/1463) we discussed supporting all Active, Maintenance and Current LTS releases only. This will greatly reduce maintenance overhead and make this maintainer a little bit more happy. The last version of serialport to support node 4 will be `serialport@6`.
- remove "use strict;"
- add engines directives to all package.json's
- drop safe-buffer as they're all safe now
- let eslint-plugin-node use the engines directive
- use new language features in a few random places to feel better about this
- stop including the package-lock.json
- upgrade a few packages
BREAKING: Dropping support for node 4
* chore: split out more packages
- `npm run format` to fix eslint issues
- fix repo links on parser packages
- ensure we're always rebuilding c++ on CI
- `@serialport/binding-abstract` as an abstract class for all bindings
- `@serialport/binding-mock` for a mock binding package
- `@serialport/stream` for our traditional stream interface
- `@serialport/bindings` for working with osx, windows and linux OS serialports
* Adding in port selection to serialport-term.
This makes the terminal command much more useable when you need to open
it multiple times in a row; especially when the names of the serialports
are rapidly changing.
* Fix the command line arguments.
* Fixing eslint mistakes.
* Make all of the negative errors positive in serialport-terminal.
- [osx] remove the 0x from productID and locationId and vendorId
- [linux] remove the starting 0x from any values, small refactor
- [linux] Fixup output using the hex encoded fields
- [windows] Grab the serial number from the pnp id
- Isolate list functions to their own platform files (c++)
- Better ensure our serialports fields are present
closes#1220
- [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
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
* 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.
- npm test now runs everything but stress tests
- TEST_PORT is optional but now requires an arduino, the travis provided OS X serial port wasn't worth it
- do some improvements to coverage
- Drop grunt for file size and complexity
- Eslint has dropped 0.10
I don't think Istanbul can detect coverage on sandboxed modules like our mocked bindings. Moving to an isolated binding will improve this situation.
I also don't think coveralls is working on travis
- Constructor now throws errors when given invalid options
- The Constructor’s callback is given to `.open()` if `openImmediately` is set
- Depreciation warning when using the old style SerialPort.SerialPort
- Better argument handling
- Switch to commander as optimist is deprecated
- more output formats for serial port list
- give serialportterm a list option