ssh2-sftp-client 5.2.1 → 5.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.org +205 -0
- package/README.md +203 -313
- package/README.org +349 -297
- package/package.json +3 -3
- package/src/index.js +75 -31
- package/src/utils.js +15 -3
package/CHANGELOG.org
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
* Change Logging
|
|
2
|
+
|
|
3
|
+
** Version 5.3.2 (Prod Version)
|
|
4
|
+
- Minor README typo fixes
|
|
5
|
+
- Fix error in local file path checks (#294)
|
|
6
|
+
|
|
7
|
+
** V5.3.1
|
|
8
|
+
- Fix bug in handling of relative local paths
|
|
9
|
+
- Change handling of stream closures in ~get()~ and ~put()~ methods
|
|
10
|
+
|
|
11
|
+
** v5.3.0
|
|
12
|
+
- Refine event handler management
|
|
13
|
+
- Fix path processing for win32 based sftp servers
|
|
14
|
+
- Update documentation
|
|
15
|
+
** v5.2.2
|
|
16
|
+
- Bug fix release. Add error code 4 check to stat() method.
|
|
17
|
+
- bump Mocha version for tests
|
|
18
|
+
|
|
19
|
+
** v5.2.1
|
|
20
|
+
- Move some dependencies into dev-Dependencies
|
|
21
|
+
** v5.2.0
|
|
22
|
+
- Add new method posixRename() which uses the openSSH POSIX rename extension.
|
|
23
|
+
** v5.1.3
|
|
24
|
+
- Fix bug when writing to root directory and failure due to not being able to
|
|
25
|
+
determine parent
|
|
26
|
+
- Refactor some tests to eliminate need to have artificial delays between
|
|
27
|
+
tests
|
|
28
|
+
- Bumped some dependency versions to latest version
|
|
29
|
+
** v5.1.2
|
|
30
|
+
- Added back global close handler
|
|
31
|
+
- Added dumpListeners() method
|
|
32
|
+
|
|
33
|
+
** v5.1.1
|
|
34
|
+
- Added separate close handlers to each method.
|
|
35
|
+
- Added missing return statement in connect method
|
|
36
|
+
- Added additional troubleshooting documentation for
|
|
37
|
+
common errors.
|
|
38
|
+
|
|
39
|
+
** v5.1.0
|
|
40
|
+
- Fix bug in checkRemotePath() relating to handling of badly
|
|
41
|
+
specified paths (issue #213)
|
|
42
|
+
- Added additional debugging support
|
|
43
|
+
- Add missing test for valid connection in end() method.
|
|
44
|
+
- Bump ssh2 version to v0.8.8
|
|
45
|
+
|
|
46
|
+
** v5.0.2
|
|
47
|
+
- Fix bugs related to win32 platform and local tests for valid directories
|
|
48
|
+
- Fix problem with parsing of file paths
|
|
49
|
+
|
|
50
|
+
** v5.0.1
|
|
51
|
+
- Turn down error checking to be less stringent and handle situations
|
|
52
|
+
where user does not have read permission on parent directory.
|
|
53
|
+
|
|
54
|
+
** v5.0.0
|
|
55
|
+
- Added two new methods ~uploadDir()~ and ~downloadDir()~
|
|
56
|
+
- Removed deprecated ~auxList()~ method
|
|
57
|
+
- Improved error message consistency
|
|
58
|
+
- Added additional error checking to enable more accurate and useful error
|
|
59
|
+
messages.
|
|
60
|
+
- Added default error handler to deal with event errors which fire outside of
|
|
61
|
+
active SftpClient methods (i.e. connection unexpectedly reset by remote host).
|
|
62
|
+
- Modified event handlers to ensure that only event handlers added by the
|
|
63
|
+
module are removed by the module (users now responsible for removing any
|
|
64
|
+
custom event handlers they add).
|
|
65
|
+
- Module error handlers added using ~prependListener~ to ensure they are
|
|
66
|
+
called before any additional custom handlers added by client code.
|
|
67
|
+
- Any error events fired during an ~end()~ call are now ignored.
|
|
68
|
+
|
|
69
|
+
** v4.3.1
|
|
70
|
+
- Updated end() method to resolve once close event fires
|
|
71
|
+
- Added errorListener to error event in each promise to catch error events
|
|
72
|
+
and reject the promise. This should resolve the issue of some error events
|
|
73
|
+
causing uncaughtException erros and causing the process to exit.
|
|
74
|
+
|
|
75
|
+
** v4.3.0
|
|
76
|
+
- Ensure errors include an err.code property and pass through the error code
|
|
77
|
+
from the originating error
|
|
78
|
+
- Change tests for error type to use ~error.code~ instead of matching on
|
|
79
|
+
~error.message~.
|
|
80
|
+
|
|
81
|
+
** v4.2.4
|
|
82
|
+
- Bumped ssh2 to v0.8.6
|
|
83
|
+
- Added exists() usage example to examples directory
|
|
84
|
+
- Clarify documentation on get() method
|
|
85
|
+
** v4.2.3
|
|
86
|
+
- Fix bug in ~exist()~ where tests on root directory returned false
|
|
87
|
+
- Minor documentation fixes
|
|
88
|
+
- Clean up mkdir example
|
|
89
|
+
|
|
90
|
+
** v4.2.2
|
|
91
|
+
- Minor documentation fixes
|
|
92
|
+
- Added additional examples in the ~example~ directory
|
|
93
|
+
|
|
94
|
+
** v4.2.1
|
|
95
|
+
- Remove default close listener. changes in ssh2 API removed the utility of a
|
|
96
|
+
default close listener
|
|
97
|
+
- Fix path handling. Under mixed environments (where client platform and
|
|
98
|
+
server platform were different i.e. one windows the other unix), path
|
|
99
|
+
handling was broken due tot he use of path.join().
|
|
100
|
+
- Ensure error messages include path details. Instead of errors such as "No
|
|
101
|
+
such file" now report "No such file /path/to/missing/file" to help with
|
|
102
|
+
debugging
|
|
103
|
+
|
|
104
|
+
** v4.2.0
|
|
105
|
+
- Work-around for SSH2 =end= event bug
|
|
106
|
+
- Added ability to set client name in constructor method
|
|
107
|
+
- Added additional error checking to prevent ~connect()~ being called on
|
|
108
|
+
already connected client
|
|
109
|
+
- Added additional examples in =example= directory
|
|
110
|
+
|
|
111
|
+
** v4.1.0
|
|
112
|
+
- move ~end()~ call to resolve into close hook
|
|
113
|
+
- Prevent ~put()~ and ~get()~ from creating empty files in destination when
|
|
114
|
+
unable to read source
|
|
115
|
+
- Expand tests for operations when lacking required permissions
|
|
116
|
+
- Add additional data checks for ~append()~
|
|
117
|
+
- Verify file exists
|
|
118
|
+
- Verify file is writeable
|
|
119
|
+
- Verify file is a regular file
|
|
120
|
+
- Fix handling of relative paths
|
|
121
|
+
- Add ~realPath()~ method
|
|
122
|
+
- Add ~cwd()~ method
|
|
123
|
+
|
|
124
|
+
** v4.0.4
|
|
125
|
+
- Minor documentation fix
|
|
126
|
+
- Fix return value from ~get()~
|
|
127
|
+
|
|
128
|
+
** v4.0.3
|
|
129
|
+
- Fix bug in mkdir() relating to handling of relative paths
|
|
130
|
+
- Modify exists() to always return 'd' if path is '.'
|
|
131
|
+
|
|
132
|
+
** v4.0.2
|
|
133
|
+
- Fix some minor packaging issues
|
|
134
|
+
|
|
135
|
+
** v4.0.0
|
|
136
|
+
- Remove support for node < 8.x
|
|
137
|
+
- Fix connection retry feature
|
|
138
|
+
- sftp connection object set to null when 'end' signal is raised
|
|
139
|
+
- Removed 'connectMethod' argument from connect method.
|
|
140
|
+
- Refined adding/removing of listeners in connect() and end() methods to enable
|
|
141
|
+
errors to be adequately caught and reported.
|
|
142
|
+
- Deprecate auxList() and add pattern/regexp filter option to list()
|
|
143
|
+
- Refactored handling of event signals to provide better feedback to clients
|
|
144
|
+
- Removed pointless 'permissions' property from objects returned by ~stat()~
|
|
145
|
+
(same as mode property). Added additional properties describing the type of
|
|
146
|
+
object.
|
|
147
|
+
- Added the ~removeListener()~ method to compliment the existing ~on()~ method.
|
|
148
|
+
|
|
149
|
+
** Older Versions
|
|
150
|
+
*** v2.5.2
|
|
151
|
+
- Repository transferred to theophilusx
|
|
152
|
+
- Fix error in package.json pointing to wrong repository
|
|
153
|
+
|
|
154
|
+
*** v2.5.1
|
|
155
|
+
- Apply 4 pull requests to address minor issues prior to transfer
|
|
156
|
+
|
|
157
|
+
*** v2.5.0
|
|
158
|
+
- ???
|
|
159
|
+
|
|
160
|
+
*** v2.4.3
|
|
161
|
+
- merge #108, #110
|
|
162
|
+
- fix connect promise if connection ends
|
|
163
|
+
|
|
164
|
+
*** v2.4.2
|
|
165
|
+
- merge #105
|
|
166
|
+
- fix windows path
|
|
167
|
+
|
|
168
|
+
*** v2.4.1
|
|
169
|
+
- merge pr #99, #100
|
|
170
|
+
- bug fix
|
|
171
|
+
|
|
172
|
+
*** v2.4.0
|
|
173
|
+
- Requires node.js v7.5.0 or above.
|
|
174
|
+
- merge pr #97, thanks for @theophilusx
|
|
175
|
+
- Remove emitter.maxListener warnings
|
|
176
|
+
- Upgraded ssh2 dependency from 0.5.5 to 0.6.1
|
|
177
|
+
- Enhanced error messages to provide more context and to be more consistent
|
|
178
|
+
- re-factored test
|
|
179
|
+
- Added new 'exists' method and re-factored mkdir/rmdir
|
|
180
|
+
|
|
181
|
+
*** v2.3.0
|
|
182
|
+
- add: ~stat~ method
|
|
183
|
+
- add ~fastGet~ and ~fastPut~ method.
|
|
184
|
+
- fix: ~mkdir~ file exists decision logic
|
|
185
|
+
|
|
186
|
+
*** v3.0.0 -- deprecate this version
|
|
187
|
+
- change: ~sftp.get~ will return chunk not stream anymore
|
|
188
|
+
- fix: get readable not emitting data events in node 10.0.0
|
|
189
|
+
|
|
190
|
+
*** v2.1.1
|
|
191
|
+
- add: event listener. [[https://github.com/jyu213/ssh2-sftp-client#Event][doc]]
|
|
192
|
+
- add: ~get~ or ~put~ method add extra options [[https://github.com/jyu213/ssh2-sftp-client/pull/52][pr#52]]
|
|
193
|
+
|
|
194
|
+
*** v2.0.1
|
|
195
|
+
- add: ~chmod~ method [[https://github.com/jyu213/ssh2-sftp-client/pull/33][pr#33]]
|
|
196
|
+
- update: upgrade ssh2 to V0.5.0 [[https://github.com/jyu213/ssh2-sftp-client/pull/30][pr#30]]
|
|
197
|
+
- fix: get method stream error reject unwork [[https://github.com/jyu213/ssh2-sftp-client/issues/22][#22]]
|
|
198
|
+
- fix: return Error object on promise rejection [[https://github.com/jyu213/ssh2-sftp-client/pull/20][pr#20]]
|
|
199
|
+
|
|
200
|
+
*** v1.1.0
|
|
201
|
+
- fix: add encoding control support for binary stream
|
|
202
|
+
|
|
203
|
+
*** v1.0.5:
|
|
204
|
+
- fix: multi image upload
|
|
205
|
+
- change: remove ~this.client.sftp~ to ~connect~ function
|