Skip to content

Commit

Permalink
Merge pull request #74 from pierreinglebert/drop-bluebird
Browse files Browse the repository at this point in the history
Drop 0.10 support & bluebird dependency
  • Loading branch information
pierreinglebert authored Jul 20, 2016
2 parents 4d59596 + 79d7838 commit 044f094
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ branches:

env:
matrix:
- NODE_VERSION="0.10"
- NODE_VERSION="0.12"
- NODE_VERSION="4"
- NODE_VERSION="5"
- NODE_VERSION="6"
- NODE_VERSION="iojs"
global:
- secure: IxORreMUlF3CYU6129/JAQ00ZMR+yxrD8x+nAka8T+qQ8MI3OBkONwYeOXknE0PDgWvD315gPK9KQXSplruEuz8mmxjUJNOzvAikUMF7hVUIl79hSwLDkFZ1MC0rV90dbb7hOlxD1EjqASqTbEJPNarDzIcDxf/G6cubPgnxNbE=
Expand Down
8 changes: 4 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ environment:
node_pre_gyp_secretAccessKey:
secure: aqsNf2cyJ0hpprZZvwJ3bLeUeFjZ0OhbJSulfs9VLA4rqmADnnbU//aL/NBoXQQJ
matrix:
- nodejs_version: "0.10"
platform: x86
- nodejs_version: "0.12"
platform: x86
- nodejs_version: "4"
platform: x64
- nodejs_version: "4"
platform: x86
platform: x64
- nodejs_version: "5"
platform: x86
platform: x64
- nodejs_version: "6"
platform: x64

matrix:
fast_finish: true
Expand Down
4 changes: 1 addition & 3 deletions lib/zopfli.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ var defaults = require('defaults');
var binding_path = binary.find(path.join(__dirname, '../package.json'));
var zopfli = require(binding_path);

var BluebirdPromise = require('bluebird');

var util = require('util');
var Transform = require('stream').Transform;

Expand Down Expand Up @@ -74,7 +72,7 @@ Zopfli.compress = function(buffer, type, options, callback) {
if (typeof callback === 'function') {
zopfli.deflate(buffer, type, options, callback);
} else {
return new BluebirdPromise(function(resolve, reject) {
return new Promise(function(resolve, reject) {
zopfli.deflate(buffer, type, options, function(err, data) {
if (err) {
reject(err);
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"url": "https://github.com/pierreinglebert/node-zopfli/issues"
},
"engines": {
"node": ">=0.10"
"node": ">=0.12"
},
"binary": {
"module_name": "zopfli",
Expand All @@ -35,7 +35,6 @@
"host": "https://node-zopfli.s3.amazonaws.com"
},
"dependencies": {
"bluebird": "^2.9.25",
"commander": "^2.8.1",
"defaults": "^1.0.2",
"nan": "^2.0.0",
Expand Down

0 comments on commit 044f094

Please sign in to comment.