diff --git a/UPGRADE_GUIDE.md b/UPGRADE_GUIDE.md index 074fb8e..c9228f8 100644 --- a/UPGRADE_GUIDE.md +++ b/UPGRADE_GUIDE.md @@ -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. diff --git a/changelog.md b/changelog.md index 8c496c9..510af77 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/lib/list-linux.js b/lib/list-linux.js index 405b7c5..be8fc5a 100644 --- a/lib/list-linux.js +++ b/lib/list-linux.js @@ -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 []; } diff --git a/test/serialport.js b/test/serialport.js index a7cd3c1..78facbe 100644 --- a/test/serialport.js +++ b/test/serialport.js @@ -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); });