Skip to content

Commit

Permalink
feat!: Require Node 18+ (#4955)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S authored Nov 7, 2023
1 parent 77c7fb3 commit a5988b9
Show file tree
Hide file tree
Showing 61 changed files with 71 additions and 97 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-version-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18
registry-url: "https://registry.npmjs.org"
cache: pnpm

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 18.x
cache: pnpm

- name: Build website
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ permissions:

env:
RUNS_ON: ubuntu-latest
NODE_VERSION: "16.x"
NPM_VERSION: "8"
NODE_VERSION: "18.x"
NPM_VERSION: "9"

jobs:
pre-build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reuseable-build-dist-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ permissions:
contents: read

env:
NODE_VERSION: "16.x"
NPM_VERSION: "8"
NODE_VERSION: "18.x"
NPM_VERSION: "9"

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reuseable-load-integrations-repo-list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ permissions:

env:
RUNS_ON: ubuntu-latest
NODE_VERSION: "16.x"
NPM_VERSION: "8"
NODE_VERSION: "18.x"
NPM_VERSION: "9"

jobs:
load:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ jobs:
fail-fast: false
matrix:
node-version:
- 16.x
- 18.x
- 20.x
- 21.x

os:
- ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
matrix:
node-version:
# List of supported node versions (latest is tested in `test-os`)
- 16.x
- 18.x

os:
- ubuntu-latest
Expand Down
30 changes: 2 additions & 28 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ jobs:
matrix:
node-version:
# List of supported node versions (latest is tested in `test-os`)
- 16.x
- 18.x
- 20.x
- 21.x

os:
- ubuntu-latest
Expand Down Expand Up @@ -123,8 +123,8 @@ jobs:
matrix:
node-version:
# List of supported node versions (latest is tested in `test-os`)
- 16.x
- 20.x
- 21.x

os:
- ubuntu-latest
Expand Down Expand Up @@ -160,29 +160,3 @@ jobs:
# Ensure the repository is clean after build & test
- run: git --no-pager diff --exit-code

test-node-19:
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version:
# List of supported node versions (latest is tested in `test-os`)
- 20.x

os:
- ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/install-build
with:
node-version: ${{ matrix.node-version }}

- run: pnpm -r --filter ./packages/cspell run test

# Node 19 has started to fail if concurrency is not set to 1
# both jest and pnpm run in parallel overloading the machine.
- run: pnpm --workspace-concurrency 1 test
4 changes: 2 additions & 2 deletions .github/workflows/update-integration-repositories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ env:
NEW_BRANCH: "update-integration-repositories"
REF_BRANCH_G: main
RUNS_ON: ubuntu-latest
NODE_VERSION: "16.x"
NPM_VERSION: "8"
NODE_VERSION: "18.x"
NPM_VERSION: "9"

jobs:
calc-ref:
Expand Down
2 changes: 1 addition & 1 deletion doc-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"author": "",
"license": "MIT",
"engines": {
"node": ">=16"
"node": ">=18"
},
"dependencies": {
"typedoc": "^0.25.3",
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"normalize-output": "scripts/normalize-output.mjs"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"scripts": {
"build": "tsc -p .",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"cspell": "bin.mjs",
"cspell-tools": "cspell-tools.mjs"
},
"packageManager": "pnpm@8.7.4",
"packageManager": "pnpm@8.10.2",
"private": true,
"scripts": {
"bt": "pnpm run build && pnpm run test",
Expand Down Expand Up @@ -97,7 +97,7 @@
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.5",
"@tsconfig/node16": "^16.1.1",
"@tsconfig/node18": "^18.2.2",
"@types/node": "^18.18.8",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-bundled-dicts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"@cspell/dict-vue": "^3.0.0"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"devDependencies": {
"@cspell/cspell-tools": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-code-snippets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"homepage": "https://github.com/streetsidesoftware/cspell#readme",
"engines": {
"node": ">=16"
"node": ">=18"
},
"devDependencies": {
"@types/jest": "^29.5.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-config-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"url": "https://github.com/streetsidesoftware/cspell/labels/cspell-config"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"dependencies": {
"@cspell/cspell-types": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-dictionary/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"homepage": "https://github.com/streetsidesoftware/cspell#readme",
"engines": {
"node": ">=16"
"node": ">=18"
},
"dependencies": {
"@cspell/cspell-pipe": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"url": "https://github.com/streetsidesoftware/cspell/labels/cspell-gitignore"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"devDependencies": {
"@types/eslint": "^8.44.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-gitignore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"url": "https://github.com/streetsidesoftware/cspell/labels/cspell-gitignore"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"dependencies": {
"cspell-glob": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-glob/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"url": "https://github.com/streetsidesoftware/cspell/labels/cspell-glob"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"dependencies": {
"micromatch": "^4.0.5"
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-grammar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"url": "https://github.com/streetsidesoftware/cspell/labels/cspell-grammar"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"devDependencies": {
"jest": "^29.7.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-io/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
"homepage": "https://github.com/streetsidesoftware/cspell#readme",
"engines": {
"node": ">=16"
"node": ">=18"
},
"devDependencies": {
"@types/node-fetch": "^2.6.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-json-reporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
"@cspell/cspell-types": "workspace:*"
},
"engines": {
"node": ">=16"
"node": ">=18"
}
}
2 changes: 1 addition & 1 deletion packages/cspell-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"vscode-uri": "^3.0.8"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"devDependencies": {
"@cspell/dict-cpp": "^5.0.9",
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-pipe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"url": "https://github.com/streetsidesoftware/cspell/labels/cspell-pipe"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"devDependencies": {
"globby": "^13.2.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"url": "https://github.com/streetsidesoftware/cspell/issues"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"dependencies": {
"global-dirs": "^3.0.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-service-bus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
"url": "https://github.com/streetsidesoftware/cspell/labels/cspell-service-bus"
},
"engines": {
"node": ">=16"
"node": ">=18"
}
}
2 changes: 1 addition & 1 deletion packages/cspell-strong-weak-map/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@
"url": "https://github.com/streetsidesoftware/cspell"
},
"engines": {
"node": ">=16"
"node": ">=18"
}
}
2 changes: 1 addition & 1 deletion packages/cspell-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"yaml": "^2.3.4"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"devDependencies": {
"@types/glob": "^8.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-trie-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"gensequence": "^6.0.0"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"devDependencies": {
"@cspell/dict-en_us": "^4.3.11",
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-trie/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
"gensequence": "^6.0.0"
},
"engines": {
"node": ">=16"
"node": ">=18"
}
}
2 changes: 1 addition & 1 deletion packages/cspell-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@
"author": "Jason Dent",
"license": "MIT",
"engines": {
"node": ">=16"
"node": ">=18"
}
}
2 changes: 1 addition & 1 deletion packages/cspell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"vscode-uri": "^3.0.8"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"devDependencies": {
"@types/file-entry-cache": "^5.0.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/dynamic-import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"url": "https://github.com/streetsidesoftware/cspell/labels/cspell-pipe"
},
"engines": {
"node": ">=16"
"node": ">=18.0"
},
"dependencies": {
"import-meta-resolve": "^3.1.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/hunspell-reader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
"iconv-lite": "^0.6.3"
},
"engines": {
"node": ">=16"
"node": ">=18"
}
}
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"author": "",
"license": "MIT",
"engines": {
"node": ">16.0"
"node": ">=18.0"
},
"devDependencies": {
"esbuild": "0.19.4"
Expand Down
Loading

0 comments on commit a5988b9

Please sign in to comment.