- Fixed
signedUrl
to work without a leading slash in the filename, like all other Knox methods. (#129, @relistan)
- Bucket names with periods are now allowed again, even with SSL. (#128)
- Added an informative error when using bucket names with periods in them without first turning off SSL. (#125)
- Fixed all requests when passing in
'Content-type'
or'Content-MD5'
headers using any casing other than those exact ones, e.g.'content-type'
. (#126)
- Fixed
list
always givingIsTruncated
astrue
. (#124, @simonwex)
- Fixed
deleteMultiple
when passed keys that start with leading slashes (like they do in the README example). (#121) - Fixed
list
not always returning an array for theContents
property.
- Added
token
configuration option for temporary security tokens. (@corp186, #110)
- Added
list
to list all the objects in a bucket. (@kof, #101) - Fixed tests in Node 0.6.x and in non-ET timezones. (@ianshward, #102)
- Fixed
putStream
's early-error logic to accept lowercase versions of'Content-Length'
as well. (#96) - Added
agent
configuration option for configurable HTTP agents. (@ianshward, #111)
- No longer specifying
'x-amz-acl'
header as'public-read'
by default. (@shlevy, #91) - Made the port configurable with the new
port
option, and defaulting to insecure if the port is customized. (@pifantastic, #86) - Made
putStream
give an early and user-intelligible error when no'Content-Length'
header is set, instead of letting Amazon return a cryptic 501 about'Transfer-Encoding'
.
- Added
putStream
"progress" event to go along withputFile
's.putStream
now also returns a request object, just likeput
. - Added new
putBuffer
method as a higher-level way to PUTBuffer
s. - When uploading text files using
putFile
,charset=UTF-8
is now added to the'Content-Type'
header. (@pifantastic, #83) - Fixed
signedUrl
method, which was last working in Knox 0.0.9. (@shawnburke, #81)
- Added
putFile
"progress" event.
putStream
now works with every type of stream, not just file streams, and actually streams the data usingpipe
, instead of buffering chunks into memory. Note that a'Content-Length'
header is now required, if you weren't using one already. (#14 #32 #48 #57 #72)putFile
is now based onputStream
, and thus no longer buffers the entire file into memory.- Added
copyFile
method as a higher-level version of existingcopy
. - Fixed signing logic for URLs with query parameters outside the Amazon whitelist. (Seth Purcell, #78)
- Leading slashes are now optional again, after becoming mandatory in 0.0.10. (#77)
- Lots of README updates for a more pleasant documentation experience.
- Now using HTTPS by default, instead of HTTP. This can be disabled with the option
secure: false
. - Now using the mime package as a dependency instead of bundling an outdated version of it. This should result in a much more complete registry of MIME types for auto-detection when using
putFile
. - Trying to use bucket names that are not all lowercase will give an early error instead of failing with
SignatureDoesNotMatch
upon attempting any operation. See #44 for more information. - Fixed capturing of HTTP request errors to forward to the callback function for all "higher-level API" methods (i.e. those accepting callbacks). (@shuzhang, #71)
- Fixed README example to use
"image/jpeg"
instead of"image/jpg"
. (@jedwood, #74)
- Added
client.copy(sourceFilename, destFilename, headers)
method for copying files within a bucket. - Added
client.deleteMultiple(filenames, headers, cb)
method for multi-object delete. - Knox now passes through any Content-MD5 headers supplied to any of its methods, and automatically generates one for
putFile
. (@staer, #36) - Fixed a bug with error propagation in
putStream
. (@xmilliard, #48) - Fixed requests to querystring resources. (@richtera, #70)
- Updated tests to use Mocha instead of Expresso; now they can be run on Windows.
- Fixed signedUrl signature, needs encodeURIComponent() not escape() to prevent SignatureDoesNotMatch errors on signatures containing plus signs.
- Fixed bug introduced in refactor
- Fixed resource canonicalization
- Fixed; ignoring certain query params when preparing stringToSign. [Rajiv Navada]
- Added
Client#https?(filename)
- 0.4.x support
- Removed
util
require - Support for S3 presigned URLs
- Initial release