mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-25 18:37:19 +00:00
depreciated -> deprecated
This commit is contained in:
parent
f9547d9b40
commit
672abb4936
4 changed files with 4 additions and 4 deletions
|
|
@ -4,7 +4,7 @@ Upgrading from 3.x to 4.x
|
|||
|
||||
The constructor has changed. We've removed an argument, changed how errors are thrown and it is returned when you `require('serialport');`
|
||||
|
||||
- Requiring `serialport` now returns the SerialPort constructor function instead of a factory object. `SerialPort.SerialPort` is now depreciated.
|
||||
- Requiring `serialport` now returns the SerialPort constructor function instead of a factory object. `SerialPort.SerialPort` is now deprecated.
|
||||
- `SerialPort` constructor now throws on argument errors immediately.
|
||||
- Removed `openImmediately` from the constructor's api, the functionality is now named `autoOpen` on the options object.
|
||||
- Removed extraneous flow control settings from the `flowControl` option, use the specific options to set these flags now.
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ Version 4.0.1
|
|||
|
||||
Version 4.0.0
|
||||
-------------
|
||||
- Requiring `serialport` now returns the SerialPort constructor function instead of a factory object. `SerialPort.SerialPort` is now depreciated.
|
||||
- Requiring `serialport` now returns the SerialPort constructor function instead of a factory object. `SerialPort.SerialPort` is now deprecated.
|
||||
- `SerialPort` constructor now throws on argument errors immediately.
|
||||
- `.write(writeCallback)` now only calls it's callback once after the entire write operation, it used to be called for each write cycle and return the bytes written. This reduces the number of callbacks by hundreds of thousands over a megabyte at low bandwidth.
|
||||
- Disconnections now always attempt to close the port, and you'll always get a `close` event after a `disconnect` event
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ function listLinux(callback) {
|
|||
readdirAsync(dirName)
|
||||
.catch(function(err) {
|
||||
// if this directory is not found we just pretend everything is OK
|
||||
// TODO Depreciated this check?
|
||||
// TODO Deprecate this check?
|
||||
if (err.errno === 34) {
|
||||
return [];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ describe('SerialPort', function() {
|
|||
sandbox.restore();
|
||||
});
|
||||
|
||||
describe('Depreciated options', function() {
|
||||
describe('Deprecated options', function() {
|
||||
it('legacy constructor still works', function(done){
|
||||
this.port = new SerialPort.SerialPort('/dev/exists', done);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue