NBS-LLC / ng-spotify-importer

Import playlists into Spotify.
https://nickwanders.com/projects/ng-spotify-importer/
GNU General Public License v3.0
101 stars 17 forks source link

Bump ssh2-sftp-client from 7.2.3 to 8.0.0 #163

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps ssh2-sftp-client from 7.2.3 to 8.0.0.

Release notes

Sourced from ssh2-sftp-client's releases.

Major release with some breaking changes

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

Changelog

Sourced from ssh2-sftp-client's changelog.

  • Change Logging

** v8.0.0 - Breaking Change: The uploadDir() and donwloadDir() methods now accept a predicate filter function instead of a regular expression for the 3rd argument. The function is called with 2 arguments - path to each target object (file or directory) and a boolean value which will be true if the target is a directory. - Performance Enhancement: The rmdir() method has been refactored to enable asynchronous processing of file and directory deletion. This has significantly improved performance when deleting large directory trees, especially broad shallow trees which have lots of files and directories at the same level. - Bumped ssh2 to latest 1.9.0 version.

** v7.2.3 - Change uploadDir/downloadDir methods to use put() and get() instead of fastPut() and fastGet() because the latter are not support by all sftp servers. - Bump ssh2 dependency to 1.8.0 - Refactor the connect method to ensure error messages returned are the main error which caused the connection to fail rather than the last error reported.

** v7.2.2 - Bump to ssh2 1.6.0 - bump development dependencies to latest versions - Fix bug in removeTempListeners() where it tried to reset the hash used to track listeners rather than just reset listeners for a specific method ** v7.2.1 - Bugfix. Changed event used to resolve get() requests from being based on the 'finish' event emitted by the write stream instead of by the read stream UNLESS autoClose is set to false, in which case, the promise uses the finish event of the read stream. This change was necessary to deal with an edge case which can arise when using slow storage (e.g. a cloud bucket) to avoid errors when client code attempts to access the retrieved file immediately after the get() finishes. Relying on finish event in reader does not allow sufficient time for buffers to be flushed and write stream cleanup, resulting in errors. - Bumped dev dependency versions to latest ** v7.2.0

  • Bump ssh2 dependency to 1.5.0
  • Fix bug where ssh connection was not correctly terminated when sfrtp channel fails to be established
  • Improve efficiency of mkdir() by checking for existence of target directory at beginning of function.
  • Move temp listeners tracking to the scope of the client rather than being a global scope. This addresses issues which can arise when using ssh2-sftp-client for multiple concurrent sftp connections.
  • Add some additional tests and refactor some existing tests to make them more reliable.
  • Bump development dependencies to current version.

... (truncated)

Commits
  • 222249d Refactor of event listener handling to remove global data structure
  • See full diff in compare view


Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)