Skip to content

Commit ad2d515

Browse files
6.2.1 (#218)
build for 6.2.1 * rm unneeded test * deal with template strings * rewrite test for older node * remove ngrok * trailing comma, I'm done for the day * add sauce connect * patch for wonky setTimeout in older node * fix typo * rm sauce connect * Revert "rm sauce connect" This reverts commit c213f1e. * rm older ithing * build for 6.2.2 * add shorthand properties babel transform * fix for test that has for-of loop * iThings seem to be broken, giving up * back to local tunnel * and remove from .zuul
1 parent ec0c642 commit ad2d515

14 files changed

+1629
-1190
lines changed

.travis.yml

-4
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ matrix:
3838
env: TASK=browser BROWSER_NAME=chrome BROWSER_VERSION="-3..latest"
3939
- node_js: 5
4040
env: TASK=browser BROWSER_NAME=firefox BROWSER_VERSION="-3..latest"
41-
- node_js: 5
42-
env: TASK=browser BROWSER_NAME=ipad BROWSER_VERSION="6.0..latest"
43-
- node_js: 5
44-
env: TASK=browser BROWSER_NAME=iphone BROWSER_VERSION="6.0..latest"
4541
- node_js: 5
4642
env: TASK=browser BROWSER_NAME=safari BROWSER_VERSION="5..latest"
4743
- node_js: 5

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# readable-stream
22

3-
***Node-core v6.1.0 streams for userland*** [![Build Status](https://travis-ci.org/nodejs/readable-stream.svg?branch=master)](https://travis-ci.org/nodejs/readable-stream)
3+
***Node-core v6.2.2 streams for userland*** [![Build Status](https://travis-ci.org/nodejs/readable-stream.svg?branch=master)](https://travis-ci.org/nodejs/readable-stream)
44

55

66
[![NPM](https://nodei.co/npm/readable-stream.png?downloads=true&downloadRank=true)](https://nodei.co/npm/readable-stream/)

build/build.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,13 @@ function processFile (inputLoc, out, replacements) {
4949
})
5050
if (inputLoc.slice(-3) === '.js') {
5151
const transformed = babel.transform(data, {
52-
plugins: ['transform-es2015-arrow-functions', 'transform-es2015-block-scoping']
52+
plugins: [
53+
'transform-es2015-arrow-functions',
54+
'transform-es2015-block-scoping',
55+
'transform-es2015-template-literals',
56+
'transform-es2015-shorthand-properties',
57+
'transform-es2015-for-of'
58+
]
5359
})
5460
data = transformed.code
5561
}
@@ -97,7 +103,7 @@ hyperquest(testlisturl).pipe(bl(function (err, data) {
97103

98104
$('table.files .js-navigation-open').each(function () {
99105
var file = $(this).text()
100-
if (/^test-stream/.test(file) && !/-wrap(?:-encoding)?\.js$/.test(file) && file !== 'test-stream2-httpclient-response-end.js')
106+
if (/^test-stream/.test(file) && !/-wrap(?:-encoding)?\.js$/.test(file) && file !== 'test-stream2-httpclient-response-end.js' && file !== 'test-stream-base-no-abort.js')
101107
processTestFile(file)
102108
})
103109
}))

build/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"babel-core": "^6.5.2",
88
"babel-plugin-transform-es2015-arrow-functions": "^6.5.2",
99
"babel-plugin-transform-es2015-block-scoping": "^6.5.0",
10+
"babel-plugin-transform-es2015-for-of": "^6.8.0",
11+
"babel-plugin-transform-es2015-shorthand-properties": "^6.8.0",
12+
"babel-plugin-transform-es2015-template-literals": "^6.8.0",
1013
"bl": "~0.6.0",
1114
"cheerio": "~0.13.1",
1215
"hyperdirect": "0.0.0",

build/test-replacements.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ module.exports['common.js'] = [
104104
+ ' knownGlobals.push(DTRACE_NET_SOCKET_WRITE);\n'
105105
+ ' if (global.__coverage__)\n'
106106
+ ' knownGlobals.push(__coverage__);\n'
107+
+ '\'core,__core-js_shared__,Promise,Map,Set,WeakMap,WeakSet,Reflect,System,asap,Observable,regeneratorRuntime,_babelPolyfill\'.split(\',\').filter(function (item) { return typeof global[item] !== undefined}).forEach(function (item) {knownGlobals.push(global[item])})'
107108
+ ' /*</replacement>*/\n\n$1'
108109
]
109110

@@ -114,7 +115,7 @@ module.exports['common.js'] = [
114115
+ '\nif (!global.setImmediate) {\n'
115116
+ ' global.setImmediate = function setImmediate(fn) {\n'
116117

117-
+ ' return setTimeout(fn.bind.apply(fn, arguments), 0);\n'
118+
+ ' return setTimeout(fn.bind.apply(fn, arguments), 4);\n'
118119
+ ' };\n'
119120
+ '}\n'
120121
+ 'if (!global.clearImmediate) {\n'
@@ -143,6 +144,7 @@ module.exports['common.js'] = [
143144
, [
144145
/^/,
145146
`/*<replacement>*/
147+
require('babel-polyfill');
146148
var util = require('util');
147149
for (var i in util) exports[i] = util[i];
148150
/*</replacement>*/`
@@ -254,3 +256,11 @@ module.exports['test-stream2-decode-partial.js'] = [
254256
,`readable.push(source.slice(4, source.length));`
255257
]
256258
]
259+
260+
261+
module.exports['test-stream3-cork-uncork.js'] = module.exports['test-stream3-cork-end.js'] = [
262+
[
263+
/assert\.ok\(seen\.equals\(expected\)\);/,
264+
'assert.deepEqual(seen, expected);'
265+
]
266+
]

0 commit comments

Comments
 (0)