Skip to content

Commit e2f078e

Browse files
authored
Merge pull request #13 from MatrixAI/feature-node20
Updating to node v20
2 parents d91ce6f + dd71b1d commit e2f078e

File tree

8 files changed

+3895
-2626
lines changed

8 files changed

+3895
-2626
lines changed

.eslintrc

+1
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

+3,867-2,600
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+19-19
Original file line numberDiff line numberDiff line change
@@ -23,34 +23,34 @@
2323
"bench": "shx rm -rf ./benches/results && ts-node ./benches"
2424
},
2525
"dependencies": {
26-
"@matrixai/async-init": "^1.8.4",
27-
"@matrixai/errors": "^1.1.7",
26+
"@matrixai/async-init": "^1.9.1",
27+
"@matrixai/errors": "^1.2.0",
2828
"@matrixai/logger": "^3.1.0",
2929
"threads": "^1.6.5"
3030
},
3131
"devDependencies": {
32-
"@swc/core": "^1.3.62",
33-
"@swc/jest": "^0.2.26",
34-
"@types/jest": "^28.1.3",
35-
"@types/node": "^18.15.0",
36-
"@typescript-eslint/eslint-plugin": "^5.45.1",
37-
"@typescript-eslint/parser": "^5.45.1",
32+
"@swc/core": "1.3.82",
33+
"@swc/jest": "^0.2.29",
34+
"@types/jest": "^29.5.2",
35+
"@types/node": "^20.5.7",
36+
"@typescript-eslint/eslint-plugin": "^5.61.0",
37+
"@typescript-eslint/parser": "^5.61.0",
3838
"benny": "^3.7.1",
3939
"common-tags": "^1.8.2",
40-
"eslint": "^8.15.0",
41-
"eslint-config-prettier": "^8.5.0",
42-
"eslint-plugin-import": "^2.26.0",
43-
"eslint-plugin-prettier": "^4.0.0",
44-
"jest": "^28.1.1",
45-
"jest-extended": "^3.0.1",
46-
"jest-junit": "^14.0.0",
47-
"prettier": "^2.6.2",
40+
"eslint": "^8.44.0",
41+
"eslint-config-prettier": "^8.8.0",
42+
"eslint-plugin-import": "^2.27.5",
43+
"eslint-plugin-prettier": "^5.0.0-alpha.2",
44+
"jest": "^29.6.2",
45+
"jest-extended": "^4.0.0",
46+
"jest-junit": "^16.0.0",
47+
"prettier": "^3.0.0",
4848
"shx": "^0.3.4",
4949
"systeminformation": "^5.18.5",
50-
"ts-jest": "^28.0.5",
50+
"ts-jest": "^29.1.1",
5151
"ts-node": "^10.9.1",
5252
"tsconfig-paths": "^3.9.0",
53-
"typedoc": "^0.23.21",
54-
"typescript": "^4.9.3"
53+
"typedoc": "^0.24.8",
54+
"typescript": "^5.1.6"
5555
}
5656
}

pkgs.nix

+1-1
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

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ 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

scripts/choco-install.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ 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
}

shell.nix

+1-1
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
shellcheck
88
gitAndTools.gh
99
];

tsconfig.json

+1
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)