[Pkg-javascript-commits] [node-through2] 02/04: Imported Upstream version 1.0.0

Leo Iannacone l3on-guest at moszumanska.debian.org
Mon Jun 16 15:50:40 UTC 2014


This is an automated email from the git hooks/post-receive script.

l3on-guest pushed a commit to branch master
in repository node-through2.

commit 5d3b58eac29310dc8a706ab5f4010c51261702e1
Author: Leo Iannacone <l3on at ubuntu.com>
Date:   Mon Jun 16 17:43:45 2014 +0200

    Imported Upstream version 1.0.0
---
 .npmignore   |  3 ---
 README.md    | 17 ++++-------------
 package.json |  9 ++++++---
 through2.js  |  2 +-
 4 files changed, 11 insertions(+), 20 deletions(-)

diff --git a/.npmignore b/.npmignore
deleted file mode 100644
index 1e1dcab..0000000
--- a/.npmignore
+++ /dev/null
@@ -1,3 +0,0 @@
-test
-.jshintrc
-.travis.yml
\ No newline at end of file
diff --git a/README.md b/README.md
index 33aa01e..c9388b3 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ soon ...
 
 -->
 
-[![NPM](https://nodei.co/npm/through2.png?compact=true)](https://nodei.co/npm/through2/)
+[![NPM](https://nodei.co/npm/through2.png?compact=true)](https://nodei.co/npm/through2/) 
 
 <!--
 not happy with these, we need to peg to readable-stream at 1.0.x so it'll always report out-of-date
@@ -23,8 +23,6 @@ not happy with these, we need to peg to readable-stream at 1.0.x so it'll always re
 
 Inspired by [Dominic Tarr](https://github.com/dominictarr)'s [through](https://github.com/dominictarr/through) in that it's so much easier to make a stream out of a function than it is to set up the prototype chain properly: `through(function (chunk) { ... })`.
 
-Note: A **Streams3** version of through2 is available in npm with the tag `"1.0"` rather than `"latest"` so an `npm install through2` will get you the current Streams2 version (version number is 0.x.x). To use a Streams3 version use `npm install through2 at 1` to fetch the latest version 1.x.x. More information about Streams2 vs Streams3 and recommendations [here](http://www.nearform.com/nodecrunch/dont-use-nodes-core-stream-module).
-
 ```js
 fs.createReadStream('ex.txt')
   .pipe(through2(function (chunk, enc, callback) {
@@ -34,7 +32,7 @@ fs.createReadStream('ex.txt')
         chunk[i] = 122 // swap 'a' for 'z'
 
     this.push(chunk)
-
+    
     callback()
 
    }))
@@ -55,9 +53,9 @@ fs.createReadStream('data.csv')
       , address : chunk[3]
       , phone   : chunk[10]
     }
-
+    
     this.push(data)
-
+    
     callback()
 
   }))
@@ -128,13 +126,6 @@ var converter = FToC()
 var converter = FToC({objectMode: true})
 ```
 
-## See Also
-
-  - [through2-map](https://github.com/brycebaril/through2-map) - Array.prototype.map analog for streams.
-  - [through2-filter](https://github.com/brycebaril/through2-filter) - Array.prototype.filter analog for streams.
-  - [through2-reduce](https://github.com/brycebaril/through2-reduce) - Array.prototype.reduce analog for streams.
-  - [through2-spy](https://github.com/brycebaril/through2-spy) - Wrapper for simple stream.PassThrough spies.
-
 ## License
 
 **through2** is Copyright (c) 2013 Rod Vagg [@rvagg](https://twitter.com/rvagg) and licenced under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.
diff --git a/package.json b/package.json
index 079126e..e9e9610 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "through2",
-  "version": "0.5.1",
+  "version": "1.0.0",
   "description": "A tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise",
   "main": "through2.js",
   "scripts": {
@@ -20,13 +20,16 @@
   "author": "Rod Vagg <r at va.gg> (https://github.com/rvagg)",
   "license": "MIT",
   "dependencies": {
-    "readable-stream": "~1.0.17",
-    "xtend": "~3.0.0"
+    "readable-stream": "~1.1.10",
+    "xtend": "~2.1.1"
   },
   "devDependencies": {
     "tape": "~2.3.0",
     "bl": "~0.6.0",
     "stream-spigot": "~3.0.1",
     "brtapsauce": "~0.2.2"
+  },
+  "publishConfig": {
+    "tag": "1.0"
   }
 }
diff --git a/through2.js b/through2.js
index d3610aa..c110484 100644
--- a/through2.js
+++ b/through2.js
@@ -67,7 +67,7 @@ module.exports.ctor = through2(function (options, transform, flush) {
 
 
 module.exports.obj = through2(function (options, transform, flush) {
-  var t2 = new Transform(xtend({ objectMode: true, highWaterMark: 16 }, options))
+  var t2 = new Transform(xtend({ objectMode: true }, options))
 
   t2._transform = transform
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-through2.git



More information about the Pkg-javascript-commits mailing list