Commit graph

11 commits

Author SHA1 Message Date
Francis Gulotta
50f967e788
fix: bindings.close() should cause a canceled read error (#1972)
`stream` seems unaffected by this but other future interfaces may not be so forgiving.

- removed the unused disconnect handler that we passed to bindings in tests.
- moved shouldReject to a test global
- unit tested unixRead
2019-11-09 21:46:21 -05:00
Francis Gulotta
b1cc840e5a
fix: enabling disabled tests rename all pkgs to lib (#1941)
We weren't calling a few more tests and I standardized the package layout so this is harder to miss.
2019-09-24 22:03:13 -04:00
Francis Gulotta
d4f15c0a09
chore: remove node6 support and upgrade codebase (#1851)
- use async functions
- use Object.entries/Object.values
- use Object spreading

BREAKING CHANGE: bindings now use async functions so they’ll never throw, only reject
2019-05-01 21:19:29 -04:00
Francis Gulotta
e883f3b166
chore(packages): upgrade packages and add global outdated command (#1845)
- adds `npm run outdated` to our scripts that ensures every package in the monorepo is checked for outdated npm packages.
- upgrade nan for node 12 support
- upgrade debug and promirepl (no major changes)
- upgrade mocha and nyc
2019-04-26 19:25:43 -04:00
Francis Gulotta
f123d2745f chore: linting - a much more reasonable line length 2018-09-15 05:02:59 -04:00
Francis Gulotta
7cee2020f1
chore: use Prettier for formatting (#1635)
This is a crazy diff that's unreadable. Prettier has gained a lot of traction I personally like it and a lot of code looks like this these days. It also supports linting and formatting that eslint doesn't on its own. That alone helps keep the code more standard. This PR is equivalent of ripping off a bandaid.

- Add prittier
- `npm run format`
2018-08-25 19:05:56 -07:00
Francis Gulotta
dad88ce899
chore: drop node 4 and upgrade to node 6 features (#1633)
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
2018-08-25 18:41:39 -07:00
Francis Gulotta
46d798d63c chore(package): upgrade packages
`standard` is breaking on the new eslint, will need to to revaluate linting rules without it
2018-06-25 03:00:55 -04:00
Francis Gulotta
4fc1404c8c [all] Unify the serialport.list output (#1266)
- [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
2017-07-29 19:40:39 -04:00
Francis Gulotta
61e23d0907 [all] Have drain wait for pending JS write operations before calling system drain
This should allow drain to be a lot easier to use.

Bonus:
- More logging!
- Bluebird in tests with it's great long stack traces!
2017-07-16 22:05:58 -04:00
Francis Gulotta
b822721855 refactor some test logic 2017-07-16 16:21:08 -04:00