diff --git a/.gitignore b/.gitignore
index cd54bf5..3d5ac5b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,6 +15,7 @@ results
npm-debug.log
node_modules
+package-lock.json
*.sublime*
.travis.yml
test
diff --git a/README.md b/README.md
index c5398ce..2c650b9 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@
Node Version |
->= 0.10 |
+>= 6 |
Less Version |
diff --git a/index.js b/index.js
index 5693fe5..0d073b4 100644
--- a/index.js
+++ b/index.js
@@ -86,7 +86,7 @@ module.exports = function (options) {
}
renderLess(str, opts).then(function(res) {
- file.contents = new Buffer(res.result);
+ file.contents = Buffer.from(res.result);
file.path = replaceExt(file.path, '.css');
if (res.sourcemap) {
res.sourcemap.file = file.relative;
diff --git a/package.json b/package.json
index 0696e41..ba07640 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "gulp-less",
- "version": "4.0.1",
+ "version": "5.0.0",
"description": "Less for Gulp",
"main": "index.js",
"scripts": {
@@ -11,7 +11,7 @@
"url": "git://github.com/gulp-community/gulp-less.git"
},
"engines": {
- "node": ">=0.10.0"
+ "node": ">=6"
},
"keywords": [
"gulpplugin",
@@ -23,15 +23,15 @@
"dependencies": {
"less": "^3.7.1 || ^4.0.0",
"object-assign": "^4.0.1",
- "plugin-error": "^0.1.2",
- "replace-ext": "^1.0.0",
- "through2": "^2.0.0",
+ "plugin-error": "^1.0.0",
+ "replace-ext": "^2.0.0",
+ "through2": "^4.0.0",
"vinyl-sourcemaps-apply": "^0.2.0"
},
"devDependencies": {
"jshint": "^2.9.4",
- "mocha": "^3.4.2",
- "should": "^11.2.0",
+ "mocha": "^9.0.0",
+ "should": "^13.0.0",
"vinyl": "^2.1.0"
}
}
diff --git a/test/main.js b/test/main.js
index 26771f5..00e7d65 100644
--- a/test/main.js
+++ b/test/main.js
@@ -68,7 +68,7 @@ describe('gulp-less', function () {
var errorCalled = false;
var stream = less();
var errorFile = createVinyl('somefile.less',
- new Buffer('html { color: @undefined-variable; }'));
+ Buffer.from('html { color: @undefined-variable; }'));
stream.once('error', function (err) {
err.message.should.equal('variable @undefined-variable is undefined in file '+errorFile.path+' line no. 1');
errorCalled = true;