diff --git a/CHANGELOG.md b/CHANGELOG.md index c0b5b1e..b5488ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ Changelog ========= +#### 0.6.0 (2014-08-15) + +* Fix for mismatch between documentation and reality in the maxPartSize() and concurrentParts() options. +* New feature: part size and concurrect part helpers can be chained now. + ### 0.5.0 (2014-08-11) * Added client caching to reuse an existing s3 client rather than creating a new one for each upload. Fixes #6 diff --git a/README.md b/README.md index 8060c4d..4f11bc7 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,11 @@ A pipeable write stream which uploads to Amazon S3 using the multipart file uplo ### Changelog +#### 0.6.0 (2014-08-15) + +* Fix for mismatch between documentation and reality in the maxPartSize() and concurrentParts() options. +* New feature: part size and concurrect part helpers can be chained now. + #### 0.5.0 (2014-08-11) * Added client caching to reuse an existing s3 client rather than creating a new one for each upload. Fixes #6 @@ -136,13 +141,15 @@ var UploadStreamObject = new Uploader( }, function (err, uploadStream) { + uploadStream.maxPartSize(20971520) //20 MB + uploadStream.on('uploaded', function (data) { console.log('done'); }); read.pipe(uploadStream); } -).maxPartSize(20971520) //20 MB +); ``` ### stream.concurrentParts(numberOfParts) @@ -159,6 +166,7 @@ var UploadStreamObject = new Uploader( }, function (err, uploadStream) { + uploadStream.concurrentParts(5) uploadStream.on('uploaded', function (data) { console.log('done'); @@ -166,7 +174,7 @@ var UploadStreamObject = new Uploader( read.pipe(uploadStream); } -).concurrentParts(5); +); ``` ### Tuning configuration of the AWS SDK diff --git a/package.json b/package.json index 8b24cd9..468380b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "s3-upload-stream", "description": "Writeable stream for uploading content of unknown size to S3 via the multipart API.", - "version": "0.5.0", + "version": "0.6.0", "author": { "name": "Nathan Peck", "email": "nathan@storydesk.com"