* Although 0.12 is not ready yet, support for 0.8 among libraries is waning.
* Bumps browserify dev dependency to 6.x.
* Bumps nock dev dependency to 0.48.
language: node_js
node_js:
- - '0.8'
- '0.10'
- '0.11'
-matrix:
- allow_failures:
- - node_js: '0.11'
-install:
- - npm update npm -g
- - npm install
* Breaks 2.x compatibility for using CleanCSS as a function.
* Reworks minification to tokenize first then minify.
See [changes](https://github.com/jakubpawlowicz/clean-css/compare/b06f37d...dd8c14a).
+* Removes support for node.js 0.8.x.
* Renames `noAdvanced` option into `advanced`.
* Renames `noAggressiveMerging` option into `aggressiveMerging`.
* Renames `noRebase` option into `rebase`.
### What are the requirements?
```
-Node.js 0.8.0+ (tested on CentOS, Ubuntu, OS X 10.6+, and Windows 7+)
+Node.js 0.10.0+ (tested on CentOS, Ubuntu, OS X 10.6+, and Windows 7+)
```
### How to install clean-css?
http.get :
https.get;
- var timedOut = false;
var handleError = function(message) {
context.errors.push('Broken @import declaration of "' + importedUrl + '" - ' + message);
restoreImport(importedUrl, mediaQuery, options);
handleError(res.message);
})
.on('timeout', function() {
- // FIX: node 0.8 fires this event twice
- if (timedOut)
- return;
-
handleError('timeout');
- timedOut = true;
})
.setTimeout(inlinerOptions.timeout);
};
"commander": "2.3.x"
},
"devDependencies": {
- "browserify": "5.x",
+ "browserify": "6.x",
"jshint": "2.5.x",
- "nock": "0.28.x",
+ "nock": "0.48.x",
"uglify-js": "2.4.x",
"vows": "0.7.x"
},
"engines": {
- "node": ">=0.8.0"
+ "node": ">=0.10.0"
}
}
};
var readFile = function(filename) {
- return fs.readFileSync(filename, 'utf-8').replace(lineBreak, '');
+ return fs.readFileSync(filename, { encoding: 'utf-8' }).replace(lineBreak, '');
};
var deleteFile = function(filename) {