Commit graph

153 commits

Author SHA1 Message Date
Francis Gulotta
df482d3af7 v9.0.2 2020-10-16 00:01:48 -04:00
Alec Mev
363d9f46b4
chore: Add preferUnplugged to keep the main package plugged in Yarn 2 (#2094) 2020-08-10 21:58:01 -04:00
Makarand Bauskar
4215122824
fix: while validating for offset, check for offset's value for NaN instead length (#2124) 2020-08-10 20:34:08 -04:00
Francis Gulotta
19fb5f8d2a v9.0.1 2020-08-07 21:15:51 -04:00
Francis Gulotta
fed9e9b8b9
chore: remove script that is now a package (#2121) 2020-08-07 21:11:32 -04:00
Francis Gulotta
dadfe554cf
chore: update package-lock.jsons even though we don’t really use them (#2123) 2020-08-07 21:11:09 -04:00
Noah Andrews
f4eeb51427
chore: Update prebuild-install, specify node-abi version (#2122)
This adds support for prebuilding for Electron 9. Explicitly specifying the node-abi version will make it easier to support
new node and electron versions in the future, since prebuild-install often takes a while to update its version of node-abi.
2020-08-07 20:51:41 -04:00
Francis Gulotta
2801301d14
fix: disconnects should now work again on unix based systems (#2120) 2020-08-06 23:58:50 -04:00
JumpT
38595d0763
docs: Fix doc param description error (#2106)
* fix space

* Make doc consistent with the code for `blinding`

* Update packages/stream/lib/index.js

Co-authored-by: Francis Gulotta <wizard@roborooter.com>

Co-authored-by: Francis Gulotta <wizard@roborooter.com>
2020-07-16 22:57:52 -04:00
Francis Gulotta
36d3abcaa9 v9.0.0 2020-05-10 01:21:17 -04:00
Francis Gulotta
e0c232c77a
chore: build on node 14 and drop node 8 and 32bit linux builds (#2079)
- Build binaries on node 14 and test on node 14
- Node 14 is no longer being built for 32bit linux, not much I can do.
- Node 8 is out of LTS so it’s gone https://github.com/nodejs/Release#release-schedule

BREAKING CHANGE: Dropping node 8 and 32bit linux builds
2020-05-10 01:16:58 -04:00
Francis Gulotta
485b6155c4 chore: upgrade nan and prebuild-install
- Upgrading nan lets us use prebuild to build for node 14
- Prebuild just fixed verbose
2020-05-10 00:05:36 -04:00
Francis Gulotta
9f8f8fce99 chore: upgrade commander and enquirer 2020-05-10 00:05:36 -04:00
Francis Gulotta
ab02f012d2
chore: upgrade prettier (#2077) 2020-05-09 23:22:40 -04:00
Francis Gulotta
53a1f844ae v8.0.8 2020-05-07 00:34:01 -04:00
Martijn Swaagman
6ee5c8471f
fix: reject on non-zero exit codes (#2046)
* fix: reject on non-zero exit codes
* fix: use more descriptive error message
2020-05-06 23:38:58 -04:00
Francis Gulotta
26659ff0f8 v8.0.7 2020-01-29 22:40:51 -05:00
Jeroen de Bruijn
2a59726843
fix: uncomment node shebang line in terminal package (#2023) 2020-01-28 23:16:44 -05:00
Pavel Kuzmin
4e3e4210d2 fix .prebuild-installrc format (#2008) 2020-01-05 09:18:39 -05:00
Francis Gulotta
1a087da8a6 v8.0.6 2019-12-25 16:05:14 -05:00
Pavel Kuzmin
16f9662339 fix: No prebuilt binaries found with electron-builder (#2003)
fixed problem  No prebuilt binaries found with electron-builder
2019-12-25 15:57:30 -05:00
Francis Gulotta
258574260f
chore: Unit test unixWrite (#1986)
- unit test unixWrite 100% code coverage
- found a bug where we’d always disconnect on write errors despite attempts to sometimes just have write errors, I didn’t fix it, I need to think if we can just rip one of those concepts out completely.
2019-11-09 23:38:17 -05:00
Francis Gulotta
17c30f19c1
chore: change bindings constructor option to be optional (#1987) 2019-11-09 23:37:56 -05:00
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
e978b7eb24
fix: stream required bindings-mock as a dep (#1970)
It is indeed a dev-dep. Only effects people not using `@serialport/stream` directly. Fix the package lock of serialport so lerna manages it.
2019-11-09 21:28:42 -05:00
greenkeeper[bot]
3423c415a0 chore(package): Update commander to the latest version 🚀 (#1978)
* fix(package): update commander to version 4.0.0

* chore(package): update lockfile packages/terminal/package-lock.json
2019-11-09 21:28:01 -05:00
Francis Gulotta
a0b80ad5f4
chore: improve our linter (#1971)
- makes the config file easier to understand
- bring in eslint:recommended
- finally we have `no-use-before-define` which finds a specific class of bugs we’ve suffered from
2019-10-29 14:19:58 -04:00
Francis Gulotta
20e180084a
docs: consolidate changelogs and update for 8x (#1967)
With learn fixed versioning having more than one changeling becomes unnecessary. This should be less confusing overall.


## [8.0.4](https://github.com/node-serialport/node-serialport/compare/v8.0.3...v8.0.4) (2019-10-27)

This is the first non beta release of serialport version 8! 🎉  The biggest change in 8x is our version numbers. We now user lerna's ["fixed versioning"](https://github.com/lerna/lerna#fixedlocked-mode-default) to allow for a much easier documentation experience. This makes all our packages share a version number when they're released. Our website now has versioned docs so you can see what they looked like for the version of serialport you're using today. (Check out our [7x docs](https://deploy-preview-24--serialport.netlify.com/docs/7.x.x/guide-about) if you still need them.)

With this change we've moved a centralized changelog (this file!) and we'll be moving older release notes here. We also moved the website to it's [own repo](https://github.com/serialport/website/).

A few breaking api changes have been introduced over the 8x beta releases. You can find out more about them in the [Upgrade Guide](https://github.com/serialport/node-serialport/blob/master/UPGRADE_GUIDE.md)

We dropped node6 support and now support node12 (and we work on node 13) which allowed us to migrate to async/await. The reduced a fair bit of code and was a welcome change.

Windows got a few notable bug fixes from contributors and RTS/CTS flow control should now work as expected.

And lastly our CI system has mostly been moved to GitHub Actions, they are much much faster than our travis/appveyor combo and cheaper too (free!). We still pay for Appveyor because we still use them with travis for binary builds. When that process is migrated we should be able to drop both services completely.

Thanks to @boneskull, @BryanHunt, @hipsterbrown, @Holger-Will, @icebob, @jacobq, @jowy, @krutkay, @maxvgi, @nornagon, @podarok, @reconbot, and @warp for their help with this release!
2019-10-27 16:06:21 -04:00
Francis Gulotta
c830306772
chore: Update terminal to use stream and bindings (#1966)
This keeps any update of any parser (which isn’t used) from updating this package.
2019-10-27 14:29:45 -04:00
Francis Gulotta
cf3ac11d39 v8.0.5 2019-10-27 14:14:44 -04:00
Francis Gulotta
3e568f7ca4 fix: cctalk wasn’t upgraded in serialport 2019-10-27 14:12:11 -04:00
Francis Gulotta
db21188f86 v8.0.4 2019-10-27 14:04:24 -04:00
Francis Gulotta
4b8fc24877 fix: learn now needs the package-lock.json files
I originally ignored these so we’d be confident in our CI not using them and having an experience similar to a user installing serialport. However our postInstall uses `lerna --no-ci` so that’s not an issue.
2019-10-27 14:03:32 -04:00
Francis Gulotta
296f3d12a7
chore: upgrade nan and commander (#1964)
- Nan has a minor upgrade
- commander has a breaking change that changes features we don’t use
2019-10-26 23:33:51 -04:00
Francis Gulotta
4b23928cd2
fix: improve the options and output of terminal (#1962)
- improve output so CR always print as NL
- change --port to --path
- change --echo to --no-echo (default is to echo)
- fix double echo output when selecting the port from a list
2019-10-26 23:02:55 -04:00
Francis Gulotta
61e9d9ec7e
chore: more async refactoring (#1955) 2019-10-05 20:13:56 -04:00
Francis Gulotta
eb6b57bffe
fix: npmignore should ignore .DS_Store files (#1954) 2019-10-03 20:37:13 -04:00
Francis Gulotta
6a73db3834 v8.0.3 2019-10-02 23:34:00 -04:00
Francis Gulotta
c7ca08f03a
fix: unix reading (#1953)
Another casualty of the async function refactor. This did fail the arudino tests.
2019-10-02 23:10:57 -04:00
Icebob
4a3d2a017d fix: Add missing asyncClose (#1946)
Fix #1904
2019-09-26 09:28:08 -04:00
Francis Gulotta
4c19eb2219
chore: more testing around stream pool and reading (#1942) 2019-09-24 23:22:06 -04:00
Francis Gulotta
145b906d9c
feat: drop callback argument on SerialPort.list() (#1943)
Promises are now standard

BREAKING: SerialPort.list() now takes no arguments and always returns a promise.
2019-09-24 23:15:31 -04: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
53e208576b v8.0.2 2019-09-24 10:00:08 -04:00
Francis Gulotta
c57b6e9ea9
fix: stop polling if the poller has an error (#1936)
This will stop polling for FS events if there’s an error polling for fs events. Added tests for the JS. Tests for the c++ are harder.

This supersedes #1804 and ensures no more events are fired if one reports an error. Fixes #1803 based upon @nfrasser's work.
2019-09-24 09:56:56 -04:00
Francis Gulotta
a5f7d607ea
fix: we weren’t running all the tests (#1937) 2019-09-22 21:47:03 -04:00
Francis Gulotta
275315a81f
feat: add optional end event for piping (#1926)
This will allow streams to end. We haven't done this because it allows a stream to be reopened and data to be continued to be read. 

Adds `endOnClose` to stream options so the stream will emit the end event when the port is closed. This will signal any piped parsers to end as well. If the port is reopened the parsers won’t function.
2019-09-22 15:27:16 -04:00
Francis Gulotta
eae28d4a00 v8.0.1 2019-09-17 21:04:47 -04:00
Francis Gulotta
6426214b88
fix: fix open colelctive link (#1928) 2019-08-30 23:01:11 -04:00
Francis Gulotta
3a132792e7
fix: stream read not working past 1 read (#1925)
This was overlooked in our async function overhaul and now has better testing.
2019-08-30 20:07:58 -04:00