Skip to content

Commit 4b6245c

Browse files
committed
chore: drop support for Node v0.10
BREAKING CHANGE: Node v0.10 is no longer supported.
1 parent 41dfd4b commit 4b6245c

3 files changed

Lines changed: 1 addition & 9 deletions

File tree

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ cache:
66
directories:
77
- node_modules
88
node_js:
9-
- 0.10 # to be removed 2016-10-31
109
- 0.12 # to be removed 2016-12-31
1110
- 4 # to be removed 2018-04-01
1211
- 6 # to be removed 2019-04-01

index.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -405,13 +405,6 @@ function keysEqual(leftHandOperand, rightHandOperand, keys, options) {
405405
*/
406406

407407
function objectEqual(leftHandOperand, rightHandOperand, options) {
408-
// This block can be removed once support for Node v0.10 is dropped because
409-
// buffers are properly detected as iterables in later versions.
410-
if (typeof Buffer === 'function' &&
411-
typeof Buffer.isBuffer === 'function' &&
412-
Buffer.isBuffer(leftHandOperand)) {
413-
return iterableEqual(leftHandOperand, rightHandOperand, options);
414-
}
415408
var leftHandKeys = getEnumerableKeys(leftHandOperand);
416409
var rightHandKeys = getEnumerableKeys(rightHandOperand);
417410
if (leftHandKeys.length && leftHandKeys.length === rightHandKeys.length) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,6 @@
8383
"watchify": "^3.7.0"
8484
},
8585
"engines": {
86-
"node": "*"
86+
"node": ">=0.12"
8787
}
8888
}

0 commit comments

Comments
 (0)