Skip to content

Commit ac236ce

Browse files
committed
build: updating to node 20
[ci skip]
1 parent 2f5fa40 commit ac236ce

File tree

8 files changed

+4290
-2584
lines changed

8 files changed

+4290
-2584
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"message": "Use `globalThis` instead"
4040
}
4141
],
42+
"prefer-rest-params": 0,
4243
"require-yield": 0,
4344
"eqeqeq": ["error", "smart"],
4445
"spaced-comment": [

package-lock.json

Lines changed: 4261 additions & 2557 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,47 +28,47 @@
2828
"bench": "shx rm -rf ./benches/results && ts-node ./benches"
2929
},
3030
"dependencies": {
31-
"@matrixai/async-init": "^1.8.4",
31+
"@matrixai/async-init": "^1.9.1",
3232
"@matrixai/async-locks": "^4.0.0",
33-
"@matrixai/errors": "^1.1.7",
33+
"@matrixai/errors": "^1.2.0",
3434
"@matrixai/logger": "^3.1.0",
3535
"@matrixai/resources": "^1.1.5",
3636
"@matrixai/workers": "^1.3.7",
3737
"node-gyp-build": "4.4.0",
3838
"threads": "^1.6.5"
3939
},
4040
"devDependencies": {
41-
"@swc/core": "^1.3.62",
42-
"@swc/jest": "^0.2.26",
43-
"@types/jest": "^28.1.3",
44-
"@types/node": "^18.15.0",
45-
"@typescript-eslint/eslint-plugin": "^5.45.1",
46-
"@typescript-eslint/parser": "^5.45.1",
41+
"@swc/core": "^1.3.76",
42+
"@swc/jest": "^0.2.29",
43+
"@types/jest": "^29.5.2",
44+
"@types/node": "^20.5.7",
45+
"@typescript-eslint/eslint-plugin": "^5.61.0",
46+
"@typescript-eslint/parser": "^5.61.0",
4747
"benny": "^3.7.1",
4848
"common-tags": "^1.8.2",
49-
"eslint": "^8.15.0",
50-
"eslint-config-prettier": "^8.5.0",
51-
"eslint-plugin-import": "^2.26.0",
52-
"eslint-plugin-prettier": "^4.0.0",
53-
"jest": "^28.1.1",
54-
"jest-extended": "^3.0.1",
55-
"jest-junit": "^14.0.0",
49+
"eslint": "^8.44.0",
50+
"eslint-config-prettier": "^8.8.0",
51+
"eslint-plugin-import": "^2.27.5",
52+
"eslint-plugin-prettier": "^5.0.0-alpha.2",
53+
"jest": "^29.6.2",
54+
"jest-extended": "^4.0.0",
55+
"jest-junit": "^16.0.0",
5656
"lexicographic-integer": "^1.1.0",
5757
"napi-macros": "^2.0.0",
5858
"node-forge": "^1.3.1",
5959
"node-gyp": "9.0.0",
60-
"prettier": "^2.6.2",
60+
"prettier": "^3.0.0",
6161
"semver": "^7.3.7",
6262
"shx": "^0.3.4",
6363
"systeminformation": "^5.18.5",
64-
"ts-jest": "^28.0.5",
64+
"ts-jest": "^29.1.1",
6565
"ts-node": "^10.9.1",
6666
"tsconfig-paths": "^3.9.0",
67-
"typedoc": "^0.23.21",
68-
"typescript": "^4.9.3"
67+
"typedoc": "^0.24.8",
68+
"typescript": "^5.1.6"
6969
},
7070
"engines": {
71-
"node": "^18.15.0",
71+
"node": "^20.5.1",
7272
"msvs": "2019"
7373
}
7474
}

pkgs.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import (
2-
let rev = "f294325aed382b66c7a188482101b0f336d1d7db"; in
2+
let rev = "ea5234e7073d5f44728c499192544a84244bf35a"; in
33
builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz"
44
)

scripts/brew-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
1010
export HOMEBREW_NO_AUTO_UPDATE=1
1111
export HOMEBREW_NO_ANALYTICS=1
1212

13-
brew install node@18
14-
brew link --overwrite node@18
13+
brew reinstall node@20
14+
brew link --overwrite node@20
1515
brew install [email protected]
1616
brew link --overwrite [email protected]

scripts/choco-install.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ if ( $null -eq $env:ChocolateyInstall ) {
2121
New-Item -Path "${PSScriptRoot}\..\tmp\chocolatey" -ItemType "directory" -ErrorAction:SilentlyContinue
2222
choco source add --name="cache" --source="${PSScriptRoot}\..\tmp\chocolatey" --priority=1
2323

24-
# Install nodejs v18.15.0 (will use cache if exists)
24+
# Install nodejs v20.5.1 (will use cache if exists)
2525
$nodejs = "nodejs.install"
26-
choco install "$nodejs" --version="18.15.0" --require-checksums -y
26+
choco install "$nodejs" --version="20.5.1" --require-checksums -y
2727
# Internalise nodejs to cache if doesn't exist
28-
if ( -not (Test-Path -Path "${PSScriptRoot}\..\tmp\chocolatey\$nodejs\$nodejs.18.15.0.nupkg" -PathType Leaf) ) {
28+
if ( -not (Test-Path -Path "${PSScriptRoot}\..\tmp\chocolatey\$nodejs\$nodejs.20.5.1.nupkg" -PathType Leaf) ) {
2929
Save-ChocoPackage -PackageName $nodejs
3030
}
3131

shell.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
with pkgs;
44
mkShell {
55
nativeBuildInputs = [
6-
nodejs
6+
nodejs_20
77
nodejs.python
88
clang-tools
99
shellcheck

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"esModuleInterop": true,
1313
"allowSyntheticDefaultImports": true,
1414
"resolveJsonModule": true,
15+
"skipLibCheck": true,
1516
"moduleResolution": "node",
1617
"module": "CommonJS",
1718
"target": "ES2022",

0 commit comments

Comments
 (0)