Update dependency ssh2-sftp-client to v11 #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^5.0.0
->^11.0.0
Release Notes
theophilusx/ssh2-sftp-client (ssh2-sftp-client)
v11.0.0
: New event handling strategyCompare Source
This release introduces a new event handling strategy.
While the above changes do not change the existing API, the change in global listener behaviour may result in changes for client code behaviour, so this update is marked as a whole new version. However, most clients should not experience any change an in fact, things should be more stable with less liklihood of uncaught errors killing top level processes. It is expected that few clients will need to supply custom global event listeners as the defaults should work fror the vast majority of clients 'out of the box'. Chances are very high you will be able to update to this vwersion from 10.0.3 with no impact or nee3d for code change.
v10.0.3
: Documentation fix Mk2Compare Source
Restore missing README.md file
v10.0.2
: Typo fix in packagte.jsonCompare Source
Just a stupid fat finger error fix!
v10.0.0
: Bug fix and security updateCompare Source
v9.1.0
: Maintenance ReleaseCompare Source
v9.0.4
: Minor bug fix releaseCompare Source
v9.0.3
: Minor bug fix releaseCompare Source
Fix two minor bugs
Sometimes, when initialisation of sftp sub-system failed, the module would attempt to call sftp.end(), which would fail with an undefined reference error
When calling the get() method and supplying a destination stream for the data, if the soruce file did not exist on the remote server, the destination stream was not closed and could result in a resource leak.
v9.0.2
: Minor bug fixesCompare Source
A couple of fairly minor changes to address some edge case issues
None of the above changes are API breaking (for v9). Should be able to upgrade from any previous 9.x version with no issue.
v9.0.1
: Minor bug fixCompare Source
Minor bug fix version
The get() method was not always returning a buffer when no destination argument was supplied due to a race condition between concat-stream and readStream finish event. When triggered, get() would return the concat-stream object instead of the buffer object it contains.
v9.0.0
: Major Release - New methods, API updatesCompare Source
This is a major new version which includes both new methods and API changes as well as some code cleanup and refactoring to improve performance.
API Changes
New Methods
Other Changes
Although not benchmarked, the performance of this version appears to be significantly better than previous versions. Running the test suite completes much faster, despite quite a new new tests being added for the new methods.
v8.1.0
: Minor updateCompare Source
longname
property to description of each file inlist()
callrmdir()
to only do asynchronous processes on file deletion. Directory deletion done synchronously.ssh2
dependency version to 1.10.0v8.0.0
: Major release with some breaking changesCompare Source
This release changes the API for the uploadDir() and downloadDir() methods. This is a breaking change. Previously, these methods accepted an optional 3rd argument, a regular expression used to filter which files and directories would be included in the transfer. This argument has now been changed to be an optional predicate filter function. The function will be called for each file or directory in the tree specified as the 1st argument and should return true if the target should be included in the transfer, false to exclude it. See README for full details.
The rmdir() method has been refactored to better exploit asynchronous processing of directory tree removal. For broad shallow directory trees, significant performance improvements have been observed. The rmdir() API has not changed.
Bumped the ssh2 dependency to v1.9.0
v7.2.3
: Minor bug fix and version bumpCompare Source
Bump to ssh2 v1.8.0
Change uploadDir/downloadDir to use put() and get() instead of fastPut() and fastGet() becuase the latter are not supported by all sftp servers.
v7.2.2
: Bump ssh2 dependency to 1.6.0 plus removeTempListeners bug fixCompare Source
This release bumps the ssh2 dependency to 1.6.0, which includes some bug fixes for issues affecting sftp.
This release also fixes a bug in removeTempListeners() where it was using the old data structure for tracking temporary listeners rather than the new structure introduced in 7.2.1
v7.2.1
: Minor bugfix releaseCompare Source
Fix a bug in get() requests which occurs when using slower destination devices for retrieved files. In some circumstances, attempting to access a downloaded file immediately after download would result in errors because file contents had not yet been fully flushed and stream cleaned up. The fix was to change the event used to resolve the get() promise to use the finish signal on the write stream rather than on the read stream. Previous version used the read stream signal because in some use cases, the client code does not want to close the write stream. Fix now looks to see what options have been passed in to get() and will use the write stream events when it can and only use the read stream events when this is not possible. This could still result in errors when the client has decided to explicitly manage the write stream, but in that case, it is also down to the responsibility of the client not to attempt to access the downloaded data until they have cleaned up the streams correctly.
v7.2.0
: Bugfix releaseCompare Source
While this version does not change the API, as it does represent fundamental change to the way temporary event listeners are managed, it is being released as a new minor version rather than just a new patch version.
v7.1.0
Compare Source
v7.0.4
: Update to use new ssh2 version 1.4.0.Compare Source
Update to ssh2 v1.4.0
Minor fix in tests for local resources to make more consistent across platforms.
v7.0.3
: Minor bug fixCompare Source
Fix typo in handling stream closure for put() method.
v7.0.2
: Update to ssh2 1.3.0Compare Source
Update to ssh2 1.3.0, which includes the patch for handshake timeout issues seen on some platforms.
Cleaned up some error reporting messages to improve consistency.
Added entry to FAQ on dealing with issues uploading larger files due to TCP packet fragmentation and some firewalls.
Improved test coverage, which is now over 94%.
v7.0.1
: Updated ssh2 and some additional path checksCompare Source
This version depends on the most recent ssh2 v1.2.0 release.
A number of additional path checks have been added, mainly to provide more informative error messages when interacting with an sftp server on Windows platforms. The default global error handler has also been changed. It now just reports there was an unexpected error rather than re-throw the error. Throwing the error was not terribly useful as it is difficult for clients to catch such errors. Therefore, when an unexpected error is caught by the default global error listener, it will just report the error to the console and unset the client sftp property to prevent any further API calls until a new connection is established.
v7.0.0
: New SSH2 version dependencyCompare Source
Update to use new ssh2 version 1.1.0, which is a complete re-write of ssh2
Updated to use new retry code for retrying connection creation
Update get/put methods to use different resolution strategy and allow setting of options on streams and pipe() operation.
v6.0.1
: Minor bug fixCompare Source
Fix an issue with connect retries not releasing 'ready' listeners. This could result in a memory leak warning if the same ssh2-sftp-client object was used for multiple connections where more than 10 connections were made/attempted.
This version also includes updated tests and improved test coverage as well as a small reduction in download size.
v6.0.0
: Major Version UpdateCompare Source
Note that this version still uses ssh 0.8.9, which is known to have issues with node v14.x. The issue is caused by changes in node v14 which were rolled back in node version 15.3.x. The ssh2 maintainer is currently doing a re-write of the ssh2 module to address this and some other design issues. Once that re-write is complete and a new version of ssh2 is released, we will release a new version of ssh2-sftp-client. In the meantime, avoid using node v14.x.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.