Skip to content

Commit acea237

Browse files
authored
[BREAKING] Fix directory parsing bug, upgrade many deps, drop official support for Node v12 (#104)
- Fix a bug that meant that node_modules were being included (!). This was affecting codehawk itself, hence new badges that are properly accurate now. - Require Node.js 14 LTS by default (note: everything should still work on Node 12) - Upgrade various important dependencies
1 parent 8fe5d91 commit acea237

File tree

10 files changed

+3464
-3703
lines changed

10 files changed

+3464
-3703
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node-version: [12.x, 14.x]
14+
node-version: [14.x, 16.x]
1515
steps:
1616
- uses: actions/checkout@v2
1717
- name: Use Node.js ${{ matrix.node-version }}

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Npm Publish
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- 'v*'
77

88
jobs:
99
publish:
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v2
1313
- uses: actions/setup-node@v2
1414
with:
15-
node-version: 14.x
15+
node-version: 16.x
1616
- run: yarn
1717
- run: yarn build
1818
- run: yarn reflect

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ As the project grows, these guidelines may evolve.
88

99
Codehawk-cli is a pure Node.JS program. All you need to develop the project is
1010

11-
- Node.js v12+ (v14+ or latest LTS is recommended)
11+
- Node.js v14+ (v16+ or latest LTS is recommended)
1212
- Git (no specific version required but v2+ is recommended)
1313
- Yarn (v1 recommended, v2 currently untested)
1414

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ JavaScript (including TypeScript and Flow) projects are supported for analysis.
1111

1212
It works by traversing a directory and discovering all supported filetypes, runs a static analysis routine on each file, then performs project-wide analysis such as inter-dependency counting and test coverage mapping.
1313

14-
The CLI runs as a Node.js process. Node.js >=12 is required, but >=14 is recommended. Node v10 and under is not supported.
14+
The CLI runs as a Node.js process. Node.js >=14 is required, but >=16 is recommended. Node v12 and under is not supported.
1515

1616
## Usage
1717

generated/avg-maintainability.svg

Lines changed: 4 additions & 4 deletions
Loading

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
},
3131
"license": "MIT",
3232
"dependencies": {
33-
"@babel/core": "^7.7.2",
34-
"@babel/plugin-transform-typescript": "^7.7.2",
33+
"@babel/core": "^7.18.6",
34+
"@babel/plugin-transform-typescript": "^7.18.6",
3535
"badgen": "^3.2.2",
3636
"flow-remove-types": "^2.111.3",
3737
"is-dotdir": "^1.0.1",
@@ -44,11 +44,11 @@
4444
"@types/babel__core": "^7.1.8",
4545
"@types/is-dotdir": "^1.0.0",
4646
"@types/is-dotfile": "^2.0.0",
47-
"@types/jest": "^27.0.2",
47+
"@types/jest": "^28.1.3",
4848
"@types/node": "^14.0.11",
4949
"@types/yargs": "^15.0.12",
50-
"@typescript-eslint/eslint-plugin": "3",
51-
"@typescript-eslint/parser": "^3.3.0",
50+
"@typescript-eslint/eslint-plugin": "^5.30.0",
51+
"@typescript-eslint/parser": "^5.30.0",
5252
"eslint": "7",
5353
"eslint-config-prettier": "^7.0.0",
5454
"eslint-config-standard-with-typescript": "^18.0.2",
@@ -57,11 +57,11 @@
5757
"eslint-plugin-prettier": "^3.1.4",
5858
"eslint-plugin-promise": "4",
5959
"eslint-plugin-standard": "4",
60-
"jest": "^27.2.4",
61-
"np": "^7.5.0",
62-
"prettier": "^2.0.5",
63-
"ts-jest": "^27.0.5",
64-
"typescript": "^4.1.3"
60+
"jest": "^28.1.2",
61+
"np": "^7.6.2",
62+
"prettier": "^2.7.1",
63+
"ts-jest": "^28.0.5",
64+
"typescript": "^4.7.4"
6565
},
6666
"files": [
6767
"build"
@@ -73,7 +73,7 @@
7373
"main": "build/codehawk.js",
7474
"types": "build/codehawk.d.ts",
7575
"engines": {
76-
"node": ">=12"
76+
"node": ">=14"
7777
},
7878
"jest": {
7979
"preset": "ts-jest",

0 commit comments

Comments
 (0)