Skip to content

Commit

Permalink
6.2.1 (#218)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
calvinmetcalf authored Aug 8, 2016
1 parent ec0c642 commit ad2d515
Show file tree
Hide file tree
Showing 14 changed files with 1,629 additions and 1,190 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ matrix:
env: TASK=browser BROWSER_NAME=chrome BROWSER_VERSION="-3..latest"
- node_js: 5
env: TASK=browser BROWSER_NAME=firefox BROWSER_VERSION="-3..latest"
- node_js: 5
env: TASK=browser BROWSER_NAME=ipad BROWSER_VERSION="6.0..latest"
- node_js: 5
env: TASK=browser BROWSER_NAME=iphone BROWSER_VERSION="6.0..latest"
- node_js: 5
env: TASK=browser BROWSER_NAME=safari BROWSER_VERSION="5..latest"
- node_js: 5
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# readable-stream

***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)
***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)


[![NPM](https://nodei.co/npm/readable-stream.png?downloads=true&downloadRank=true)](https://nodei.co/npm/readable-stream/)
Expand Down
10 changes: 8 additions & 2 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ function processFile (inputLoc, out, replacements) {
})
if (inputLoc.slice(-3) === '.js') {
const transformed = babel.transform(data, {
plugins: ['transform-es2015-arrow-functions', 'transform-es2015-block-scoping']
plugins: [
'transform-es2015-arrow-functions',
'transform-es2015-block-scoping',
'transform-es2015-template-literals',
'transform-es2015-shorthand-properties',
'transform-es2015-for-of'
]
})
data = transformed.code
}
Expand Down Expand Up @@ -97,7 +103,7 @@ hyperquest(testlisturl).pipe(bl(function (err, data) {

$('table.files .js-navigation-open').each(function () {
var file = $(this).text()
if (/^test-stream/.test(file) && !/-wrap(?:-encoding)?\.js$/.test(file) && file !== 'test-stream2-httpclient-response-end.js')
if (/^test-stream/.test(file) && !/-wrap(?:-encoding)?\.js$/.test(file) && file !== 'test-stream2-httpclient-response-end.js' && file !== 'test-stream-base-no-abort.js')
processTestFile(file)
})
}))
Expand Down
3 changes: 3 additions & 0 deletions build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"babel-core": "^6.5.2",
"babel-plugin-transform-es2015-arrow-functions": "^6.5.2",
"babel-plugin-transform-es2015-block-scoping": "^6.5.0",
"babel-plugin-transform-es2015-for-of": "^6.8.0",
"babel-plugin-transform-es2015-shorthand-properties": "^6.8.0",
"babel-plugin-transform-es2015-template-literals": "^6.8.0",
"bl": "~0.6.0",
"cheerio": "~0.13.1",
"hyperdirect": "0.0.0",
Expand Down
12 changes: 11 additions & 1 deletion build/test-replacements.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ module.exports['common.js'] = [
+ ' knownGlobals.push(DTRACE_NET_SOCKET_WRITE);\n'
+ ' if (global.__coverage__)\n'
+ ' knownGlobals.push(__coverage__);\n'
+ '\'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])})'
+ ' /*</replacement>*/\n\n$1'
]

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

+ ' return setTimeout(fn.bind.apply(fn, arguments), 0);\n'
+ ' return setTimeout(fn.bind.apply(fn, arguments), 4);\n'
+ ' };\n'
+ '}\n'
+ 'if (!global.clearImmediate) {\n'
Expand Down Expand Up @@ -143,6 +144,7 @@ module.exports['common.js'] = [
, [
/^/,
`/*<replacement>*/
require('babel-polyfill');
var util = require('util');
for (var i in util) exports[i] = util[i];
/*</replacement>*/`
Expand Down Expand Up @@ -254,3 +256,11 @@ module.exports['test-stream2-decode-partial.js'] = [
,`readable.push(source.slice(4, source.length));`
]
]


module.exports['test-stream3-cork-uncork.js'] = module.exports['test-stream3-cork-end.js'] = [
[
/assert\.ok\(seen\.equals\(expected\)\);/,
'assert.deepEqual(seen, expected);'
]
]
Loading

0 comments on commit ad2d515

Please sign in to comment.