Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating to node v20 #13

Merged
merged 2 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"message": "Use `globalThis` instead"
}
],
"prefer-rest-params": 0,
"require-yield": 0,
"eqeqeq": ["error", "smart"],
"spaced-comment": [
Expand Down
6,467 changes: 3,867 additions & 2,600 deletions package-lock.json

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,34 @@
"bench": "shx rm -rf ./benches/results && ts-node ./benches"
},
"dependencies": {
"@matrixai/async-init": "^1.8.4",
"@matrixai/errors": "^1.1.7",
"@matrixai/async-init": "^1.9.1",
"@matrixai/errors": "^1.2.0",
"@matrixai/logger": "^3.1.0",
"threads": "^1.6.5"
},
"devDependencies": {
"@swc/core": "^1.3.62",
"@swc/jest": "^0.2.26",
"@types/jest": "^28.1.3",
"@types/node": "^18.15.0",
"@typescript-eslint/eslint-plugin": "^5.45.1",
"@typescript-eslint/parser": "^5.45.1",
"@swc/core": "1.3.82",
"@swc/jest": "^0.2.29",
"@types/jest": "^29.5.2",
"@types/node": "^20.5.7",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"benny": "^3.7.1",
"common-tags": "^1.8.2",
"eslint": "^8.15.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^28.1.1",
"jest-extended": "^3.0.1",
"jest-junit": "^14.0.0",
"prettier": "^2.6.2",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^5.0.0-alpha.2",
"jest": "^29.6.2",
"jest-extended": "^4.0.0",
"jest-junit": "^16.0.0",
"prettier": "^3.0.0",
"shx": "^0.3.4",
"systeminformation": "^5.18.5",
"ts-jest": "^28.0.5",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"tsconfig-paths": "^3.9.0",
"typedoc": "^0.23.21",
"typescript": "^4.9.3"
"typedoc": "^0.24.8",
"typescript": "^5.1.6"
}
}
2 changes: 1 addition & 1 deletion pkgs.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import (
let rev = "f294325aed382b66c7a188482101b0f336d1d7db"; in
let rev = "ea5234e7073d5f44728c499192544a84244bf35a"; in
builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz"
)
4 changes: 2 additions & 2 deletions scripts/brew-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_NO_ANALYTICS=1

brew install node@18
brew link --overwrite node@18
brew reinstall node@20
brew link --overwrite node@20
6 changes: 3 additions & 3 deletions scripts/choco-install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ if ( $null -eq $env:ChocolateyInstall ) {
New-Item -Path "${PSScriptRoot}\..\tmp\chocolatey" -ItemType "directory" -ErrorAction:SilentlyContinue
choco source add --name="cache" --source="${PSScriptRoot}\..\tmp\chocolatey" --priority=1

# Install nodejs v18.15.0 (will use cache if exists)
# Install nodejs v20.5.1 (will use cache if exists)
$nodejs = "nodejs.install"
choco install "$nodejs" --version="18.15.0" --require-checksums -y
choco install "$nodejs" --version="20.5.1" --require-checksums -y
# Internalise nodejs to cache if doesn't exist
if ( -not (Test-Path -Path "${PSScriptRoot}\..\tmp\chocolatey\$nodejs\$nodejs.18.15.0.nupkg" -PathType Leaf) ) {
if ( -not (Test-Path -Path "${PSScriptRoot}\..\tmp\chocolatey\$nodejs\$nodejs.20.5.1.nupkg" -PathType Leaf) ) {
Save-ChocoPackage -PackageName $nodejs
}
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
with pkgs;
mkShell {
nativeBuildInputs = [
nodejs
nodejs_20
shellcheck
gitAndTools.gh
];
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"moduleResolution": "node",
"module": "CommonJS",
"target": "ES2022",
Expand Down