Skip to content

Commit 9540ed0

Browse files
committedOct 1, 2017
Remove support for NodeJS < 4
Closes #529
1 parent 99e2a09 commit 9540ed0

File tree

4 files changed

+3
-27
lines changed

4 files changed

+3
-27
lines changed
 

‎.travis.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ os:
88
- osx
99

1010
node_js:
11-
- "0.8"
12-
- "0.10"
13-
- "0.12"
1411
- "4"
1512
- "5"
1613
- "6"
@@ -29,7 +26,7 @@ before_install:
2926
- echo Building for Node $TRAVIS_NODE_VERSION
3027
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX=$LINUX_CXX; $CXX --version; fi;
3128
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then c++ --version; fi;
32-
- if [[ $(echo "$TRAVIS_NODE_VERSION <= 0.12" | bc -l) ]]; then npm install -g npm@2; else npm install -g npm@latest; fi;
29+
- npm install -g npm@latest
3330

3431
install: true
3532

‎appveyor.yml

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
environment:
22
matrix:
3-
- nodejs_version: "0.10"
4-
platform: x64
5-
- nodejs_version: "0.10"
6-
platform: x86
7-
- nodejs_version: "0.12"
8-
platform: x64
9-
- nodejs_version: "0.12"
10-
platform: x86
113
- nodejs_version: "4"
124
platform: x64
135
- nodejs_version: "4"
@@ -33,8 +25,7 @@ install:
3325
- where npm
3426
- where node
3527
- ps: Install-Product node $env:nodejs_version $env:platform
36-
- 'if %nodejs_version% lss 4 npm install -g npm@2'
37-
- 'if %nodejs_version% geq 4 npm install -g npm@latest'
28+
- 'npm install -g npm@latest'
3829
- 'if "%nodejs_version%_%platform%" == "4_x86" (npm config set -g cafile=package.json && npm config set -g strict-ssl=false)'
3930

4031
build: off

‎lib/promises.js

-12
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
/// @return {Promise} a Promise encapuslaing the function
88
module.exports.promise = function (fn, context, args) {
99

10-
//can't do anything without Promise so fail silently
11-
if (typeof Promise === 'undefined') {
12-
return;
13-
}
14-
1510
if (!Array.isArray(args)) {
1611
args = Array.prototype.slice.call(args);
1712
}
@@ -35,12 +30,5 @@ module.exports.promise = function (fn, context, args) {
3530

3631
/// @param {err} the error to be thrown
3732
module.exports.reject = function (err) {
38-
39-
// silently swallow errors if Promise is not defined
40-
// emulating old behavior
41-
if (typeof Promise === 'undefined') {
42-
return;
43-
}
44-
4533
return Promise.reject(err);
4634
};

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": "1.0.3",
1515
"author": "Nick Campbell (https://github.com/ncb000gt)",
1616
"engines": {
17-
"node": ">= 0.6.0"
17+
"node": ">= 4.0.0"
1818
},
1919
"repository": {
2020
"type": "git",

0 commit comments

Comments
 (0)
Please sign in to comment.