Releases: sergi/jsftp
Updated `raw` API
Bugfix release
v1.5.4
Fixed error when reading some remote MS-DOS folder listings
This bugfix release fixes an error when reading some remote MS-DOS folder listings.
Also:
- Improved tests
- Updated dependencies for several dev packages
Drop compatibility for Node 0.8
Not that Node 0.12 is released, there is no need to keep compatibility with a stable version that is 3 stages removed form the current one.
v1.3.9
Fix for simultaneous PASV requests
When attempting 2 simultaneous PASV requests, an ECONNREFUSED
would happen and crash jsftp. With this release, an error will be generated when this happens, giving a clue on what went wrong. This is the kind of code that could cause an ECONNREFUSED
before:
var JsFtp = require('jsftp'),
ftp = new JsFtp({
"host": "localhost",
"user": "foo",
"pass": "bar",
}),
file1 = 'foo/1.jpg',
file2 = 'foo/2.jpg';
// Wrong way to invoke two consecutive requests!
ftp.get(file1, __dirname + '/2.jpg', function () {
console.log('FILE1', arguments);
});
ftp.get(file2, __dirname + '/2.jpg', function () {
console.log('FILE2', arguments);
});
Fix for LIST command
This is a small release containing a fix for when a LIST
command (called directly or using Ftp.ls
) would be issued with a path to an un-existing file or directory. In this case, the error would never be caught and the ls
callback would never be notified.
Fix for `get` method
In some cases, get
would still try to retrieve the file even if there was an error getting the passive socket. This is now fixed.
jsftp 1.3.0
New release! This time severa changes in the release have been contributed by external developers. Thanks a lot for your help!
Release notes:
- Accept stream as a source parameter to put (thanks to @BorePlusPlus)
hasFeat
now always returns a boolean value. (thanks to @asylumfunk)- Allow Ftp.raw to issue arbitrary remote commands. (thanks to @asylumfunk)
- Preserve error replies on USER/PASS failure. (thanks to @asylumfunk)
keepAlive
can take an optional time period now. (thanks to @asylumfunk)- Passive timeout handling (thanks to @BorePlusPlus and @delibes)
- Added debug mode and its API (@sergi)
Enjoy!
Modularization
This release offers the following improvements:
- Solved potential async problems in file-listing parsing when using
ls
,stat
orlist
. - Fixed non-working passive operations when some servers would return a "125 Data connection already open; Transfer starting." response.
- Modularized away ftp-response parsing and file listing parsing into their own modules (https://github.com/sergi/ftp-response-parser and https://github.com/sergi/parse-listing). This offers better tested and more quality code overall.
- Other smaller code improvements.