@@ -1205,9 +1205,8 @@ added: v0.9.4 |
1205 | 1205 | * `stream` {Stream} An "old style" readable stream |
1206 | 1206 | * Returns: {this} |
1207 | 1207 |
|
1208 | | -Versions of Node.js prior to v0.10 had streams that did not implement the |
1209 | | -entire `stream` module API as it is currently defined. (See [Compatibility][] |
1210 | | -for more information.) |
| 1208 | +Prior to Node.js 0.10, streams did not implement the entire `stream` module API |
| 1209 | +as it is currently defined. (See [Compatibility][] for more information.) |
1211 | 1210 |
|
1212 | 1211 | When using an older Node.js library that emits [`'data'`][] events and has a |
1213 | 1212 | [`stream.pause()`][stream-pause] method that is advisory only, the |
@@ -2316,8 +2315,8 @@ primarily for examples and testing, but there are some use cases where |
2316 | 2315 |
|
2317 | 2316 | <!--type=misc--> |
2318 | 2317 |
|
2319 | | -In versions of Node.js prior to v0.10, the `Readable` stream interface was |
2320 | | -simpler, but also less powerful and less useful. |
| 2318 | +Prior to Node.js 0.10, the `Readable` stream interface was simpler, but also |
| 2319 | +less powerful and less useful. |
2321 | 2320 |
|
2322 | 2321 | * Rather than waiting for calls the [`stream.read()`][stream-read] method, |
2323 | 2322 | [`'data'`][] events would begin emitting immediately. Applications that |
@@ -2327,7 +2326,7 @@ simpler, but also less powerful and less useful. |
2327 | 2326 | guaranteed. This meant that it was still necessary to be prepared to receive |
2328 | 2327 | [`'data'`][] events *even when the stream was in a paused state*. |
2329 | 2328 |
|
2330 | | -In Node.js v0.10, the [`Readable`][] class was added. For backwards |
| 2329 | +In Node.js 0.10, the [`Readable`][] class was added. For backwards |
2331 | 2330 | compatibility with older Node.js programs, `Readable` streams switch into |
2332 | 2331 | "flowing mode" when a [`'data'`][] event handler is added, or when the |
2333 | 2332 | [`stream.resume()`][stream-resume] method is called. The effect is that, even |
@@ -2357,9 +2356,8 @@ net.createServer((socket) => { |
2357 | 2356 | }).listen(1337); |
2358 | 2357 | ``` |
2359 | 2358 |
|
2360 | | -In versions of Node.js prior to v0.10, the incoming message data would be |
2361 | | -simply discarded. However, in Node.js v0.10 and beyond, the socket remains |
2362 | | -paused forever. |
| 2359 | +Prior to Node.js 0.10, the incoming message data would be simply discarded. |
| 2360 | +However, in Node.js 0.10 and beyond, the socket remains paused forever. |
2363 | 2361 |
|
2364 | 2362 | The workaround in this situation is to call the |
2365 | 2363 | [`stream.resume()`][stream-resume] method to begin the flow of data: |
@@ -2377,7 +2375,7 @@ net.createServer((socket) => { |
2377 | 2375 | ``` |
2378 | 2376 |
|
2379 | 2377 | In addition to new `Readable` streams switching into flowing mode, |
2380 | | -pre-v0.10 style streams can be wrapped in a `Readable` class using the |
| 2378 | +pre-0.10 style streams can be wrapped in a `Readable` class using the |
2381 | 2379 | [`readable.wrap()`][`stream.wrap()`] method. |
2382 | 2380 |
|
2383 | 2381 | ### `readable.read(0)` |
|