@serialport/stream
Advanced tools
Comparing version 2.0.5 to 3.0.0
@@ -6,2 +6,18 @@ # Change Log | ||
# [3.0.0](https://github.com/node-serialport/node-serialport/compare/@serialport/stream@2.0.5...@serialport/stream@3.0.0) (2019-05-16) | ||
### chore | ||
* remove node6 support and upgrade codebase ([#1851](https://github.com/node-serialport/node-serialport/issues/1851)) ([d4f15c0](https://github.com/node-serialport/node-serialport/commit/d4f15c0)) | ||
### BREAKING CHANGES | ||
* bindings now use async functions so they’ll never throw, only reject | ||
## [2.0.5](https://github.com/node-serialport/node-serialport/compare/@serialport/stream@2.0.4...@serialport/stream@2.0.5) (2019-04-27) | ||
@@ -8,0 +24,0 @@ |
{ | ||
"name": "@serialport/stream", | ||
"version": "2.0.5", | ||
"version": "3.0.0", | ||
"main": "stream.js", | ||
"dependencies": { | ||
"@serialport/binding-mock": "^2.0.5", | ||
"@serialport/binding-mock": "^3.0.0", | ||
"debug": "^4.1.1" | ||
}, | ||
"engines": { | ||
"node": ">=6.0.0" | ||
"node": ">=8.6.0" | ||
}, | ||
@@ -20,3 +20,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "4c723cc89e454017a28396e934bf7a00946fe866" | ||
"gitHead": "524a2729003a94c9575904448d878a151f4f3790" | ||
} |
@@ -102,3 +102,3 @@ const stream = require('stream') | ||
const settings = Object.assign({}, defaultSettings, options) | ||
const settings = { ...defaultSettings, ...options } | ||
@@ -264,3 +264,3 @@ stream.Duplex.call(this, { | ||
const settings = Object.assign({}, defaultSettings, options) | ||
const settings = { ...defaultSettings, ...options } | ||
this.settings.baudRate = settings.baudRate | ||
@@ -471,3 +471,3 @@ | ||
const settings = Object.assign({}, defaultSetFlags, options) | ||
const settings = { ...defaultSetFlags, ...options } | ||
debug('#set', settings) | ||
@@ -601,3 +601,3 @@ this.binding.set(settings).then( | ||
/** | ||
* Retrieves a list of available serial ports with metadata. Only the `comName` is guaranteed. If unavailable the other fields will be undefined. The `comName` is either the path or an identifier (eg `COM1`) used to open the SerialPort. | ||
* Retrieves a list of available serial ports with metadata. Only the `path` is guaranteed. If unavailable the other fields will be undefined. The `path` is either the path or an identifier (eg `COM1`) used to open the SerialPort. | ||
* | ||
@@ -612,3 +612,3 @@ * We make an effort to identify the hardware attached and have consistent results between systems. Linux and OS X are mostly consistent. Windows relies on 3rd party device drivers for the information and is unable to guarantee the information. On windows If you have a USB connected device can we provide a serial number otherwise it will be `undefined`. The `pnpId` and `locationId` are not the same or present on all systems. The examples below were run with the same Arduino Uno. | ||
{ | ||
comName: '/dev/tty.usbmodem1421', | ||
path: '/dev/tty.usbmodem1421', | ||
manufacturer: 'Arduino (www.arduino.cc)', | ||
@@ -624,3 +624,3 @@ serialNumber: '752303138333518011C1', | ||
{ | ||
comName: '/dev/ttyACM0', | ||
path: '/dev/ttyACM0', | ||
manufacturer: 'Arduino (www.arduino.cc)', | ||
@@ -636,3 +636,3 @@ serialNumber: '752303138333518011C1', | ||
{ | ||
comName: 'COM3', | ||
path: 'COM3', | ||
manufacturer: 'Arduino LLC (www.arduino.cc)', | ||
@@ -652,3 +652,3 @@ serialNumber: '752303138333518011C1', | ||
ports.forEach(function(port) { | ||
console.log(port.comName); | ||
console.log(port.path); | ||
console.log(port.pnpId); | ||
@@ -655,0 +655,0 @@ console.log(port.manufacturer); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28500
+ Added@serialport/binding-abstract@3.0.0(transitive)
+ Added@serialport/binding-mock@3.0.0(transitive)
- Removed@serialport/binding-abstract@2.0.5(transitive)
- Removed@serialport/binding-mock@2.0.5(transitive)