ftp-deploy
ftp-deploy copied to clipboard
Convince the team behind the ftp-deploy package to replace promise-ftp with a more up-to-date dependency
trafficstars
CC https://github.com/sand4rt/ftp-deployer/issues/22#issuecomment-2614637004
The problem lies within the dependency chain: ftp-deploy -> promise-ftp -> @icetee/ftp.
The package promise-ftp uses the package @icetee/ftp v0.3.15, which employs new Buffer() in the file @icetee\ftp\lib\connection.js on line 54.
There is a newer version, @icetee/node-ftp v1.0.4, that uses Buffer.from(). However, it seems the promise-ftp package has been abandoned, as its latest version v1.3.5 was published 7 years ago.
Therefore, there are two possible ways to resolve this issue:
Ditch the ftp-deploy package and use an alternative.
Convince the team behind the ftp-deploy package to replace promise-ftp with a more up-to-date dependency.