Skip to content

Commit

Permalink
feat: bump to node 20 (#3456)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored Jan 30, 2025
1 parent 213b27d commit 491a5ac
Show file tree
Hide file tree
Showing 21 changed files with 1,196 additions and 137 deletions.
5 changes: 5 additions & 0 deletions .changeset/early-onions-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-mud": patch
---

Updated templates to Node v20.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.20.2
20.18.2
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"tailwindcss": "^3.3.5"
},
"devDependencies": {
"@types/node": "^18",
"@types/node": "^20",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"autoprefixer": "^10.4.16",
Expand Down
6 changes: 3 additions & 3 deletions docs/pages/contribute.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ The following steps are only necessary if you want to contribute to MUD. To use
| Software | Tested with version |
| -------------------------------------------------------- | ------------------- |
| [`curl`](https://curl.se/) | 7.74.0 |
| [`node`](https://nodejs.org/en/download/package-manager) | 18.17.0 |
| [`pnpm`](https://pnpm.io/) | 8.6.11 |
| [`Foundry`](https://getfoundry.sh/) | 0.2.0 |
| [`node`](https://nodejs.org/en/download/package-manager) | 20.x |
| [`pnpm`](https://pnpm.io/) | 9.x |
| [`Foundry`](https://getfoundry.sh/) | latest |

1. Download the source code for MUD.

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/guides/emojimon/2-getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

- git ([download](https://git-scm.com/downloads))
- foundry (forge, anvil, cast) ([download](https://book.getfoundry.sh/getting-started/installation), make sure to `foundryup` at least once)
- node.js (v18) ([download](https://nodejs.org/en/download/))
- node.js (v20) ([download](https://nodejs.org/en/download/))
- pnpm (`npm install pnpm --global` after installing node)

## Setup
Expand Down
8 changes: 4 additions & 4 deletions docs/pages/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ In most cases the easiest way to get started is to use

To install the TypeScript templates you need:

- [Node.js v18](https://nodejs.org/en/download/package-manager).
Note that version 18 is _required_.
- [Node.js v20](https://nodejs.org/en/download/package-manager).
Note that version 20 is _required_.
We do not support older or newer versions at the moment.

<details>
Expand All @@ -21,7 +21,7 @@ To install the TypeScript templates you need:
<Tabs items={["Linux and MacOS", "Windows"]}>
<Tab>
```sh copy
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash nvm install 18
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash nvm install 20
```
</Tab>

Expand All @@ -33,7 +33,7 @@ To install the TypeScript templates you need:
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'));
# download and install Node.js
choco install nodejs --version="18.19.1"
choco install nodejs --version="^20"
```
</Tab>
</Tabs>
Expand Down
17 changes: 12 additions & 5 deletions docs/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 examples/custom-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"devDependencies": {
"@latticexyz/cli": "link:../../packages/cli",
"@types/node": "^18",
"@types/node": "^20",
"ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
"prettier": "3.2.5",
Expand Down
6 changes: 3 additions & 3 deletions examples/local-explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@latticexyz/explorer": "link:../../packages/explorer",
"@latticexyz/store-indexer": "link:../../packages/store-indexer",
"@types/debug": "4.1.7",
"@types/node": "^18",
"@types/node": "^20",
"@typescript-eslint/eslint-plugin": "7.1.1",
"@typescript-eslint/parser": "7.1.1",
"eslint": "8.57.0",
Expand All @@ -26,7 +26,7 @@
"typescript": "5.4.2"
},
"engines": {
"node": "^18",
"pnpm": "^8 || ^9"
"node": "^20",
"pnpm": "^9"
}
}
6 changes: 3 additions & 3 deletions examples/minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@latticexyz/cli": "link:../../packages/cli",
"@types/node": "^18",
"@types/node": "^20",
"@typescript-eslint/eslint-plugin": "7.1.1",
"@typescript-eslint/parser": "7.1.1",
"eslint": "8.57.0",
Expand All @@ -24,7 +24,7 @@
"typescript": "5.4.2"
},
"engines": {
"node": "^18",
"pnpm": "^8 || ^9"
"node": "^20",
"pnpm": "^9"
}
}
6 changes: 3 additions & 3 deletions examples/multiple-accounts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
"devDependencies": {
"@latticexyz/cli": "latest",
"@types/debug": "4.1.7",
"@types/node": "^18",
"@types/node": "^20",
"@typescript-eslint/eslint-plugin": "7.1.1",
"@typescript-eslint/parser": "7.1.1",
"eslint": "8.57.0",
"mprocs": "^0.7.1",
"typescript": "5.4.2"
},
"engines": {
"node": "^18",
"pnpm": "^8 || ^9"
"node": "^20",
"pnpm": "^9"
}
}
2 changes: 1 addition & 1 deletion examples/multiple-namespaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@latticexyz/world": "link:../../packages/world",
"@latticexyz/world-modules": "link:../../packages/world-modules",
"@solidstate/contracts": "^0.0.52",
"@types/node": "^18",
"@types/node": "^20",
"ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
"prettier": "3.2.5",
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"devDependencies": {
"@ark/attest": "0.12.1",
"@changesets/cli": "^2.27.7",
"@types/node": "^18",
"@types/node": "^20",
"@typescript-eslint/eslint-plugin": "7.1.1",
"@typescript-eslint/parser": "7.1.1",
"@viem/anvil": "^0.0.7",
Expand All @@ -62,9 +62,9 @@
"viem": "2.21.19",
"vitest": "2.1.2"
},
"packageManager": "pnpm@9.6.0",
"packageManager": "pnpm@9.15.4",
"engines": {
"node": "18.x || 20.x",
"pnpm": "^9.6.0"
"node": "^20",
"pnpm": "^9"
}
}
6 changes: 3 additions & 3 deletions packages/explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@
"peerDependencies": {
"viem": "2.x"
},
"packageManager": "pnpm@9.6.0",
"packageManager": "pnpm@9.15.4",
"engines": {
"node": "18.x || 20.x",
"pnpm": "^9.6.0"
"node": "20.x",
"pnpm": "^9"
}
}
1 change: 0 additions & 1 deletion packages/world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
"@latticexyz/gas-report": "workspace:*",
"@types/debug": "^4.1.7",
"@types/ejs": "^3.1.1",
"@types/node": "^18",
"ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
"ejs": "^3.1.10",
"forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
Expand Down
Loading

0 comments on commit 491a5ac

Please sign in to comment.