Skip to content

Commit

Permalink
[BREAKING] Upgrade deps, drop support for Node v10 (#100)
Browse files Browse the repository at this point in the history
* Upgrade deps for security patches

* Drop support for Node 10
  • Loading branch information
sgb-io authored Apr 19, 2022
1 parent d3a5c32 commit fc94464
Show file tree
Hide file tree
Showing 5 changed files with 1,056 additions and 1,059 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@ name: Node.js CI

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [12.x, 14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i -g yarn
- run: yarn
- run: yarn build
- run: yarn reflect
- run: yarn isclean
- run: yarn lint
- run: yarn prettier
- run: yarn test
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i -g yarn
- run: yarn
- run: yarn build
- run: yarn reflect
- run: yarn isclean
- run: yarn lint
- run: yarn prettier
- run: yarn test
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ As the project grows, these guidelines may evolve.

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

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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ JavaScript (including TypeScript and Flow) projects are supported for analysis.

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.

The CLI runs as a Node.js process. Node.js >=12 is recommended, but >=10 should also work. <10 is unsupported.
The CLI runs as a Node.js process. Node.js >=12 is required, but >=14 is recommended. Node v10 and under is not supported.

## Usage

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"main": "build/codehawk.js",
"types": "build/codehawk.d.ts",
"engines": {
"node": ">=10"
"node": ">=12"
},
"jest": {
"preset": "ts-jest",
Expand Down
Loading

0 comments on commit fc94464

Please sign in to comment.