diff --git a/CHANGELOG.md b/CHANGELOG.md index ca145f5..f0d1453 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ Changelog ========= +#### 1.0.2 (2014-09-26) + +Now emits a "finish" event, as well as the "uploaded" event, in order to adhere to Node.js writable stream spec. + #### 1.0.1 (2014-09-26) Fixed error in usage in the documentation and examples. The examples did not use the "new" keyword when creating the upload stream, so there were scope issues when doing parallel uploads. This has been clarified and corrected in the documentation and examples. diff --git a/README.md b/README.md index 960df0d..9ecf4ec 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,13 @@ A pipeable write stream which uploads to Amazon S3 using the multipart file uplo ### Changelog -#### 1.0.1 (2014-09-26) +#### 1.0.2 (2014-09-26) -Fixed error in usage in the documentation and examples. The examples did not use the "new" keyword when creating the upload stream, so there were scope issues when doing parallel uploads. This has been clarified and corrected in the documentation and examples. +Now emits a "finish" event, as well as the "uploaded" event, in order to adhere to Node.js writable stream spec. -#### 1.0.0 (2014-09-15) +#### 1.0.1 (2014-09-26) -Major overhaul of the functional interface. Breaks compatability with older versions of the module in favor of a cleaner, more streamlined approach. A migration guide for users of older versions of the module has been included in the documentation. +Fixed error in usage in the documentation and examples. The examples did not use the "new" keyword when creating the upload stream, so there were scope issues when doing parallel uploads. This has been clarified and corrected in the documentation and examples. [Historical Changelogs](CHANGELOG.md) diff --git a/lib/s3-upload-stream.js b/lib/s3-upload-stream.js index ba741d8..044d5e5 100644 --- a/lib/s3-upload-stream.js +++ b/lib/s3-upload-stream.js @@ -213,7 +213,7 @@ module.exports = { else { // Emit both events for backwards compatability, and to follow the spec. self.ws.emit('uploaded', result); - self.ws.emit('finished', result); + self.ws.emit('finish', result); } } ); diff --git a/package.json b/package.json index 97ade69..ff5ec7f 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": "1.0.1", + "version": "1.0.2", "author": { "name": "Nathan Peck", "email": "nathan@storydesk.com"