Skip to content

Commit 8931c6b

Browse files
authoredJul 18, 2019
fix(node): remove node 6 and 8 support (#649)
This removes node 6 and 8 support. This is a free project and our builds are getting very long so we have to be a bit careful about what versions we test on. To be clear, this still works on Node 6 and 8 for now but we won't be maintaining that guarantee into the future so please work towards updating. This also removes eslint, likely in favor of prettier at some future date. BREAKING CHANGE: Removal of two major node versions, 6 and 8 from testing scheme
1 parent ad6f14c commit 8931c6b

13 files changed

+16
-980
lines changed
 

‎.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ before_install:
1313
before_script:
1414
- git version
1515
script:
16-
- npm run lint
1716
- npm run test
1817
- npm run check-coverage
1918
after_success:

‎README.md

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ When you commit with Commitizen, you'll be prompted to fill out any required com
77

88
## Installing the command line tool
99

10+
Commitizen is currently tested against
11+
node 10 and 12 although it may work in
12+
older node. You should also have npm 6
13+
or greater.
14+
1015
Installation is as simple as running the following command (if you see `EACCES` error, reading [fixing npm permissions](https://docs.npmjs.com/getting-started/fixing-npm-permissions) may help):
1116

1217
```

‎jobs/build.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ jobs:
1111
strategy:
1212
maxParallel: 3
1313
matrix:
14+
node-12:
15+
node_version: ^12.6.0
1416
node-10:
1517
node_version: ^10.10.0
16-
node-8:
17-
node_version: ^8.12.0
18-
node-6:
19-
node_version: ^6.14.4
2018
steps:
2119
- task: NodeTool@0
2220
displayName: " Install Node.js"

‎package-lock.json

+6-942
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+3-10
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"write-coverage": "nyc report --reporter=lcov",
1414
"semantic-release": "npx semantic-release",
1515
"start": "npm run test:watch",
16-
"lint": "eslint --ignore-path .gitignore .",
1716
"test": "nyc --require @babel/register _mocha -- test/tests/index.js",
1817
"test:watch": "nodemon -q --ignore test/.tmp/ --ignore test/artifacts/ --ignore coverage/ --exec \"npm run test\" --"
1918
},
@@ -22,7 +21,7 @@
2221
"path": "./node_modules/cz-conventional-changelog"
2322
},
2423
"ghooks": {
25-
"pre-commit": "npm run lint && npm run test && npm run check-coverage"
24+
"pre-commit": "npm run test && npm run check-coverage"
2625
}
2726
},
2827
"homepage": "https://github.com/commitizen/cz-cli",
@@ -55,12 +54,6 @@
5554
"chai": "^4.1.2",
5655
"codecov.io": "0.1.6",
5756
"cz-conventional-changelog-default-export": "0.0.0-semantically-released.1",
58-
"eslint": "5.6.0",
59-
"eslint-config-standard": "12.0.0",
60-
"eslint-plugin-import": "2.14.0",
61-
"eslint-plugin-node": "7.0.1",
62-
"eslint-plugin-promise": "4.0.1",
63-
"eslint-plugin-standard": "4.0.0",
6457
"ghooks": "^2.0.4",
6558
"in-publish": "^2.0.0",
6659
"mocha": "5.2.0",
@@ -95,7 +88,7 @@
9588
"@babel/preset-env",
9689
{
9790
"targets": {
98-
"node": "6"
91+
"node": "10"
9992
}
10093
}
10194
]
@@ -109,7 +102,7 @@
109102
},
110103
"engineStrict": true,
111104
"engines": {
112-
"node": ">= 6"
105+
"node": ">= 10"
113106
},
114107
"collective": {
115108
"type": "opencollective",

‎test/tests/adapter.js

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/* eslint-env mocha */
2-
/* eslint-disable no-unused-expressions */
3-
41
import { expect } from 'chai';
52
import path from 'path';
63

‎test/tests/cli.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-env mocha */
2-
31
import { expect } from 'chai';
42
import proxyquire from 'proxyquire';
53
import sinon from 'sinon';

‎test/tests/commit.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-env mocha */
2-
31
import { expect } from 'chai';
42
import os from 'os';
53
import fs from 'fs';

‎test/tests/configLoader.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-env mocha */
2-
31
import path from 'path';
42
import { expect } from 'chai';
53
import { getContent, getNormalizedConfig } from '../../src/configLoader';

‎test/tests/init.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-env mocha */
2-
31
import { expect } from 'chai';
42
import semver from 'semver';
53

‎test/tests/parsers.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-env mocha */
2-
31
import { expect } from 'chai';
42
import { gitCz as gitCzParser, commitizen as commitizenParser } from '../../src/cli/parsers';
53

‎test/tests/staging.js

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/* eslint-env mocha */
2-
/* eslint-disable no-unused-expressions */
3-
41
import { expect } from 'chai';
52

63
// Bootstrap our tester

‎test/tests/util.js

-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/* eslint-env mocha */
2-
/* eslint-disable no-unused-expressions */
3-
41
import { expect } from 'chai';
52
import { isArray, isFunction, isString } from '../../src/common/util';
63

@@ -11,9 +8,7 @@ describe('common util', function () {
118
// Truthies
129
expect(isArray([])).to.be.true;
1310
expect(isArray([1, 2, 3])).to.be.true;
14-
// eslint-disable-next-line no-sparse-arrays
1511
expect(isArray([1, , 3])).to.be.true;
16-
// eslint-disable-next-line no-array-constructor
1712
expect(isArray(new Array())).to.be.true;
1813

1914
// Falsies
@@ -33,7 +28,6 @@ describe('common util', function () {
3328

3429
// Truthies
3530
expect(isFunction(function () {})).to.be.true;
36-
// eslint-disable-next-line no-new-func
3731
expect(isFunction(new Function())).to.be.true;
3832

3933
// Falsies
@@ -59,7 +53,6 @@ describe('common util', function () {
5953
line
6054
string`
6155
)).to.be.true;
62-
// eslint-disable-next-line no-new-wrappers
6356
expect(isString(new String())).to.be.true;
6457

6558
// Falsies

0 commit comments

Comments
 (0)
Please sign in to comment.